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() {
return (
<>
<Container maxWidth="lg" sx={{mt: 4, mb: 4}}>
@ -19,6 +17,7 @@ export default function DashboardPage() {
height: 240,
}}
>
</Paper>
</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)]
#[ApiResource(
operations: [
/*
new GetCollection(
normalizationContext: [
'groups' => [
@ -25,6 +26,7 @@ use Symfony\Component\Serializer\Attribute\SerializedName;
]
]
),
*/
new Get(
uriTemplate: '/domains/{ldhName}', # Do not delete this line, otherwise Symfony interprets the TLD of the domain name as a return type
controller: DomainRefreshController::class,

View File

@ -1,14 +1,66 @@
<p>
Hello,<br />
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
}
.container {
max-width: 600px;
margin: 0 auto;
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/>
We are pleased to inform you that a new action has been detected on a domain name in your watchlist.<br />
Domain name : <b>{{ event.domain.ldhName }}</b><br />
Action : <b>{{ event.action.value }}</b><br />
Effective Date : <b>{{ event.date | date("c") }}</b><br />
<br />
<br />
Thank you for your understanding,<br />
Sincerely<br />
<br />
Domain Watchdog
</p>
<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>
Hello,<br />
<br />
We would like to inform you that an error occurred while updating the information for the following domain name.
<br/>
Domain name : <b>{{ domain.ldhName }}</b><br/>
<br/>
Here are some possible explanations:<br/>
* 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/>
<br/>
Thank you for your understanding,<br/>
Sincerely<br/>
<br/>
Domain Watchdog
</p>
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
color: #333;
}
.container {
max-width: 600px;
margin: 0 auto;
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: #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>