This commit is contained in:
realaravinth 2021-05-08 00:29:19 +05:30
parent 7e0670d1d8
commit 1a381f8efa
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
12 changed files with 74 additions and 8 deletions

View file

@ -25,6 +25,9 @@ pub struct Routes {
pub auth: Auth,
pub panel: Panel,
pub errors: Errors,
pub about: &'static str,
pub thanks: &'static str,
pub donate: &'static str,
}
impl Routes {
@ -36,6 +39,9 @@ impl Routes {
panel,
home,
errors: Errors::new(),
about: "/aboubt",
thanks: "/thanks",
donate: "/donat",
}
}
}

View file

@ -26,3 +26,4 @@ $white: #fff;
$form-content-width: 90%;
$black-text: #000;
$auth-content-width: 30%;
$blue-link: rgb(3, 102, 214);

View file

@ -57,5 +57,5 @@ body {
.auth__secondary-action__link {
text-decoration: none;
color: rgb(3, 102, 214);
color: $blue-link;
}

View file

@ -48,7 +48,4 @@
</a>
</p>
</div>
</main>
<. include!("../../components/footers.html"); .>

View file

@ -0,0 +1,19 @@
<ul class="details">
<li class="details__item">&copy; 2021 mCAptcha Developers</li>
<li class="details__dummy-filler"></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::PAGES.about .>">About</a>
</li>
<li class="details__item">
<a class="details__link" href="<.= crate::PAGES.thanks .>">Thanks</a>
</li>
<li class="details__item">
<a class="details__link" href="<.= crate::PAGES.donate .>">Donate</a>
</li>
<li class="details__item">
v<.= crate::VERSION .>-<.= crate::GIT_COMMIT_HASH[0..8] .>
</li>
</ul>

View file

@ -0,0 +1,44 @@
/*
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
@import '../_vars.scss';
.details {
list-style: none;
position: absolute;
bottom: 0px;
box-sizing: border-box;
width: 95%;
display: flex;
font-size: 14px;
margin: auto;
}
.details__dummy-filler {
flex: 10;
}
.details__item {
margin: auto 10px;
}
.details__item:first-child {
flex: 4;
}
.details__link {
color: $blue-link;
}

View file

@ -1,3 +1,5 @@
<. include!("./details-footers.html"); .>
</main>
</body>
<link rel="stylesheet" href="<.= &*crate::CSS .>" type="text/css" media="all">
<script src="<.= &*crate::JS .>"></script>

View file

@ -27,6 +27,7 @@ import log from './logger';
import VIEWS from './views/v1/routes';
import './auth/css/main.scss';
import './components/details.scss';
import './panel/css/main.scss';
import './panel/header/sidebar/main.scss';
import './panel/taskbar/main.scss';

View file

@ -6,5 +6,4 @@
<div class="inner-container">
</div>
</main>
<. include!("../components/footers.html"); .>

View file

@ -11,5 +11,4 @@
<. include!("../add/form.html"); .>
</div>
<!-- end of container -->
</main>
<. include!("../../../components/footers.html"); .>

View file

@ -26,5 +26,4 @@ include!("../../header/index.html"); .>
</ul>
</div>
<!-- end of container -->
</main>
<. include!("../../../components/footers.html"); .>

View file

@ -47,5 +47,4 @@ include!("../../header/index.html"); .>
</form>
</div>
<!-- end of container -->
</main>
<. include!("../../../components/footers.html"); .>