feat: add content to index page

finxol.io a0ec8290 afd510ed

verified
Changed files
+105 -1
src
assets
styles
pages
+59
src/assets/styles/index.css
···
+
section.container {
+
--container-color: var(--rose-400);
+
+
display: grid;
+
grid-template-columns: auto auto 1fr;
+
grid-template-areas:
+
"aside h3 intro"
+
". body body";
+
align-items: center;
+
justify-content: start;
+
padding: calc(var(--spacing) * 2) var(--spacing) calc(var(--spacing) * 3);
+
grid-column-gap: var(--spacing);
+
+
@media screen and (max-width: 768px) {
+
grid-template-areas:
+
"aside h3"
+
". intro"
+
". body";
+
}
+
+
& > aside {
+
grid-area: aside;
+
margin-inline: 1.5rem;
+
font-size: 3rem;
+
font-weight: bold;
+
+
@media screen and (max-width: 768px) {
+
font-size: 2rem;
+
margin-inline: 0.5rem;
+
}
+
}
+
+
& > h3 {
+
grid-area: h3;
+
margin: 0;
+
margin-inline-end: 2rem;
+
font-family: "Spagetty";
+
font-size: 2rem;
+
font-weight: bold;
+
}
+
+
& > p {
+
grid-area: intro;
+
margin: 0;
+
font-size: 1.2rem;
+
}
+
+
& > div {
+
grid-area: body;
+
display: flex;
+
flex-direction: column;
+
gap: var(--spacing);
+
}
+
+
p {
+
margin: 0;
+
font-size: 1.2rem;
+
}
+
}
+46 -1
src/pages/fr/index.astro
···
---
+
import "@/assets/styles/index.css";
import Layout from "@/layouts/Layout.astro";
---
-
<Layout> Bonjour </Layout>
+
<Layout>
+
<section class="container">
+
<aside>👋</aside>
+
<h3>Bonjour!</h3>
+
<p>Je suis un étudiant en informatique 🇫🇷 Français.</p>
+
<div>
+
<p>
+
Je parle nativement 🇬🇧 <strong> Anglais </strong> et 🇫🇷 <strong>
+
Français
+
</strong>.
+
</p>
+
<p>
+
Some of my interests include:
+
<strong>
+
web development, infosec, cybersecurity and systems
+
administration.
+
</strong>
+
</p>
+
</div>
+
</section>
+
+
<section class="container">
+
<aside>💻</aside>
+
<h3>Projets</h3>
+
<div>
+
<p>
+
I'm currently working on Karr, a federated carpooling platform
+
for businesses. You can find my other most interesting projects
+
just next door. I regularly take part in CTFs and other
+
cybersecurity events & conferences. Feel free to use my contact
+
details if you wish to get in touch. I also love playing the
+
drums and all sorts of instruments.
+
</p>
+
</div>
+
</section>
+
+
<!-- {
+
Array.from({ length: 10 }, (_, i) => (
+
<div key={i}>
+
<h2>Project {i + 1}</h2>
+
<p>Description of project {i + 1}</p>
+
</div>
+
))
+
} -->
+
</Layout>