Compare commits

..

14 Commits

Author SHA1 Message Date
58170060a8 Scrap design
This is not a finished design, this just was a concept test for flexboxes
2018-08-01 12:35:30 +02:00
5cc50968c4 Some fixes and making it look nice 2018-07-05 18:19:19 +02:00
52639f70f1 Path Quickfix 2018-07-01 01:52:45 +02:00
2f6de7457f Improved code readability
Also added few features
2018-07-01 01:46:34 +02:00
ffaef4a72b Fixed bugs, improved content responsiveness etc. 2018-06-30 18:30:25 +02:00
3a49532357 Quick Fix Viewport 2018-06-27 16:41:50 +02:00
9b1f843da7 Revamp 2018-06-27 16:10:12 +02:00
0616d7946a Added sourceban and news 2018-06-14 09:39:18 +02:00
a9dbb24eb1 Last fix 2018-06-13 19:45:32 +02:00
a30b7b1fda Mobile improvement and fitting 2018-06-13 19:38:10 +02:00
09b037a5c7 Tweaked stuff around 2018-06-13 19:12:17 +02:00
9b299894df Added functionality
Added jQuery for performance improvement
Moved DOM elements by priority
Moved header below banner
Swapped sides for easier css adapting
2018-06-13 17:36:29 +02:00
6d1274354b Merge branch 'master' of https://github.com/casKd-dev/RXHomepage 2018-06-10 19:29:31 +02:00
Alex
5faec60ab6
Update README.md 2018-06-07 18:50:02 +02:00
25 changed files with 443 additions and 447 deletions

2
.gitattributes vendored
View File

@ -1,2 +0,0 @@
# Auto detect text files and perform LF normalization
* text=auto

3
.gitignore vendored
View File

@ -1,3 +0,0 @@
*.css
.*~
*.kate-swp

163
css/base.css Normal file
View File

@ -0,0 +1,163 @@
/*Base rules*/
* {
overflow: hidden;
}
html, body, .background, .page {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed;
}
h1, h2, h3 {
margin: 0;
}
a {
text-decoration: none;
}
a:visited {
color: #fff;
}
.column {
display: flex;
flex-direction: column;
}
.row {
display: flex;
flex-direction: row;
}
.scroll {
overflow-y: auto;
}
.center {
display: flex;
align-content: center;
justify-content: center;
margin: auto;
}
.flex-spacer {
flex: 1;
}
/*Page Specific*/
.header {
width: 100%;
height: 80px;
background-color: #ec3232;
box-shadow: 0px 10px 10px 10px rgba(0,0,0,0.75);
}
.links {
margin: auto 20px;
}
.links a {
margin: 0 5px;
line-height: 20px;
height: 20px;
}
.branding {
width: 200px;
margin: auto;
}
.navigation {
width: 100%;
height: 100%;
flex: 1;
}
.sidebar {
width: 200px;
height: 100%;
background-color: #222;
transition: cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s;
}
.notes {
opacity: 1;
margin: 20px 0;
text-align: center;
color: #eee;
transition: cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s;
}
.sidebar-text {
display: inline;
opacity: 1;
color: #fff;
margin: 0 10px;
}
.sidebar-icon, .sidebar-icon svg {
height: 40px;
width: 40px;
color: #fff;
}
.sidebar-icon {
margin: 5px;
}
.side-elem {
width: 100%;
height: 50px;
line-height: 50px;
text-align: center;
border-left: 2px solid #eee;
transition: cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}
.side-elem:hover {
width: 194px;
border-left: 6px solid #eee;
}
.content {
flex: 1;
padding: 24px 18px;
color: #eee;
background-color: #111;
}
/*Collapse Sidebar*/
@media screen and (max-width: 700px) {
.header {
flex-direction: column;
}
.links {
margin: auto;
justify-content: center;
}
.branding {
width: 100%;
margin: 10px auto;
}
.sidebar {
width: 50px;
}
.sidebar-text, .notes {
display: none;
opacity: 0;
flex: 0;
}
.side-elem, .side-elem:hover {
width: 50px;
border-left: 0;
}
}
@import url('https://use.fontawesome.com/releases/v5.1.1/css/all.css')

View File

@ -1,169 +0,0 @@
@bg: #111;
@fg-mono: contrast(@bg);
@fg-color: #e11;
// 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: 2em }
h2 { font-size: 1.5em }
h3 { font-size: 1.25em }
html {
background: @bg; /* Fallback */
background:
linear-gradient(
0deg,
@bg,
fade(overlay(@bg, contrast(@fg-mono)), 50%)),
repeating-linear-gradient(
45deg,
@fg-color 0% 2%,
transparent 2% 4%
),
repeating-linear-gradient(
-45deg,
@bg 0% 2%,
average(@bg, @fg-color) 2% 4%
);
color: @fg-mono;
font-size: 1em;
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;
scroll-behavior: smooth;
body {
width: inherit;
min-height: inherit;
min-width: inherit;
display: flex;
flex-direction: column;
.semihidden {
display: none;
opacity: 0;
}
.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;
}
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;
text-align: center;
font-size: 1.5em;
}
}
.body {
padding: 20px 10px;
text-align: center;
h3 {
margin-top: 10px;
}
}
.footer {
display: inherit;
flex-direction: row;
flex-wrap: wrap;
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: 1.25em;
}
}
}
}
}
}
@keyframes slideshow {
0%,35%,100% { opacity: 0 }
5%,30% { opacity: 1 }
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

View File

@ -1,93 +0,0 @@
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.

View File

@ -1,68 +0,0 @@
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.

View File

@ -1,110 +1,91 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RedXen Homepage</title>
<meta property="og:title" content="RedXen Homepage" />
<meta property="og:type" content="website" />
<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,games,server" />
<meta name="author" content="caskd" />
<meta name="theme-color" content="#e11" />
<link rel="icon" sizes="227x227" href="res/logo-small.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="css/main.css" rel="stylesheet">
</head>
<body>
<!--
Looking to help us achieve more?
Mail me or start contributing on http://git.redxen.eu/RedXen
-->
<!-- SPAM SPAM GO AWAY, COME AGAIN ANOTHER DAY -->
<a class="semihidden" href="mailto:honeypot@redxen.eu">SPTR, IGNORE</a>
<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="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">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="http://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="/telegram">Telegram Group</a> to have a chat.</p>
<h3>What are you hosting?</h3>
<ul>
<li>Mail: mail.redxen.eu</li>
<li>Git: <a href="http://git.redxen.eu">git.redxen.eu</a></li>
<li>Mumble: <a href="mumble://mumble.redxen.eu">mumble.redxen.eu</a>
</ul>
</div>
<div class="footer">
<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="http://git.redxen.eu">Gitea</a></li>
<li><a href="http://stats.redxen.eu">Grafana</a></li>
</ul>
</span>
</div>
<div class="column">
<span class="title">Social</span>
<span>
<ul>
<li><a href="/telegram">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="http://chaox.ro/">Ty3r0X</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="http://t.me/casKd_dev">Telegram</a></li>
</ul>
</span>
</div>
<div class="column">
<span class="title">Support</span>
<span>
<ul>
<li><a href="https://liberapay.com/RedXen/donate">LiberaPay</a></li>
<li><a href="monero:46FNfg4HHU6MqH8AGmohRbSukWojDBcpHKaSJdp5Efg4SVLgcs4GKYL2ZQ4Dr9NsXo626UVnV13JCj3jYwTRdp6iVcnBNiW&tx_description=rxdonation">Monero</a></li>
</ul>
</span>
</div>
</div>
</div>
</body>
</html>
<html>
<head>
<link rel="stylesheet" href="css/base.css">
<meta name="author" content="caskd">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<meta name="description" content="The homepage of the RedXen Community">
</head>
<body>
<div class="background">
</div>
<div class="page column">
<div class="header row">
<div class="branding center">
<h1>Branding</h1>
</div>
<div class="flex-spacer"></div>
<div class="links">
<a href="#">Link1</a>
<a href="#">Link2</a>
<a href="#">Link3</a>
<a href="#">Link4</a>
</div>
</div>
<div class="navigation row">
<div class="sidebar column scroll">
<a class="side-elem row" href="#">
<div class="sidebar-icon">
<svg><use xlink:href="#about"></use></svg>
</div>
<div class="sidebar-text">About</div>
</a>
<a class="side-elem row" href="#">
<div class="sidebar-icon">
<svg><use xlink:href="#discord"></use></svg>
</div>
<div class="sidebar-text">Discord</div>
</a>
<div class="flex-spacer"></div>
<div class="notes">
<b>Did you know...</b>
<p>That this is a test paragraph?</p>
</div>
</div>
<div class="content scroll">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis
natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque
eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium.
Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula,
porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus.
Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue.
Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus,
sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit
id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis
ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales
sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc, quis gravida magna mi a libero.
Fusce vulputate eleifend sapien. Vestibulum purus quam, scelerisque ut, mollis sed, nonummy id, metus. Nullam accumsan
lorem in dui. Cras ultricies mi eu turpis hendrerit fringilla. Vestibulum ante ipsum primis in faucibus orci luctus
et ultrices posuere cubilia Curae; In ac dui quis mi consectetuer lacinia. Nam pretium turpis et arcu. Duis arcu
tortor, suscipit eget, imperdiet nec, imperdiet iaculis, ipsum. Sed aliquam ultrices mauris. Integer ante arcu, accumsan
a, consectetuer eget, posuere ut, mauris. Praesent adipiscing. Phasellus ullamcorper ipsum rutrum nunc. Nunc nonummy
metus. Vestibulum volutpat pretium libero. Cras id dui. Aenean ut eros et nisl sagittis vestibulum. Nullam nulla
eros, ultricies sit amet, nonummy id, imperdiet feugiat, pede. Sed lectus. Donec mollis hendrerit risus. Phasellus
nec sem in justo pellentesque facilisis. Etiam imperdiet imperdiet orci. Nunc nec neque. Phasellus leo dolor, tempus
non, auctor et, hendrerit quis, nisi. Curabitur ligula sapien, tincidunt non, euismod vitae, posuere imperdiet, leo.
Maecenas malesuada. Praesent congue erat at massa. Sed cursus turpis vitae tortor. Donec posuere vulputate arcu.
Phasellus accumsan cursus velit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia
Curae; Sed aliquam, nisi quis porttitor congue, elit erat euismod orci, ac placerat dolor lectus quis orci. Phasellus
consectetuer vestibulum elit. Aenean tellus metus, bibendum sed, posuere ac, mattis non, nunc. Vestibulum fringilla
pede sit amet augue. In turpis. Pellentesque posuere. Praesent turpis. Aenean posuere, tortor sed cursus feugiat,
nunc augue blandit nunc, eu sollicitudin urna dolor sagittis lacus. Donec elit libero, sodales nec, volutpat a, suscipit
non, turpis. Nullam sagittis. Suspendisse pulvinar, augue ac venenatis condimentum, sem libero volutpat nibh, nec
pellentesque velit pede quis nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia
Curae; Fusce id purus. Ut varius tincidunt libero. Phasellus dolor. Maecenas vestibulum mollis diam. Pellentesque
ut neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. In dui magna,
posuere eget, vestibulum et, tempor auctor, justo. In ac felis quis tortor malesuada pretium. Pellentesque auctor
neque nec urna. Proin sapien ipsum, porta a, auctor quis, euismod ut, mi. Aenean viverra rhoncus pede. Pellentesque
habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Ut non enim eleifend felis pretium
feugiat. Vivamus quis mi. Phasellus a est. Phasellus magna. In hac habitasse platea dictumst. Curabitur at lacus
ac velit ornare lobortis. Curabitur a felis in nunc fringilla tristique.</div>
</div>
</div>
<script defer src="https://use.fontawesome.com/releases/v5.1.1/js/all.js" integrity="sha384-BtvRZcyfv4r0x/phJt9Y9HhnN5ur1Z+kZbKVgzVBAlQZX4jvAuImlIz+bG7TS00a"
crossorigin="anonymous"></script>
<i data-fa-symbol="discord" class="fab fa-discord"></i>
<i data-fa-symbol="about" class="fas fa-sitemap"></i>
</body>
</html>

16
pages/banner.html Normal file
View File

@ -0,0 +1,16 @@
<head>
<link rel="stylesheet" href="css/banner.css">
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Dosis" rel="stylesheet">
</head>
<body>
<div class="content">
<div class="banner">
<div class="banner-title">
<img src="https://redxen.eu/res/logo.png" alt="logo">
<h1>RedXen Gaming</h1>
</div>
</div>
</div>
</body>

173
pages/css/banner.css Normal file
View File

@ -0,0 +1,173 @@
/*Page Style*/
html {
margin: 0;
top: 0;
left: 0;
font-family: 'Oswald', sans-serif;
scroll-behavior: smooth;
/*Fixed Background*/
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(https://redxen.eu/res/bg.jpg);
background-attachment: fixed;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 300px;
/*Global Variables*/
--red: #d22;
--dark-gray: #111;
--gray: #151515;
--transparent-gray: #222E;
--quick-transition: cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
--long-transition: cubic-bezier(0.215, 0.610, 0.355, 1) 1s;
}
/* Content settings */
.content {
width: 100%;
min-height: 100%;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-content: center;
position: absolute;
flex-wrap: wrap;
flex-direction: column;
}
/* Banner settings */
.banner {
/*Sizing*/
width: 100%;
color: #fff;
overflow: hidden;
font-size: calc(32px + 0.5vw);
transition: var(--long-transition);
/*Flexbox content*/
justify-content: center;
align-items: center;
display: flex;
flex-wrap: wrap;
}
.banner h1 {
filter: drop-shadow(-5px 6px 3px rgba(0,0,0,.7));
}
.banner img {
width: calc(32px + 10vw);
filter: drop-shadow(-5px 6px 3px rgba(0,0,0,.7));
transition: var(--long-transition);
}
.banner-title {
align-self: center;
/*Flexbox content*/
justify-content: center;
align-items: center;
display: flex;
flex-wrap: wrap;
}
/* Text field settings */
.text {
display: flex;
flex-wrap: wrap;
width: 100%;
min-height: 100px;
background-color: var(--dark-gray);
color: #fff;
align-self: center;
transition: var(--quick-transition);
}
.text h2 {
text-align: center;
width: 100%;
margin: 3vw 0;
font-size: calc(32px + 2vw);
line-height: 1.4em;
background-color: var(--gray);
transition: var(--quick-transition);
color: var(--red);
}
.text-field {
width: 100%;
justify-content: center;
display: flex;
padding: 20px;
background-color: var(--gray);
margin: 0 auto;
flex-direction: row;
flex: 1;
font-size: calc(16px + 0.5vw);
flex-wrap: wrap;
align-items: flex-start;
text-align: center;
font-family: 'Dosis', sans-serif;
transition: var(--quick-transition);
}
.row {
width: 50%;
}
.text-field h3 {
font-size: calc(16px + 1vw);
margin: 0;
}
/*Category of descriptions*/
.category {
display: flex;
flex-wrap: nowrap;
width: 90%;
margin: 1.5vw auto;
overflow: hidden;
transition: var(--quick-transition);
color: #fff;
}
.category img {
width: 80%;
max-width: 900px;
padding: 5% 5% 5% 5%;
transition: var(--quick-transition);
}
/*Left Side settings*/
.left {
width: var(--image-size);
display: flex;
justify-content: flex-end;
align-items: center;
min-width: 200px;
transition: var(--quick-transition);
}
.swap .left {
order: 1;
justify-content: flex-start;
}
/*Right side settings*/
.right {
width: calc(100% - var(--image-size));
display: flex;
flex-direction: column;
padding: 5%;
justify-content: center;
text-align: left;
transition: var(--quick-transition);
}
.right h3 {
font-size: 3vw;
margin: 0;
}
.right p {
font-size: calc(16px + 0.75vw);
font-family: 'Open Sans Condensed', sans-serif;
}
.swap .right {
order: 0;
text-align: right;
}

BIN
res/bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

View File

@ -1,2 +0,0 @@
User-agent: *
Allow: /*.html$