Skip to content

Commit

Permalink
v0.3.0 merge (#33)
Browse files Browse the repository at this point in the history
* Adding back buttons to slug pages (#32)

* chore(README): Update Technologies used section
  • Loading branch information
biehlerj authored Jul 30, 2023
1 parent ad814ad commit 7b71542
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ A big thank you to the following projects for helping me build my website the wa
- [Astro Icon](https://github.com/natemoo-re/astro-icon) for making me not have worry about inlining my svgs on my own.
- [Hugo PaperMod theme](https://github.com/adityatelange/hugo-PaperMod) for inspiring my layout and providing the SVGs for my social media links.
- [date-fns](https://github.com/date-fns/date-fns) for making working with dates so much easier!
- [Tailwind CSS](https://tailwindcss.com/) for helping make my site beautiful with ease!
- [Catppuccin Palette](https://github.com/catppuccin/palette) for helping theme my website the way I want!

## Roadmap

Expand Down
22 changes: 22 additions & 0 deletions src/components/BackCard.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
import "@styles/global.css";
interface Props {
title: string;
href: string;
}
const { href, title } = Astro.props;
---

<div class="buttons">
<a href={href}>
<h2>
{title}
<span>&rarr;</span>
</h2>
<p>
<slot />
</p>
</a>
</div>
2 changes: 2 additions & 0 deletions src/layouts/CertEntry.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import MonthYearDate from "@components/MonthYearDate.astro";
import Layout from "./Layout.astro";
import BackCard from "@components/BackCard.astro";
const { frontmatter } = Astro.props;
---
Expand All @@ -14,5 +15,6 @@ const { frontmatter } = Astro.props;
</div>
<slot />
</article>
<BackCard href="/education" title="Back to Education" />
</div>
</Layout>
2 changes: 2 additions & 0 deletions src/layouts/EducationEntry.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import MultiDate from "@components/MultiDate.astro";
import Layout from "./Layout.astro";
import BackCard from "@components/BackCard.astro";
const { frontmatter } = Astro.props;
---
Expand Down Expand Up @@ -32,6 +33,7 @@ const { frontmatter } = Astro.props;
}
</div>
</article>
<BackCard href="/education" title="Back to Education" />
</div>
</Layout>

Expand Down
2 changes: 2 additions & 0 deletions src/layouts/ExperienceEntry.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import MultiDate from "@components/MultiDate.astro";
import Layout from "./Layout.astro";
import BackCard from "@components/BackCard.astro";
const { frontmatter } = Astro.props;
---
Expand Down Expand Up @@ -28,6 +29,7 @@ const { frontmatter } = Astro.props;
}
</div>
</article>
<BackCard href="/experience" title="Back to Experience" />
</div>
</Layout>

Expand Down
2 changes: 2 additions & 0 deletions src/layouts/ProjectEntry.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import Date from "@components/Date.astro";
import Layout from "./Layout.astro";
import BackCard from "@components/BackCard.astro";
const { frontmatter } = Astro.props;
---
Expand All @@ -25,6 +26,7 @@ const { frontmatter } = Astro.props;
}
</div>
</article>
<BackCard href="/projects" title="Back to Projects" />
</div>
</Layout>

Expand Down
2 changes: 2 additions & 0 deletions src/pages/skills/[skill].astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import BackCard from "@components/BackCard.astro";
import Card from "@components/Card.astro";
import Date from "@components/Date.astro";
import MultiDate from "@components/MultiDate.astro";
Expand Down Expand Up @@ -102,6 +103,7 @@ const { projectSkills, experienceSkills, educationSkills } = Astro.props;
))}
</ul>
) : <></>}
<BackCard href="/skills" title="Back to Skills" />
</main>
</Layout>

Expand Down

0 comments on commit 7b71542

Please sign in to comment.