mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
* Run astro check on all examples in CI * Output stderr * Build Astro before running checks * Making things faster + colors * Fix errors inside examples * Add congrats message * Revert unentional change to tsconfigs * Remove more unneeded changes
107 lines
2 KiB
Text
107 lines
2 KiB
Text
---
|
|
import MainHead from '../components/MainHead.astro';
|
|
import Footer from '../components/Footer.astro';
|
|
import Nav from '../components/Nav.astro';
|
|
import type { Project } from '../types';
|
|
|
|
interface Props {
|
|
content: Project;
|
|
}
|
|
|
|
const { content } = Astro.props;
|
|
---
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<MainHead title={content.title} description={content.description} />
|
|
<style>
|
|
.hero {
|
|
padding: 8rem;
|
|
display: flex;
|
|
background-color: var(--t-fg);
|
|
background-repeat: no-repeat;
|
|
background-size: cover;
|
|
min-height: 25vw;
|
|
color: white;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.tag {
|
|
margin-left: 0.5em;
|
|
margin-right: 0.5em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.tag:nth-of-type(1n) {
|
|
color: var(--c-green);
|
|
}
|
|
.tag:nth-of-type(2n) {
|
|
color: var(--c-orange);
|
|
}
|
|
.tag:nth-of-type(3n) {
|
|
color: var(--c-blue);
|
|
}
|
|
.tag:nth-of-type(4n) {
|
|
color: var(--c-pink);
|
|
}
|
|
|
|
.title {
|
|
font-size: var(--f-u10);
|
|
font-weight: 900;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.0625em;
|
|
}
|
|
|
|
.leadIn {
|
|
padding-top: 4em;
|
|
color: var(--t-bg);
|
|
background-color: var(--t-fg);
|
|
text-align: center;
|
|
}
|
|
|
|
.tagline {
|
|
font-weight: 300;
|
|
font-size: var(--f-u3);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.content {
|
|
font-size: var(--f-u1);
|
|
line-height: 2.2;
|
|
max-width: 50em;
|
|
margin: auto;
|
|
}
|
|
|
|
.wrapper {
|
|
padding-bottom: 4em;
|
|
margin-bottom: 4em;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
margin-top: 3rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<Nav />
|
|
<header style={`background-image:url(${content.img})`} class="hero">
|
|
<h1 class="title">{content.title}</h1>
|
|
</header>
|
|
<div class="leadIn">
|
|
<div class="wrapper">
|
|
{content.tags.map((t) => <span class="tag">{t}</span>)}
|
|
<h3 class="tagline">{content.description}</h3>
|
|
</div>
|
|
</div>
|
|
<div class="wrapper">
|
|
<div class="content"><slot /></div>
|
|
</div>
|
|
<footer>
|
|
<a href="/projects" class="button">View More</a>
|
|
</footer>
|
|
<Footer />
|
|
</body>
|
|
</html>
|