Mithril as main method
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
|
||||
<br>
|
||||
|
||||
<label for="expired_at">Berlaku dari: </label>
|
||||
<label for="valid_at">Berlaku dari: </label>
|
||||
<input id="left" name="valid_at" value="{{ timestamp }}">
|
||||
|
||||
<br>
|
||||
|
||||
@@ -86,9 +86,9 @@
|
||||
|
||||
{% if cat.status == 1 %}
|
||||
<i class="fa fa-times-circle-o fa-fw"></i>
|
||||
<span class="font-size:smaller;">Matikan</span>
|
||||
<span style="font-size:smaller;">Matikan</span>
|
||||
{% elseif cat.status == 0 %}
|
||||
<i class="fa fa-check fa-fw"></i>
|
||||
<i style="fa fa-check fa-fw"></i>
|
||||
<span class="font-size:smaller;">Aktifkan</span>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -1,34 +1,3 @@
|
||||
{% extends "base.html" %}
|
||||
{% extends "legacy.html" %}
|
||||
|
||||
{% block title %}Mithril{% endblock %}
|
||||
|
||||
{% block nav %}
|
||||
<input type="checkbox" id="bmenug" class="show">
|
||||
<label for="bmenug" class="burger pseudo button"><i class="fa fa-bars" aria-hidden="true"></i></label>
|
||||
<div class="menu">
|
||||
{% if user.privilege != "" %}
|
||||
{% if user.privilege == 1 %}
|
||||
<a href="/posts/category" class="navy button" data-tooltip="Kategori"><i class="fa fa-list-ul" aria-hidden="true"></i> Kategori</a>
|
||||
<a href="/register" class="navy button" data-tooltip="User Baru"><i class="fa fa-user-plus" aria-hidden="true"></i> User</a>
|
||||
{% endif %}
|
||||
<a href="/logout" class="navy button" data-tooltip="Keluar"><i class="fa fa-sign-out" aria-hidden="true"></i> Keluar</a>
|
||||
{% else %}
|
||||
<a href="/login" class="navy hidden-hover button" data-tooltip="Masuk">
|
||||
<i class="fa fa-sign-in" aria-hidden="true"></i> Masuk
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<main class="documentation">
|
||||
<div id="nouser" style="text-align:left;width:100%;">
|
||||
<div style="background:#fff;text-align:left;width:100%;padding:10vh 0 0;">
|
||||
<div id='navigasi'>
|
||||
</div>
|
||||
<div id="mit">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<input type="checkbox" id="bmenug" class="show">
|
||||
<label for="bmenug" class="burger pseudo button"><i class="fa fa-bars" aria-hidden="true"></i></label>
|
||||
<div class="menu">
|
||||
<a href="https://backup.lepisi.ac.id/gregorio/lepisi-pengumuman/blob/master/README.md#dokumentasi" class="navy button" data-tooltip="Dokumentasi"><i class="fa fa-dot-circle-o" aria-hidden="true"></i></a>
|
||||
{% if user.privilege != "" %}
|
||||
{% if user.privilege == 1 %}
|
||||
<a href="/posts/category" class="navy button" data-tooltip="Kategori"><i class="fa fa-list-ul" aria-hidden="true"></i> Kategori</a>
|
||||
@@ -125,9 +126,6 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</main>
|
||||
<footer class="cp">
|
||||
Copyright 2017. Perguruan Tinggi Lepisi. Bingung? Lihat <a href="https://backup.lepisi.ac.id/gregorio/lepisi-pengumuman/blob/master/README.md#dokumentasi" target="_blank">dokumentasi</a>.
|
||||
</footer>
|
||||
<script>
|
||||
if (document.getElementById('slidr-div')) {
|
||||
slidr.create('slidr-div', {
|
||||
|
||||
@@ -7,195 +7,8 @@
|
||||
<link rel="stylesheet" href="/css/picnic.min.css">
|
||||
<link rel="stylesheet" href="/css/rome.css">
|
||||
<link rel="stylesheet" href="/css/simplemde.min.css">
|
||||
<link rel="stylesheet" href="/css/index.css">
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'Lobster';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: local('Lobster'), local('Lobster-Regular'), url(/font/Lobster.woff) format('woff');
|
||||
}
|
||||
.documentation > section {
|
||||
background: #fff;
|
||||
text-align: left;
|
||||
width: 90%;
|
||||
max-width: 960px;
|
||||
margin: 0 auto;
|
||||
padding: 80px 0 0;
|
||||
}
|
||||
|
||||
.flex>* {
|
||||
padding-right: .6em;
|
||||
}
|
||||
|
||||
.flex>h1, .flex>span {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
nav.transparent {
|
||||
box-shadow: none;
|
||||
background: none;
|
||||
}
|
||||
|
||||
.pseudo.button {
|
||||
background: transparent;
|
||||
color: #111;
|
||||
}
|
||||
|
||||
.shyButton {
|
||||
font-size: .75em;
|
||||
}
|
||||
|
||||
.shyFont {
|
||||
font-size: .65em;
|
||||
}
|
||||
|
||||
.top {
|
||||
z-index: 10001;
|
||||
}
|
||||
|
||||
td, th {
|
||||
padding: .3em .45em .3em .6em;
|
||||
}
|
||||
|
||||
.fitty {
|
||||
display: inline-block;
|
||||
white-space: normal;
|
||||
line-height: 1em;
|
||||
padding-bottom: .1em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#slidr-div p,
|
||||
.fitty p {
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
line-height: 1;
|
||||
}
|
||||
@media screen and (orientation: landscape) {
|
||||
#slidr-div p,
|
||||
.fitty p {
|
||||
font-size: 8vw;
|
||||
}
|
||||
}
|
||||
@media screen and (orientation: portrait) {
|
||||
#slidr-div p,
|
||||
.fitty p {
|
||||
font-size: 10vh;
|
||||
}
|
||||
}
|
||||
|
||||
.title {
|
||||
font-family: 'Lobster', cursive;
|
||||
font-size: x-large;
|
||||
}
|
||||
|
||||
nav .menu>.navy {
|
||||
color: #000;
|
||||
background-color: transparent;
|
||||
margin-right: 2.5em;
|
||||
}
|
||||
|
||||
nav .menu>.navy:hover {
|
||||
background-color: rgba(17, 17, 17, .15);
|
||||
}
|
||||
|
||||
.navy:hover, .title:hover {
|
||||
color: rgba(17, 17, 17, .3);
|
||||
}
|
||||
|
||||
.hidden-hover {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.hidden-hover:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.filter a {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.card footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
padding-left: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
.card-wrapper {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.box {
|
||||
padding: 1em;
|
||||
background-color: rgba(17, 17, 17, .1);
|
||||
border: none;
|
||||
height: 17em;
|
||||
width: 17em;
|
||||
margin: .6em auto;
|
||||
}
|
||||
|
||||
.new i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-right: -50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.box:hover {
|
||||
background-color: rgba(17, 17, 17, .05);
|
||||
}
|
||||
|
||||
nav {
|
||||
max-width: 100vw;
|
||||
}
|
||||
|
||||
.pengumuman {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#info span {
|
||||
width: 98%;
|
||||
padding: .7em 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.filter > div {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.rd-month button {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.rd-container {
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
h1 {
|
||||
padding: .2em 0;
|
||||
}
|
||||
|
||||
.cp {
|
||||
width: 100%;
|
||||
font-size: small;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
padding: .3em;
|
||||
}
|
||||
|
||||
.swiper-container {
|
||||
height: 100vh;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
@@ -204,15 +17,7 @@
|
||||
</span>
|
||||
{% block nav %}{% endblock %}
|
||||
</nav>
|
||||
|
||||
{% block body %}
|
||||
{% endblock %}
|
||||
|
||||
{% if user %}
|
||||
<script src="/js/index.js"></script>
|
||||
{% else %}
|
||||
<script src="/js/landing.js"></script>
|
||||
{% endif %}
|
||||
{% block body %}{% endblock %}
|
||||
|
||||
<script>
|
||||
function fadeOutEffect() {
|
||||
|
||||
32
App/Views/legacy.html
Normal file
32
App/Views/legacy.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="/css/font-awesome/css/font-awesome.min.css">
|
||||
<link rel="stylesheet" href="/css/picnic.min.css">
|
||||
<link rel="stylesheet" href="/css/rome.css">
|
||||
<link rel="stylesheet" href="/css/simplemde.min.css">
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
</head>
|
||||
<body>
|
||||
<script src="/js/landing.js"></script>
|
||||
|
||||
<script>
|
||||
function fadeOutEffect() {
|
||||
var fadeTarget = document.getElementById("info");
|
||||
var fadeEffect = setInterval(function () {
|
||||
if (!fadeTarget.style.opacity) {
|
||||
fadeTarget.style.opacity = 1;
|
||||
}
|
||||
if (fadeTarget.style.opacity < 0.1) {
|
||||
clearInterval(fadeEffect);
|
||||
fadeTarget.remove();
|
||||
} else {
|
||||
fadeTarget.style.opacity -= 0.1;
|
||||
}
|
||||
}, 50);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user