mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2024-11-27 03:48:52 +03:00
details
This commit is contained in:
parent
7e0670d1d8
commit
1a381f8efa
12 changed files with 74 additions and 8 deletions
|
@ -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",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,3 +26,4 @@ $white: #fff;
|
|||
$form-content-width: 90%;
|
||||
$black-text: #000;
|
||||
$auth-content-width: 30%;
|
||||
$blue-link: rgb(3, 102, 214);
|
||||
|
|
|
@ -57,5 +57,5 @@ body {
|
|||
|
||||
.auth__secondary-action__link {
|
||||
text-decoration: none;
|
||||
color: rgb(3, 102, 214);
|
||||
color: $blue-link;
|
||||
}
|
||||
|
|
|
@ -48,7 +48,4 @@
|
|||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
<. include!("../../components/footers.html"); .>
|
||||
|
|
19
templates/components/details-footers.html
Normal file
19
templates/components/details-footers.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<ul class="details">
|
||||
<li class="details__item">© 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>
|
44
templates/components/details.scss
Normal file
44
templates/components/details.scss
Normal 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;
|
||||
}
|
|
@ -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>
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -6,5 +6,4 @@
|
|||
<div class="inner-container">
|
||||
|
||||
</div>
|
||||
</main>
|
||||
<. include!("../components/footers.html"); .>
|
||||
|
|
|
@ -11,5 +11,4 @@
|
|||
<. include!("../add/form.html"); .>
|
||||
</div>
|
||||
<!-- end of container -->
|
||||
</main>
|
||||
<. include!("../../../components/footers.html"); .>
|
||||
|
|
|
@ -26,5 +26,4 @@ include!("../../header/index.html"); .>
|
|||
</ul>
|
||||
</div>
|
||||
<!-- end of container -->
|
||||
</main>
|
||||
<. include!("../../../components/footers.html"); .>
|
||||
|
|
|
@ -47,5 +47,4 @@ include!("../../header/index.html"); .>
|
|||
</form>
|
||||
</div>
|
||||
<!-- end of container -->
|
||||
</main>
|
||||
<. include!("../../../components/footers.html"); .>
|
||||
|
|
Loading…
Reference in a new issue