Files
ohayodash/ohayodash/templates/index.j2

103 lines
4.2 KiB
Django/Jinja

<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ title | default("おはよう!") }}</title>
<meta charset="utf-8">
<meta http-equiv="Default-Style" content="">
<link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<link type="text/css" rel="stylesheet" href="./static/css/styles.css" media="screen,projection" />
<link href="//fonts.googleapis.com/css?family=Roboto:400,500,700,900" rel="stylesheet">
<script src="//code.iconify.design/1/1.0.7/iconify.min.js"></script>
</head>
<body>
<section id="modal">
<div>
<header id="modal-header">
<h1>Options</h1>
<a href="#" title="Close" class="modal-close">
<span class="iconify" data-icon="mdi-close"></span>
</a>
</header>
<h2>Color themes</h2>
<div id="modal-theme">
<button data-theme="blackboard" class="theme-button theme-blackboard">Blackboard</button>
<button data-theme="gazette" class="theme-button theme-gazette">Gazette</button>
<button data-theme="espresso" class="theme-button theme-espresso">Espresso</button>
<button data-theme="cab" class="theme-button theme-cab">Cab</button>
<button data-theme="cloud" class="theme-button theme-cloud">Cloud</button>
<button data-theme="lime" class="theme-button theme-lime">Lime</button>
<button data-theme="passion" class="theme-button theme-passion">Passion</button>
<button data-theme="blues" class="theme-button theme-blues">Blues</button>
<button data-theme="chalk" class="theme-button theme-chalk">Chalk</button>
<button data-theme="tron" class="theme-button theme-tron">Tron</button>
<button data-theme="paper" class="theme-button theme-paper">Paper</button>
</div>
</div>
</section>
<main id="container" class="fade">
<section id="search">
<input name="keywords" type="text" id="keywords" size="50" spellcheck="false" autofocus="true"
onkeydown="handleKeyPress(event)">
</section>
<section id="header">
<h1><span title="{{ greeting[1] }}">{{ greeting[0] | default("Welcome")}}</span></h1>
<h2>{{ now | format_datetime }}</h2>
</section>
{% if applications %}
<section id="apps">
<h3>Applications</h3>
<div id="apps_loop">
{% for app in applications %}
<div class="apps_item">
<div class="apps_icon">
<a href="{{ app.url }}"><span class="iconify icon" data-icon="mdi-{{ app.icon | default("application") }}"></span></a>
</div>
<div class="apps_text">
<a href="{{ app.url }}">{{ app.name }}</a>
{% if app.show_url %}
<span id="app-address">{{ app.url }}</span>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</section>
{% endif %}
{% if bookmarks %}
<section id="links">
<h3>Bookmarks</h3>
<div id="links_loop">
{% for group, value in bookmarks|dictsort %}
<div id="links_item">
<h4>{{ group }}</h4>
{% for link in bookmarks[group] %}
<a href="{{ link.url }}" class="theme_color-border theme_text-select">{{ link.name }}</a>
{% endfor %}
</div>
{% endfor %}
</div>
</section>
{% endif %}
</main>
<div id="modal_init">
<a class="btn" href="#modal">
<span class="iconify icon" data-icon="mdi-xbox-controller-menu"></span>
</a>
</div>
<script src="./static/js/themer.js" type="text/javascript"></script>
<script src="./static/js/search.js" type="text/javascript"></script>
</body>
</html>