Slight changes with test from Ecometer.

This commit is contained in:
Ad5001 2021-08-08 16:01:07 +02:00
parent 8b1403e2d2
commit 6574113551
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
7 changed files with 115 additions and 6 deletions

21
assets/scss/print.scss Normal file
View 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!"; }
}

View File

@ -8,7 +8,7 @@
{{ with index $data.apps $index }}
<div class="padding-container">
<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">
<h2>
<span class="flex app-name" style="float: left">

View File

@ -4,7 +4,7 @@
<div class="columns-container" style="display: flex" >
<div class="column col1 text-center vertical-center">
<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 }}
<div class="grid flex-center">&nbsp;
{{ partial "links.html" .Params.Links }}

View File

@ -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-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.ttf?54316140">
{{ $mainstyle := resources.Get "/scss/main.scss" | toCSS | minify }}
<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 }}
{{ $appsstyle := resources.Get "/scss/apps.scss" | toCSS | minify }}
<link rel="preload" href="{{ $appsstyle.Permalink }}" as="style" onload="this.rel='stylesheet'">
{{ end }}
<link rel="icon" href="/img/icon.png">
<link rel="icon" href="/img/logo.svg">
{{ hugo.Generator }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ .Page.Description }}">

View File

@ -4,7 +4,7 @@
{{ $currentPage := . }}
<div class="nav-mobile">
<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
</a>
@ -54,7 +54,7 @@
{{ range .Translations }}
<li class="background">
<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>
</li>
{{ end }}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.5 KiB

87
static/img/logo.svg Normal file
View 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