first commit
This commit is contained in:
parent
b216a187bd
commit
f73c77f548
119 changed files with 4504 additions and 4829 deletions
24
frontend/app/components/About.tsx
Normal file
24
frontend/app/components/About.tsx
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
async function GetAboutDatas(){
|
||||
const res = await fetch(`${process.env.BACKEND_URL}/cv/about`, {
|
||||
cache: process.env.CACHE
|
||||
});
|
||||
|
||||
if(!res.ok){
|
||||
throw new Error("Erreur lors de la lecture des données de contact.")
|
||||
}
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export default async function About(){
|
||||
const about_text = await GetAboutDatas();
|
||||
|
||||
return (
|
||||
<section className="dev-hero">
|
||||
<div className="container container--narrow">
|
||||
<span className="eyebrow">Développeur web</span>
|
||||
<h1 className="headline headline--code">Anthony Violet</h1>
|
||||
<p className="subheadline">{about_text}</p>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue