2024-04-02 17:22:30 +02:00
|
|
|
import {
|
|
|
|
Body,
|
|
|
|
Button,
|
|
|
|
Container,
|
|
|
|
Heading,
|
|
|
|
Html,
|
2024-04-11 16:47:14 +02:00
|
|
|
Img,
|
2024-04-02 17:22:30 +02:00
|
|
|
Preview,
|
|
|
|
Section,
|
|
|
|
Text,
|
|
|
|
} from 'jsx-email'
|
2024-04-04 14:34:42 +02:00
|
|
|
import { Signature } from './components/Signature.tsx'
|
2024-04-02 17:22:30 +02:00
|
|
|
import type { Template } from '../types.ts'
|
2024-04-04 14:34:42 +02:00
|
|
|
import type { JSX } from 'preact'
|
2024-06-17 12:06:12 +02:00
|
|
|
import {
|
|
|
|
bodyCss,
|
|
|
|
buttonCss,
|
|
|
|
headingCss,
|
|
|
|
messageCss,
|
|
|
|
rootCss,
|
|
|
|
textCss,
|
|
|
|
} from './styles/base.tsx'
|
2024-04-11 16:47:14 +02:00
|
|
|
import { BaseStyle } from './styles/base.tsx'
|
2024-04-02 17:22:30 +02:00
|
|
|
|
|
|
|
function Welcome(
|
2024-06-15 17:23:58 +02:00
|
|
|
{ firstname, lastname, login, endpoint }: {
|
2024-04-02 17:22:30 +02:00
|
|
|
firstname: string
|
|
|
|
lastname: string
|
|
|
|
login: string
|
2024-06-15 17:23:58 +02:00
|
|
|
endpoint?: string
|
2024-04-02 17:22:30 +02:00
|
|
|
},
|
|
|
|
) {
|
|
|
|
return (
|
2024-04-11 16:47:14 +02:00
|
|
|
<Html lang='fr' style={{ fontSize: '14px' }}>
|
|
|
|
<BaseStyle />
|
2024-04-02 17:22:30 +02:00
|
|
|
<Preview>Bienvenue au FabLab Coh@bit</Preview>
|
2024-04-11 16:47:14 +02:00
|
|
|
<Body style={bodyCss}>
|
|
|
|
<Container style={messageCss}>
|
2024-04-02 17:22:30 +02:00
|
|
|
<Section>
|
2024-04-11 16:47:14 +02:00
|
|
|
<Heading as='h1' style={headingCss}>
|
|
|
|
Bienvenue au<Img
|
2024-04-17 13:44:21 +02:00
|
|
|
src='https://cohabit.fr/images/logo.png'
|
2024-04-11 16:47:14 +02:00
|
|
|
alt='FabLab Cohabit'
|
|
|
|
style={imgCss}
|
|
|
|
/>
|
|
|
|
</Heading>
|
|
|
|
<Text style={textCss}>
|
|
|
|
Bravo ! Vous avez rejoint le FabLab Coh@bit en tant que{' '}
|
|
|
|
{firstname} {lastname}.
|
2024-04-02 17:22:30 +02:00
|
|
|
</Text>
|
2024-04-11 16:47:14 +02:00
|
|
|
<Text style={textCss}>
|
|
|
|
Votre identifiant est <span style={preCss}>{login}</span>.
|
|
|
|
</Text>
|
|
|
|
<Text style={textCss}>
|
|
|
|
Laissez parler votre créativité, vous êtes prêt à collaborer avec
|
|
|
|
toute une communauté ouverte et accueillante.
|
|
|
|
</Text>
|
|
|
|
<Text style={textCss}>
|
|
|
|
Par où commencer ?
|
2024-04-02 17:22:30 +02:00
|
|
|
</Text>
|
|
|
|
|
2024-04-11 16:47:14 +02:00
|
|
|
<ul style={{ fontSize: '1rem' }}>
|
2024-04-02 17:22:30 +02:00
|
|
|
<li>
|
|
|
|
Accéder au <a href='https://cohabit.fr'>site de Coh@bit</a>{' '}
|
|
|
|
et découvrir le FabLab.
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
Découvrir et participer aux{' '}
|
|
|
|
<a href='https://cohabit.fr/projets'>projets en cours</a>{' '}
|
|
|
|
au FabLab.
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
Explorer les{' '}
|
|
|
|
<a href='https://git.cohabit.fr'>sources et archives</a>{' '}
|
|
|
|
du FabLab.
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
Se documenter et parcourrir le{' '}
|
|
|
|
<a href='https://projets.cohabit.fr'>wiki</a> du FabLab.
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
Visionner les{' '}
|
|
|
|
<a href='https://toot.aquilenet.fr/@cohabit_fablab@tube.aquilenet.fr'>
|
|
|
|
tutoriels vidéos
|
|
|
|
</a>{' '}
|
|
|
|
du FabLab.
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href='https://matrix.to/#/!thtlRrlXFrbifqMNCG:matrix.org?via=matrix.org'>
|
|
|
|
Échanger et communiquer
|
|
|
|
</a>{' '}
|
|
|
|
avec les autres usagers du FabLab.
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2024-04-11 16:47:14 +02:00
|
|
|
<Container
|
|
|
|
style={{ width: '100%', textAlign: 'center', padding: '1rem' }}
|
|
|
|
>
|
2024-06-15 17:23:58 +02:00
|
|
|
<Button
|
2024-06-17 12:01:56 +02:00
|
|
|
href={endpoint?.length ? endpoint : 'https://cohabit.fr/profil'}
|
2024-06-15 17:23:58 +02:00
|
|
|
style={buttonCss}
|
|
|
|
>
|
2024-04-11 16:47:14 +02:00
|
|
|
Accéder à mon compte
|
|
|
|
</Button>
|
|
|
|
</Container>
|
2024-04-02 17:22:30 +02:00
|
|
|
</Section>
|
|
|
|
</Container>
|
2024-04-02 17:28:35 +02:00
|
|
|
<Signature />
|
2024-04-02 17:22:30 +02:00
|
|
|
</Body>
|
|
|
|
</Html>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2024-04-11 16:47:14 +02:00
|
|
|
const preCss: JSX.CSSProperties = {
|
|
|
|
fontFamily: 'monospace',
|
|
|
|
fontSize: '1rem',
|
|
|
|
padding: '0.2rem',
|
|
|
|
borderRadius: '0.4rem',
|
|
|
|
backgroundColor: rootCss.backgroundColor,
|
|
|
|
}
|
|
|
|
|
|
|
|
const imgCss: JSX.CSSProperties = {
|
|
|
|
display: 'inline',
|
2024-04-04 14:34:42 +02:00
|
|
|
padding: '1rem',
|
2024-04-11 16:47:14 +02:00
|
|
|
transform: 'translateY(40%)',
|
2024-06-17 12:00:37 +02:00
|
|
|
maxHeight: '3rem',
|
2024-04-04 14:34:42 +02:00
|
|
|
}
|
|
|
|
|
2024-04-02 17:22:30 +02:00
|
|
|
const template: Template<typeof Welcome, Parameters<typeof Welcome>[0]> = {
|
|
|
|
props: [
|
|
|
|
{
|
|
|
|
name: 'Prénom',
|
|
|
|
description: "Prénom de l'usager.",
|
|
|
|
required: true,
|
|
|
|
multiline: false,
|
|
|
|
tag: 'firstname',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Nom',
|
|
|
|
description: "Nom de famille de l'usager.",
|
|
|
|
required: true,
|
|
|
|
multiline: false,
|
|
|
|
tag: 'lastname',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'Login',
|
|
|
|
description: "Login de l'usager.",
|
|
|
|
required: true,
|
|
|
|
multiline: false,
|
|
|
|
tag: 'login',
|
|
|
|
},
|
2024-06-15 17:23:58 +02:00
|
|
|
{
|
|
|
|
name: 'Endpoint',
|
|
|
|
description: 'Endpoint du lien "Accéder à mon compte"',
|
|
|
|
required: false,
|
|
|
|
multiline: false,
|
|
|
|
tag: 'endpoint',
|
|
|
|
},
|
2024-04-02 17:22:30 +02:00
|
|
|
],
|
|
|
|
name: 'welcome',
|
|
|
|
description: 'Coh@bit welcome mail for new users.',
|
|
|
|
builder: Welcome,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default template
|