Compare commits

...

32 Commits

Author SHA1 Message Date
caskd dccb58d0d1 Fallback 2018-10-04 15:56:20 +02:00
caskd 5cf25a4271 Better spacing and make text unable to be selected 2018-10-04 15:41:28 +02:00
caskd 68f1045af6 Add halloween theme 2018-10-04 15:25:22 +02:00
caskd 034f731ca3 Keep up to date with avalaible services 2018-10-03 23:05:47 +02:00
caskd fce5f31b29 Merge branch 'dev' 2018-09-03 22:27:27 +02:00
caskd 24e3b95d66 Wrong name 2018-09-03 22:14:47 +02:00
caskd a8d5b89799 Rebranding and slight changes 2018-09-03 22:11:16 +02:00
caskd 9a9b63324a More customizing 2018-09-01 13:54:22 +02:00
Alex b843678f46
Merge pull request #5 from RXCommunity/dev
Merge to Master
2018-08-28 16:12:38 +02:00
caskd 1b573736db More fallbacks and support 2018-08-28 15:51:13 +02:00
caskd e19c0e4008 Background Fallback 2018-08-28 15:31:21 +02:00
Alex e89facb676
Merge pull request #3 from RXCommunity/dev
Merge into Master and live from development
2018-08-02 21:43:18 +02:00
caskd c6e55467de Small tweaks 2018-08-02 21:42:13 +02:00
caskd 95916f1b63 Make sure the content is over the background. 2018-08-02 12:54:09 +02:00
caskd 195c0ec175 Support for Older Browsers and other minor changes 2018-08-02 12:44:20 +02:00
Alex 5997d66ad2
Update README.md 2018-08-01 16:24:24 +02:00
Alex cc7f65eda7
Update README.md 2018-08-01 16:23:45 +02:00
Alex 61a84096d8
Merge pull request #2 from casKd-dev/v3
Merge current progress in master
2018-08-01 12:32:58 +02:00
caskd 0718336402 Keep git repo up to date 2018-08-01 12:30:57 +02:00
caskd 5cc50968c4 Some fixes and making it look nice 2018-07-05 18:19:19 +02:00
caskd 52639f70f1 Path Quickfix 2018-07-01 01:52:45 +02:00
caskd 2f6de7457f Improved code readability
Also added few features
2018-07-01 01:46:34 +02:00
caskd ffaef4a72b Fixed bugs, improved content responsiveness etc. 2018-06-30 18:30:25 +02:00
caskd 3a49532357 Quick Fix Viewport 2018-06-27 16:41:50 +02:00
caskd 9b1f843da7 Revamp 2018-06-27 16:10:12 +02:00
caskd 0616d7946a Added sourceban and news 2018-06-14 09:39:18 +02:00
caskd a9dbb24eb1 Last fix 2018-06-13 19:45:32 +02:00
caskd a30b7b1fda Mobile improvement and fitting 2018-06-13 19:38:10 +02:00
caskd 09b037a5c7 Tweaked stuff around 2018-06-13 19:12:17 +02:00
caskd 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
caskd 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
19 changed files with 730 additions and 380 deletions

View File

@ -1,11 +1,17 @@
# RedXen Homepage
## What is this?
The portal for the community where everything is linked. It is supposed to be as lightweight and well-functioning as possible.
Well, nothing special...
This is just the homepage i use for the community i am running [here](http://redxen.dynu.net)
## How does this work?
It is based around flexboxes mostly to ensure efficiency and good support.
## Why do i host it on GitHub?
It has no good support for inferior browsers at the moment, and not planning to support them either, gonna support only current stable versions and some previous ones if needed.
If anyone wants to contribute, see my code practices or something similar, then here it is.
It is also easier to check on something or manage changes.
## What formats does it use?
- WebP - Images
- SVG - Graphics
- Woff2 - Fonts
## AJAX Usage
We use AJAX calls to load content on demand and not on load.

15
ajax/about.html Normal file
View File

@ -0,0 +1,15 @@
<div class="tab-content" id="tab-1">
<h2>Staff:</h2>
<p>Our staff is made out of multiple friendly members that help keep the community and conversations clean. If you need any help you can just call any of them.</p>
</div>
<div class="tab-content hide" id="tab-2">
<h2>Discord Server:</h2>
<p>Due to Discord being easy to use and reliable, we use it as a center for conversations. Join in and have a chat!</p>
</div>
<div class="tab-content hide" id="tab-3">
<h2>Contact Us:</h2>
<p>You can contact the Owner/Server manager directly here:</p>
<a href="mailto:caskd@gmx.de">Mail</a>
<a href="https://steamcommunity.com/id/caskd">Steam</a>
<a href="https://t.me/casKd_dev">Telegram</a>
</div>

116
css/animations.css Normal file
View File

@ -0,0 +1,116 @@
/*Animations*/
.float {
-webkit-animation: float 7s infinite;
animation: float 7s infinite;
-webkit-transition: cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.2s;
-o-transition: cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.2s;
transition: cubic-bezier(0.455, 0.03, 0.515, 0.955) 0.2s;
}
.float:hover {
-webkit-animation-play-state: paused;
-moz-animation-play-state: paused;
-o-animation-play-state: paused;
animation-play-state: paused;
}
.slide-top {
-webkit-animation: slide-in-top 1s;
animation: slide-in-top 1s;
}
.slide-left {
-webkit-animation: slide-in-left 1s;
animation: slide-in-left 1s;
}
@-webkit-keyframes float {
0% {
-webkit-transform: translateY(4px);
transform: translateY(4px);
}
50% {
-webkit-transform: translateY(-4px);
transform: translateY(-4px);
}
100% {
-webkit-transform: translateY(4px);
transform: translateY(4px);
}
}
@keyframes float {
0% {
-webkit-transform: translateY(4px);
transform: translateY(4px);
}
50% {
-webkit-transform: translateY(-4px);
transform: translateY(-4px);
}
100% {
-webkit-transform: translateY(4px);
transform: translateY(4px);
}
}
@-webkit-keyframes slide-in-left {
0% {
opacity: 0;
-webkit-transform: translateX(-30px);
transform: translateX(-30px);
}
100% {
opacity: 1;
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@keyframes slide-in-left {
0% {
opacity: 0;
-webkit-transform: translateX(-30px);
transform: translateX(-30px);
}
100% {
opacity: 1;
-webkit-transform: translateX(0);
transform: translateX(0);
}
}
@-webkit-keyframes slide-in-top {
0% {
opacity: 0;
-webkit-transform: translateY(-30px);
transform: translateY(-30px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}
@keyframes slide-in-top {
0% {
opacity: 0;
-webkit-transform: translateY(-30px);
transform: translateY(-30px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
}
}

124
css/important.css Normal file
View File

@ -0,0 +1,124 @@
/*Important rules*/
* {
margin: 0;
padding: 0;
font-family: 'Life Savers', cursive;
-webkit-user-select: none;
/* Safari */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* IE10+/Edge */
user-select: none;
/* Standard */
}
.unsupported,
.bg-landing {
top: 0;
left: 0;
width: 100%;
height: 100%;
position: fixed;
margin: 0;
min-width: 250px;
min-height: 310px;
overflow: hidden;
}
html,
body,
.page {
top: 0;
left: 0;
min-height: 100vh;
overflow: hidden;
}
a,
a:visited,
a:link {
text-decoration: none;
color: #eee;
-webkit-transition: cubic-bezier(0.075, 0.82, 0.165, 1) 0.5s;
-o-transition: cubic-bezier(0.075, 0.82, 0.165, 1) 0.5s;
transition: cubic-bezier(0.075, 0.82, 0.165, 1) 0.5s;
}
.flex {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.column {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.row {
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-ms-flex-direction: row;
flex-direction: row;
}
.justify-center {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}
.hide {
display: none !important;
opacity: 0 !important;
}
.spacer {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.bg-landing img {
-webkit-filter: blur(5px) brightness(0.4);
filter: blur(5px) brightness(0.4);
top: -5vw !important;
left: -5vw !important;
min-width: 110vw;
min-height: 110vh;
z-index: 1;
}
.branding {
-webkit-filter: drop-shadow(0 10px 3px #0009);
filter: drop-shadow(0 10px 3px #0009);
margin: auto 0;
height: 100%;
z-index: 2;
}
.brand {
color: #eee;
padding: 0 50px;
}
.brand h1 {
font-family: 'Creepster', cursive;
}
.logo {
padding: 0 50px;
margin: auto 0;
}
.logo img {
height: 150px;
}
.unsupported {
display: none;
}

232
css/responsive.css Normal file
View File

@ -0,0 +1,232 @@
/*Responsive layout*/
@media screen and (min-width: 2420px) {
.bg-landing img {
-webkit-filter: blur(10px) brightness(0.4);
filter: blur(10px) brightness(0.4);
}
}
@media screen and (min-width: 1620px) {
.logo img {
height: 200px;
}
.brand h1 {
font-size: 96px;
width: 700px;
}
}
@media screen and (max-width: 920px) {
.branding {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.logo {
-webkit-box-ordinal-group: 3;
-ms-flex-order: 2;
order: 2;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
margin: 0 auto;
}
.logo,
.logo img {
height: 100px;
}
.brand {
-webkit-box-ordinal-group: 5;
-ms-flex-order: 4;
order: 4;
text-align: center;
min-width: 250px;
}
.brand h1 {
width: 100%;
font-size: 48px;
}
.links {
margin: 0 auto;
}
.about {
margin: 20px auto 0 auto;
}
.tab-content a {
padding: 0 5px;
}
.tabs {
padding: 2px 10px 0 10px;
}
.tabs a {
font-size: 12px;
border-radius: 5px 5px 0 0;
padding: 0 10px;
}
.tab-content h2 {
font-size: 18px;
}
.tab-content p {
font-size: 14px;
}
}
@media screen and (min-width: 920px) {
.logo {
display: initial !important;
}
}
@media screen and (max-width: 640px) {
.brand {
padding: 0;
}
.brand h1 {
font-size: 32px;
}
.brand p {
font-size: 20px;
}
.brand a {
font-size: 18px;
}
.links {
width: 90%;
-ms-flex-flow: wrap;
flex-flow: wrap;
max-width: 300px;
}
.links a {
font-size: 14px;
}
.about {
margin-top: 10px;
width: 100%;
border-radius: 0;
}
.tabs {
padding: 2px 10px 0 10px;
border-radius: 0;
}
.tabs a {
font-size: 12px;
border-radius: 5px 5px 0 0;
padding: 0 10px;
}
.tab-content h2 {
font-size: 18px;
}
.tab-content p {
font-size: 14px;
}
}
@media screen and (max-width: 330px) {
.logo,
.logo img {
height: 50px;
}
.brand h1 {
font-size: 24px;
}
.brand p {
font-size: 16px;
}
.links a {
font-size: 12px;
}
.tabs a {
padding: 0 4px;
margin: 0 2px;
}
.tab-content h2 {
font-size: 14px;
}
.tab-content p {
font-size: 12px;
}
}
@media screen and (max-height: 450px) {
.h-on,
.logo,
h1 {
display: none;
}
.about {
margin-top: 10px;
}
}
/*Resolution Support*/
.unsupported {
background-color: #222a;
height: 0;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-ms-flex-line-pack: center;
align-content: center;
min-height: 0;
min-width: 0;
z-index: 20;
opacity: 0;
}
.unsupported-text {
margin: auto;
padding: 10px;
text-align: center;
font-size: 16px;
color: #eee;
}
@media screen and (max-width: 260px),
screen and (max-height: 120px) {
.unsupported {
opacity: 1;
height: auto;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.page {
-webkit-filter: blur(12px);
filter: blur(12px);
}
}

108
css/rules.css Normal file
View File

@ -0,0 +1,108 @@
/*Page Rules*/
a:hover {
color: #2e2;
}
body {
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
url(../res/bg.webp) no-repeat center;
background-size: cover;
}
/*Text*/
.brand {
min-width: 570px;
}
.brand h1 {
font-size: 72px;
line-height: 1.2em;
width: 550px;
}
.brand p {
font-size: 20px;
}
.links {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
width: 400px;
font-size: 24px;
}
.spacer {
-webkit-transition: cubic-bezier(0.075, 0.82, 0.165, 1) 0.5s;
-o-transition: cubic-bezier(0.075, 0.82, 0.165, 1) 0.5s;
transition: cubic-bezier(0.075, 0.82, 0.165, 1) 0.5s;
}
/*About pop-up*/
.about {
background-color: #111;
border-radius: 10px;
margin: 40px 0 0 0;
min-width: 260px;
max-width: 640px;
max-height: 400px;
height: 50%;
}
.tabs {
background-color: #222;
border-radius: 10px 10px 0 0;
padding: 5px 10px 0 10px;
}
.tabs a {
background-color: #333;
color: #1a1;
padding: 0 20px;
border-radius: 20px 2px 0 0;
margin: 0 4px;
-webkit-transition: ease-out 0.3s;
-o-transition: ease-out 0.3s;
transition: ease-out 0.3s;
}
.tabs a:hover {
color: #2f2;
background-color: #444;
}
.abt {
padding: 20px;
}
.close {
background-color: #111 !important;
border-radius: 10px 10px 0 0 !important;
}
.chosen {
background-color: #eee !important;
color: #222 !important;
-webkit-box-shadow: 0 0 10px 1px #fff;
box-shadow: 0 0 10px 1px #fff;
}
.abt h2 {
font-size: 26px;
}
.abt p {
font-size: 18px;
}
.tab-content a {
color: #1a1;
padding-right: 10px;
}
.tab-content a:hover {
color: #1f1;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 66 KiB

View File

@ -1,101 +1,73 @@
<html>
<head>
<!--Styles and such-->
<link rel="stylesheet" href="res/web.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<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">
<link rel="shortcut icon" href="/favicon.ico">
<!--Meta and tracking-->
<meta name="author" content="caskd">
<meta charset="UTF-8">
<meta name="description" content="The homepage of the RedXen Community">
<title>RedXen Community</title>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-120536610-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-120536610-1');
</script>
</head>
<body>
<div class="interface">
<div class="header">
<span id="logo-header">
<img src="res/logo.png" alt="logo">
</span>
<span id="links-header">
<a href="https://forum.redxen.eu">Forum</a>
<a href="https://steamcommunity.com/groups/redxengaming">Steam</a>
<a href="/discord">Discord</a>
<a href="https://yagpdb.redxen.eu">PMBot</a>
</span>
</div>
<div class="content">
<div id="banner">
<img id="logobig" src="res/logo.png" alt="logo">
<h1>RedXen Gaming</h1>
</div>
<div id="text">
<h2>About us</h2>
<div id="forum" class="category">
<div class="left">
<img alt="discourse" src="res/discourse.png">
</div>
<div class="right">
<h3>RedXen Forum</h3>
<p>Our forum is a easy-to-browse forum that is fast and reliable, it is powered by Discourse and it is one of the best community forums!</p>
</div>
</div>
<div id="discord" class="category">
<div class="left">
<img alt="discord" src="res/discord.png">
</div>
<div class="right">
<h3>Discord Server</h3>
<p>Due to the reliability that Discord offers, most of the people join us on our server to communicate about topics they have in common, support is also given pretty quick there.</p>
</div>
</div>
<div id="yagpdb" class="category">
<div class="left">
<img alt="yagpdb" src="res/yagpdb.png">
</div>
<div class="right">
<h3>PMBot</h3>
<p>We also host a slightly customized version of YAGPDB called PMBot that can moderate your servers, you can add him to your server!</p>
</div>
</div>
<h2>News</h2>
<div id="news" class="text-field">
<div class="row">
<h3>June 2018</h3>
Created this webpage and added meta tags for SEO's<br>
Now hosting server on DigitalOcean with improved bandwidth
</div>
<div class="row">
<h3>May 2018</h3>
Added reaction roles to the discord server<br>
Adapted the homepage to almost all viewports<br>
Updated homepage to a better one<br>
Discord revamp with new channels, categories and roles
</div>
</div>
</div>
<div id=footer>
<div class="row">
Made by caskd!<br>
<a href="https://steamcommunity.com/id/caskd"><i class="fab fa-steam"></i></a>
<a href="https://github.com/casKd-dev"><i class="fab fa-github"></i></a>
<a href="https://soundcloud.com/caskd"><i class="fab fa-soundcloud"></i></a>
</div>
<div id="footer-r" class="row">
This website was made with tons of love, trial and time. If you appreciate what i have done or want to give me feedback or such, <a href="mailto:caskd@gmx.de">contact</a> me here.
</div>
</div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<!--Styles and meta-->
<title>RedXen Community</title>
<meta name="description" content="The community that empowers gamers.">
<link rel="shortcut icon" href="/favicon.ico">
<meta name="keywords" content="rx,redxen,community,game,games,server,discord,pmbot,forum">
<meta name="author" content="caskd">
<meta name="theme-color" content="#d22">
<link rel="icon" sizes="222x222" href="res/logowhite.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="UTF-8">
<link rel="stylesheet" href="css/important.css">
</head>
<body style="background-color: #171">
<div id="bg" class="bg-landing">
<img alt="background" data-depth="0.2" src="res/bg.webp">
</div>
<div id="page" class="page flex column">
<div class="branding flex row float">
<div class="brand flex column justify-center">
<h1 class="slide-top flex column h-hide">RedXen Community</h1>
<div class="slide-left flex column">
<p class="h-hide">Happy spooktober!</p>
<div class="h-hide links flex">
<a id="abt-btn" href="#">About</a>
<a href="https://redxen.eu/discord">Discord</a>
<a href="https://forum.redxen.eu/">Forums</a>
<a href="https://yagpdb.redxen.eu/">PMBot</a>
<a href="https://status.redxen.eu/">Status</a>
</div>
<div id="abt" class="slide-top hide about">
<div class="tabs flex">
<a href="#" class="tab chosen" data-tab="tab-1">Staff</a>
<a href="#" class="tab" data-tab="tab-2">Discord</a>
<a href="#" class="tab" data-tab="tab-3">Contact</a>
<div class="spacer"></div>
<a href="#" class="close" id="close">X</a>
</div>
<div id="content" class="abt"></div>
</div>
</div>
</div>
<div class="spacer"></div>
<div class="logo slide-top">
<img alt="logo" src="res/logo.svg">
</div>
</div>
</div>
<div class="unsupported">
<div class="unsupported-text">
<p>Your resolution is known to cause problems!</p>
<p>Please resize your window to a supported resolution.</p>
</div>
</div>
<noscript>
<link rel="stylesheet" href="css/rules.css"></noscript>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/parallax/3.1.0/parallax.min.js" defer></script>
<script src="js/main.js" defer></script>
<link href="https://fonts.googleapis.com/css?family=Creepster" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Life+Savers" rel="stylesheet">
<link rel="manifest" href="/manifest.json">
<noscript>
<link rel="stylesheet" href="css/responsive.css"></noscript>
<noscript>
<link rel="stylesheet" href="css/animations.css"></noscript>
</body>
</html>

35
js/main.js Normal file
View File

@ -0,0 +1,35 @@
$(document).ready(function () {
$("head").append(
'<link rel="stylesheet" href="css/rules.css">' +
'<link rel="stylesheet" href="css/responsive.css">' +
'<link rel="stylesheet" href="css/animations.css">'
);
$('#abt-btn').click(function () {
$('#abt').toggleClass('hide');
$('.h-hide').toggleClass('h-on');
LoadOnce();
});
$('#close').click(function () {
$('#abt').addClass('hide');
$('.h-hide').removeClass('h-on');
});
$('.tab').click(function () {
var tab_id = $(this).attr('data-tab');
$('div.tabs a').removeClass('chosen');
$('.tab-content').addClass('hide');
$(this).addClass('chosen');
$('#' + tab_id).removeClass('hide');
});
});
function LoadOnce() {
$('#content').load('ajax/about.html');
$('.tab-content').addClass('hide');
LoadOnce = function () {};
}
var scene = document.getElementById('bg');
var parallaxInstance = new Parallax(scene, {
relativeInput: true,
hoverOnly: true
});

15
manifest.json Normal file
View File

@ -0,0 +1,15 @@
{
"name": "RedXen Community",
"short_name": "RX Community",
"start_url": ".",
"display": "standalone",
"orientation": "portrait-primary",
"theme_color": "red",
"background_color": "#e22",
"description": "The Community that empowers gamers!",
"icons": [{
"src": "res/logowhite.png",
"sizes": "222x222",
"type": "image/png"
}]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 760 KiB

BIN
res/bg.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 370 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

1
res/logo.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 32 KiB

BIN
res/logowhite.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -1,274 +0,0 @@
html {
margin: 0;
top: 0;
left: 0;
font-family: 'Oswald', sans-serif;
background: rgb(10, 10, 10);
min-height: 300px;
}
.header {
height: 50px;
width: 100%;
top: 0;
left: 0;
position: fixed;
background-color: rgba(10, 10, 10, 0.4);
z-index: 20;
display: flex;
overflow: hidden;
}
#logo-header img {
display: flex;
height: 40px;
padding: 5px;
}
#links-header {
display: flex;
height: 50px;
line-height: 50px;
flex: 1 1 0;
justify-content: flex-end;
}
#links-header a {
line-height: 50px;
color: #eee;
text-align: center;
padding-right: 10px;
padding-left: 10px;
text-decoration: none;
font-size: 20px;
font-family: 'Dosis', sans-serif;
}
.header a:hover {
background-color: rgba(255 ,255 ,255, 0.5);
color: #a11;
}
.content {
width: 100%;
min-height: 100%;
top: 0;
left: 0;
display: flex;
position: absolute;
flex-wrap: wrap;
flex-direction: column;
}
#banner {
/*Sizing*/
height: 400px;
width: 100%;
color: #fff;
overflow: hidden;
font-size: 40px;
transition: ease-in-out 0.2s;
/*Flexbox content*/
justify-content: center;
align-items: center;
display: flex;
/*Background settings*/
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(bg.jpg);
background-attachment: scroll;
background-size: cover;
background-repeat: no-repeat;
}
#banner img {
width: 220px;
filter: drop-shadow(-5px 6px 3px rgba(0,0,0,.7));
transition: ease-in-out 0.2s;
}
#text {
display: flex;
flex-wrap: wrap;
width: 100%;
max-width: 1700px;
min-height: 100px;
background-color: rgba(70, 70, 70, 0.4);
color: #fff;
align-self: center;
}
#text h2 {
text-align: center;
width: 100%;
font-size: 60px;
line-height: 100px;
background-color: rgba(10, 10, 10, 0.4);
transition: ease-in-out 0.2s;
}
/*Category of descriptions*/
.category {
padding: 70px 0 0 0;
display: flex;
flex-wrap: nowrap;
width: 100%;
overflow: hidden;
transition: ease-in 200ms;
filter: saturate(0%);
color: #fff;
box-shadow: 0 4px 8px -2px #000;
}
.category:hover {
color: #c22;
box-shadow: 0 10px 8px -2px #000;
}
.category:hover { filter: saturate(100%); }
.category img {
width: 40%;
max-width: 900px;
padding: 5% 5% 5% 5%;
transition: ease-in-out 0.2s;
}
h2 { color: #F33;}
#news {margin-bottom: 20px;}
.text-field {
width: 100%;
justify-content: center;
display: flex;
padding: 20px;
background-color: rgba(10, 10, 10, 0.4);
max-width: 1200px;
margin: 1 auto;
flex-direction: row;
flex: 1;
font-size: 20px;
flex-wrap: wrap;
align-items: flex-start;
text-align: center;
font-family: 'Dosis', sans-serif;
}
.row {
width: 50%;
}
.text-field h3 {
font-size: 25px;
margin: 0;
}
/*Left Side settings*/
.left {
background-color: rgba(0, 0, 0, 0.5);
width: 30%;
display: flex;
justify-content: center;
align-items: center;
min-width: 200px;
transition: ease-in-out 0.2s;
}
/*Right side settings*/
.right {
background-color: rgba(10, 10, 10, 0.4);
width: 70%;
display: flex;
flex-direction: column;
padding: 50px 50px 50px 30px;
justify-content: center;
transition: ease-in-out 0.2s;
}
.right h3 {
font-size: 40px;
margin: 0;
}
.right p {
font-style: italic;
font-family: 'Open Sans Condensed', sans-serif;
}
/*Webpage footer*/
#footer {
color: #fff;
display: flex;
max-width: 1700px;
width: 80%;
font-size: 20px;
height: 200px;
text-align: center;
align-items: center;
overflow: hidden;
margin: 1 auto;
}
#footer a {
color: #f22;
text-decoration: none;
padding: 0 10px 0 10px;
font-size: 30px;
}
#footer-r, #footer-r a {
font-size: 20px;
padding: 0;
font-style: italic;
}
/*Adaptive content using media queries*/
@media screen and (max-width: 730px) {
.header {
height: 50px;
}
#banner {
font-size: 20px;
height: 300px;
}
#text h2 {
font-size: 30px;
line-height: 50px;
}
#banner img {
width: 110px;
}
.category {
flex-wrap: wrap;
}
.category img {
width: 30%;
}
.left, .right {
width: 100%;
}
.right {
padding: 10px 25px 10px 25px;
}
.right h3 {
font-size: 30px;
}
.right p {
font-size: 15px;
margin: 0;
}
.row {
width: 100%;
margin: 10px 0;
}
.text-field {
font-size: 10px;
padding: 10px;
justify-content: space-between;
}
.text-field h3 {
font-size: 20px;
}
#footer {
width: 90%;
font-size: 15px;
height: auto;
flex-flow: wrap;
}
#footer a {
font-size: 25px;
padding: 0 7px 0 7px;
}
#footer-r, #footer-r a {
font-size: 15px;
padding: 0;
}
#footer-r {
padding: 0 0 10px 0;
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB