Add asset fingerprinting, build/dev scripts
Add fingerprinting for the CSS file, as well as npm scripts for all common build and dev tasks.
This commit is contained in:
File diff suppressed because one or more lines are too long
91
public/css/style.css
Normal file
91
public/css/style.css
Normal file
@@ -0,0 +1,91 @@
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
body, html {
|
||||
box-sizing: border-box;
|
||||
height: 100%;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
*, *:before, *:after {
|
||||
box-sizing: inherit;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
color: #232323;
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
text-rendering: optimizeLegibility;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
html, body, #wrapper {
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
min-height: 100%;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
header {
|
||||
height: 100%;
|
||||
max-width: 90%;
|
||||
margin: 0 auto 10vh;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
display: inline-block;
|
||||
margin-bottom: 2rem;
|
||||
margin-right: -0.25em; /* fix trailing space from letter-spacing */
|
||||
font-size: 7vw;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5em;
|
||||
text-transform: uppercase;
|
||||
background: #232323 url(https://kredits.kosmos.org/img/bg-947d3bf6bb15a1a3b07afcba4c307690.jpg);
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
-webkit-text-fill-color: transparent;
|
||||
-webkit-background-clip: text;
|
||||
}
|
||||
|
||||
header h2 {
|
||||
font-weight: 300;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
main {
|
||||
width: 768px;
|
||||
max-width: 90%;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
main p {
|
||||
line-height: 1.6em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 760px) {
|
||||
header {
|
||||
margin-top: 4rem;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 8vw;
|
||||
}
|
||||
|
||||
footer {
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
}
|
||||
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
2
public/foundation/index.html
Normal file
2
public/foundation/index.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!doctype html><html><head><meta charset=utf-8><meta content="width=device-width,minimum-scale=1,maximum-scale=1" name=viewport><title>Kosmos Infrastructure Foundation | Kosmos</title><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link rel=stylesheet href=https://kosmos.org/css/main.92b231fbfbb7c7516da47bfb40600240729dc4792bd25c4e792f326ecacde5bf.css></head><body class=text-center><header class="max-w-5xl mx-auto px-8 text-left"><div class="flex items-center justify-between h-20"><div class="flex items-center"><div class=flex-shrink-0><svg class="inline-block align-top -mt-0.5 mr-1 w-auto h-6" width="65.364" height="55.773" enable-background="new 0 0 100 100" viewBox="0 0 65.364 55.773" xmlns="http://www.w3.org/2000/svg"><g id="layer1" transform="translate(28.868 20.259)" fill="#000"><path id="path2" d="m22.81-9.2546-.0137-.0072c-.0445-.0196-.0895-.04052-.13335-.06078l-23.822-10.937s2.0034 9.219 2.914 11.778c0 0-27.292-8.1582-30.623-8.9354 1.0916 4.2618 20.006 40.848 20.006 40.848 3.8225 7.7608 12.677 12.083 21.912 12.083 12.949.0 23.446-10.497 23.446-23.446 66e-5-9.4655-5.609-17.62-13.685-21.323z" fill="#000" stroke-width=".65365"/></g></svg><h1 class="inline-block uppercase font-bold">Kosmos</h1></div><nav class="hidden md:block"><ul class="ml-16 flex items-baseline space-x-8"><li><a href=/projects/ class=font-bold><span>Projects</span></a></li><li><a href=/services/ class=font-bold><span>Services</span></a></li><li class="border-b-2 border-teal-500"><a href=/foundation/ class=font-bold><span>Foundation</span></a></li></ul></nav></div></div></header><main class=text-left><div class="w-full h-32 bg-[url('/img/lagoon-close-02.jpg')]
|
||||
bg-[center_top_30rem] bg-cover"></div><div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white"><header class=mb-8><h1 class="text-2xl font-bold">Kosmos Infrastructure Foundation</h1><p class="mt-2 text-lg text-zinc-500">Providing physical infrastructure for Kosmos software and services</p></header><div class=content><p>Foundation content</p></div></main><footer></footer></body></html>
|
||||
BIN
public/img/bg-header-lagoon.jpg
Normal file
BIN
public/img/bg-header-lagoon.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
1
public/img/comet.svg
Normal file
1
public/img/comet.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="65.364" height="55.773" enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 65.364 55.773" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g id="layer1" transform="translate(28.868 20.259)" fill="#000"><path id="path2" d="m22.81-9.2546-0.0137-0.0072c-0.0445-0.0196-0.0895-0.04052-0.13335-0.06078l-23.822-10.937s2.0034 9.219 2.914 11.778c0 0-27.292-8.1582-30.623-8.9354 1.0916 4.2618 20.006 40.848 20.006 40.848 3.8225 7.7608 12.677 12.083 21.912 12.083 12.949 0 23.446-10.497 23.446-23.446 6.6e-4 -9.4655-5.609-17.62-13.685-21.323z" fill="#fff" stroke-width=".65365"/></g></svg>
|
||||
|
After Width: | Height: | Size: 611 B |
BIN
public/img/lagoon-close-02.jpg
Normal file
BIN
public/img/lagoon-close-02.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
15
public/index.html
Normal file
15
public/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!doctype html><html lang=en><head><meta name=generator content="Hugo 0.99.1"><meta charset=utf-8><title>Kosmos</title><meta content="width=device-width,minimum-scale=1,maximum-scale=1" name=viewport><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link href=/css/style.css rel=stylesheet></head><body><div id=wrapper><header><h1>Kosmos</h1><h2>Group communication for the 21st century</h2></header><main><p>We are an open co-operative of people, who are developing a free,
|
||||
open-source, and user-centric alternative to centralized group chat
|
||||
platforms, based on widely used protocols and standards.</p><p>We also develop a system for rewarding contributors and enabling
|
||||
governance based on contributions, called Kredits, which we started
|
||||
using in production recently.</p><p>You can find all relevant information and further links in our
|
||||
<a href=https://wiki.kosmos.org>wiki</a>.
|
||||
We collaborate on source code on
|
||||
<a href=https://github.com/67P rel=me>GitHub</a>
|
||||
as well as our own
|
||||
<a href=https://gitea.kosmos.org/kosmos rel=me>Gitea</a>.
|
||||
For announcements and other news, you can follow us on the
|
||||
<a href=https://kosmos.social/@kosmos rel=me>fediverse</a>
|
||||
(recommended) or on
|
||||
<a href=https://twitter.com/KosmosHQ rel=me>Twitter</a>.</p><p class=hidden>For status and incident updates regarding Kosmos infrastructure, please follow
|
||||
<a href=https://kosmos.social/@ops rel=me>ops@kosmos.social</a>.</p></main><footer></footer></div></body></html>
|
||||
2
public/projects/index.html
Normal file
2
public/projects/index.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!doctype html><html><head><meta charset=utf-8><meta content="width=device-width,minimum-scale=1,maximum-scale=1" name=viewport><title>Projects | Kosmos</title><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link rel=stylesheet href=https://kosmos.org/css/main.92b231fbfbb7c7516da47bfb40600240729dc4792bd25c4e792f326ecacde5bf.css></head><body class=text-center><header class="max-w-5xl mx-auto px-8 text-left"><div class="flex items-center justify-between h-20"><div class="flex items-center"><div class=flex-shrink-0><svg class="inline-block align-top -mt-0.5 mr-1 w-auto h-6" width="65.364" height="55.773" enable-background="new 0 0 100 100" viewBox="0 0 65.364 55.773" xmlns="http://www.w3.org/2000/svg"><g id="layer1" transform="translate(28.868 20.259)" fill="#000"><path id="path2" d="m22.81-9.2546-.0137-.0072c-.0445-.0196-.0895-.04052-.13335-.06078l-23.822-10.937s2.0034 9.219 2.914 11.778c0 0-27.292-8.1582-30.623-8.9354 1.0916 4.2618 20.006 40.848 20.006 40.848 3.8225 7.7608 12.677 12.083 21.912 12.083 12.949.0 23.446-10.497 23.446-23.446 66e-5-9.4655-5.609-17.62-13.685-21.323z" fill="#000" stroke-width=".65365"/></g></svg><h1 class="inline-block uppercase font-bold">Kosmos</h1></div><nav class="hidden md:block"><ul class="ml-16 flex items-baseline space-x-8"><li class="border-b-2 border-teal-500"><a href=/projects/ class=font-bold><span>Projects</span></a></li><li><a href=/services/ class=font-bold><span>Services</span></a></li><li><a href=/foundation/ class=font-bold><span>Foundation</span></a></li></ul></nav></div></div></header><main class=text-left><div class="w-full h-32 bg-[url('/img/lagoon-close-02.jpg')]
|
||||
bg-[center_top_30rem] bg-cover"></div><div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white"><header class=mb-8><h1 class="text-2xl font-bold">Projects</h1></header><div class=content><p>Projects content</p></div></main><footer></footer></body></html>
|
||||
2
public/services/index.html
Normal file
2
public/services/index.html
Normal file
@@ -0,0 +1,2 @@
|
||||
<!doctype html><html><head><meta charset=utf-8><meta content="width=device-width,minimum-scale=1,maximum-scale=1" name=viewport><title>Services | Kosmos</title><link href=https://assets.kosmos.org/fonts/open-sans/open-sans.css rel=stylesheet><link rel=stylesheet href=https://kosmos.org/css/main.92b231fbfbb7c7516da47bfb40600240729dc4792bd25c4e792f326ecacde5bf.css></head><body class=text-center><header class="max-w-5xl mx-auto px-8 text-left"><div class="flex items-center justify-between h-20"><div class="flex items-center"><div class=flex-shrink-0><svg class="inline-block align-top -mt-0.5 mr-1 w-auto h-6" width="65.364" height="55.773" enable-background="new 0 0 100 100" viewBox="0 0 65.364 55.773" xmlns="http://www.w3.org/2000/svg"><g id="layer1" transform="translate(28.868 20.259)" fill="#000"><path id="path2" d="m22.81-9.2546-.0137-.0072c-.0445-.0196-.0895-.04052-.13335-.06078l-23.822-10.937s2.0034 9.219 2.914 11.778c0 0-27.292-8.1582-30.623-8.9354 1.0916 4.2618 20.006 40.848 20.006 40.848 3.8225 7.7608 12.677 12.083 21.912 12.083 12.949.0 23.446-10.497 23.446-23.446 66e-5-9.4655-5.609-17.62-13.685-21.323z" fill="#000" stroke-width=".65365"/></g></svg><h1 class="inline-block uppercase font-bold">Kosmos</h1></div><nav class="hidden md:block"><ul class="ml-16 flex items-baseline space-x-8"><li><a href=/projects/ class=font-bold><span>Projects</span></a></li><li class="border-b-2 border-teal-500"><a href=/services/ class=font-bold><span>Services</span></a></li><li><a href=/foundation/ class=font-bold><span>Foundation</span></a></li></ul></nav></div></div></header><main class=text-left><div class="w-full h-32 bg-[url('/img/lagoon-close-02.jpg')]
|
||||
bg-[center_top_30rem] bg-cover"></div><div class="max-w-5xl mx-auto -mt-12 py-8 px-8 text-left bg-white"><header class=mb-8><h1 class="text-2xl font-bold">Services</h1></header><div class=content><h2 id=community-services>Community Services</h2><h3 class="mb-4 text-sm uppercase text-zinc-500">Communication</h3><ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-8"><li><h4 class="text-lg font-bold mb-2"><a href=https://wiki.kosmos.org/Services:Chat class="border-b border-zinc-400">Chat</a></h4><p>Chat rooms and instant messaging (XMPP/Jabber)</p></li><li><h4 class="text-lg font-bold mb-2"><a href=kosmos.social class="border-b border-zinc-400">Social</a></h4><p>Social media (micro-blogging on the fediverse)</p></li><li><h4 class="text-lg font-bold mb-2"><a href=https://community.kosmos.org class="border-b border-zinc-400">Forums</a></h4><p>Kosmos community forums and user support/help site</p></li></ul><h3 class="mb-4 text-sm uppercase text-zinc-500">Software development</h3><ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-8"><li><h4 class="text-lg font-bold mb-2"><a href=https://gitea.kosmos.org class="border-b border-zinc-400">Gitea</a></h4><p>Code hosting and collaboration for software projects</p></li><li><h4 class="text-lg font-bold mb-2"><a href=https://drone.kosmos.org class="border-b border-zinc-400">Drone CI</a></h4><p>Continuous integration and build pipelines</p></li></ul><h3 class="mb-4 text-sm uppercase text-zinc-500">Account & Auxiliary services</h3><ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-8"><li><h4 class="text-lg font-bold mb-2"><a href=https://accounts.kosmos.org class="border-b border-zinc-400">Accounts</a></h4><p>Manage your Kosmos account, and invite new users</p></li><li><h4 class="text-lg font-bold mb-2"><a href=https://sockethub.org class="border-b border-zinc-400">Sockethub</a></h4><p>Access other Internet protocols from Web apps</p></li><li><h4 class="text-lg font-bold mb-2"><a href=https://wiki.kosmos.org/Kredits:IPFS class="border-b border-zinc-400">IPFS Gateway</a></h4><p>Web gateway for the IPFS decentralized filesystem</p></li></ul><h3 class="mb-4 text-sm uppercase text-zinc-500">Documentation</h3><ul class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6 mb-8"><li><h4 class="text-lg font-bold mb-2"><a href=https://wiki.kosmos.org class="border-b border-zinc-400">Wiki</a></h4><p>Kosmos documentation and knowledge base</p></li></ul></div></main><footer></footer></body></html>
|
||||
Reference in New Issue
Block a user