Add basic styling
parent
5c21b93709
commit
f01ccf2839
11
_cobalt.yml
11
_cobalt.yml
|
@ -1,7 +1,10 @@
|
|||
|
||||
site:
|
||||
title: cobalt blog
|
||||
description: Blog Posts Go Here
|
||||
base_url: http://example.com
|
||||
title: Hermes
|
||||
description: Hermes scuttlebutt client
|
||||
base_url: https://hermes.gay
|
||||
posts:
|
||||
rss: rss.xml
|
||||
|
||||
assets:
|
||||
sass:
|
||||
style: Nested
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
layout: default.liquid
|
||||
|
||||
title: First Post
|
||||
description: description
|
||||
categories: []
|
||||
is_draft: true
|
||||
---
|
||||
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
<footer>
|
||||
<hr>
|
||||
<ul class="container">
|
||||
<li class="item-left">
|
||||
<h3>About</h3>
|
||||
<p>This website is generated by the <a href="https://cobalt-org.github.io/">cobalt</a> static site generator</p>
|
||||
<p>The source code is licensed under the CNPLv7+ license, and available <a href="https://github.com/erin/hermes-site">here</a>.</p>
|
||||
</li>
|
||||
|
||||
<li class="item-mid">
|
||||
<h3>Contribute</h3>
|
||||
<a href="#">Github Repository</a><br>
|
||||
<a href="#">Code of Conduct</a><br>
|
||||
<a href="#">Report a Bug</a><br>
|
||||
</li>
|
||||
|
||||
<li class="item-right">
|
||||
<h3>Technologies</h3>
|
||||
<a href="https://handbook.scuttlebutt.nz/">Scuttlebutt</a><br>
|
||||
<a href="https://docs.rs/golgi/0.1.0/golgi/">golgi</a><br>
|
||||
<a href="https://gtk-rs.org/">gtk-rs</a><br>
|
||||
</li>
|
||||
</ul>
|
||||
</footer>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="alternate" title="Main RSS Feed" type="application/rss+xml" href="/rss.xml">
|
||||
|
||||
<!-- preview metadata -->
|
||||
<meta property="og:site_name" content="Hermes"/>
|
||||
<meta property="og:title" content="{{ page.title }}"/>
|
||||
<meta name="description" content="Hermes Scuttlebutt Client"/>
|
||||
<meta property="og:description" content="Hermes Scuttlebutt Client">
|
||||
<meta property="og:image" content="/assets/logo.svg"/>
|
||||
|
||||
<link rel="icon" href="/assets/logo.svg">
|
||||
<title>Hermes | {{ page.title }}</title>
|
|
@ -0,0 +1,12 @@
|
|||
<header>
|
||||
<div class="container">
|
||||
<img src="assets/logo.png" alt="logo" class="logo" width="100px" height="50px">
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/download">Download</a></li>
|
||||
<li><a href="/contact">Contact</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
|
@ -1,13 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ page.title }}</title>
|
||||
{% include "meta.liquid" %}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<h2>{{ page.title }}</h2>
|
||||
{{ page.content }}
|
||||
</div>
|
||||
{% include "navigation.liquid" %}
|
||||
<main>
|
||||
{{ page.content }}
|
||||
</main>
|
||||
{% include "footer.liquid" %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
html {
|
||||
image-rendering: pixelated;
|
||||
image-rendering: crisp-edges;
|
||||
font-size: 1.3em;
|
||||
color: $foreground-color;
|
||||
line-height: 1.50;
|
||||
background: $background-color;
|
||||
font-family: 'Cantarell', sans-serif;
|
||||
}
|
||||
|
||||
/* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
|
||||
@media screen and (prefers-reduced-motion: no-preference) {
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
border-radius: 10px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
main {
|
||||
margin: auto;
|
||||
width: 50%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.container {
|
||||
margin: 0 50px;
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
footer {
|
||||
ul {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.item-left {
|
||||
grid-area: main;
|
||||
}
|
||||
.item-mid {
|
||||
grid-area: links1;
|
||||
}
|
||||
.item-right {
|
||||
grid-area: links2;
|
||||
}
|
||||
|
||||
.container {
|
||||
margin-left: 25%;
|
||||
margin-right: 25%;
|
||||
display: grid;
|
||||
grid-template-columns: 500px 250px 250px;
|
||||
grid-template-rows: auto;
|
||||
grid-template-areas:
|
||||
"main links1 links2"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
a:link, a:visited {
|
||||
text-decoration: none;
|
||||
color: $accent-color;
|
||||
}
|
||||
|
||||
a:active, a:focus, a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
color: scale-color($foreground-color, $lightness: +10%);
|
||||
}
|
||||
|
||||
::selection {
|
||||
color: $background-color;
|
||||
background: $foreground-color;
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
.logo {
|
||||
float: left;
|
||||
padding: 10px 0;
|
||||
}
|
||||
|
||||
header::after {
|
||||
content: '';
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
header {
|
||||
box-shadow: 0 0 5px #888;
|
||||
}
|
||||
|
||||
nav {
|
||||
float: right;
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
margin-left: 70px;
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
}
|
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
|
@ -0,0 +1,78 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="/style.css">
|
||||
<link rel="alternate" title="Main RSS Feed" type="application/rss+xml" href="/rss.xml">
|
||||
|
||||
<!-- preview metadata -->
|
||||
<meta property="og:site_name" content="Hermes"/>
|
||||
<meta property="og:title" content="Index"/>
|
||||
<meta name="description" content="Hermes Scuttlebutt Client"/>
|
||||
<meta property="og:description" content="Hermes Scuttlebutt Client">
|
||||
<meta property="og:image" content="/assets/logo.svg"/>
|
||||
|
||||
<link rel="icon" href="/assets/logo.svg">
|
||||
<title>Hermes | Index</title>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<img src="assets/logo.png" alt="logo" class="logo" width="100px" height="50px">
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="/download">Download</a></li>
|
||||
<li><a href="/contact">Contact</a></li>
|
||||
<li><a href="/blog">Blog</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<p>About, features, basic SSB info, etc.</p>
|
||||
<h2>FAQ</h2>
|
||||
<p><strong>Q:</strong>
|
||||
A</p>
|
||||
<p><strong>Q:</strong>
|
||||
A</p>
|
||||
<h2>Roadmap</h2>
|
||||
<ul>
|
||||
<li>one</li>
|
||||
<li>two</li>
|
||||
<li>three</li>
|
||||
</ul>
|
||||
<h2>Blog!</h2>
|
||||
|
||||
</main>
|
||||
<footer>
|
||||
<hr>
|
||||
<ul class="container">
|
||||
<li class="item-left">
|
||||
<h3>About</h3>
|
||||
<p>This website is generated by the <a href="https://cobalt-org.github.io/">cobalt</a> static site generator</p>
|
||||
<p>The source code is licensed under the CNPLv7+ license, and available <a href="https://github.com/erin/hermes-site">here</a>.</p>
|
||||
</li>
|
||||
|
||||
<li class="item-mid">
|
||||
<h3>Contribute</h3>
|
||||
<a href="#">Github Repository</a><br>
|
||||
<a href="#">Code of Conduct</a><br>
|
||||
<a href="#">Report a Bug</a><br>
|
||||
</li>
|
||||
|
||||
<li class="item-right">
|
||||
<h3>Technologies</h3>
|
||||
<a href="https://handbook.scuttlebutt.nz/">Scuttlebutt</a><br>
|
||||
<a href="https://docs.rs/golgi/0.1.0/golgi/">golgi</a><br>
|
||||
<a href="https://gtk-rs.org/">gtk-rs</a><br>
|
||||
</li>
|
||||
</ul>
|
||||
</footer>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>cobalt blog</title><link>http://localhost:3000</link><description>Blog Posts Go Here</description></channel></rss>
|
|
@ -0,0 +1,84 @@
|
|||
html {
|
||||
image-rendering: pixelated;
|
||||
image-rendering: crisp-edges;
|
||||
font-size: 1.3em;
|
||||
color: #333;
|
||||
line-height: 1.50;
|
||||
background: #f8f4f3;
|
||||
font-family: 'Cantarell', sans-serif; }
|
||||
|
||||
/* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
|
||||
@media screen and (prefers-reduced-motion: no-preference) {
|
||||
html {
|
||||
scroll-behavior: smooth; } }
|
||||
|
||||
body {
|
||||
border-radius: 10px;
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
|
||||
main {
|
||||
margin: auto;
|
||||
width: 50%;
|
||||
text-align: left; }
|
||||
|
||||
.container {
|
||||
margin: 0 50px; }
|
||||
|
||||
a:link, a:visited {
|
||||
text-decoration: none;
|
||||
color: #b87333; }
|
||||
|
||||
a:active, a:focus, a:hover {
|
||||
text-decoration: underline; }
|
||||
|
||||
ul, ol {
|
||||
color: #474747; }
|
||||
|
||||
::selection {
|
||||
color: #f8f4f3;
|
||||
background: #333; }
|
||||
|
||||
footer ul {
|
||||
list-style: none; }
|
||||
|
||||
footer .item-left {
|
||||
grid-area: main; }
|
||||
|
||||
footer .item-mid {
|
||||
grid-area: links1; }
|
||||
|
||||
footer .item-right {
|
||||
grid-area: links2; }
|
||||
|
||||
footer .container {
|
||||
margin-left: 25%;
|
||||
margin-right: 25%;
|
||||
display: grid;
|
||||
grid-template-columns: 500px 250px 250px;
|
||||
grid-template-rows: auto;
|
||||
grid-template-areas: "main links1 links2"; }
|
||||
|
||||
.logo {
|
||||
float: left;
|
||||
padding: 10px 0; }
|
||||
|
||||
header::after {
|
||||
content: '';
|
||||
display: table;
|
||||
clear: both; }
|
||||
|
||||
header {
|
||||
box-shadow: 0 0 5px #888; }
|
||||
|
||||
nav {
|
||||
float: right; }
|
||||
nav ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none; }
|
||||
nav li {
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
margin-left: 70px;
|
||||
padding-top: 20px; }
|
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
15
index.md
15
index.md
|
@ -1,6 +1,21 @@
|
|||
---
|
||||
layout: default.liquid
|
||||
---
|
||||
|
||||
About, features, basic SSB info, etc.
|
||||
|
||||
## FAQ
|
||||
**Q:**
|
||||
A
|
||||
|
||||
**Q:**
|
||||
A
|
||||
|
||||
## Roadmap
|
||||
- one
|
||||
- two
|
||||
- three
|
||||
|
||||
## Blog!
|
||||
|
||||
{% for post in collections.posts.pages %}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
$background-color: #f8f4f3;
|
||||
$foreground-color: #333;
|
||||
$accent-color: #b87333;
|
||||
|
||||
@import '_scss/base', '_scss/formatting', '_scss/footer', '_scss/navigation';
|
Loading…
Reference in New Issue