add astro template for front #13

Merged
Clement merged 18 commits from feat/astro-template-for-front into master 2024-05-21 08:07:58 +00:00
Showing only changes of commit b47720cc4e - Show all commits

View File

@ -1,5 +1,6 @@
---
import Layout from 'layouts/Layout.astro';
import Layout from 'layouts/PageLayout.astro';
//import Layout from 'layouts/Layout.astro';
import AstroUtils from 'libs/AstroUtils';
import { getEnv } from 'libs/Env';
@ -55,9 +56,14 @@ await AstroUtils.wrap(async () => {
Astro.redirect("/404")
}
})
const metadata = {
title: 'register',
ignoreTitleTemplate: true,
};
---
<Layout title="register">
<Layout metadata={metadata}>
<form id="account-creation" method="post" enctype="multipart/form-data">
<input type="hidden" name="type" value="userPassword">
<input required name="name" placeholder="Prénom Nom"/>
@ -74,4 +80,3 @@ await AstroUtils.wrap(async () => {
</form>
<a href={oauths.authProviders[0].authUrl + Astro.url.protocol + "//" + Astro.url.host + '/account/oauth'}>discord?</a>
</Layout>