diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9209ef5..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -out diff --git a/.hugo_build.lock b/.hugo_build.lock new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 2bd4efc..dd6cf42 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # kosmos.org -This website (or rather foundation for a future website) is just a simple -static site. There are no dependencies to install or build tools to run. +This website (or rather foundation for a future website) is a simple static +site. It is built using the [Hugo](https://gohugo.io/) static site generator. -Just edit and submit a PR. +## Getting started + +1. Clone this Git repository +2. [Install Hugo](https://gohugo.io/getting-started/installing/) +3. Run `hugo server` diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..d4fa61b --- /dev/null +++ b/config.toml @@ -0,0 +1,5 @@ +theme = "kosmos-22" +baseURL = 'https://kosmos.org/' +languageCode = 'en-us' +title = 'Kosmos' +disableKinds = ["taxonomy", "term", "RSS", "sitemap", "robotsTXT"] diff --git a/.well-known/host-meta.json b/public/.well-known/host-meta.json similarity index 100% rename from .well-known/host-meta.json rename to public/.well-known/host-meta.json diff --git a/styles/style.css b/public/css/style.css similarity index 100% rename from styles/style.css rename to public/css/style.css diff --git a/favicon.ico b/public/favicon.ico similarity index 100% rename from favicon.ico rename to public/favicon.ico diff --git a/img/bg-header-lagoon.jpg b/public/img/bg-header-lagoon.jpg similarity index 100% rename from img/bg-header-lagoon.jpg rename to public/img/bg-header-lagoon.jpg diff --git a/img/lagoon-close-02.jpg b/public/img/lagoon-close-02.jpg similarity index 100% rename from img/lagoon-close-02.jpg rename to public/img/lagoon-close-02.jpg diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..3ccb57a --- /dev/null +++ b/public/index.html @@ -0,0 +1,49 @@ + + + + + + Kosmos + + + + + +
+
+

Kosmos

+

Group communication for the 21st century

+
+
+

+ 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. +

+

+ We also develop a system for rewarding contributors and enabling + governance based on contributions, called Kredits, which we started + using in production recently. +

+

+ You can find all relevant information and further links in our + wiki. + We collaborate on source code on + GitHub + as well as our own + Gitea. + For announcements and other news, you can follow us on the + fediverse + (recommended) or on + Twitter. +

+ +
+ +
+ + diff --git a/static/.well-known/host-meta.json b/static/.well-known/host-meta.json new file mode 100644 index 0000000..e99c2e9 --- /dev/null +++ b/static/.well-known/host-meta.json @@ -0,0 +1,12 @@ +{ + "links": [ + { + "rel": "urn:xmpp:alt-connections:xbosh", + "href": "https://xmpp.kosmos.org:5443/bosh" + }, + { + "rel": "urn:xmpp:alt-connections:websocket", + "href": "wss://xmpp.kosmos.org:5443/ws" + } + ] +} diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..f0068b3 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/img/bg-header-lagoon.jpg b/static/img/bg-header-lagoon.jpg new file mode 100644 index 0000000..3c36a18 Binary files /dev/null and b/static/img/bg-header-lagoon.jpg differ diff --git a/static/img/lagoon-close-02.jpg b/static/img/lagoon-close-02.jpg new file mode 100644 index 0000000..5ceb4b6 Binary files /dev/null and b/static/img/lagoon-close-02.jpg differ diff --git a/themes/kosmos-22/LICENSE b/themes/kosmos-22/LICENSE new file mode 100644 index 0000000..147d594 --- /dev/null +++ b/themes/kosmos-22/LICENSE @@ -0,0 +1,20 @@ +The MIT License (MIT) + +Copyright (c) 2022 YOUR_NAME_HERE + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/themes/kosmos-22/archetypes/default.md b/themes/kosmos-22/archetypes/default.md new file mode 100644 index 0000000..ac36e06 --- /dev/null +++ b/themes/kosmos-22/archetypes/default.md @@ -0,0 +1,2 @@ ++++ ++++ diff --git a/themes/kosmos-22/layouts/404.html b/themes/kosmos-22/layouts/404.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/kosmos-22/layouts/_default/baseof.html b/themes/kosmos-22/layouts/_default/baseof.html new file mode 100644 index 0000000..5f8e2ec --- /dev/null +++ b/themes/kosmos-22/layouts/_default/baseof.html @@ -0,0 +1,11 @@ + + + {{- partial "head.html" . -}} + + {{- partial "header.html" . -}} +
+ {{- block "main" . }}{{- end }} +
+ {{- partial "footer.html" . -}} + + diff --git a/themes/kosmos-22/layouts/_default/list.html b/themes/kosmos-22/layouts/_default/list.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/kosmos-22/layouts/_default/single.html b/themes/kosmos-22/layouts/_default/single.html new file mode 100644 index 0000000..e69de29 diff --git a/index.html b/themes/kosmos-22/layouts/index.html similarity index 96% rename from index.html rename to themes/kosmos-22/layouts/index.html index a87da7a..dec33a0 100644 --- a/index.html +++ b/themes/kosmos-22/layouts/index.html @@ -5,7 +5,7 @@ Kosmos - +
diff --git a/themes/kosmos-22/layouts/partials/footer.html b/themes/kosmos-22/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/kosmos-22/layouts/partials/head.html b/themes/kosmos-22/layouts/partials/head.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/kosmos-22/layouts/partials/header.html b/themes/kosmos-22/layouts/partials/header.html new file mode 100644 index 0000000..e69de29 diff --git a/themes/kosmos-22/static/css/style.css b/themes/kosmos-22/static/css/style.css new file mode 100644 index 0000000..40f229d --- /dev/null +++ b/themes/kosmos-22/static/css/style.css @@ -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; + } +} diff --git a/themes/kosmos-22/theme.toml b/themes/kosmos-22/theme.toml new file mode 100644 index 0000000..ea15361 --- /dev/null +++ b/themes/kosmos-22/theme.toml @@ -0,0 +1,21 @@ +# theme.toml template for a Hugo theme +# See https://github.com/gohugoio/hugoThemes#themetoml for an example + +name = "Kosmos 22" +license = "MIT" +licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE" +description = "" +homepage = "http://example.com/" +tags = [] +features = [] +min_version = "0.41.0" + +[author] + name = "" + homepage = "" + +# If porting an existing theme +[original] + name = "" + homepage = "" + repo = ""