Compare commits
9 Commits
master
...
7f1986e765
Author | SHA1 | Date | |
---|---|---|---|
7f1986e765 | |||
07ee4b9e57 | |||
20ebad74fb | |||
aec568d0c7 | |||
0849ffe42c | |||
e13cb9bbb9 | |||
c348e2b2ac | |||
c93141e68f | |||
2ecc5c86ca |
@ -18,7 +18,9 @@ services:
|
|||||||
- public
|
- public
|
||||||
|
|
||||||
front:
|
front:
|
||||||
image: git.lab-ouest.org/epitech/ratrapage_t-web_front:pr-1-head
|
image: git.lab-ouest.org/epitech/ratrapage_t-web_front:pr-16-head
|
||||||
|
environment:
|
||||||
|
- POCKETBASE_URL=https://${POCKET_BASE_URL}
|
||||||
depends_on:
|
depends_on:
|
||||||
- pocketbase
|
- pocketbase
|
||||||
labels:
|
labels:
|
||||||
@ -30,7 +32,7 @@ services:
|
|||||||
- public
|
- public
|
||||||
|
|
||||||
back_drink:
|
back_drink:
|
||||||
image: git.lab-ouest.org/epitech/ratrapage_t-web_back:pr-6-head
|
image: git.lab-ouest.org/epitech/ratrapage_t-web_back:master
|
||||||
environment:
|
environment:
|
||||||
- port=${BACK_BASE_PORT}
|
- port=${BACK_BASE_PORT}
|
||||||
labels:
|
labels:
|
||||||
|
@ -34,7 +34,8 @@
|
|||||||
"astro-icon": "^1.1.0",
|
"astro-icon": "^1.1.0",
|
||||||
"limax": "4.1.0",
|
"limax": "4.1.0",
|
||||||
"lodash.merge": "^4.6.2",
|
"lodash.merge": "^4.6.2",
|
||||||
"unpic": "^3.18.0"
|
"unpic": "^3.18.0",
|
||||||
|
"tailwind-merge": "^2.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/check": "^0",
|
"@astrojs/check": "^0",
|
||||||
@ -68,7 +69,6 @@
|
|||||||
"reading-time": "^1.5.0",
|
"reading-time": "^1.5.0",
|
||||||
"rehype-plugin-image-native-lazy-loading": "^1.2.0",
|
"rehype-plugin-image-native-lazy-loading": "^1.2.0",
|
||||||
"sharp": "0.33.3",
|
"sharp": "0.33.3",
|
||||||
"tailwind-merge": "^2.3.0",
|
|
||||||
"tailwindcss": "^3.4.3",
|
"tailwindcss": "^3.4.3",
|
||||||
"typescript-eslint": "^7.9.0"
|
"typescript-eslint": "^7.9.0"
|
||||||
}
|
}
|
||||||
|
28
front/src/components/Input.astro
Normal file
28
front/src/components/Input.astro
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
import type { Input as Props } from 'types';
|
||||||
|
|
||||||
|
const { type, name, label, autocomplete, placeholder, divClass, inputClass} = Astro.props;
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<>
|
||||||
|
{
|
||||||
|
name && (
|
||||||
|
<div class={divClass}>
|
||||||
|
{label && (
|
||||||
|
<label for={name} class="block text-sm font-medium">
|
||||||
|
{label}
|
||||||
|
</label>
|
||||||
|
)}
|
||||||
|
<input
|
||||||
|
type={type}
|
||||||
|
name={name}
|
||||||
|
id={name}
|
||||||
|
autocomplete={autocomplete}
|
||||||
|
placeholder={placeholder}
|
||||||
|
class={"py-3 px-4 block w-full text-md rounded-lg border border-gray-200 dark:border-gray-700 bg-white dark:bg-slate-900" + inputClass}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</>
|
@ -80,18 +80,4 @@ const metadata = {
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<Oauth/>
|
<Oauth/>
|
||||||
<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"/>
|
|
||||||
<input required name="username" placeholder="Pseudo"/>
|
|
||||||
<input required name="email" type="email" placeholder="Renseignez votre email" />
|
|
||||||
<input required name="password" type="password" placeholder="Créez un mot de passe" />
|
|
||||||
<input required name="passwordConfirm" type="password" placeholder="Confirmer votre mot de passe" />
|
|
||||||
<button>Créer un compte</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<button id="OauthDiscord">connexion avec discord</button>
|
|
||||||
<form method="post" enctype="multipart/form-data">
|
|
||||||
<input type="hidden" name="type" value="discord2FA">
|
|
||||||
</form>
|
|
||||||
</Layout>
|
</Layout>
|
||||||
|
6
front/src/types.d.ts
vendored
6
front/src/types.d.ts
vendored
@ -1,5 +1,5 @@
|
|||||||
import type { AstroComponentFactory } from 'astro/runtime/server/index.js'
|
import type { AstroComponentFactory } from 'astro/runtime/server/index.js'
|
||||||
import type { HTMLAttributes, ImageMetadata } from 'astro/types'
|
import type { HTMLAttributes, ImageMetadata, HTMLInputTypeAttribute } from 'astro/types'
|
||||||
|
|
||||||
export interface Post {
|
export interface Post {
|
||||||
/** A unique ID number that identifies a post. */
|
/** A unique ID number that identifies a post. */
|
||||||
@ -26,7 +26,7 @@ export interface Post {
|
|||||||
/** */
|
/** */
|
||||||
category?: Taxonomy
|
category?: Taxonomy
|
||||||
/** */
|
/** */
|
||||||
tags?: Taxonomy[]
|
tags?: Array<Taxonomy>
|
||||||
/** */
|
/** */
|
||||||
author?: string
|
author?: string
|
||||||
|
|
||||||
@ -167,6 +167,8 @@ export interface Input {
|
|||||||
label?: string
|
label?: string
|
||||||
autocomplete?: string
|
autocomplete?: string
|
||||||
placeholder?: string
|
placeholder?: string
|
||||||
|
divClass?: string
|
||||||
|
inputClass?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Textarea {
|
export interface Textarea {
|
||||||
|
@ -1,24 +1,25 @@
|
|||||||
import defaultTheme from 'tailwindcss/defaultTheme';
|
import defaultTheme from 'tailwindcss/defaultTheme'
|
||||||
import typographyPlugin from '@tailwindcss/typography';
|
import typographyPlugin from '@tailwindcss/typography'
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
content: ['./src/**/*.{astro,html,js,jsx,json,md,mdx,svelte,ts,tsx,vue}'],
|
content: ['./src/**/*.{astro,html,js,jsx,json,md,mdx,svelte,ts,tsx,vue}'],
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
primary: 'var(--aw-color-primary)',
|
primary: 'var(--aw-color-primary)',
|
||||||
secondary: 'var(--aw-color-secondary)',
|
secondary: 'var(--aw-color-secondary)',
|
||||||
accent: 'var(--aw-color-accent)',
|
accent: 'var(--aw-color-accent)',
|
||||||
default: 'var(--aw-color-text-default)',
|
default: 'var(--aw-color-text-default)',
|
||||||
muted: 'var(--aw-color-text-muted)',
|
muted: 'var(--aw-color-text-muted)',
|
||||||
},
|
},
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
sans: ['var(--aw-font-sans, ui-sans-serif)', ...defaultTheme.fontFamily.sans],
|
sans: ['var(--aw-font-sans, ui-sans-serif)', ...defaultTheme.fontFamily.sans],
|
||||||
serif: ['var(--aw-font-serif, ui-serif)', ...defaultTheme.fontFamily.serif],
|
serif: ['var(--aw-font-serif, ui-serif)', ...defaultTheme.fontFamily.serif],
|
||||||
heading: ['var(--aw-font-heading, ui-sans-serif)', ...defaultTheme.fontFamily.sans],
|
heading: ['var(--aw-font-heading, ui-sans-serif)', ...defaultTheme.fontFamily.sans],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [typographyPlugin],
|
plugins: [typographyPlugin],
|
||||||
darkMode: 'class',
|
darkMode: 'class',
|
||||||
};
|
}
|
||||||
|
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
/** @type {import('tailwindcss').Config} */
|
|
||||||
export default {
|
|
||||||
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
|
|
||||||
theme: {
|
|
||||||
extend: {},
|
|
||||||
},
|
|
||||||
plugins: [],
|
|
||||||
}
|
|
Reference in New Issue
Block a user