welcome page

This commit is contained in:
neko 2020-01-25 22:56:59 +01:00
parent 62f05ba9fb
commit 6f75065b9c
9 changed files with 84 additions and 15 deletions

View File

@ -1,5 +1,7 @@
list: list:
- title: ~/ - title: ~/
url: / url: /
- title: ~/blog
url: /blog.html
- title: ~/doc/about - title: ~/doc/about
url: /about.html url: /about.html

View File

@ -17,7 +17,6 @@
{% include nav.html %} {% include nav.html %}
<!-- page content --> <!-- page content -->
<main class="post-list"> <main class="post-list">
<p class="title">{{page.title}}</p>
{{content}} {{content}}
</main> </main>

View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
<body>
<div class="screen">
<div class="screen-image"></div>
<div class="screen-content crt">
<!-- page content -->
<div class="welcome">
{{content}}
<!-- nav -->
{% include nav.html %}
</div>
</div>
</div>
</body>
</html>

View File

@ -179,7 +179,7 @@ http://aleclownes.com/2017/02/01/crt-display.html
.crt::before { .crt::before {
content: " "; content: " ";
display: block; display: block;
position: absolute; position: fixed;
top: auto; top: auto;
left: auto; left: auto;
bottom: auto; bottom: auto;

View File

@ -102,6 +102,17 @@ main {
} }
.asciiart {
white-space: pre;
line-height: normal;
}
.welcome{
padding-top: 128px;
font-size: large;
text-align: center;
}
/* /*
.post-list a:before, .post-list a:before,
.post-list a:before { .post-list a:before {

View File

@ -31,14 +31,6 @@ strong {
font-weight: bold; font-weight: bold;
} }
pre {
background-color: #f8f8f8;
border-radius: 3px;
word-wrap: break-word;
padding: 12px 13px;
font-size: 13px;
}
h1, h1,
h2, h2,
h3, h3,
@ -114,6 +106,15 @@ pre {
border: 2px solid rgb(100, 50, 0); border: 2px solid rgb(100, 50, 0);
} }
/*
pre {
background-color: #f8f8f8;
border-radius: 3px;
word-wrap: break-word;
padding: 12px 13px;
font-size: 13px;
}*/
code { code {
margin: 0 2px; margin: 0 2px;
padding: 3px 5px; padding: 3px 5px;

8
blog.html Normal file
View File

@ -0,0 +1,8 @@
---
title: ~/blog
layout: page-screen
---
{% for post in site.posts %}
{{post.date | date: '%Y-%m-%d' }} <a href="{{site.baseurl}}/{{post.url}}"> {{post.title | replace:' ','_'}}.txt</a>
{%endfor%}

View File

@ -1,8 +1,37 @@
--- ---
title: ~/doc/blog title: Welcome
layout: page-screen layout: page-welcome
--- ---
<div class="asciiart">
welcome to...
{% for post in site.posts %} ███╗ ███╗███████╗██╗ ██╗
{{post.date | date: '%Y-%m-%d' }} <a href="{{site.baseurl}}/{{post.url}}"> {{post.title | replace:' ','_'}}.txt</a> ████╗ ████║██╔════╝██║ ██║
{%endfor%} ██╔████╔██║█████╗ ██║ █╗ ██║
██║╚██╔╝██║██╔══╝ ██║███╗██║
██║ ╚═╝ ██║███████╗╚███╔███╔╝
╚═╝ ╚═╝╚══════╝ ╚══╝╚══╝
__ ██████╗ ██████╗ ███████╗
\ ██╔══██╗██╔═══██╗██╔════╝
. ██║ ██║██║ ██║███████╗
__ ██║ ██║██║ ██║╚════██║
\ ██████╔╝╚██████╔╝███████║
╚═════╝ ╚═════╝ ╚══════╝
</div>
<!--
▄▄▄ ▄▄▄ ▄▄▄▄▄▄▄▄ ▄▄ ▄▄
███ ███ ██▀▀▀▀▀▀ ██ ██
████████ ██ ▀█▄ ██ ▄█▀
██ ██ ██ ███████ ██ ██ ██
██ ▀▀ ██ ██ ▄▄▄███▀▀███▄▄▄▄ ▄▄▄▄
██ ██ ██▄▄▄▄███▀▀██▄ ████ ██ ▄█▀▀▀▀█
▀▀ ▀▀ ▀▀▀▀▀▀██▀ ▀██ ▀██ ██ ██▄
██ ██ ██ ██ ▀████▄
██ ██ ██ ██ ▀██
██▄▄▄██ ██▄▄██ █▄▄▄▄▄█▀
▀▀▀▀▀ ▀▀▀▀ ▀▀▀▀▀
-->