This commit is contained in:
codepupper 2019-11-19 16:29:40 +01:00
parent 00e202978d
commit 351773a8aa
7 changed files with 12 additions and 10 deletions

View file

@ -19,7 +19,6 @@ body {
.title { .title {
font-size: 13vh; font-size: 13vh;
margin: 0; margin: 0;
cursor: copy;
} }
sub { sub {

View file

@ -1,6 +1,6 @@
{ {
"version": 3, "version": 3,
"mappings": "AAAA,OAAO,CAAC,2EAAI;AACZ,OAAO,CAAC,kEAAI;AAGZ,AAAA,IAAI,CAAC;EACJ,gBAAgB,EAAE,KAAY;EAC9B,KAAK,EAAE,KAAkB;CAEzB;;AAED,AAAA,MAAM,CAAC;EACN,KAAK,EAAE,gBAAgB;EACvB,UAAU,EAAE,gBAAgB;CAC5B;;AAED,AAAA,CAAC,CAAC;EACD,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;EACV,WAAW,EAAE,oBAAoB;CACjC;;AAED,AAAA,MAAM,CAAC;EAEN,SAAS,EAAE,IAAI;EACf,MAAM,EAAE,CAAC;EACT,MAAM,EAAE,IAAI;CACZ;;AACD,AAAA,GAAG,CAAC;EACH,SAAS,EAAE,GAAG;CACd;;AAED,AAAA,OAAO,CAAC;EACP,MAAM,EAAE,IAAI;EACZ,OAAO,EAAE,IAAI;EACb,cAAc,EAAE,MAAM;EACtB,WAAW,EAAE,MAAM;EACnB,eAAe,EAAE,MAAM;CACvB;;AACD,AAAA,CAAC,CAAC;EACD,eAAe,EAAE,IAAI;EACrB,KAAK,EAAE,KAAK;CACZ;;AAED,AAAA,IAAI,AAAA,MAAM,CAAC,CAAC,CAAC;EACZ,KAAK,EAAE,KAAK;CACZ;;AAED,AAAA,IAAI,CAAC;EACJ,QAAQ,EAAE,QAAQ;EAClB,OAAO,EAAE,GAAG;EACZ,MAAM,EAAE,gBAAgB;EACxB,UAAU,EAAE,UAAU;EACtB,GAAG,EAAE,CAAC;EACN,IAAI,EAAE,CAAC;EACP,KAAK,EAAE,CAAC;EACR,MAAM,EAAE,CAAC;EACT,cAAc,E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;;AAND,AAGC,IAHG,AAAA,MAAM,GAGL,IAAI,CAAC;EACR,YAAY,EAR0C,OAAO;CAS7D;;AAEF,AAAA,IAAI,AAAA,WAAW,CAAM;EACpB,KAAK,EAAE,KAAK;EACZ,gBAAgB,EAbuC,OAAO;CAc9D;;AACD,AAAA,IAAI,AAAA,MAAM,CAAC,IAAI,AAAA,WAAW,CAAM;EAE/B,KAAK,EAAE,KAAK;EACZ,gBAAgB,EAAE,OAAW;CAC7B;;AAGD,AAAA,UAAU,CAAA;EACT,SAAS,EAAE,GAAG;CACd;;AAFD,AAAA,KAAK,CAAK;EACT,SAAS,EAAE,GAAG;CACd;;AAFD,AAAA,IAAI,CAAM;EACT,SAAS,EAAE,GAAG;CACd",
"sources": [ "sources": [
"main.scss" "main.scss"
], ],

View file

@ -23,7 +23,6 @@ body {
//font-family: 'Source Sans Pro', sans-serif !important; //font-family: 'Source Sans Pro', sans-serif !important;
font-size: 13vh; font-size: 13vh;
margin: 0; margin: 0;
cursor: copy;
} }
sub { sub {
font-size: 1vh; font-size: 1vh;
@ -45,6 +44,7 @@ body.light a {
color: black; color: black;
} }
#box { #box {
position: absolute; position: absolute;
z-index: 999; z-index: 999;

View file

@ -15,7 +15,7 @@ let scheme = window.matchMedia(`(prefers-color-scheme: dark)`);
let theme = window.localStorage.getItem('prefer-light'); let theme = window.localStorage.getItem('prefer-light');
let title = document.getElementsByClassName('title')[0]; let title = document.getElementsByClassName('title')[0];
let body = document.getElementsByTagName('body')[0]; let body = document.getElementsByTagName('body')[0];
let toggle = document.getElementById('theme-switch');
if (theme === 'yes') { if (theme === 'yes') {
body.classList.add('light'); body.classList.add('light');
} else if (theme === 'no') { } else if (theme === 'no') {
@ -31,7 +31,8 @@ if (theme === 'yes') {
} }
} }
title.addEventListener('click', (e) => { /* toggle.addEventListener('click', (e) => {
console.log(e);
body.classList.toggle('light'); body.classList.toggle('light');
if (body.classList.contains('light')) { if (body.classList.contains('light')) {
window.localStorage.setItem('prefer-light', 'yes'); window.localStorage.setItem('prefer-light', 'yes');
@ -41,3 +42,4 @@ title.addEventListener('click', (e) => {
console.log('user likes dark'); console.log('user likes dark');
} }
}); });
*/

View file

@ -49,6 +49,7 @@ app.use(
); );
app.use('/lore', require('./routes/lore')); app.use('/lore', require('./routes/lore'));
app.use('/art', require('./routes/lore'));
module.exports = (client) => { module.exports = (client) => {
app.get('/', async (req, res) => { app.get('/', async (req, res) => {

View file

@ -1,9 +1,9 @@
<body> <body>
<div class="center"> <div class="center">
<h1 class="title"><i>{{link}}</i><sub>click on me to change the theme</sub></h1> <h1 class="title"><i>{{link}}</i></h1>
<a data-port="#123456" class="portfolio" href="/portfolio">portfolio</a> <a class="portfolio" href="/portfolio">portfolio</a>
<a data-lore="#654321" class="lore" href="/lore">lore</a> <a class="lore" href="/lore">lore</a>
<a data-art="#294129" class="art" href="/art">art</a> <a class="art" href="/art">art</a>
<div id="box"></div> <div id="box"></div>
</div> </div>
</body> </body>

View file

@ -7,9 +7,9 @@
<title>ry</title> <title>ry</title>
<script src="../assets/js/main.js" async></script> <script src="../assets/js/main.js" async></script>
<link rel="stylesheet" type="text/css" href="../assets/css/main.css" /> <link rel="stylesheet" type="text/css" href="../assets/css/main.css" />
{{!--
<link href="https://afeld.github.io/emoji-css/emoji.css" rel="stylesheet"> <link href="https://afeld.github.io/emoji-css/emoji.css" rel="stylesheet">
{{!--
<link rel="manifest" href="./assets/json/manifest.json"> <link rel="manifest" href="./assets/json/manifest.json">
<script type="text/javascript" src="./assets/js/dropdown.js"></script> --}} <script type="text/javascript" src="./assets/js/dropdown.js"></script> --}}