Slight changes with test from Ecometer.
This commit is contained in:
parent
8b1403e2d2
commit
6574113551
7 changed files with 115 additions and 6 deletions
21
assets/scss/print.scss
Normal file
21
assets/scss/print.scss
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
/**
|
||||||
|
* Omegamma - Hugo theme for ad5001.eu and related websites.
|
||||||
|
* Copyright (C) 2021 Ad5001
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
@media only print {
|
||||||
|
body * { display: none !important; }
|
||||||
|
body:after { content: "Don't waste paper!"; }
|
||||||
|
}
|
|
@ -8,7 +8,7 @@
|
||||||
{{ with index $data.apps $index }}
|
{{ with index $data.apps $index }}
|
||||||
<div class="padding-container">
|
<div class="padding-container">
|
||||||
<div class="block-preview" style="background-image: url(/img/preview/{{ $index }}.webp);">
|
<div class="block-preview" style="background-image: url(/img/preview/{{ $index }}.webp);">
|
||||||
<a href="{{ $index }}" class="label-link" alt="{{ .name }}">
|
<a href="{{ $index }}/" class="label-link" alt="{{ .name }}">
|
||||||
<div class="label">
|
<div class="label">
|
||||||
<h2>
|
<h2>
|
||||||
<span class="flex app-name" style="float: left">
|
<span class="flex app-name" style="float: left">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div class="columns-container" style="display: flex" >
|
<div class="columns-container" style="display: flex" >
|
||||||
<div class="column col1 text-center vertical-center">
|
<div class="column col1 text-center vertical-center">
|
||||||
<br>
|
<br>
|
||||||
<h1 class="flex flex-center fill-width larger"><img src="/img/icon.png" class="icon-twice-text" alt="Ad5001's icon"/>Ad5001</h1>
|
<h1 class="flex flex-center fill-width larger"><img src="/img/logo.svg" class="icon-twice-text" alt="Ad5001's icon"/>Ad5001</h1>
|
||||||
{{ .Params.Description | markdownify }}
|
{{ .Params.Description | markdownify }}
|
||||||
<div class="grid flex-center">
|
<div class="grid flex-center">
|
||||||
{{ partial "links.html" .Params.Links }}
|
{{ partial "links.html" .Params.Links }}
|
||||||
|
|
|
@ -4,14 +4,15 @@
|
||||||
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Light.otf">
|
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Light.otf">
|
||||||
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Bold.otf">
|
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/metropolis/Metropolis-Bold.otf">
|
||||||
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/omegicons/omegicons.woff2?54316140">
|
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/omegicons/omegicons.woff2?54316140">
|
||||||
<link rel="preload" as="font" crossOrigin="anonymous" href="/fonts/omegicons/omegicons.ttf?54316140">
|
|
||||||
{{ $mainstyle := resources.Get "/scss/main.scss" | toCSS | minify }}
|
{{ $mainstyle := resources.Get "/scss/main.scss" | toCSS | minify }}
|
||||||
<link rel="preload" href="{{ $mainstyle.Permalink }}" as="style" onload="this.rel='stylesheet'">
|
<link rel="preload" href="{{ $mainstyle.Permalink }}" as="style" onload="this.rel='stylesheet'">
|
||||||
|
{{ $printstyle := resources.Get "/scss/print.scss" | toCSS | minify }}
|
||||||
|
<link rel="stylesheet" href="{{ $printstyle.Permalink }}" media="print">
|
||||||
{{ if .Site.Params.includeAppsStyle }}
|
{{ if .Site.Params.includeAppsStyle }}
|
||||||
{{ $appsstyle := resources.Get "/scss/apps.scss" | toCSS | minify }}
|
{{ $appsstyle := resources.Get "/scss/apps.scss" | toCSS | minify }}
|
||||||
<link rel="preload" href="{{ $appsstyle.Permalink }}" as="style" onload="this.rel='stylesheet'">
|
<link rel="preload" href="{{ $appsstyle.Permalink }}" as="style" onload="this.rel='stylesheet'">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<link rel="icon" href="/img/icon.png">
|
<link rel="icon" href="/img/logo.svg">
|
||||||
{{ hugo.Generator }}
|
{{ hugo.Generator }}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta name="description" content="{{ .Page.Description }}">
|
<meta name="description" content="{{ .Page.Description }}">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
{{ $currentPage := . }}
|
{{ $currentPage := . }}
|
||||||
<div class="nav-mobile">
|
<div class="nav-mobile">
|
||||||
<a class="navbar-brand" href="{{ .Site.Params.brandWebsite }}" role="button">
|
<a class="navbar-brand" href="{{ .Site.Params.brandWebsite }}" role="button">
|
||||||
<img src="/img/icon.png" loading=lazy class="icon-brand" alt="Ad5001's icon"/>
|
<img src="/img/logo.svg" loading=lazy class="icon-brand" alt="Ad5001's icon"/>
|
||||||
Ad5001
|
Ad5001
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@
|
||||||
{{ range .Translations }}
|
{{ range .Translations }}
|
||||||
<li class="background">
|
<li class="background">
|
||||||
<a href="{{ .Permalink }}" role="button">
|
<a href="{{ .Permalink }}" role="button">
|
||||||
<img src="/icons/flag/{{ .Language.Lang }}.svg" class="icon-as-text"/>{{ .Language.LanguageName }}
|
<img src="/icons/flag/{{ .Language.Lang }}.svg" class="icon-as-text" loading=lazy/>{{ .Language.LanguageName }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 7.5 KiB |
87
static/img/logo.svg
Normal file
87
static/img/logo.svg
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<svg
|
||||||
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:cc="http://creativecommons.org/ns#"
|
||||||
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||||
|
xmlns:svg="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||||
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||||
|
width="26.0px"
|
||||||
|
height="26.0px"
|
||||||
|
viewBox="0 0 26.0 26.0"
|
||||||
|
version="1.1"
|
||||||
|
id="SVGRoot"
|
||||||
|
sodipodi:docname="logo-over.svg"
|
||||||
|
inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
|
||||||
|
<defs
|
||||||
|
id="defs833">
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
id="linearGradient1433">
|
||||||
|
<stop
|
||||||
|
style="stop-color:#3cd368;stop-opacity:1"
|
||||||
|
offset="0"
|
||||||
|
id="stop1429" />
|
||||||
|
<stop
|
||||||
|
style="stop-color:#9efe93;stop-opacity:1"
|
||||||
|
offset="1"
|
||||||
|
id="stop1431" />
|
||||||
|
</linearGradient>
|
||||||
|
<linearGradient
|
||||||
|
inkscape:collect="always"
|
||||||
|
xlink:href="#linearGradient1433"
|
||||||
|
id="linearGradient1437"
|
||||||
|
x1="17"
|
||||||
|
y1="8"
|
||||||
|
x2="5"
|
||||||
|
y2="23"
|
||||||
|
gradientUnits="userSpaceOnUse" />
|
||||||
|
</defs>
|
||||||
|
<sodipodi:namedview
|
||||||
|
id="base"
|
||||||
|
pagecolor="#ffffff"
|
||||||
|
bordercolor="#666666"
|
||||||
|
borderopacity="1.0"
|
||||||
|
inkscape:pageopacity="0.0"
|
||||||
|
inkscape:pageshadow="2"
|
||||||
|
inkscape:zoom="11.313709"
|
||||||
|
inkscape:cx="22.502489"
|
||||||
|
inkscape:cy="19.742933"
|
||||||
|
inkscape:document-units="px"
|
||||||
|
inkscape:current-layer="layer1"
|
||||||
|
inkscape:document-rotation="0"
|
||||||
|
showgrid="true"
|
||||||
|
inkscape:window-width="1920"
|
||||||
|
inkscape:window-height="1011"
|
||||||
|
inkscape:window-x="0"
|
||||||
|
inkscape:window-y="0"
|
||||||
|
inkscape:window-maximized="1">
|
||||||
|
<inkscape:grid
|
||||||
|
type="xygrid"
|
||||||
|
id="grid1403" />
|
||||||
|
</sodipodi:namedview>
|
||||||
|
<metadata
|
||||||
|
id="metadata836">
|
||||||
|
<rdf:RDF>
|
||||||
|
<cc:Work
|
||||||
|
rdf:about="">
|
||||||
|
<dc:format>image/svg+xml</dc:format>
|
||||||
|
<dc:type
|
||||||
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||||
|
<dc:title></dc:title>
|
||||||
|
</cc:Work>
|
||||||
|
</rdf:RDF>
|
||||||
|
</metadata>
|
||||||
|
<g
|
||||||
|
inkscape:label="Calque 1"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1">
|
||||||
|
<path
|
||||||
|
id="rect1424"
|
||||||
|
style="fill:url(#linearGradient1437);fill-opacity:1;fill-rule:evenodd;stroke-width:1.88976"
|
||||||
|
d="m 13,3 9,12 -4,2 -4,-7 -3,10 -6,3 z"
|
||||||
|
sodipodi:nodetypes="ccccccc" />
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 2.4 KiB |
Loading…
Reference in a new issue