feat: add content

finxol.io 62e4c261 744425bb

verified
Changed files
+156 -72
src
assets
styles
layouts
pages
+68 -6
src/assets/styles/index.css
···
section.container {
-
--container-color: var(--rose-400);
display: grid;
grid-template-columns: auto auto 1fr;
grid-template-areas:
···
display: flex;
flex-direction: column;
gap: var(--spacing);
-
}
-
-
p {
-
margin: 0;
-
font-size: 1.2rem;
}
}
···
+
p {
+
margin: 0;
+
font-size: 1.2rem;
+
}
+
+
article {
+
--spacing: 1.5rem;
+
+
display: grid;
+
grid-template-columns: repeat(2, 1fr);
+
grid-template-areas:
+
"content-intro content-intro"
+
"content-languages content-blog"
+
"content-projects content-projects";
+
gap: var(--spacing);
+
}
+
section.container {
+
&.content-intro {
+
--container-color: var(--rose-400);
+
grid-area: content-intro;
+
}
+
+
&.content-languages {
+
--container-color: var(--sky-400);
+
grid-area: content-languages;
+
display: flex;
+
align-items: center;
+
justify-content: start;
+
gap: 1rem;
+
+
@media screen and (max-width: 768px) {
+
flex-direction: column;
+
}
+
}
+
+
&.content-blog {
+
--container-color: var(--yellow-400);
+
+
grid-area: content-blog;
+
+
a {
+
display: flex;
+
align-items: center;
+
justify-content: start;
+
gap: 1rem;
+
text-decoration: none;
+
margin: 0;
+
font-size: 1.2rem;
+
+
@media screen and (max-width: 768px) {
+
flex-direction: column;
+
}
+
+
svg {
+
width: 1.5rem;
+
height: 1.5rem;
+
}
+
}
+
}
+
+
&.content-projects {
+
--container-color: var(--fuchsia-400);
+
+
grid-area: content-projects;
+
}
+
}
+
+
section.container.layout {
display: grid;
grid-template-columns: auto auto 1fr;
grid-template-areas:
···
display: flex;
flex-direction: column;
gap: var(--spacing);
}
}
+1 -3
src/layouts/Layout.astro
···
}
main {
padding: var(--spacing);
overflow-y: scroll;
-
display: flex;
-
flex-direction: column;
-
gap: var(--spacing);
}
</style>
···
}
main {
+
container-type: inline-size;
padding: var(--spacing);
overflow-y: scroll;
}
</style>
+43 -31
src/pages/en/index.astro
···
---
import "@/assets/styles/index.css";
-
import Layout from "@/layouts/Layout.astro";
---
<Layout>
-
<section class="container">
-
<aside>👋</aside>
-
<h3>Hiya!</h3>
-
<p>I'm a computer science student 🇫🇷 French.</p>
-
<div>
<p>
-
I natively speak 🇬🇧 <strong> English </strong> and 🇫🇷 <strong>
French
-
</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>
</Layout>
···
---
+
import Layout from "@/layouts/Layout.astro";
import "@/assets/styles/index.css";
+
import { Icon } from "astro-icon/components";
---
<Layout>
+
<article>
+
<section class="container layout content-intro">
+
<aside>👋</aside>
+
<h3>Hiya!</h3>
+
<p>I'm a 🇫🇷 French computer science student.</p>
+
<div>
+
<p>I love building robust and performant websites.</p>
+
</div>
+
</section>
+
+
<section class="container content-languages">
+
<Icon name="pixel:globe" />
<p>
+
I'm a native 🇬🇧 <strong> English </strong> and 🇫🇷 <strong>
French
+
</strong> speaker.
</p>
+
</section>
+
<section class="container content-blog">
+
<a
+
href="https://finxol.io"
+
target="_blank"
+
rel="noopener noreferrer"
+
>
+
<Icon name="pixel:external-link" class="external-link" />
+
<span> Check out my blog for some technical write-ups! </span>
+
</a>
+
</section>
+
+
<section class="container layout content-projects">
+
<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>
+
</article>
</Layout>
+44 -32
src/pages/fr/index.astro
···
---
import "@/assets/styles/index.css";
-
import Layout from "@/layouts/Layout.astro";
---
<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>
</Layout>
···
---
+
import Layout from "@/layouts/Layout.astro";
import "@/assets/styles/index.css";
+
import { Icon } from "astro-icon/components";
---
<Layout>
+
<article>
+
<section class="container layout content-intro">
+
<aside>👋</aside>
+
<h3>Bonjour!</h3>
+
<p>Je suis un étudiant en informatique 🇫🇷 Français.</p>
+
<div>
+
<p>J'adore construire des sites web robustes et performants.</p>
+
</div>
+
</section>
+
<section class="container content-languages">
+
<Icon name="pixel:globe" />
<p>
+
Je suis natif en 🇬🇧 <strong>Anglais</strong> et 🇫🇷 <strong
+
>Français</strong
+
>.
</p>
+
</section>
+
+
<section class="container content-blog">
+
<a
+
href="https://finxol.io"
+
target="_blank"
+
rel="noopener noreferrer"
+
>
+
<Icon name="pixel:external-link" class="external-link" />
+
<span> Voir mon blog pour des articles techniques ! </span>
+
</a>
+
</section>
+
+
<section class="container layout content-projects">
+
<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>
+
</article>
</Layout>