homepage.js/view/layout/main.pug

123 lines
4.3 KiB
Plaintext
Raw Normal View History

2023-02-18 14:41:24 +01:00
block root
-
let routes = {
"Main page": '/',
"Projects": "/project",
2023-02-19 15:19:46 +01:00
"About me": "/about",
2023-02-22 14:55:17 +01:00
"hr_1": "hr",
"Guestbook": "/guestbook",
2023-02-27 08:25:28 +01:00
"Articles": "/articles",
2023-02-22 14:55:17 +01:00
"hr_2": "hr",
2023-03-09 14:26:00 +01:00
"Sources": "/sources",
"Services": "/services",
2023-10-28 08:26:13 +02:00
"Resume": "/resume",
"hr_2": "hr",
"Featured Open Source projects": "h1",
"⛯ Lightkeeper": "/osp/lightkeeper",
"🛸 blek! File": "/osp/bfile"
2023-02-18 14:41:24 +01:00
}
doctype html
2023-03-01 06:50:52 +01:00
html(style='overflow-y:auto' lang='en_US')
2023-02-18 14:41:24 +01:00
head
title blek! Site #{title ? "- " + title : ""}
link(rel='stylesheet' href='/static/main.css')
2023-03-01 06:50:52 +01:00
//- basic SEO tags
if (typeof description == 'string')
meta(name='description' content=description)
//- Open Graph tags
if (typeof og == 'object')
each content, tag in og
meta(property='og:' + tag content=content)
//- UX
meta(name='viewport' content='width=device-width, initial-scale=1')
2023-03-05 10:00:39 +01:00
if (process.env.APP_DEBUG == 'true')
style.
.debug_warning {
margin:0;padding:0;
color:darkred;
font-weight:bold;
font-size:16pt;
position:fixed;
top:50%;
left:50%;
transform:translate(-50%,-50%);
text-align:center;
pointer-events:none;
opacity:0.4;
text-shadow:0 2px 1px #a07060a0
}
2023-02-18 14:41:24 +01:00
block head
2023-02-19 16:12:09 +01:00
body(style='overflow-y:auto')
2023-03-19 03:35:06 +01:00
if (req.legacymode)
p(align='center' style='border-bottom:1px solid rgb(210,210,210);margin-bottom:0;padding-bottom:16px')
| It seems that you are using an old browser.
br
| Please consider upgrading to a newer alternative
2023-03-05 08:41:32 +01:00
if (process.env.APP_DEBUG == 'true')
2023-03-05 10:00:39 +01:00
p(class='debug_warning')
2023-03-05 08:41:32 +01:00
| Warning: THE WEBSITE IS IN DEBUG MODE!
br
2023-03-05 10:00:39 +01:00
| If the site is not currently running locally, please
2023-03-05 08:41:32 +01:00
br
2023-03-05 10:00:39 +01:00
| contact the maintainers and notify them of the issue.
2023-02-18 14:41:24 +01:00
table(width='100%' height='100%' class='body_table')
tr
2023-03-19 11:58:48 +01:00
td(class='side_menu')
2023-02-18 14:41:24 +01:00
h1
a(href='/') blek! Site
2023-03-24 02:55:33 +01:00
p(class='side_menu_powered_by')
| Powered by
|
a(href='https://git.blek.codes/blek/homepage.js') homepage.js
2023-02-18 14:41:24 +01:00
hr(class='flag_hr')
2023-03-19 03:35:06 +01:00
ul
each route, name in routes
if (route == 'hr')
li <hr/>
2023-10-28 08:26:13 +02:00
else if (route == 'h1')
li(style='padding-left:4px;margin:4px 0') #{name}
2023-03-19 03:35:06 +01:00
else
li(style='padding-left:4px')
if current_route == route
2023-02-19 15:19:46 +01:00
| > #{name}
else
2023-03-19 03:35:06 +01:00
a(href=route) #{name}
2023-02-28 08:07:35 +01:00
hr
2023-03-18 04:06:03 +01:00
p(class='nojs_hide') This site is also available in:
p(class='nojs_hide')
2023-02-28 08:07:35 +01:00
a(href='#' id='aussy_language')
span(class='flag_btn au_flag' title='Australian')
2023-03-19 11:58:48 +01:00
if (req.browser.browser.toString().match(/Naenara/))
p
font(size=4) 오랫동안 왕 김정은
td(class='main_contents' width='85%')
2023-02-18 14:41:24 +01:00
block content
block foot
2023-02-28 08:07:35 +01:00
2023-03-01 06:50:52 +01:00
//- js dependencies
2023-02-28 08:07:35 +01:00
script(src='/static/js/jquery.js')
2023-03-01 06:50:52 +01:00
//- global js
2023-02-28 08:07:35 +01:00
script(src='/static/js/main.js')
2023-02-28 07:29:19 +01:00
script(type='text/javascript').
2023-03-11 15:39:06 +01:00
var data = {
ip: '#{req.ip}'
}
2023-02-28 07:29:19 +01:00
setTimeout(function() {
alert('Congratulations! You have spent 10 years on this page. Go fuck yourself.\n\nUwU');
2023-02-28 08:07:35 +01:00
}, 1000 * 60 * 60 * 24 * 365 * 10);
2023-03-18 04:06:03 +01:00
$('.nojs_hide').css('display', 'block')
2023-03-01 06:50:52 +01:00
//- page js
2023-02-28 08:07:35 +01:00
block scripts