feat: update email template

This commit is contained in:
Maël Gangloff 2024-07-24 13:46:10 +02:00
parent 543a8a495e
commit 0dfc0cdd58
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629
10 changed files with 308 additions and 33 deletions

View File

@ -4,8 +4,6 @@ import {Grid, Paper} from "@mui/material";
export default function DashboardPage() { export default function DashboardPage() {
return ( return (
<> <>
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}> <Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
@ -19,6 +17,7 @@ export default function DashboardPage() {
height: 240, height: 240,
}} }}
> >
</Paper> </Paper>
</Grid> </Grid>
</Grid> </Grid>

View File

@ -0,0 +1,27 @@
import React from 'react';
import Container from "@mui/material/Container";
import {Grid, Paper} from "@mui/material";
export default function DomainFinderPage() {
return (
<>
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
<Grid container spacing={3}>
<Grid item xs={12} md={8} lg={9}>
<Paper
sx={{
p: 2,
display: 'flex',
flexDirection: 'column',
height: 240,
}}
>
</Paper>
</Grid>
</Grid>
</Container>
</>
);
};

View File

@ -0,0 +1,27 @@
import React from 'react';
import Container from "@mui/material/Container";
import {Grid, Paper} from "@mui/material";
export default function NameserverPage() {
return (
<>
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
<Grid container spacing={3}>
<Grid item xs={12} md={8} lg={9}>
<Paper
sx={{
p: 2,
display: 'flex',
flexDirection: 'column',
height: 240,
}}
>
</Paper>
</Grid>
</Grid>
</Container>
</>
);
};

View File

@ -0,0 +1,27 @@
import React from 'react';
import Container from "@mui/material/Container";
import {Grid, Paper} from "@mui/material";
export default function DomainFinderPage() {
return (
<>
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
<Grid container spacing={3}>
<Grid item xs={12} md={8} lg={9}>
<Paper
sx={{
p: 2,
display: 'flex',
flexDirection: 'column',
height: 240,
}}
>
</Paper>
</Grid>
</Grid>
</Container>
</>
);
};

View File

@ -0,0 +1,27 @@
import React from 'react';
import Container from "@mui/material/Container";
import {Grid, Paper} from "@mui/material";
export default function DomainFinderPage() {
return (
<>
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
<Grid container spacing={3}>
<Grid item xs={12} md={8} lg={9}>
<Paper
sx={{
p: 2,
display: 'flex',
flexDirection: 'column',
height: 240,
}}
>
</Paper>
</Grid>
</Grid>
</Container>
</>
);
};

27
assets/pages/TldPage.tsx Normal file
View File

@ -0,0 +1,27 @@
import React from 'react';
import Container from "@mui/material/Container";
import {Grid, Paper} from "@mui/material";
export default function DomainFinderPage() {
return (
<>
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
<Grid container spacing={3}>
<Grid item xs={12} md={8} lg={9}>
<Paper
sx={{
p: 2,
display: 'flex',
flexDirection: 'column',
height: 240,
}}
>
</Paper>
</Grid>
</Grid>
</Container>
</>
);
};

View File

@ -0,0 +1,27 @@
import React from 'react';
import Container from "@mui/material/Container";
import {Grid, Paper} from "@mui/material";
export default function DomainFinderPage() {
return (
<>
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
<Grid container spacing={3}>
<Grid item xs={12} md={8} lg={9}>
<Paper
sx={{
p: 2,
display: 'flex',
flexDirection: 'column',
height: 240,
}}
>
</Paper>
</Grid>
</Grid>
</Container>
</>
);
};

View File

@ -18,6 +18,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
#[ORM\Entity(repositoryClass: DomainRepository::class)] #[ORM\Entity(repositoryClass: DomainRepository::class)]
#[ApiResource( #[ApiResource(
operations: [ operations: [
/*
new GetCollection( new GetCollection(
normalizationContext: [ normalizationContext: [
'groups' => [ 'groups' => [
@ -25,6 +26,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
] ]
] ]
), ),
*/
new Get( new Get(
uriTemplate: '/domains/{ldhName}', # Do not delete this line, otherwise Symfony interprets the TLD of the domain name as a return type uriTemplate: '/domains/{ldhName}', # Do not delete this line, otherwise Symfony interprets the TLD of the domain name as a return type
controller: DomainRefreshController::class, controller: DomainRefreshController::class,

View File

@ -1,14 +1,66 @@
<p> <!DOCTYPE html>
Hello,<br /> <html lang="en">
<br /> <head>
We are pleased to inform you that a new action has been detected on a domain name in your watchlist.<br /> <style>
Domain name : <b>{{ event.domain.ldhName }}</b><br /> body {
Action : <b>{{ event.action.value }}</b><br /> font-family: Arial, sans-serif;
Effective Date : <b>{{ event.date | date("c") }}</b><br /> line-height: 1.6;
<br /> color: #333;
<br /> }
Thank you for your understanding,<br />
Sincerely<br /> .container {
<br /> max-width: 600px;
Domain Watchdog margin: 0 auto;
</p> padding: 20px;
border: 1px solid #ddd;
border-radius: 5px;
background-color: #f9f9f9;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.header h1 {
font-size: 24px;
color: #0056b3;
}
.content {
margin-bottom: 20px;
}
.content p {
margin: 0 0 10px;
}
.footer {
text-align: center;
color: #777;
}
</style>
<title>Domain Watchdog Alert</title>
</head>
<body>
<div class="container">
<div class="header">
<h1>Domain Watchdog Alert</h1>
</div>
<div class="content">
<p>Hello,</p>
<p>We are pleased to inform you that a new action has been detected on a domain name in your watchlist.</p>
<p><strong>Domain name:</strong> {{ event.domain.ldhName }}</p>
<p><strong>Action:</strong> {{ event.action.value }}</p>
<p><strong>Effective Date:</strong> {{ event.date | date("c") }}</p>
<br/>
<p>Thank you for your understanding,</p>
<p>Sincerely,</p>
<p>Domain Watchdog</p>
</div>
<div class="footer">
<p>&copy; Domain Watchdog</p>
</div>
</div>
</body>
</html>

View File

@ -1,17 +1,77 @@
<p> <!DOCTYPE html>
Hello,<br /> <html lang="en">
<br /> <head>
We would like to inform you that an error occurred while updating the information for the following domain name. <style>
<br/> body {
Domain name : <b>{{ domain.ldhName }}</b><br/> font-family: Arial, sans-serif;
<br/> line-height: 1.6;
Here are some possible explanations:<br/> color: #333;
* It is likely that the domain will be available for registration again.<br/> }
* A temporary outage affects the provision of domain name information.<br/>
<br/> .container {
<br/> max-width: 600px;
Thank you for your understanding,<br/> margin: 0 auto;
Sincerely<br/> padding: 20px;
<br/> border: 1px solid #ddd;
Domain Watchdog border-radius: 5px;
</p> background-color: #f9f9f9;
}
.header {
text-align: center;
margin-bottom: 20px;
}
.header h1 {
font-size: 24px;
color: #d9534f;
}
.content {
margin-bottom: 20px;
}
.content p {
margin: 0 0 10px;
}
.footer {
text-align: center;
color: #777;
}
ul {
padding-left: 20px;
}
ul li {
margin-bottom: 10px;
}
</style>
<title>Domain Watchdog Error</title>
</head>
<body>
<div class="container">
<div class="header">
<h1>Domain Watchdog Error</h1>
</div>
<div class="content">
<p>Hello,</p>
<p>We would like to inform you that an error occurred while updating the information for the following domain
name:</p>
<p><strong>Domain name:</strong> {{ domain.ldhName }}</p>
<p>Here are some possible explanations:</p>
<ul>
<li>It is likely that the domain will be available for registration again.</li>
<li>A temporary outage affects the provision of domain name information.</li>
</ul>
<p>Thank you for your understanding,</p>
<p>Sincerely,</p>
<p>Domain Watchdog</p>
</div>
<div class="footer">
<p>&copy; Domain Watchdog</p>
</div>
</div>
</body>
</html>