first commit
This commit is contained in:
commit
fa58768553
3 changed files with 4134 additions and 0 deletions
15
src/pages/404.astro
Normal file
15
src/pages/404.astro
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
import styles from "../styles/NotFound.module.css"
|
||||
import Layout from "../layouts/Layout.astro"
|
||||
---
|
||||
|
||||
<Layout page="Not Found">
|
||||
<div id={styles.notFound}>
|
||||
<h1 id={styles.header}>Page not found.</h1>
|
||||
<span id={styles.description}>
|
||||
We couldn't find that page. Please{" "}
|
||||
<a href="javascript:window.history.go(-1)"> go back</a>
|
||||
, or return to our <a href="/">home page</a>.
|
||||
</span>
|
||||
</div>
|
||||
</Layout>
|
||||
15
src/pages/index.astro
Normal file
15
src/pages/index.astro
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
import About from "../components/About.astro"
|
||||
import Jumbo from "../components/Jumbo.astro"
|
||||
import Portfolio from "../components/Portfolio.astro"
|
||||
import Layout from "../layouts/Layout.astro"
|
||||
import styles from "../styles/Home.module.css"
|
||||
---
|
||||
|
||||
<Layout page={"Home"}>
|
||||
<div id={styles.container}>
|
||||
<Jumbo />
|
||||
<Portfolio />
|
||||
<About />
|
||||
</div>
|
||||
</Layout>
|
||||
74
src/pages/projects/[id].astro
Normal file
74
src/pages/projects/[id].astro
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
---
|
||||
import ButtonLink from "../../components/ButtonLink.astro"
|
||||
import Divider from "../../components/Divider.astro"
|
||||
import RoundDivider from "../../components/RoundDivider.astro"
|
||||
import styles from "../../styles/Project.module.css"
|
||||
import Layout from "../../layouts/Layout.astro"
|
||||
import projects from "../../projects.json"
|
||||
|
||||
export function getStaticPaths() {
|
||||
return projects.map((_, id) => ({ params: { id: id } }))
|
||||
}
|
||||
|
||||
const { id: idParam } = Astro.params
|
||||
const id = Number(idParam)
|
||||
const project = projects[id]
|
||||
---
|
||||
|
||||
<Layout page={project.name}>
|
||||
<div id={styles.container}>
|
||||
<section id={styles.jumbo}>
|
||||
<h1 class={styles.title}>{project.name}</h1>
|
||||
<Divider />
|
||||
<p class={styles.overview}>{project.overview}</p>
|
||||
<RoundDivider />
|
||||
</section>
|
||||
<section id={styles.details}>
|
||||
<div class={styles.row}>
|
||||
<article class={styles.longDescription}>
|
||||
<h2>Description</h2>
|
||||
<Divider />
|
||||
<section>
|
||||
<p>
|
||||
{project.description}
|
||||
{project.technologies}
|
||||
</p>
|
||||
<div class={styles.buttonRow}>
|
||||
{
|
||||
project.github && (
|
||||
<ButtonLink href={project.github} newTab>
|
||||
Source Code
|
||||
</ButtonLink>
|
||||
)
|
||||
}
|
||||
{
|
||||
project.demoLink && (
|
||||
<ButtonLink href={project.demoLink} newTab>
|
||||
Go to demo
|
||||
</ButtonLink>
|
||||
)
|
||||
}
|
||||
{
|
||||
project.customLink && (
|
||||
<ButtonLink
|
||||
href={project.customLink.link}
|
||||
newTab
|
||||
>
|
||||
{project.customLink.name}
|
||||
</ButtonLink>
|
||||
)
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
<article class={styles.image}>
|
||||
<img
|
||||
src={`/images/${project.computerImages[0]}`}
|
||||
alt={`Image of ${project.name}`}
|
||||
class={styles.screenshot}
|
||||
/>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</Layout>
|
||||
Reference in a new issue