Initial commit

This commit is contained in:
Drew DeVault 2018-10-09 21:33:18 -04:00
commit ee1b7c4757
7 changed files with 149 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
public
resources

2
config.toml Normal file
View File

@ -0,0 +1,2 @@
baseURL = "https://sourcehub.org/"
theme = "sourcehub.org"

32
content/_index.html Normal file
View File

@ -0,0 +1,32 @@
+++
title = "sourcehut"
+++
<p>
<strong>Welcome to sourcehut!</strong> This is the open source software suite
for managing your software development projects that you've been waiting for.
</p>
<div class="alert alert-danger">
<strong>Achtung!</strong> sourcehut is still under heavy development, and
while many of the services are usable, expect to find lots of missing
polish, broken links, incomplete docs, and so on. Here be dragons!
</div>
<p>
<strong><a href="https://sr.ht">sr.ht</a></strong> is a hosted
instance of sourcehut provided for your convenience. If you're just looking
for a sourcehut account, <a href="https://meta.sr.ht/register">register
here</a>.
</p>
<h4>High-level features</h4>
<ul>
<li>
<a href="https://git.sr.ht/~sircmpwn/?search=sr.ht">
100% free and open source software
</a>
</li>
<li>
Composable Unix-style mini-services that let you use only what you need
</li>
<li>All features work without JavaScript</li>
<li>Absolutely no tracking or advertising</li>
</ul>

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"/></svg>

After

Width:  |  Height:  |  Size: 233 B

View File

@ -0,0 +1,90 @@
$black: #212529;
$primary: #007bff;
$danger: #dc3545;
body {
max-width: 760px;
margin: 0 auto;
color: $black;
font-family: sans-serif;
font-size: 0.9rem;
}
nav {
padding-top: 0.5rem;
clear: both;
.brand {
text-decoration: none;
font-size: 1.25rem;
}
.pull-right {
float: right;
}
}
.brand {
color: $danger;
}
.icon {
display: inline-block;
line-height: .75em;
path {
fill: currentColor;
}
width: 0.4em;
vertical-align: -0.2em;
}
a {
color: $primary;
text-decoration: none;
&:hover {
color: darken($primary, 15);
text-decoration: underline;
}
}
.btn {
border: #001933 1px solid;
padding: .1rem .75rem;
font-size: 0.9rem;
color: #fff;
background: #0062cc;
font-weight: 400;
line-height: 1.5;
transition: color .15s ease-in-out,
background-color .15s ease-in-out,
border-color .15s ease-in-out,
box-shadow .15s ease-in-out;
&:hover {
background: #0069d9;
color: #fff;
text-decoration: none;
}
}
.alert {
padding: 0.5rem;
border: 1px solid transparent;
margin-bottom: 1rem;
&.alert-danger {
background: #f8d7da;
color: #721c24;
border-color: #f5c6cb;
}
}
h4 {
font-size: 1.1rem;
border-bottom: 1px solid #e9ecef;
padding-bottom: 0.25rem;
margin-bottom: 0.5rem;
}

View File

@ -0,0 +1,20 @@
<html>
<head>
<meta charset="utf-8" />
<title>{{.Title}}</title>
{{ $style := resources.Get "main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
</head>
<body>
<nav>
<a href="/" class="brand">sourcehut</a>
<a href="https://meta.sr.ht/login" class="btn pull-right">
Go to sr.ht
<span class="icon">
{{ (resources.Get "caret-right.svg").Content | safeHTML }}
</span>
</a>
</nav>
{{.Content}}
</body>
</html>

View File

@ -0,0 +1,2 @@
name = "sourcehub.org"
license = "MIT"