Skip to content

Commit

Permalink
feat: hero image, divider, toggle move
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronczichon committed Mar 22, 2024
1 parent 33be658 commit fd74cee
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"features": {
"ghcr.io/devcontainers-community/npm-features/prettier:1": {}
},
"mounts": [],
"mounts": [
"source=${localEnv:HOME}/sourcecode/devcontainer-sharing,target=/workspaces/shared,type=bind,consistency=cached"
],
"customizations": {
"vscode": {
"extensions": ["esbenp.prettier-vscode", "mutantdino.resourcemonitor", "astro-build.astro-vscode"]
Expand Down
1 change: 1 addition & 0 deletions design/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ <h1>Hi I'm Aaron,</h1>
<br /><br />
Want to talk to me? Book a slot if you like. I would love to chat :)
</article>
<div class="divider"></div>
<h2>Newest entries</h2>
<div class="entry-grid">
<a href="blog-entry.html" class="entry">
Expand Down
5 changes: 5 additions & 0 deletions design/src/styles/common/divider.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.divider {
width: 100%;
border-top: 1px solid var(--primary-color-light);
margin: 16px 0 16px 0;
}
1 change: 1 addition & 0 deletions design/src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@import './common/fun.css';
@import './common/utils.css';
@import './common/code.css';
@import './common/divider.css';

@import './layout/main.css';
@import './layout/hero.css';
Expand Down
4 changes: 2 additions & 2 deletions personal/src/components/ColorSchemeToggle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
.theme-switch-container {
position: fixed;
right: 0;
top: 0;
bottom: 0;
font-size: 0.8rem;
margin: 8px 8px 0 0;
margin: 8px 8px 8px 0;
}
/**
* On smaller screens the toggle should be centered on top of the page
Expand Down
5 changes: 5 additions & 0 deletions personal/src/components/Divider.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
const { margin } = Astro.props;
---

<div class="divider" style={"margin: " + margin}></div>
18 changes: 9 additions & 9 deletions personal/src/layouts/StartPage.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
import Layout from "../layouts/Layout.astro";
import Hero from "../components/Hero.astro";
import BlogEntryList from "../components/BlogEntryList.astro";
import Divider from "../components/Divider.astro";
import HeroImage from "../resources/hero.jpeg";
const { frontmatter } = Astro.props;
---

<Layout title={"Aaron Czichon - " + frontmatter.title}>
{
frontmatter.image ? (
<Hero url={frontmatter.image.url} alt={frontmatter.image.alt} />
) : (
""
)
}
<Hero
image={HeroImage}
alt="Showing Aaron in the forebround on the right side in a dark green hoodie with a sunny landscape in the background"
/>
<main class="container">
<article>
<slot />
</article>
<h2 style="padding-top: 32px">My latest blog entries</h2>
<BlogEntryList limit="5" />
<Divider margin="32px 0 32px 0" />
<h2>My latest blog entries</h2>
<BlogEntryList limit="4" />
<a href="/blog" style="padding-bottom: 32px">read more...</a>
</main>
</Layout>
Binary file modified personal/src/resources/hero.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd74cee

Please sign in to comment.