remove useless file
This commit is contained in:
parent
bc20c9ff34
commit
43683d08cc
1 changed files with 0 additions and 79 deletions
|
@ -1,79 +0,0 @@
|
|||
---
|
||||
import ButtonLink from "../components/ButtonLink.astro"
|
||||
import Divider from "../components/Divider.astro"
|
||||
import styles from "../styles/Project.module.css"
|
||||
import Layout from "../layouts/Layout.astro"
|
||||
import type { CollectionSchema } from "astro:content"
|
||||
|
||||
// export function getStaticPaths() {
|
||||
// return projects.map((project) => ({
|
||||
// params: { route: project.route }
|
||||
// }))
|
||||
// }
|
||||
|
||||
// const { route: projectRoute } = Astro.params
|
||||
// const project = projects.find((project) => project.route === projectRoute)
|
||||
// if (project == null) return
|
||||
|
||||
export interface Props {
|
||||
project: CollectionSchema<"projects">
|
||||
}
|
||||
|
||||
const { project } = Astro.props
|
||||
---
|
||||
|
||||
<Layout page={project.name} description={(<slot />)}>
|
||||
<section id={styles.jumbo}>
|
||||
<img
|
||||
id={styles.thumb}
|
||||
src={`/images/${project.thumbImage}`}
|
||||
alt={project.name}
|
||||
/>
|
||||
<h1 class={styles.title}>
|
||||
{project.name}
|
||||
</h1>
|
||||
<Divider />
|
||||
<p class={styles.overview}>{project.overview}</p>
|
||||
</section>
|
||||
<section id={styles.details} class={styles.row}>
|
||||
<article class={styles.longDescription}>
|
||||
<h2>Description</h2>
|
||||
<Divider />
|
||||
<section>
|
||||
<p>
|
||||
<slot />
|
||||
</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.mainImage}`}
|
||||
alt={`Image of ${project.name}`}
|
||||
class={styles.screenshot}
|
||||
/>
|
||||
</article>
|
||||
</section>
|
||||
</Layout>
|
Loading…
Add table
Reference in a new issue