Add website
This commit is contained in:
@@ -11,6 +11,7 @@ workflow:
|
||||
stages:
|
||||
- check
|
||||
- build
|
||||
- deploy
|
||||
|
||||
.python:
|
||||
image: python:latest
|
||||
@@ -79,3 +80,20 @@ extension:
|
||||
paths:
|
||||
- build/nightthemeswitcher@romainvigier.fr.shell-extension.zip
|
||||
expire_in: 1 day
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
needs: []
|
||||
image: fedora:latest
|
||||
script:
|
||||
- cp -r website public
|
||||
- find public -type f -regex '.*\.\(|html\|css\|svg\|png\|woff\|woff2\)$' -exec gzip -f -k {} \;
|
||||
- find public -type f -regex '.*\.\(|html\|css\|svg\|png\|woff\|woff2\)$' -exec brotli -f -k {} \;
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
changes:
|
||||
- website/**/*
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
expire_in: 1 day
|
||||
|
||||
@@ -3,5 +3,6 @@
|
||||
- The source code is released under the terms of the [GNU General Public License 3.0 or later](./LICENSES/GPL-3.0-or-later.txt).
|
||||
- The original artwork and translations are released under the terms of the [Creative Commons Attribution-ShareAlike 4.0 International](./LICENSES/CC-BY-SA-4.0.txt).
|
||||
- The project uses ESLint rules from [GJS](https://gitlab.gnome.org/GNOME/gjs/) released under [MIT license](./LICENSES/MIT.txt) or [LGPL 2.0 or later](./LICENSES/LGPL-2.0-or-later.txt) and from [GNOME Shell](https://gitlab.gnome.org/GNOME/gnome-shell/) released under [GNU General Public License 2.0 or later](LICENSES/GPL-2.0-or-later.txt).
|
||||
- The website uses the [Cantarell](https://gitlab.gnome.org/GNOME/cantarell-fonts/) font, released under the terms of the [SIL Open Font License](./LICENSES/OFL-1.1.txt).
|
||||
|
||||
This project is [REUSE](https://reuse.software/)-compliant, each file's licensing information is annotated with [SPDX](https://spdx.dev/).
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
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.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 309 B |
@@ -0,0 +1,2 @@
|
||||
SPDX-FileCopyrightText: 2021 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
SPDX-FileCopyrightText: The Cantarell font contributors (https://gitlab.gnome.org/GNOME/cantarell-fonts)
|
||||
SPDX-License-Identifier: OFL-1.1
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
SPDX-FileCopyrightText: The Cantarell font contributors (https://gitlab.gnome.org/GNOME/cantarell-fonts)
|
||||
SPDX-License-Identifier: OFL-1.1
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
SPDX-FileCopyrightText: The Cantarell font contributors (https://gitlab.gnome.org/GNOME/cantarell-fonts)
|
||||
SPDX-License-Identifier: OFL-1.1
|
||||
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
SPDX-FileCopyrightText: The Cantarell font contributors (https://gitlab.gnome.org/GNOME/cantarell-fonts)
|
||||
SPDX-License-Identifier: OFL-1.1
|
||||
@@ -0,0 +1,8 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32">
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: CC-BY-SA-4.0
|
||||
-->
|
||||
<path d="M4 0C1.784 0 0 1.784 0 4v28h32V4c0-2.216-1.784-4-4-4zm22.951 3A2 2 0 0127 3a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 011.951-2zM3 10h26v19H3z"/>
|
||||
<path d="M13.643 13.734c-2.433 1.306-3.81 4.261-3.244 6.964.488 2.74 2.906 4.98 5.676 5.257 2.09.255 4.271-.581 5.652-2.17-2.73.504-5.667-.963-6.904-3.448-1.242-2.328-.863-5.383.91-7.337a6.547 6.547 0 00-2.09.734z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 568 B |
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Night Theme Switcher</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
<main class="content">
|
||||
<h1 class="title">Night Theme Switcher</h1>
|
||||
<p class="description">A GNOME Shell extension to make your desktop easy on the eye, day and night.</p>
|
||||
<a href="https://extensions.gnome.org/extension/2236/night-theme-switcher/" class="button">Download</a>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,227 @@
|
||||
/*
|
||||
SPDX-FileCopyrightText: 2020, 2021 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
*/
|
||||
|
||||
@font-face
|
||||
{
|
||||
font-family: 'Cantarell';
|
||||
src: url('fonts/Cantarell-Regular.woff2') format('woff2'),
|
||||
url('fonts/Cantarell-Regular.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face
|
||||
{
|
||||
font-family: 'Cantarell';
|
||||
src: url('fonts/Cantarell-Bold.woff2') format('woff2'),
|
||||
url('fonts/Cantarell-Bold.woff') format('woff');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
|
||||
html,
|
||||
body,
|
||||
h1,
|
||||
p
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
a
|
||||
{
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
||||
@keyframes background {
|
||||
from, 20% {
|
||||
background: #020417;
|
||||
}
|
||||
80%, to {
|
||||
background: #4995eb;
|
||||
}
|
||||
}
|
||||
|
||||
html
|
||||
{
|
||||
height: 100%;
|
||||
background: #020417;
|
||||
font: 1em/1em sans-serif;
|
||||
animation: background 20s linear infinite alternate;
|
||||
}
|
||||
|
||||
html::before,
|
||||
html::after
|
||||
{
|
||||
content: '';
|
||||
display: block;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
@keyframes background-night
|
||||
{
|
||||
from, 10%
|
||||
{
|
||||
background-position-y: bottom;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
30%
|
||||
{
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
60%, to
|
||||
{
|
||||
background-position-y: top;
|
||||
}
|
||||
}
|
||||
|
||||
html::before
|
||||
{
|
||||
z-index: -2;
|
||||
background: radial-gradient(ellipse 200% 100% at 50% 100%, #8d092c, #221a52 50%, #162171) center;
|
||||
background-size: 100% 200%;
|
||||
animation: background-night 20s linear infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes background-day
|
||||
{
|
||||
from, 35%
|
||||
{
|
||||
background-position-y: bottom;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
65%
|
||||
{
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
to
|
||||
{
|
||||
background-position-y: top;
|
||||
}
|
||||
}
|
||||
|
||||
html::after
|
||||
{
|
||||
z-index: -1;
|
||||
background: radial-gradient(ellipse 200% 100% at 50% 100%, #c79edd, #5a8ae4 50%, #4995eb) center;
|
||||
background-size: 100% 200%;
|
||||
animation: background-day 20s linear infinite alternate;
|
||||
}
|
||||
|
||||
body
|
||||
{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
@keyframes content {
|
||||
from, 50% {
|
||||
border-color: rgba(255, 255, 255, 0.1);
|
||||
background: #000;
|
||||
color: #fcfcfc;
|
||||
--test: #fcfcfc;
|
||||
}
|
||||
51%, to {
|
||||
border-color: rgba(0, 0, 0, 0.2);
|
||||
background: #fefefe;
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
|
||||
.content
|
||||
{
|
||||
max-width: 20em;
|
||||
padding: 4em 2em;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-radius: 0.5em;
|
||||
background: #000;
|
||||
color: #fcfcfc;
|
||||
font: 1rem/1.2em Cantarell, sans-serif;
|
||||
text-align: center;
|
||||
box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
|
||||
animation: content 20s linear infinite alternate;
|
||||
}
|
||||
|
||||
.title
|
||||
{
|
||||
margin: 0 0 2.5rem;
|
||||
font-weight: bold;
|
||||
font-size: 1.4em;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
@keyframes icon {
|
||||
from, 50% {
|
||||
background: #fcfcfc;
|
||||
}
|
||||
51%, to {
|
||||
background: #000;
|
||||
}
|
||||
}
|
||||
|
||||
.title::before
|
||||
{
|
||||
content: '';
|
||||
display: block;
|
||||
width: 4em;
|
||||
height: 4em;
|
||||
margin: 0 auto 2em;
|
||||
background: #fcfcfc;
|
||||
font-size: 1rem;
|
||||
-webkit-mask: url(icon.svg) no-repeat center;
|
||||
-webkit-mask-size: 100%;
|
||||
mask: url(icon.svg) no-repeat center;
|
||||
mask-size: 100%;
|
||||
animation: icon 20s linear infinite alternate;
|
||||
}
|
||||
|
||||
.description
|
||||
{
|
||||
margin-bottom: 2.5rem;
|
||||
font-size: 0.9em;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.button
|
||||
{
|
||||
display: inline-block;
|
||||
padding: 0.5em 1em;
|
||||
border: 0.15em solid;
|
||||
border-radius: 0.4em;
|
||||
font-size: 1.2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.button:hover,
|
||||
.button:focus
|
||||
{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 26em)
|
||||
{
|
||||
body
|
||||
{
|
||||
display: block;
|
||||
padding: 2em 2em;
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user