mirror of
https://codeberg.org/angestoepselt/homepage.git
synced 2025-05-24 14:46:16 +00:00
Initial Grav port
This commit is contained in:
commit
8b78fe1690
38 changed files with 10038 additions and 0 deletions
9
.editorconfig
Normal file
9
.editorconfig
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
charset = utf-8
|
||||
154
.eleventy.js
Normal file
154
.eleventy.js
Normal file
|
|
@ -0,0 +1,154 @@
|
|||
const { DateTime } = require("luxon");
|
||||
const fs = require("fs");
|
||||
const pluginRss = require("@11ty/eleventy-plugin-rss");
|
||||
const pluginSyntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
|
||||
const pluginNavigation = require("@11ty/eleventy-navigation");
|
||||
const Image = require("@11ty/eleventy-img");
|
||||
const markdownIt = require("markdown-it");
|
||||
const markdownItAnchor = require("markdown-it-anchor");
|
||||
|
||||
function hyphenize(input) {
|
||||
return input.replace(/[^\w- ]/, "").replace(/[_ ]/, "-").toLowerCase();
|
||||
}
|
||||
|
||||
module.exports = function(eleventyConfig) {
|
||||
eleventyConfig.addPlugin(pluginRss);
|
||||
eleventyConfig.addPlugin(pluginSyntaxHighlight);
|
||||
eleventyConfig.addPlugin(pluginNavigation);
|
||||
|
||||
eleventyConfig.setDataDeepMerge(true);
|
||||
|
||||
//
|
||||
// Filters
|
||||
//
|
||||
|
||||
eleventyConfig.addFilter("readableDate", dateObj => {
|
||||
return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat("dd LLL yyyy");
|
||||
});
|
||||
eleventyConfig.addFilter('htmlDateString', (dateObj) => {
|
||||
return DateTime.fromJSDate(dateObj, {zone: 'utc'}).toFormat('yyyy-LL-dd');
|
||||
});
|
||||
eleventyConfig.addFilter("head", (array, n) => n < 0 ? array.slice(n) : array.slice(0, n));
|
||||
eleventyConfig.addFilter("min", (...numbers) => Math.min.apply(null, numbers));
|
||||
|
||||
function filterTagList(tags) {
|
||||
return (tags || []).filter(tag => ["all", "nav", "post", "posts"].indexOf(tag) === -1);
|
||||
}
|
||||
eleventyConfig.addFilter("filterTagList", filterTagList);
|
||||
|
||||
// Build collections for the top and bottom navigation - the first one
|
||||
// contains the main sites and the latter contains legal pages.
|
||||
eleventyConfig.addCollection("topNavigation", (collection) => {
|
||||
return collection.getAll().filter(item => !(item.data.tags || []).includes('legal'));
|
||||
});
|
||||
eleventyConfig.addCollection("bottomNavigation", (collection) => {
|
||||
return collection.getAll().filter(item => (item.data.tags || []).includes('legal'));
|
||||
});
|
||||
|
||||
//
|
||||
// Widgets
|
||||
//
|
||||
|
||||
eleventyConfig.addPairedShortcode("section", (content, inverted) => `
|
||||
<section class="page-section${inverted ? ' inverse' : ''}"><div class="page-content">
|
||||
${content}
|
||||
</div></section>
|
||||
`);
|
||||
|
||||
eleventyConfig.addPairedShortcode("tabs", (content) => `
|
||||
<div class="tabs-widget">
|
||||
${content}
|
||||
</div>
|
||||
`);
|
||||
eleventyConfig.addPairedShortcode("tab", (content, title) => {
|
||||
const hyphenizedTitle = hyphenize(title);
|
||||
return `
|
||||
<div id="${hyphenizedTitle}" class="tab">
|
||||
${content}
|
||||
</div>
|
||||
<a href="#${hyphenizedTitle}" rel="tab">${title}</a>
|
||||
`;
|
||||
});
|
||||
|
||||
eleventyConfig.addPairedAsyncShortcode("banner", async (content, title, backgroundSource, backgroundAlt) => {
|
||||
const backgroundMetadata = await Image(backgroundSource, {
|
||||
widths: [1200, 1980, 4000],
|
||||
formats: ["avif", "webp", "jpeg"],
|
||||
urlPath: "/assets/img",
|
||||
outputDir: "./_site/assets/img",
|
||||
});
|
||||
const backgroundHTML = Image.generateHTML(backgroundMetadata, {
|
||||
alt: backgroundAlt,
|
||||
sizes: "100vw",
|
||||
loading: "lazy",
|
||||
decoding: "async",
|
||||
whitespaceMode: "inline",
|
||||
});
|
||||
|
||||
return `
|
||||
<div class="page-banner">
|
||||
<div class="background">${backgroundHTML}</div>
|
||||
<div class="content">
|
||||
<div class="title">${title}</div>
|
||||
<div>
|
||||
${content}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
});
|
||||
|
||||
//
|
||||
// Templating
|
||||
//
|
||||
|
||||
eleventyConfig.addLayoutAlias("page", "layouts/page.njk");
|
||||
eleventyConfig.addLayoutAlias("post", "layouts/post.njk");
|
||||
|
||||
let markdownLibrary = markdownIt({
|
||||
html: true,
|
||||
breaks: true,
|
||||
linkify: true
|
||||
});
|
||||
eleventyConfig.setLibrary("md", markdownLibrary);
|
||||
|
||||
//
|
||||
// Build settings
|
||||
//
|
||||
|
||||
eleventyConfig.addPassthroughCopy("assets");
|
||||
|
||||
eleventyConfig.setBrowserSyncConfig({
|
||||
callbacks: {
|
||||
ready: function(err, browserSync) {
|
||||
const content_404 = fs.readFileSync('_site/404.html');
|
||||
|
||||
browserSync.addMiddleware("*", (req, res) => {
|
||||
// Provides the 404 content without redirect.
|
||||
res.writeHead(404, {"Content-Type": "text/html; charset=UTF-8"});
|
||||
res.write(content_404);
|
||||
res.end();
|
||||
});
|
||||
},
|
||||
},
|
||||
ui: false,
|
||||
ghostMode: false
|
||||
});
|
||||
|
||||
//
|
||||
// Other settings
|
||||
//
|
||||
|
||||
return {
|
||||
templateFormats: [
|
||||
"md",
|
||||
"njk",
|
||||
"html",
|
||||
"liquid"
|
||||
],
|
||||
|
||||
markdownTemplateEngine: "njk",
|
||||
htmlTemplateEngine: "njk",
|
||||
dataTemplateEngine: false,
|
||||
};
|
||||
};
|
||||
2
.eleventyignore
Normal file
2
.eleventyignore
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
README.md
|
||||
assets/fonts/OFL.txt
|
||||
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
node_modules/
|
||||
|
||||
# Eleventy build output
|
||||
/assets/css/
|
||||
/_site/
|
||||
|
||||
# Editor settings
|
||||
.vscode/
|
||||
.idea/
|
||||
1
.nvmrc
Normal file
1
.nvmrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
12
|
||||
14
.travis.yml
Normal file
14
.travis.yml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
language: node_js
|
||||
node_js:
|
||||
- 12
|
||||
before_script:
|
||||
- npm install @11ty/eleventy -g
|
||||
script: eleventy --pathprefix="/eleventy-base-blog/"
|
||||
deploy:
|
||||
local-dir: _site
|
||||
provider: pages
|
||||
skip-cleanup: true
|
||||
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
|
||||
keep-history: true
|
||||
on:
|
||||
branch: master
|
||||
6
404.md
Normal file
6
404.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: layouts/home.njk
|
||||
permalink: 404.html
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
# Diese Seite wurde nicht gefunden.
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2018 Zach Leatherman @zachleat
|
||||
|
||||
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.
|
||||
1
README.md
Normal file
1
README.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
# Angestöpselt Homepage
|
||||
25
_data/metadata.json
Normal file
25
_data/metadata.json
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"title": "Angestöpselt",
|
||||
"url": "https://www.angestoepselt.de/",
|
||||
"language": "de",
|
||||
"description": "Verein für Digitalkompetenz",
|
||||
"feed": {
|
||||
"subtitle": "Verein für Digitalkompetenz",
|
||||
"filename": "feed.xml",
|
||||
"path": "/feed/feed.xml",
|
||||
"id": "https://www.angestoepselt.de/"
|
||||
},
|
||||
"jsonfeed": {
|
||||
"path": "/feed/feed.json",
|
||||
"url": "https://www.angestoepselt.de/feed/feed.json"
|
||||
},
|
||||
"author": {
|
||||
"name": "Angestöpselt e. V.",
|
||||
"email": "info@angestoepselt.de",
|
||||
"url": "https://www.angestoepselt.de/",
|
||||
"address": [
|
||||
"Zeller Straße 29/31",
|
||||
"97082 Würzburg"
|
||||
]
|
||||
}
|
||||
}
|
||||
72
_includes/layouts/base.njk
Normal file
72
_includes/layouts/base.njk
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
<!doctype html>
|
||||
<html lang="{{ metadata.language }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
|
||||
<title>{{ title or metadata.title }}</title>
|
||||
<meta name="description" content="{{ description or metadata.description }}">
|
||||
|
||||
<link rel="stylesheet" href="{{ '/assets/css/main.css' | url }}">
|
||||
<link rel="alternate" href="{{ metadata.feed.path | url }}" type="application/atom+xml" title="{{ metadata.title }}">
|
||||
<link rel="alternate" href="{{ metadata.jsonfeed.path | url }}" type="application/json" title="{{ metadata.title }}">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<header id="navigation" class="site-header">
|
||||
<a class="site-logo" href="{{ '/' | url }}">{{ metadata.title }}</a>
|
||||
|
||||
<a class="navigation-toggle show" href="#navigation">Menü</a>
|
||||
<a class="navigation-toggle hide" href="#">Schließen</a>
|
||||
|
||||
<nav class="site-navigation">
|
||||
<ul>
|
||||
{% for entry in collections.topNavigation | eleventyNavigation %}
|
||||
<li{% if entry.url == page.url %} class="active"{% endif %}>
|
||||
<a href="{{ entry.url }}">
|
||||
{{ entry.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
</header>
|
||||
|
||||
<main id="content" {% if templateClass %} class="{{ templateClass }}"{% endif %}>
|
||||
{{ content | safe }}
|
||||
</main>
|
||||
|
||||
<footer class="page-section footer">
|
||||
<div class="page-content site-footer">
|
||||
<div>
|
||||
<p>
|
||||
{{ metadata.author.name }}
|
||||
{% for line in (metadata.author.address or []) %}
|
||||
<br />
|
||||
{{ line }}
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p>
|
||||
{{ metadata.author.email }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<nav class="site-navigation">
|
||||
<ul>
|
||||
{% for entry in collections.bottomNavigation | eleventyNavigation %}
|
||||
<li{% if entry.url == page.url %} class="active"{% endif %}>
|
||||
<a href="{{ entry.url }}">
|
||||
{{ entry.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
4
_includes/layouts/home.njk
Normal file
4
_includes/layouts/home.njk
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
layout: layouts/base.njk
|
||||
---
|
||||
{{ content | safe }}
|
||||
6
_includes/layouts/page.njk
Normal file
6
_includes/layouts/page.njk
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
layout: layouts/base.njk
|
||||
---
|
||||
<div class="page-content">
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
23
_includes/layouts/post.njk
Normal file
23
_includes/layouts/post.njk
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
layout: layouts/base.njk
|
||||
templateClass: tmpl-post
|
||||
---
|
||||
<h1>{{ title }}</h1>
|
||||
|
||||
<time datetime="{{ page.date | htmlDateString }}">{{ page.date | readableDate }}</time>
|
||||
{%- for tag in tags | filterTagList -%}
|
||||
{%- set tagUrl %}/tags/{{ tag | slug }}/{% endset -%}
|
||||
<a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a>
|
||||
{%- endfor %}
|
||||
|
||||
{{ content | safe }}
|
||||
|
||||
{%- set nextPost = collections.posts | getNextCollectionItem(page) %}
|
||||
{%- set previousPost = collections.posts | getPreviousCollectionItem(page) %}
|
||||
{%- if nextPost or previousPost %}
|
||||
<hr>
|
||||
<ul>
|
||||
{%- if nextPost %}<li>Next: <a href="{{ nextPost.url | url }}">{{ nextPost.data.title }}</a></li>{% endif %}
|
||||
{%- if previousPost %}<li>Previous: <a href="{{ previousPost.url | url }}">{{ previousPost.data.title }}</a></li>{% endif %}
|
||||
</ul>
|
||||
{%- endif %}
|
||||
BIN
assets/fonts/Comfortaa-Bold.ttf
Normal file
BIN
assets/fonts/Comfortaa-Bold.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Comfortaa-Light.ttf
Normal file
BIN
assets/fonts/Comfortaa-Light.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Comfortaa-Medium.ttf
Normal file
BIN
assets/fonts/Comfortaa-Medium.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Comfortaa-Regular.ttf
Normal file
BIN
assets/fonts/Comfortaa-Regular.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Comfortaa-SemiBold.ttf
Normal file
BIN
assets/fonts/Comfortaa-SemiBold.ttf
Normal file
Binary file not shown.
BIN
assets/fonts/Comfortaa-VariableFont_wght.ttf
Normal file
BIN
assets/fonts/Comfortaa-VariableFont_wght.ttf
Normal file
Binary file not shown.
93
assets/fonts/OFL.txt
Normal file
93
assets/fonts/OFL.txt
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
Copyright 2011 The Comfortaa Project Authors (https://github.com/alexeiva/comfortaa), with Reserved Font Name "Comfortaa".
|
||||
|
||||
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
||||
This license is copied below, and is also available with a FAQ at:
|
||||
http://scripts.sil.org/OFL
|
||||
|
||||
|
||||
-----------------------------------------------------------
|
||||
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
||||
-----------------------------------------------------------
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
29
feed/feed.njk
Executable file
29
feed/feed.njk
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
# Metadata comes from _data/metadata.json
|
||||
permalink: "{{ metadata.feed.path }}"
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<feed xmlns="http://www.w3.org/2005/Atom">
|
||||
<title>{{ metadata.title }}</title>
|
||||
<subtitle>{{ metadata.feed.subtitle }}</subtitle>
|
||||
{% set absoluteUrl %}{{ metadata.feed.path | url | absoluteUrl(metadata.url) }}{% endset %}
|
||||
<link href="{{ absoluteUrl }}" rel="self"/>
|
||||
<link href="{{ metadata.url }}"/>
|
||||
<updated>{{ collections.posts | rssLastUpdatedDate }}</updated>
|
||||
<id>{{ metadata.feed.id }}</id>
|
||||
<author>
|
||||
<name>{{ metadata.author.name }}</name>
|
||||
<email>{{ metadata.author.email }}</email>
|
||||
</author>
|
||||
{%- for post in collections.posts | reverse %}
|
||||
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset %}
|
||||
<entry>
|
||||
<title>{{ post.data.title }}</title>
|
||||
<link href="{{ absolutePostUrl }}"/>
|
||||
<updated>{{ post.date | rssDate }}</updated>
|
||||
<id>{{ absolutePostUrl }}</id>
|
||||
<content type="html">{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</content>
|
||||
</entry>
|
||||
{%- endfor %}
|
||||
</feed>
|
||||
6
feed/htaccess.njk
Normal file
6
feed/htaccess.njk
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
permalink: feed/.htaccess
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
# For Apache, to show `{{ metadata.feed.filename }}` when browsing to directory /feed/ (hide the file!)
|
||||
DirectoryIndex {{ metadata.feed.filename }}
|
||||
32
feed/json.njk
Normal file
32
feed/json.njk
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
# Metadata comes from _data/metadata.json
|
||||
permalink: "{{ metadata.jsonfeed.path }}"
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
{
|
||||
"version": "https://jsonfeed.org/version/1.1",
|
||||
"title": "{{ metadata.title }}",
|
||||
"language": "{{ metadata.language }}",
|
||||
"home_page_url": "{{ metadata.url }}",
|
||||
"feed_url": "{{ metadata.jsonfeed.url }}",
|
||||
"description": "{{ metadata.description }}",
|
||||
"author": {
|
||||
"name": "{{ metadata.author.name }}",
|
||||
"url": "{{ metadata.author.url }}"
|
||||
},
|
||||
"items": [
|
||||
{%- for post in collections.posts | reverse %}
|
||||
{%- set absolutePostUrl %}{{ post.url | url | absoluteUrl(metadata.url) }}{% endset -%}
|
||||
{
|
||||
"id": "{{ absolutePostUrl }}",
|
||||
"url": "{{ absolutePostUrl }}",
|
||||
"title": "{{ post.data.title }}",
|
||||
"content_html": {% if post.templateContent %}{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) | dump | safe }}{% else %}""{% endif %},
|
||||
"date_published": "{{ post.date | rssDate }}"
|
||||
}
|
||||
{%- if not loop.last -%}
|
||||
,
|
||||
{%- endif -%}
|
||||
{%- endfor %}
|
||||
]
|
||||
}
|
||||
BIN
images/home-banner.jpg
Normal file
BIN
images/home-banner.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.1 MiB |
42
impressum.md
Normal file
42
impressum.md
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
---
|
||||
layout: page
|
||||
tags:
|
||||
- legal
|
||||
eleventyNavigation:
|
||||
key: Impressum
|
||||
order: 10
|
||||
---
|
||||
# Impressum
|
||||
|
||||
## Angaben gemäß § 5 TMG:
|
||||
|
||||
Angestöpselt e.V.
|
||||
Zeller Straße 29/31
|
||||
97082 Würzburg
|
||||
|
||||
Vertreten durch: Lukas Seeber, Matthias Hemmerich und Tobias Benra
|
||||
|
||||
### Kontakt
|
||||
|
||||
Telefon: [0931 32091494](tel:+4993132091494)
|
||||
E-Mail: [info@angestoepselt.de](mailto:info@angestoepselt.de)
|
||||
|
||||
## Registereintrag
|
||||
|
||||
Eintragung im Vereinsregister. Registergericht: Amtsgericht Würzburg Registernummer: VR 200705
|
||||
|
||||
Die Europäische Kommission stellt eine Plattform zur Online-Streitbeilegung (OS) bereit: <http://ec.europa.eu/consumers/odr> Unsere E-Mail-Adresse finden Sie oben im Impressum. Wir sind nicht bereit oder verpflichtet, an Streitbeilegungsverfahren vor einer Verbraucherschlichtungsstelle teilzunehmen.
|
||||
|
||||
## Haftung für Inhalte
|
||||
|
||||
Als Diensteanbieter sind wir gemäß § 7 Abs.1 TMG für eigene Inhalte auf diesen Seiten nach den allgemeinen Gesetzen verantwortlich. Nach § 8 bis 10 TMG sind wir als Diensteanbieter jedoch nicht verpflichtet, übermittelte oder gespeicherte fremde Informationen zu überwachen oder nach Umständen zu forschen, die auf eine rechtswidrige Tätigkeit hinweisen. Verpflichtungen zur Entfernung oder Sperrung der Nutzung von Informationen nach den allgemeinen Gesetzen bleiben hiervon unberührt. Eine diesbezügliche Haftung ist jedoch erst ab dem Zeitpunkt der Kenntnis einer konkreten Rechtsverletzung möglich. Bei Bekanntwerden von entsprechenden Rechtsverletzungen werden wir diese Inhalte umgehend entfernen.
|
||||
|
||||
## Haftung für Links
|
||||
|
||||
Unser Angebot enthält Links zu externen Webseiten Dritter, auf deren Inhalte wir keinen Einfluss haben. Deshalb können wir für diese fremden Inhalte auch keine Gewähr übernehmen. Für die Inhalte der verlinkten Seiten ist stets der jeweilige Anbieter oder Betreiber der Seiten verantwortlich. Die verlinkten Seiten wurden zum Zeitpunkt der Verlinkung auf mögliche Rechtsverstöße überprüft. Rechtswidrige Inhalte waren zum Zeitpunkt der Verlinkung nicht erkennbar. Eine permanente inhaltliche Kontrolle der verlinkten Seiten ist jedoch ohne konkrete Anhaltspunkte einer Rechtsverletzung nicht zumutbar. Bei Bekanntwerden von Rechtsverletzungen werden wir derartige Links umgehend entfernen.
|
||||
|
||||
## Urheberrecht
|
||||
|
||||
Die durch die Seitenbetreiber erstellten Inhalte und Werke auf diesen Seiten unterliegen dem deutschen Urheberrecht. Die Vervielfältigung, Bearbeitung, Verbreitung und jede Art der Verwertung außerhalb der Grenzen des Urheberrechtes bedürfen der schriftlichen Zustimmung des jeweiligen Autors bzw. Erstellers. Downloads und Kopien dieser Seite sind nur für den privaten, nicht kommerziellen Gebrauch gestattet. Soweit die Inhalte auf dieser Seite nicht vom Betreiber erstellt wurden, werden die Urheberrechte Dritter beachtet. Insbesondere werden Inhalte Dritter als solche gekennzeichnet. Sollten Sie trotzdem auf eine Urheberrechtsverletzung aufmerksam werden, bitten wir um einen entsprechenden Hinweis. Bei Bekanntwerden von Rechtsverletzungen werden wir derartige Inhalte umgehend entfernen.
|
||||
|
||||
Quelle: <https://www.e-recht24.de>
|
||||
51
index.md
Normal file
51
index.md
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
layout: layouts/home.njk
|
||||
eleventyNavigation:
|
||||
key: Startseite
|
||||
order: 1
|
||||
---
|
||||
{% banner "Angestöpselt", "images/home-banner.jpg", "Kinder und Jugendliche verfolgen der Präsentation eines 3D-Druckers" %}
|
||||
"Wir bieten Bedürftigen Zugang in die digitale Welt"
|
||||
{% endbanner %}
|
||||
|
||||
{% section %}
|
||||
|
||||
## Projekte
|
||||
|
||||
{% tabs %}
|
||||
{% tab "Computerspende" %}
|
||||
|
||||
### Computerspende
|
||||
|
||||
Velit voluptas cumque nemo. Adipisci voluptas voluptas quia consequuntur facere ut. Sint hic aut veritatis est quis delectus aut accusantium. Quam aut repellendus officiis.
|
||||
|
||||
Delectus laboriosam voluptatem itaque. Quas ut ducimus aut. Minima dignissimos unde iusto. Mollitia voluptatem magni quaerat ratione dolores architecto ut assumenda.
|
||||
|
||||
{% endtab %}
|
||||
{% tab "Tinkerfestival" %}
|
||||
|
||||
### Tinkerfestival
|
||||
|
||||
Et dolor omnis hic eligendi cumque. Qui sapiente dolorum autem sit rerum eveniet mollitia aut. Vitae magnam enim odio esse quia. Voluptas velit et rerum quia aliquid. Sed quia rerum minima non tempora cum.
|
||||
|
||||
Et explicabo assumenda facilis aliquam non. Iure placeat qui quia quo. Quia eaque rerum dolorem cum esse. Iure voluptates qui at. Id quis dicta nostrum facere quo. Voluptatem et voluptate molestiae ab sunt ipsum.
|
||||
|
||||
{% endtab %}
|
||||
{% tab "CoderDojo" %}
|
||||
|
||||
### CoderDojo
|
||||
|
||||
Ad eveniet officia unde eligendi velit voluptas. Nemo molestias et ullam alias qui. Explicabo dolores et mollitia consectetur. Magnam sunt mollitia officia. Atque optio deserunt omnis sed.
|
||||
|
||||
{% endtab %}
|
||||
{% endtabs %}
|
||||
{% endsection %}
|
||||
|
||||
|
||||
{% section true %}
|
||||
|
||||
## Über uns
|
||||
|
||||
Angestöpselt e.V. wurde 2011 von Steffen Hock und Christoph Fischer nach dem Vorbild der Computerspende Hamburg gegründet. Was klein im Keller von Steffen Hock und mit Computerausgaben aus dem Kofferraum begann, fiel auf fruchtbaren Boden, so dass schon bald ein Umzug in eigene Räumlichkeiten notwendig wurde. Als 2015 viele Menschen auch in Würzburg Zuflucht suchten, stieg die Nachfrage enorm an und wir hatten alle Hände voll zu tun, möglichst vielen Menschen einen eigenen Computer für die unterschiedlichsten Bedürfnisse (Kommunikation mit der Familie im Ausland, Sprachkurse, Schulbesuch,…) zur Verfügung zu stellen. Die Idee fand ein reges Medienecho und erlangte schon bald über Würzburg hinaus an Bekanntheit.
|
||||
|
||||
{% endsection %}
|
||||
6
neuigkeiten/firstpost.md
Normal file
6
neuigkeiten/firstpost.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: Erster Post
|
||||
date: 2021-01-01
|
||||
layout: post
|
||||
---
|
||||
Das ist ein erster Post. Es kommen noch viele mehr.
|
||||
5
neuigkeiten/neuigkeiten.json
Normal file
5
neuigkeiten/neuigkeiten.json
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"tags": [
|
||||
"posts"
|
||||
]
|
||||
}
|
||||
8940
package-lock.json
generated
Normal file
8940
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
24
package.json
Normal file
24
package.json
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"name": "angestoepselt-site",
|
||||
"version": "0.1.0",
|
||||
"description": "Angestöpselt Homepage",
|
||||
"scripts": {
|
||||
"build:site": "eleventy",
|
||||
"build:styles": "sass styles/main.scss:assets/css/main.css",
|
||||
"build": "eleventy",
|
||||
"dev:site": "eleventy --serve",
|
||||
"dev:styles": "npm run build:styles -- --watch"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@11ty/eleventy": "^0.12.1",
|
||||
"@11ty/eleventy-img": "^0.9.0",
|
||||
"@11ty/eleventy-navigation": "^0.1.6",
|
||||
"@11ty/eleventy-plugin-rss": "^1.1.1",
|
||||
"@11ty/eleventy-plugin-syntaxhighlight": "^3.1.0",
|
||||
"luxon": "^1.26.0",
|
||||
"markdown-it": "^12.0.4",
|
||||
"markdown-it-anchor": "^7.1.0",
|
||||
"sass": "^1.35.1"
|
||||
}
|
||||
}
|
||||
14
sitemap.xml.njk
Normal file
14
sitemap.xml.njk
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
permalink: /sitemap.xml
|
||||
eleventyExcludeFromCollections: true
|
||||
---
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
{%- for page in collections.all %}
|
||||
{% set absoluteUrl %}{{ page.url | url | absoluteUrl(metadata.url) }}{% endset %}
|
||||
<url>
|
||||
<loc>{{ absoluteUrl }}</loc>
|
||||
<lastmod>{{ page.date | htmlDateString }}</lastmod>
|
||||
</url>
|
||||
{%- endfor %}
|
||||
</urlset>
|
||||
44
styles/_base.scss
Normal file
44
styles/_base.scss
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@use 'colors';
|
||||
@use 'layout';
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
color: colors.$main-text;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: layout.$normal-gap 0 layout.$large-gap 0;
|
||||
font-size: 2.2rem;
|
||||
line-height: 4rem;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 8rem;
|
||||
height: 0.3rem;
|
||||
border-radius: 0.5rem;
|
||||
background-color: colors.$blue-800;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: layout.$normal-gap 0;
|
||||
font-size: 1.6rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
|
||||
section > h2:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: layout.$normal-gap 0;
|
||||
}
|
||||
|
||||
a {
|
||||
color: colors.$main-text;
|
||||
|
||||
&:hover {
|
||||
color: colors.$blue-800;
|
||||
}
|
||||
}
|
||||
25
styles/_colors.scss
Normal file
25
styles/_colors.scss
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
$gray-900: #1d1d1d;
|
||||
$gray-800: #212121;
|
||||
$gray-600: #707070;
|
||||
$gray-300: #d6d6d6;
|
||||
$gray-50: #ffffff;
|
||||
|
||||
$teal-500: #4edcca;
|
||||
$teal-300: #caf4ef;
|
||||
|
||||
$blue-800: #484d6d;
|
||||
$blue-500: #08b2e3;
|
||||
|
||||
$yellow-600: #e8d823;
|
||||
$yellow-500: #ffff00;
|
||||
|
||||
$main-text: $gray-800;
|
||||
$main-background: $gray-50;
|
||||
|
||||
@mixin block-shadow {
|
||||
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
@mixin card-shadow {
|
||||
box-shadow: 0.4rem 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
323
styles/_components.scss
Normal file
323
styles/_components.scss
Normal file
|
|
@ -0,0 +1,323 @@
|
|||
@use 'colors';
|
||||
@use 'layout';
|
||||
@use 'typography';
|
||||
|
||||
// --------------------
|
||||
// Site-wide components
|
||||
// --------------------
|
||||
|
||||
// CSS-Only navigation toggle. This works by hiding the navigation on small
|
||||
// screens and only revealing it when the link has been clicked (and the URL
|
||||
// hash points to #navigation). On larger screens, it is always shown and the
|
||||
// toggle is hidden. This should probably be switched to a <details> element.
|
||||
#navigation {
|
||||
.site-navigation {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:target {
|
||||
.navigation-toggle {
|
||||
&.show {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.hide {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.site-navigation {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@media (screen and min-width: layout.$breakpoint) {
|
||||
.site-navigation {
|
||||
flex: 0;
|
||||
display: block;
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
margin-bottom: 0;
|
||||
|
||||
a {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navigation-toggle {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// The site logo text. More specific styles for this element are also present
|
||||
// underneath .site-header.
|
||||
.site-logo {
|
||||
margin: 0 layout.$normal-gap;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
|
||||
// The navigation is present twice on the site: once in the header and once in
|
||||
// the footer. The former also has some specific styles (see .site-header
|
||||
// below).
|
||||
.site-navigation {
|
||||
flex-basis: 100%;
|
||||
|
||||
ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
font-size: typography.$large-size;
|
||||
font-weight: typography.$emphasized-weight;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
}
|
||||
|
||||
.site-header {
|
||||
display: flex;
|
||||
// This container needs to wrap because when the navigation is open on small
|
||||
// screens, we want it to overflow into its own line.
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
background-color: colors.$main-background;
|
||||
@include colors.block-shadow;
|
||||
|
||||
a {
|
||||
padding: 0 layout.$normal-gap;
|
||||
line-height: 3rem;
|
||||
}
|
||||
|
||||
.site-logo {
|
||||
flex-grow: 1;
|
||||
padding: 0;
|
||||
font-size: typography.$large-size;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.site-navigation ul {
|
||||
margin: 0 0 layout.$small-gap 0;
|
||||
}
|
||||
|
||||
.navigation-toggle {
|
||||
display: block;
|
||||
padding: 0 layout.$normal-gap;
|
||||
|
||||
&.hide {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
gap: layout.$normal-gap;
|
||||
|
||||
.content {
|
||||
> p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ------------------------------
|
||||
// Components on individual pages
|
||||
// ------------------------------
|
||||
|
||||
// This is the wrapper element around individual .page-content blocks. The home
|
||||
// page contains a few of these sections, while normal pages only contain one.
|
||||
// Spanning the entire width, sections may have different themes.
|
||||
.page-section {
|
||||
padding: layout.$large-gap;
|
||||
|
||||
&.inverse {
|
||||
color: colors.$gray-50;
|
||||
background-color: colors.$blue-800;
|
||||
|
||||
h2:after {
|
||||
background-color: colors.$gray-50;
|
||||
}
|
||||
}
|
||||
|
||||
&.footer {
|
||||
background-color: colors.$teal-500;
|
||||
}
|
||||
}
|
||||
|
||||
.page-content {
|
||||
margin: 0 auto;
|
||||
max-width: 80rem;
|
||||
}
|
||||
|
||||
// Banners can be put at the top of a page to draw attention. A banner has
|
||||
// two children:
|
||||
// - A .background element which contains an image to render behind the text
|
||||
// - A .content which holds the actual text.
|
||||
.page-banner {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
position: relative;
|
||||
min-height: 60vh;
|
||||
|
||||
> .background {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
overflow: hidden;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
> .content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
position: relative;
|
||||
padding: layout.$normal-gap max(#{layout.$large-gap}, 15vw);
|
||||
|
||||
> div {
|
||||
display: inline-block;
|
||||
padding: layout.$small-gap layout.$normal-gap;
|
||||
font-size: typography.$large-size;
|
||||
background-color: colors.$yellow-600;
|
||||
|
||||
> p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
> .title {
|
||||
padding: 0 layout.$normal-gap;
|
||||
line-height: 5rem;
|
||||
font-size: typography.$huge-size;
|
||||
font-weight: typography.$emphasized-weight;
|
||||
background-color: colors.$teal-500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.boxes-module {
|
||||
padding: layout.$large-gap;
|
||||
background-color: colors.$teal-300;
|
||||
|
||||
.content,
|
||||
.box {
|
||||
&:not(:last-child) {
|
||||
margin-bottom: layout.$large-gap;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
> *:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.box {
|
||||
margin: layout.$large-gap 0;
|
||||
padding: layout.$large-gap;
|
||||
background: colors.$gray-50;
|
||||
@include colors.card-shadow;
|
||||
|
||||
h3 {
|
||||
margin: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: layout.$breakpoint) {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: layout.$large-gap;
|
||||
|
||||
.content,
|
||||
.box {
|
||||
grid-column: span 3;
|
||||
margin: 0;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.box:not(.first) {
|
||||
grid-column: span 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tabs-widget {
|
||||
display: flex;
|
||||
flex-direction: row-reverse;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
margin-top: #{-1 * layout.$large-gap};
|
||||
|
||||
> a {
|
||||
display: block;
|
||||
margin: 0 layout.$normal-gap;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
> .tab {
|
||||
flex: 100% 1;
|
||||
order: -1;
|
||||
display: none;
|
||||
margin: layout.$large-gap 0;
|
||||
padding: layout.$large-gap;
|
||||
background: colors.$gray-50;
|
||||
@include colors.card-shadow;
|
||||
|
||||
&:last-of-type,
|
||||
&:target {
|
||||
display: block;
|
||||
|
||||
+ a {
|
||||
font-weight: typography.$emphasized-weight;
|
||||
color: colors.$blue-800;
|
||||
}
|
||||
}
|
||||
|
||||
&:target {
|
||||
~ .tab {
|
||||
display: none;
|
||||
|
||||
+ a {
|
||||
font-weight: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
6
styles/_layout.scss
Normal file
6
styles/_layout.scss
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
$small-gap: 0.5rem;
|
||||
$normal-gap: 1.5rem;
|
||||
$large-gap: 2.5rem;
|
||||
$huge-gap: 6rem;
|
||||
|
||||
$breakpoint: 80rem;
|
||||
48
styles/_typography.scss
Normal file
48
styles/_typography.scss
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
$normal-weight: 400;
|
||||
$emphasized-weight: 600;
|
||||
|
||||
$normal-size: 1rem;
|
||||
$large-size: 1.5rem;
|
||||
$huge-size: 2.2rem;
|
||||
|
||||
$comfortaa-weights: (
|
||||
'Light': 300,
|
||||
'Regular': 400,
|
||||
'Medium': 500,
|
||||
'Semi-bold': 600,
|
||||
'Bold': 700,
|
||||
);
|
||||
|
||||
@each $name, $weight in $comfortaa-weights {
|
||||
@font-face {
|
||||
font-family: 'Comfortaa';
|
||||
font-style: normal;
|
||||
font-weight: $weight;
|
||||
font-display: swap;
|
||||
src: url('/assets/fonts/Comfortaa-#{$name}.ttf') format('truetype');
|
||||
}
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Comfortaa Variable';
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
src: url('/assets/fonts/Comfortaa-VariableFont_wght.ttf') format('truetype');
|
||||
}
|
||||
|
||||
html {
|
||||
$fallback-fonts: Roboto, Arial, sans-serif;
|
||||
|
||||
font-size: 100%;
|
||||
font-family: Comfortaa, $fallback-fonts;
|
||||
font-weight: $normal-weight;
|
||||
line-height: 1.5;
|
||||
|
||||
@supports (font-variation-settings: normal) {
|
||||
font-family: 'Comfortaa Variable', $fallback-fonts;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
3
styles/main.scss
Normal file
3
styles/main.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
@use 'typography';
|
||||
@use 'base';
|
||||
@use 'components';
|
||||
Loading…
Add table
Reference in a new issue