Update 2021.02.01

- Switched screenshots
- Updated links
- Changed about text
- Fixed some CSS
- Improved inheritance and stylesheet
This commit is contained in:
Alex D. 2021-02-01 15:17:53 +00:00
parent 2980f88e1b
commit ddda6742b1
13 changed files with 368 additions and 261 deletions

View File

@ -1,226 +1,166 @@
@bg: #000;
@text: contrast(@bg);
@crimson-red: #e11;
@font-size: 16px;
@bg: #111;
@fg-mono: contrast(@bg);
@fg-color: #e11;
@font-size: 20px;
// Override defaults and things a user agent shouldn't choose
* {
list-style-type: none;
margin: 0;
padding: 0;
padding-inline-start: 0;
margin-block-start: 0;
margin-block-end: 0;
margin-inline-start: 0;
margin-inline-end: 0;
box-sizing: border-box;
}
a {
color: @fg-mono;
transition: color 100ms ease-in;
&:hover { color: @fg-color }
}
img {
max-width: 100%;
max-height: 100%;
}
h1 { font-size: @font-size * 2 }
h2 { font-size: @font-size * 1.5 }
h3 { font-size: @font-size * 1.25 }
html {
background: #000; /* Fallback */
background: @bg; /* Fallback */
background:
linear-gradient(
0deg,
darken(@bg,10%),
fade(darken(@bg,10%), 50%)),
@bg,
fade(overlay(@bg, contrast(@fg-mono)), 50%)),
repeating-linear-gradient(
45deg,
darken(@crimson-red, 20%) 0% 2%,
@fg-color 0% 2%,
transparent 2% 4%
),
repeating-linear-gradient(
-45deg,
@bg 0% 2%,
darken(@bg, 20%) 2% 4%
average(@bg, @fg-color) 2% 4%
);
color: @text;
color: @fg-mono;
font-size: @font-size;
width: 100%;
min-width: 200px;
min-height: 200px;
@font-face {font-family: 'Oswald'; src: url('../fonts/Oswald/static/Oswald-Regular.ttf')}
font-family: 'Oswald' ,sans-serif;
font-family: 'Oswald', sans-serif;
scroll-behavior: smooth;
body {
margin: 0;
.content {
width: 100%;
.head {
width: 100%;
margin-bottom: 20px;
height: 100vh;
position: relative;
overflow: hidden;
.slideshow {
width: 100%;
height: 100%;
li {
&:nth-child(1) {
div {
animation-delay: -15s;
}
span {
animation-delay: 0s;
background-image: url(../res/slideshow/1.jpg);
}
}
&:nth-child(2) {
div {
animation-delay: -10s;
}
span {
animation-delay: -5s;
background-image: url(../res/slideshow/2.jpg);
}
}
&:nth-child(3) {
div {
animation-delay: -5s;
}
span {
animation-delay: -10s;
background-image: url(../res/slideshow/3.jpg);
}
}
&:nth-child(4) {
div {
animation-delay: 0s;
}
span {
animation-delay: -15s;
background-image: url(../res/slideshow/4.jpg);
}
}
div {
position: absolute;
bottom: 0;
right: 0;
padding: 10px;
z-index: 10;
animation-timing-function: ease-in-out;
animation-name: textslideshow;
animation-duration: 20s;
animation-iteration-count: infinite;
}
}
span {
color: transparent;
position: absolute;
top: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
animation-name: slideshow;
animation-iteration-count: infinite;
animation-duration: 20s;
animation-timing-function: ease-in-out;
}
}
}
div.main {
animation: none;
background: fadeout(@bg,20%);
width: inherit;
min-height: inherit;
min-width: inherit;
display: flex;
flex-direction: column;
.header {
min-height: inherit;
height: 100vh;
min-width: inherit;
width: inherit;
position: relative;
display: inherit;
.content, div.slideshow span {
min-width: inherit;
width: inherit;
height: inherit;
min-height: inherit;
position: absolute;
top: 0;
width: 100%;
height: 100%;
padding: 0;
z-index: 6;
opacity: 1;
display: flex;
text-align: center;
}
div.slideshow {
z-index: 0;
min-width: inherit;
width: inherit;
height: inherit;
min-height: inherit;
span {
&:nth-child(1) {
background-image: url(../res/slideshow/1.jpg);
opacity: 1;
animation-delay: 0s;
}
&:nth-child(2) {
background-image: url(../res/slideshow/2.jpg);
animation-delay: 5s;
}
&:nth-child(3) {
background-image: url(../res/slideshow/3.jpg);
animation-delay: 10s;
}
&:nth-child(4) {
background-image: url(../res/slideshow/4.jpg);
animation-delay: 15s;
}
min-width: inherit;
width: inherit;
color: transparent;
opacity: 0;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
animation: slideshow 20s infinite;
animation-timing-function: ease-in-out;
}
}
.content {
z-index: 1;
display: inherit;
flex-direction: column;
align-items: center;
justify-content: center;
img {
animation-timing-function: ease-in-out;
animation-duration: 1s;
animation-name: slide-in-top;
width: 50%;
}
p {
font-size: 1.5em;
}
}
.about {
margin: 0 2.5%;
padding: 10px 0;
text-align: center;
font-size: 2em;
h3 {
margin: 20px 0 5px 0;
}
font-size: @font-size * 1.5;
}
}
}
.footer {
display: flex;
flex-direction: row;
justify-content: space-evenly;
align-items: flex-start;
text-align: center;
width: 100%;
overflow: hidden;
background: @bg;
border-top: contrast(@bg) 2px solid;
margin: 10px 0;
padding: 4px 10px 0px 10px;
box-sizing: border-box;
.column {
&.header {
justify-self: flex-start;
}
margin: 0 10px;
min-width: 100px;
}
}
}
@media only screen and (max-width: 800px) {
body {
.footer {
flex-direction: row;
align-items: center;
.body {
padding: 20px 10px;
text-align: center;
h3 {
margin-top: 10px;
}
}
.footer {
display: inherit;
flex-direction: row;
flex-wrap: wrap;
padding: 0;
.column {
width: 50%;
margin: 0;
&.header {
width: 100%;
justify-content: space-between;
background-color: overlay(@bg, contrast(@fg-mono));
padding-bottom: 5%;
border-top: 2px solid @fg-mono;
justify-content: center;
text-align: center;
.branding, .links .column {
padding: 10px;
}
.links {
display: inherit;
flex-direction: inherit;
flex-wrap: wrap;
flex-grow: 1;
.column {
flex-grow: 1;
display: inherit;
flex-direction: column;
.title {
font-size: @font-size * 1.25;
}
}
}
}
}
}
h1, h2, h3, p {
margin: 0;
}
a {
color: contrast(@bg);
transition: color 300ms;
&:hover {
color: @crimson-red;
}
&:not([href]) {
color: average(contrast(@bg), @bg);
}
}
ul {
list-style-type: none;
padding-inline-start: 0;
padding-inline-end: 0;
margin-block-start: 0;
margin-block-end: 0;
}
@keyframes slideshow {
5%,25% { opacity: 1 }
0%,35%,100% { opacity: 0 }
}
@keyframes textslideshow {
10%,25% { transform: translateX(0px); opacity: 1 }
30% { transform: translateX(-20px); opacity: 0 }
100%,0% { transform: translateX(20px); opacity: 0 }
}
@keyframes blink {
0%,20%,70%,100% { color: @text }
25%,50% { color: @crimson-red }
}
@keyframes slide-in-top {
0% { transform: translateY(-100px) }
100% { transform: translateY(0px) }
}
.attention {
animation: blink 5s infinite;
}
.hidden {
display: none;
0%,35%,100% { opacity: 0 }
5%,30% { opacity: 1 }
}

93
fonts/Oswald/OFL.txt Normal file
View File

@ -0,0 +1,93 @@
Copyright 2016 The Oswald Project Authors (https://github.com/googlefonts/OswaldFont)
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.

Binary file not shown.

68
fonts/Oswald/README.txt Normal file
View File

@ -0,0 +1,68 @@
Oswald Variable Font
====================
This download contains Oswald as both a variable font and static fonts.
Oswald is a variable font with this axis:
wght
This means all the styles are contained in a single file:
Oswald-VariableFont_wght.ttf
If your app fully supports variable fonts, you can now pick intermediate styles
that arent available as static fonts. Not all apps support variable fonts, and
in those cases you can use the static font files for Oswald:
static/Oswald-ExtraLight.ttf
static/Oswald-Light.ttf
static/Oswald-Regular.ttf
static/Oswald-Medium.ttf
static/Oswald-SemiBold.ttf
static/Oswald-Bold.ttf
Get started
-----------
1. Install the font files you want to use
2. Use your app's font picker to view the font family and all the
available styles
Learn more about variable fonts
-------------------------------
https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
https://variablefonts.typenetwork.com
https://medium.com/variable-fonts
In desktop apps
https://theblog.adobe.com/can-variable-fonts-illustrator-cc
https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
Online
https://developers.google.com/fonts/docs/getting_started
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
Installing fonts
MacOS: https://support.apple.com/en-us/HT201749
Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
Android Apps
https://developers.google.com/fonts/docs/android
https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
License
-------
Please read the full license text (OFL.txt) to understand the permissions,
restrictions and requirements for usage, redistribution, and modification.
You can use them freely in your products & projects - print or digital,
commercial or otherwise. However, you can't sell the fonts on their own.
This isn't legal advice, please consider consulting a lawyer and see the full
license for all details.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -5,10 +5,10 @@
<title>RedXen Homepage</title>
<meta property="og:title" content="RedXen Homepage" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://redxen.eu/res/logo-small.png" />
<meta property="og:image" content="res/logo-small.png" />
<meta property="og:description" content="The community that empowers gamers." />
<link rel="shortcut icon" href="/favicon.ico">
<meta name="keywords" content="rx,redxen,community,game,minecraft,games,server" />
<link rel="shortcut icon" href="favicon.ico">
<meta name="keywords" content="rx,redxen,community,game,games,server" />
<meta name="author" content="caskd" />
<meta name="theme-color" content="#e11" />
<link rel="icon" sizes="227x227" href="res/logo-small.png">
@ -18,78 +18,84 @@
<body>
<!--
Looking to help us achieve more?
Mail me at caskd@420blaze.it or contact me directly over on Telegram and we can discuss ideas.
Mail me at caskd@redxen.eu or start contributing on https://git.redxen.eu/RedXen
-->
<div class="content">
<div class="head">
<ul title="slideshow" class="slideshow">
<li><span></span><div><p>Night time survival experience</p></div></li>
<li><span></span><div><p>Defeating the Ender Dragon</p></div></li>
<li><span></span><div><p>The "Fishtank"</p></div></li>
<li><span></span><div><p>Themed shops</p></div></li>
</ul>
<div class="main">
<img src="res/logo.png">
<p>Having fun has never been so easy before.</p>
<p>Ready to <a class="attention" href="#about">start</a>?</p>
</div>
<div class="header">
<div class="content">
<img src="res/logo.png">
<p>Having fun has never been so easy before.</p>
<p>Ready to <a class="attention" href="#about">start</a>?</p>
</div>
<div class="about" id="about">
<h3>What is RedXen?</h3>
<p>RedXen is a hosting group and community that provide services for your entertainment.</p>
<h3>Why RedXen?</h3>
<p>Transparency and Freedom. Those 2 words are written in stone. We are committing to being as transparent as possible to everyone by serving <a href="https://en.wikipedia.org/wiki/Open-source_software">(F)OS software</a> wherever possible. We think that freedom of speech should be for everyone, no matter how "extreme" it might be. We allow all type of speech as long as it is not spam.</p>
<h3>Where do i join?</h3>
<p>There are a few places you might want to start. If you are looking for some games, our <a href="mumble://redxen.eu:64738">Mumble server</a> is a good start. You can communicate with ease with your buddies without limits and without worrying about management. Just join, make a channel and you are good to go!</p>
<p>However, if you are looking to help with hosting or development, our <a href="https://git.redxen.eu/RedXen">Gitea</a> instance is open for registrations. You can help us become better by submitting a issue or contributing yourself.</p>
<p>Finally, if you feel adventurous you might want to join our <a href="https://t.me/rxtelegram">Telegram Group</a> to have a chat.</p>
<h3>What games are you hosting?</h3>
<p>At the current moment, the following servers are available or planned:</p>
<ul>
<li>Minecraft: redxen.eu:25565</li>
<li>Terraria: redxen.eu:7777</li>
<li>Xonotic: (planned)</li>
</ul>
<div class="slideshow">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
<div class="body" id="about">
<h3>What is RedXen?</h3>
<p>RedXen is a hosting group and community that provide services for your entertainment.</p>
<h3>Why RedXen?</h3>
<p>Transparency, freedom and simplicity. We keep it short and to the point. We think that people should be free to enjoy whatever they want however they want and we commit to bring this dream as much as possible to reality.
<h3>Where do i join?</h3>
<p>There are a few places you might want to start. If you are looking for some games, our <a href="mumble://mumble.redxen.eu:64738">Mumble server</a> is a good start. You can communicate with ease with your buddies without limits and without worrying about management. Just join, make a channel and you are good to go!</p>
<p>However, if you are looking to help with development or suggest a change, our <a href="https://git.redxen.eu/RedXen">Gitea</a> instance is open for registrations. You can help us become better by submitting a issue or contributing yourself. We also provide git hosting but this is approval only at the moment to prevent spam.</p>
<p>Finally, if you feel adventurous you might want to join our <a href="https://t.me/rxtelegram">Telegram Group</a> to have a chat.</p>
<h3>What are you hosting?</h3>
<ul>
<li>Xonotic: xonotic.redxen.eu:26000</li>
<li>Mail: mail.redxen.eu</li>
<li>Git: <a href="http://git.redxen.eu">git.redxen.eu</a></li>
<li>Minecraft: currently down</li>
<li>Terraria: currently down</li>
</ul>
</div>
<div class="footer">
<span class="column header">
<h1>RedXen Community</h1>
<h2>The community that empowers gamers.</h2>
</span>
<span class="column">
<b>Links</b>
<ul>
<li><a title="Planned for the future.">News RSS</a></li>
<li><a href="https://git.redxen.eu/">Development</a></li>
<li><a href="https://stats.redxen.eu/">Status</a></li>
</ul>
</span>
<span class="column">
<b>Community</b>
<ul>
<li><a href="https://t.me/rxtelegram">Telegram</a></li>
<li><a href="mumble://redxen.eu:64738">Mumble</a></li>
<li><a href="https://social.redxen.eu">Pleroma</a></li>
</ul>
</span>
<span class="column">
<b>Privacy & Freedom</b>
<ul>
<li><a href="https://www.gnu.org/">GNU</a></li>
<li><a href="https://www.ietf.org/">IETF</a></li>
<li><a href="https://prism-break.org/">PRISM Break</a></li>
<li><a href="https://suckless.org/">suckless.org</a></li>
</ul>
</span>
<span class="column">
<b>Contact</b>
<ul>
<li><a href="mailto:caskd@redxen.eu">Mail</a></li>
<li><a href="https://social.redxen.eu/caskd">Pleroma</a></li>
<li><a href="https://t.me/casKd_dev">Telegram</a></li>
</ul>
</span>
<div class="branding">
<span class="title">
<h1>RedXen Community</h1>
<h2>The community that empowers gamers</h2>
</span>
</div>
<div class="links">
<div class="column">
<span class="title">Services</span>
<span>
<ul>
<li><a href="https://git.redxen.eu">Gitea</a></li>
<li><a href="https://stats.redxen.eu">Grafana</a></li>
</ul>
</span>
</div>
<div class="column">
<span class="title">Social</span>
<span>
<ul>
<li><a href="https://t.me/rxtelegram">Telegram</a></li>
<li><a href="mumble://mumble.redxen.eu">Mumble</a></li>
</ul>
</span>
</div>
<div class="column">
<span class="title">People</span>
<span>
<ul>
<li><a href="http://deavmi.assigned.network/">deavmi</a></li>
<li><a href="https://novaburst.tilde.team/">Novaburst</a></li>
</ul>
</span>
</div>
<div class="column">
<span class="title">Contact</span>
<span>
<ul>
<li><a href="mailto:caskd@redxen.eu">Mail</a></li>
<li><a href="https://t.me/casKd_dev">Telegram</a></li>
</ul>
</span>
</div>
</div>
</div>
</body>
</html>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 KiB

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB