軽量版HTML/CSS/JSをTSUIKA
This commit is contained in:
@@ -0,0 +1,278 @@
|
|||||||
|
html {
|
||||||
|
color: #E0E0E0;
|
||||||
|
background-color: #1A1A1A;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
font-family: "Inter", "Noto Sans JP", "Noto Sans TC", "Noto Sans SC", sans-serif;
|
||||||
|
font-size: 12pt;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-weight: 200;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
header {
|
||||||
|
background-color: #1A1A1A;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 24px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 16px;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
main {
|
||||||
|
padding: 24px;
|
||||||
|
padding-top: 60px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
footer {
|
||||||
|
padding: 24px;
|
||||||
|
padding-top: 0px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 16px;
|
||||||
|
z-index: 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Layout */
|
||||||
|
section {
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
}
|
||||||
|
.block {
|
||||||
|
background-color: #272727;
|
||||||
|
border-radius: 6px;
|
||||||
|
padding-top: 4px;
|
||||||
|
padding-left: 24px;
|
||||||
|
padding-right: 24px;
|
||||||
|
padding-bottom: 4px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
.flex > * {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.flex-1 {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.flex-vertical {
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Code */
|
||||||
|
pre {
|
||||||
|
background-color: #272727;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 8px;
|
||||||
|
padding-left: 16px;
|
||||||
|
overflow-x: auto;
|
||||||
|
white-space: pre;
|
||||||
|
line-height: 24px;
|
||||||
|
font-size: small;
|
||||||
|
font-family: "MesloLGS Nerd Font", monospace;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
.block pre {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.code {
|
||||||
|
padding: 4px;
|
||||||
|
font-family: "MesloLGS Nerd Font", monospace;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fonts */
|
||||||
|
a {
|
||||||
|
text-decoration: underline;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
font-weight: 400;
|
||||||
|
line-height: 8pt;
|
||||||
|
}
|
||||||
|
h2 {
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
section h2, section h3 {
|
||||||
|
line-height: 8pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.font-inter {
|
||||||
|
font-family: "Inter";
|
||||||
|
}
|
||||||
|
.font-nsajp {
|
||||||
|
font-family: "Noto Sans JP";
|
||||||
|
}
|
||||||
|
.font-nsatc {
|
||||||
|
font-family: "Noto Sans TC";
|
||||||
|
}
|
||||||
|
.font-nsasc {
|
||||||
|
font-family: "Noto Sans SC";
|
||||||
|
}
|
||||||
|
.font-nsakr {
|
||||||
|
font-family: "Noto Sans KR";
|
||||||
|
}
|
||||||
|
.font-meslo {
|
||||||
|
font-family: "MesloLGS Nerd Font";
|
||||||
|
}
|
||||||
|
|
||||||
|
.font-small {
|
||||||
|
font-size: small;
|
||||||
|
}
|
||||||
|
.font-bold {
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-no-decoration {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.text-underline {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Colors */
|
||||||
|
.text-white {
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-bg {
|
||||||
|
color: #1A1A1A;
|
||||||
|
}
|
||||||
|
.text-bg-alt {
|
||||||
|
color: #272727;
|
||||||
|
}
|
||||||
|
.text-tx {
|
||||||
|
color: #E0E0E0;
|
||||||
|
}
|
||||||
|
.text-tx-alt {
|
||||||
|
color: #939393;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-red {
|
||||||
|
color: #A03333;
|
||||||
|
}
|
||||||
|
.text-yellow {
|
||||||
|
color: #CCA000;
|
||||||
|
}
|
||||||
|
.text-green {
|
||||||
|
color: #00A050;
|
||||||
|
}
|
||||||
|
.text-teal {
|
||||||
|
color: #00A0A0;
|
||||||
|
}
|
||||||
|
.text-blue {
|
||||||
|
color: #0080C0;
|
||||||
|
}
|
||||||
|
.text-orange {
|
||||||
|
color: #C86000;
|
||||||
|
}
|
||||||
|
.text-brown {
|
||||||
|
color: #A07033;
|
||||||
|
}
|
||||||
|
.text-purple {
|
||||||
|
color: #7844A0;
|
||||||
|
}
|
||||||
|
.text-magenta {
|
||||||
|
color: #A043A0;
|
||||||
|
}
|
||||||
|
.text-indigo {
|
||||||
|
color: #334DA0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.text-bright-red {
|
||||||
|
color: #C84040;
|
||||||
|
}
|
||||||
|
.text-bright-yellow {
|
||||||
|
color: #FFC800;
|
||||||
|
}
|
||||||
|
.text-bright-green {
|
||||||
|
color: #00C878;
|
||||||
|
}
|
||||||
|
.text-bright-teal {
|
||||||
|
color: #00C8C8;
|
||||||
|
}
|
||||||
|
.text-bright-blue {
|
||||||
|
color: #00C0FF;
|
||||||
|
}
|
||||||
|
.text-bright-orange {
|
||||||
|
color: #FA7800;
|
||||||
|
}
|
||||||
|
.text-bright-brown {
|
||||||
|
color: #C88C40;
|
||||||
|
}
|
||||||
|
.text-bright-purple {
|
||||||
|
color: #C84040;
|
||||||
|
}
|
||||||
|
.text-bright-magenta {
|
||||||
|
color: #C854C8;
|
||||||
|
}
|
||||||
|
.text-bright-indigo {
|
||||||
|
color: #4060C8;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive Design */
|
||||||
|
.hide {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@media (max-width: 1000px) {
|
||||||
|
.bold-on-small {
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
.hide.show-on-small {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 1000px) and (max-width: 1200px) {
|
||||||
|
.hide.show-on-medium {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
.hide.show-on-large {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Miscellaneous */
|
||||||
|
.unselectable {
|
||||||
|
-webkit-touch-callout: none;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-khtml-user-select: none;
|
||||||
|
-moz-user-select: none;
|
||||||
|
-ms-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner {
|
||||||
|
height: 50px;
|
||||||
|
width: auto;
|
||||||
|
border-radius: 6px;
|
||||||
|
}
|
||||||
|
.social-icons {
|
||||||
|
width: 12pt;
|
||||||
|
height: 12pt;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
@@ -103,7 +103,7 @@ pre {
|
|||||||
white-space: pre;
|
white-space: pre;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
font-size: small;
|
font-size: small;
|
||||||
font-family: "MesloLGS Nerd Font", monospace, sans-serif;
|
font-family: "MesloLGS Nerd Font", monospace;
|
||||||
font-optical-sizing: auto;
|
font-optical-sizing: auto;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@@ -113,7 +113,7 @@ pre {
|
|||||||
|
|
||||||
.code {
|
.code {
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
font-family: "MesloLGS Nerd Font", monospace, sans-serif;
|
font-family: "MesloLGS Nerd Font", monospace;
|
||||||
font-optical-sizing: auto;
|
font-optical-sizing: auto;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,64 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ja-JP">
|
||||||
|
<head>
|
||||||
|
<!--
|
||||||
|
$ curl https://nercone.dev/welcome/?lightweight=1
|
||||||
|
■ ■ ■■■■■ ■■■■ ■■■■ ■■■ ■ ■ ■■■■■
|
||||||
|
■■ ■ ■ ■ ■ ■ ■ ■ ■■ ■ ■
|
||||||
|
■■ ■ ■ ■ ■ ■ ■ ■ ■■ ■ ■
|
||||||
|
■ ■ ■ ■■■■ ■■■■ ■ ■ ■ ■ ■ ■ ■■■■
|
||||||
|
■ ■■ ■ ■ ■ ■ ■ ■ ■ ■■ ■
|
||||||
|
■ ■■ ■ ■ ■ ■ ■ ■ ■ ■■ ■
|
||||||
|
■ ■ ■■■■■ ■ ■ ■■■■ ■■■ ■ ■ ■■■■■
|
||||||
|
|
||||||
|
nercone.dev ({{ server_version }})
|
||||||
|
welcome to nercone.dev!
|
||||||
|
-->
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{% block title %}nercone's website{% endblock %}</title>
|
||||||
|
<meta name="description" content="{% block description %}No description.{% endblock %}">
|
||||||
|
<!-- Favicons -->
|
||||||
|
<link rel="apple-touch-icon" href="/assets/images/favicons/favicon_cat.png" sizes="1200x1200">
|
||||||
|
<link rel="icon" type="image/png" href="/assets/images/favicons/favicon_cat.png" sizes="1200x1200">
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/assets/images/favicons/favicon_cat.svg" sizes="1200x1200">
|
||||||
|
<!-- Stylesheets / Scripts -->
|
||||||
|
<link rel="stylesheet" href="/assets/css/style.alt.css">
|
||||||
|
<script src="/assets/js/script.alt.js" defer></script>
|
||||||
|
{% block extra_head %}{% endblock %}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="cursor"></div>
|
||||||
|
<header class="flex">
|
||||||
|
<div class="flex-1 flex">
|
||||||
|
<a href="/" class="text-no-decoration text-white" style="gap: 8px;"><span class="font-bold">Nercone</span> {% block extra_title %}{% endblock %}</a>
|
||||||
|
<p class="hide show-on-medium show-on-large">{% block header_desc %}<a href="/daily-quote/" class="text-no-decoration">{{ get_daily_quote() }}</a>{% endblock %}</p>
|
||||||
|
</div>
|
||||||
|
<div class="flex">
|
||||||
|
<a href="/access-counter/" class="text-no-decoration hide show-on-medium show-on-large">あなたは{{ get_access_count() }}番目の訪問者です。</a>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
<main>{% block content %}{% endblock %}</main>
|
||||||
|
<footer class="flex text-tx-alt">
|
||||||
|
<div class="flex-1 flex">
|
||||||
|
<a href="/" class="text-no-decoration hide show-on-medium show-on-large"><span class="font-bold">nercone</span>.dev</a>
|
||||||
|
<a href="/about/" class="text-no-decoration bold-on-small">about</a>
|
||||||
|
<a href="/links/" class="text-no-decoration bold-on-small">links</a>
|
||||||
|
<a href="/projects/" class="text-no-decoration bold-on-small">projects</a>
|
||||||
|
<a href="{{ onion_site_url }}" class="text-no-decoration hide show-on-medium show-on-large">onion</a>
|
||||||
|
<a href="mailto:nercone@nercone.dev" class="text-no-decoration hide show-on-medium show-on-large">email</a>
|
||||||
|
<a href="/public-key/" class="text-no-decoration hide show-on-medium show-on-large">public-key</a>
|
||||||
|
<a href="/vulnerability-reporters/" class="text-no-decoration hide show-on-medium show-on-large">vulnerability-reporters</a>
|
||||||
|
</div>
|
||||||
|
<div class="flex">
|
||||||
|
<a href="https://github.com/nercone-dev/"><img alt="github" src="/assets/images/icons/github.svg" class="social-icons"></a>
|
||||||
|
<a href="https://orcid.org/0009-0001-3615-0962/"><img alt="orcid" src="/assets/images/icons/orcid.svg" class="social-icons">
|
||||||
|
<a href="https://twitter.com/nercone_x/"><img alt="twitter" src="/assets/images/icons/twitter.svg" class="social-icons">
|
||||||
|
<a href="https://qiita.com/DiamondGotCat/"><img alt="qiita" src="/assets/images/icons/qiita.svg" class="social-icons">
|
||||||
|
<a href="https://zenn.dev/techcat56/"><img alt="zenn" src="/assets/images/icons/zenn.svg" class="social-icons">
|
||||||
|
<!-- qiita kotonai -->
|
||||||
|
<a href="/server-version/" class="font-bold text-no-decoration hide show-on-medium show-on-large" id="footer-version-text">{{ server_version }}</a>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user