upgrading to actix-v4-beta

This commit is contained in:
realaravinth
2021-06-30 20:13:12 +05:30
parent 9ed458ebfa
commit 9f940c317a
24 changed files with 728 additions and 1192 deletions

View File

@@ -0,0 +1,59 @@
<div>
<hr />
</div>
<footer role="contentinfo" class="details__container">
<div class="details__row1">
<p class="details__copyright-text">&copy; mCaptcha developers</p>
<ul class="details">
<li class="details__copyright"></li>
<li class="details__item">
<a class="details__link" href="<.= crate::PKG_HOMEPAGE .>">Homepage</a>
</li>
<li class="details__item">
<a
class="details__link"
href="<.= crate::PKG_HOMEPAGE .><.= crate::PAGES.about .>"
>About</a
>
</li>
<li class="details__item">
<a
class="details__link"
href="<.= crate::PKG_HOMEPAGE .><.= crate::PAGES.privacy .>"
>Privacy</a
>
</li>
</ul>
</div>
<ul class="details">
<li class="details__item">
<a
class="details__link"
href="<.= crate::PKG_HOMEPAGE .><.= crate::PAGES.security .>"
>Security</a
>
</li>
<li class="details__item">
<a
class="details__link"
href="<.= crate::PKG_HOMEPAGE .><.= crate::PAGES.donate .>"
>Donate</a
>
</li>
<li class="details__item">
<a
class="details__link"
href="<.= crate::PKG_HOMEPAGE .><.= crate::PAGES.thanks .>"
>Thanks</a
>
</li>
<li class="details__item">
<a class="details__link" href="<.= &*crate::SOURCE_FILES_OF_INSTANCE .>">
v<.= crate::VERSION .>-<.= crate::GIT_COMMIT_HASH[0..8] .>
</a>
</li>
</ul>
</footer>

View File

@@ -0,0 +1,38 @@
.details__container {
display: flex;
font-size: 14px;
flex-direction: column;
}
.details__copyright {
font-size: 14px;
flex: 2;
}
.details {
list-style: none;
bottom: 0px;
box-sizing: border-box;
display: flex;
font-size: 14px;
margin: auto;
padding: 0;
}
.details__item {
margin: auto 10px;
list-style: none;
flex: 1;
}
.details__link {
color: rgb(3, 102, 214);
}
.details__row1 {
display: flex;
}
.details__row1 > .details {
flex: 1;
}

View File

@@ -0,0 +1,15 @@
* {
font-family: Arial, Helvetica, sans-serif;
background-color: #f0f0f0;
}
.container {
display: flex;
flex-direction: column;
max-width: 450px;
margin: auto;
}
h1 {
align-self: center;
}

View File

@@ -0,0 +1 @@
font-size: 1.2rem; font-weight: 500;

View File

@@ -0,0 +1,4 @@
.verification__link {
align-self: center;
font-size: 1.2rem;
}

View File

@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><.= PAGE .> | <.= crate::pages::NAME .></title>
<style type="text/css" media="screen">
<. include!("../components/footer/main.css"); .>
<. include!("../css/base.css"); .>
<. include!("../css/message-text.css"); .>
<. include!("./css/verification__link.css"); .>;
</style>
</head>
<body>
<div class="container">
<h1>
Welcome to mCaptcha!
</h1>
<p class="message__text">
Please verify your email address to continue.
</p>
<button class="button">
Click here to verify
</button>
<p class="message__text">
If you were not able to see the verification button, click the following
link:
</p>
<a
class="verification__link"
href="<.= verification_link .>"
target="_blank"
><.= verification_link .></a
>
<p class="message__text">
The link expires in 15 minutes. Please ignore this email if you weren't
expecting it.
</p>
<p class="message__text">
With best regards,<br />
Admin<br />
</p>
<. include!("../components/footer/index.html"); .>
</div>
</body>
</html>