summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 20:43:23 -0800
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2025-01-02 20:43:23 -0800
commite4f968cec07f2e881e7ef5966a5bf56735a96ee8 (patch)
tree3f4854040dde53c7369f323b9a5e1353c369bbe3
parent8e33d86d2735476ebabc7878af3d27c41b856ad6 (diff)
downloadoldinfra-e4f968cec07f2e881e7ef5966a5bf56735a96ee8.tar.gz
oldinfra-e4f968cec07f2e881e7ef5966a5bf56735a96ee8.zip
make it look better
-rwxr-xr-xcreate_service.sh4
-rw-r--r--template/static/css/styles.css41
-rw-r--r--template/static/img/favicon.icobin0 -> 591 bytes
-rw-r--r--template/templates/base.html19
4 files changed, 61 insertions, 3 deletions
diff --git a/create_service.sh b/create_service.sh
index 59312d0..acbdf5f 100755
--- a/create_service.sh
+++ b/create_service.sh
@@ -5,8 +5,8 @@ set -e
DNS_ENDPOINT="https://hatecomputers.club/dns"
BIND_FILE="roles/nameservers/templates/db.simponic.xyz.j2"
-SERVICE_TITLE="something simponic."
-SERVICE="something"
+SERVICE_TITLE="phoneof simponic."
+SERVICE="phoneof"
SERVICE_PORT="6363"
SERVICE_REPO="git.simponic.xyz/simponic/$SERVICE"
SERVICE_ORIGIN="git@git.simponic.xyz:simponic/$SERVICE"
diff --git a/template/static/css/styles.css b/template/static/css/styles.css
index f5d4f78..c025c3e 100644
--- a/template/static/css/styles.css
+++ b/template/static/css/styles.css
@@ -9,10 +9,51 @@
* {
box-sizing: border-box;
+}
+
+html {
+ margin: 0;
+ padding: 0;
color: var(--text-color);
font-family: GeistMono;
}
body {
background-color: var(--background-color);
+ min-height: 100vh;
+}
+
+hr {
+ border: 0;
+ border-top: 1px solid var(--text-color);
+
+ margin: 20px 0;
+}
+
+.container {
+ max-width: 1600px;
+ margin: auto;
+ background-color: var(--container-bg);
+ padding: 1rem;
+}
+
+
+a {
+ color: var(--link-color);
+ text-decoration: none;
+ font-weight: bold;
+}
+a:hover {
+ text-decoration: underline;
+}
+
+.info {
+ margin-bottom: 1rem;
+ max-width: 600px;
+
+ transition: opacity 0.3s;
+}
+
+.info:hover {
+ opacity: 0.8;
}
diff --git a/template/static/img/favicon.ico b/template/static/img/favicon.ico
new file mode 100644
index 0000000..58c53c3
--- /dev/null
+++ b/template/static/img/favicon.ico
Binary files differ
diff --git a/template/templates/base.html b/template/templates/base.html
index 14b5e88..8d6aab2 100644
--- a/template/templates/base.html
+++ b/template/templates/base.html
@@ -5,10 +5,27 @@
<title>{{ service_title }}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+ <link href="/static/img/favicon.ico" rel="icon" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="/static/css/styles.css">
+
+ <meta property="og:type" content="website">
+ <meta property="og:url" content="https://{{ service }}.simponic.xyz">
+ <meta property="og:title" content="{{ service_title }}">
+ <meta property="og:description" content="{{ service_title }}">
+ <meta property="og:image:secure_url" content="https://{{ service }}.simponic.xyz/static/img/favicon.ico">
+ <meta property="og:image:secure" content="https://{{ service }}.simponic.xyz/static/img/favicon.ico">
+
+ <script src="/static/js/util/setThemeBeforeRender.js"></script>
</head>
- <body data-theme="DARK">
+ <body>
<div id="content" class="container">
+ <div>
+ <h1>{{ service }}</h1>
+ <a href="/">home.</a>
+ <span> | </span>
+ <a href="javascript:void(0);" id="theme-switcher">light mode.</a>
+ </div>
+ <hr>
{{ template "content" . }}
</div>
<script data-main="/static/js/script.js" src="/static/js/require.js"></script>