Compare commits
34 Commits
Author | SHA1 | Date | |
---|---|---|---|
7cac40cd31 | |||
60af33c839 | |||
c440e22ffa | |||
5b34ac42e8 | |||
42d63ae27a | |||
034f731ca3 | |||
fce5f31b29 | |||
24e3b95d66 | |||
a8d5b89799 | |||
9a9b63324a | |||
|
b843678f46 | ||
1b573736db | |||
e19c0e4008 | |||
|
e89facb676 | ||
c6e55467de | |||
95916f1b63 | |||
195c0ec175 | |||
|
5997d66ad2 | ||
|
cc7f65eda7 | ||
|
61a84096d8 | ||
0718336402 | |||
5cc50968c4 | |||
52639f70f1 | |||
2f6de7457f | |||
ffaef4a72b | |||
3a49532357 | |||
9b1f843da7 | |||
0616d7946a | |||
a9dbb24eb1 | |||
a30b7b1fda | |||
09b037a5c7 | |||
9b299894df | |||
6d1274354b | |||
|
5faec60ab6 |
16
README.md
@ -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
@ -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
@ -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);
|
||||
}
|
||||
}
|
121
css/important.css
Normal file
@ -0,0 +1,121 @@
|
||||
/*Important rules*/
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: "Bad Script", sans-serif;
|
||||
-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;
|
||||
}
|
||||
|
||||
.logo {
|
||||
padding: 0 50px;
|
||||
margin: auto 0;
|
||||
}
|
||||
|
||||
.logo img {
|
||||
height: 150px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.unsupported {
|
||||
display: none;
|
||||
}
|
231
css/responsive.css
Normal file
@ -0,0 +1,231 @@
|
||||
/*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;
|
||||
}
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
}
|
105
css/rules.css
Normal file
@ -0,0 +1,105 @@
|
||||
/*Page Rules*/
|
||||
|
||||
a:hover {
|
||||
color: #e22;
|
||||
}
|
||||
|
||||
body {
|
||||
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
|
||||
url(../res/bg.jpp) no-repeat center;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
/*Text*/
|
||||
|
||||
.brand {
|
||||
min-width: 570px;
|
||||
}
|
||||
|
||||
.brand h1 {
|
||||
font-size: 72px;
|
||||
line-height: 1.2em;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
background-color: #222;
|
||||
border-radius: 10px 10px 0 0;
|
||||
padding: 5px 10px 0 10px;
|
||||
}
|
||||
|
||||
.tabs a {
|
||||
background-color: #333;
|
||||
color: #eee;
|
||||
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: #ddd;
|
||||
background-color: #444;
|
||||
}
|
||||
|
||||
.abt {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.close {
|
||||
background-color: #e22 !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: #e22;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.tab-content a:hover {
|
||||
color: #a11;
|
||||
}
|
BIN
favicon.ico
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 104 KiB |
146
index.html
@ -1,101 +1,75 @@
|
||||
<html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<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">
|
||||
<!--Styles and meta-->
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<body style="background-color: #ccc">
|
||||
<div id="bg" class="bg-landing">
|
||||
<img alt="background" data-depth="0.2" src="res/bg.jpg">
|
||||
</div>
|
||||
<div class="content">
|
||||
<div id="banner">
|
||||
<img id="logobig" src="res/logo.png" alt="logo">
|
||||
<h1>RedXen Gaming</h1>
|
||||
<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 winter holidays.</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="text">
|
||||
<h2>About us</h2>
|
||||
<div id="forum" class="category">
|
||||
<div class="left">
|
||||
<img alt="discourse" src="res/discourse.png">
|
||||
<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 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 id="content" class="abt"></div>
|
||||
</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 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=Bad+Script" 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>
|
||||
<script src="js/snowstorm.js" defer></script>
|
||||
</body>
|
||||
|
||||
</html>
|
35
js/main.js
Normal 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
|
||||
});
|
667
js/snowstorm.js
Normal file
@ -0,0 +1,667 @@
|
||||
/** @license
|
||||
* DHTML Snowstorm! JavaScript-based snow for web pages
|
||||
* Making it snow on the internets since 2003. You're welcome.
|
||||
* -----------------------------------------------------------
|
||||
* Version 1.44.20131215 (Previous rev: 1.44.20131208)
|
||||
* Copyright (c) 2007, Scott Schiller. All rights reserved.
|
||||
* Code provided under the BSD License
|
||||
* http://schillmania.com/projects/snowstorm/license.txt
|
||||
*/
|
||||
|
||||
/*jslint nomen: true, plusplus: true, sloppy: true, vars: true, white: true */
|
||||
/*global window, document, navigator, clearInterval, setInterval */
|
||||
|
||||
var snowStorm = (function(window, document) {
|
||||
|
||||
// --- common properties ---
|
||||
|
||||
this.autoStart = true; // Whether the snow should start automatically or not.
|
||||
this.excludeMobile = true; // Snow is likely to be bad news for mobile phones' CPUs (and batteries.) Enable at your own risk.
|
||||
this.flakesMax = 128; // Limit total amount of snow made (falling + sticking)
|
||||
this.flakesMaxActive = 64; // Limit amount of snow falling at once (less = lower CPU use)
|
||||
this.animationInterval = 50; // Theoretical "miliseconds per frame" measurement. 20 = fast + smooth, but high CPU use. 50 = more conservative, but slower
|
||||
this.useGPU = true; // Enable transform-based hardware acceleration, reduce CPU load.
|
||||
this.className = null; // CSS class name for further customization on snow elements
|
||||
this.excludeMobile = true; // Snow is likely to be bad news for mobile phones' CPUs (and batteries.) By default, be nice.
|
||||
this.flakeBottom = null; // Integer for Y axis snow limit, 0 or null for "full-screen" snow effect
|
||||
this.followMouse = true; // Snow movement can respond to the user's mouse
|
||||
this.snowColor = '#fff'; // Don't eat (or use?) yellow snow.
|
||||
this.snowCharacter = '•'; // • = bullet, · is square on some systems etc.
|
||||
this.snowStick = false; // Whether or not snow should "stick" at the bottom. When off, will never collect.
|
||||
this.targetElement = null; // element which snow will be appended to (null = document.body) - can be an element ID eg. 'myDiv', or a DOM node reference
|
||||
this.useMeltEffect = false; // When recycling fallen snow (or rarely, when falling), have it "melt" and fade out if browser supports it
|
||||
this.useTwinkleEffect = false; // Allow snow to randomly "flicker" in and out of view while falling
|
||||
this.usePositionFixed = false; // true = snow does not shift vertically when scrolling. May increase CPU load, disabled by default - if enabled, used only where supported
|
||||
this.usePixelPosition = false; // Whether to use pixel values for snow top/left vs. percentages. Auto-enabled if body is position:relative or targetElement is specified.
|
||||
|
||||
// --- less-used bits ---
|
||||
|
||||
this.freezeOnBlur = true; // Only snow when the window is in focus (foreground.) Saves CPU.
|
||||
this.flakeLeftOffset = 0; // Left margin/gutter space on edge of container (eg. browser window.) Bump up these values if seeing horizontal scrollbars.
|
||||
this.flakeRightOffset = 0; // Right margin/gutter space on edge of container
|
||||
this.flakeWidth = 8; // Max pixel width reserved for snow element
|
||||
this.flakeHeight = 8; // Max pixel height reserved for snow element
|
||||
this.vMaxX = 5; // Maximum X velocity range for snow
|
||||
this.vMaxY = 4; // Maximum Y velocity range for snow
|
||||
this.zIndex = 0; // CSS stacking order applied to each snowflake
|
||||
|
||||
// --- "No user-serviceable parts inside" past this point, yadda yadda ---
|
||||
|
||||
var storm = this,
|
||||
features,
|
||||
// UA sniffing and backCompat rendering mode checks for fixed position, etc.
|
||||
isIE = navigator.userAgent.match(/msie/i),
|
||||
isIE6 = navigator.userAgent.match(/msie 6/i),
|
||||
isMobile = navigator.userAgent.match(/mobile|opera m(ob|in)/i),
|
||||
isBackCompatIE = (isIE && document.compatMode === 'BackCompat'),
|
||||
noFixed = (isBackCompatIE || isIE6),
|
||||
screenX = null, screenX2 = null, screenY = null, scrollY = null, docHeight = null, vRndX = null, vRndY = null,
|
||||
windOffset = 1,
|
||||
windMultiplier = 2,
|
||||
flakeTypes = 6,
|
||||
fixedForEverything = false,
|
||||
targetElementIsRelative = false,
|
||||
opacitySupported = (function(){
|
||||
try {
|
||||
document.createElement('div').style.opacity = '0.5';
|
||||
} catch(e) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}()),
|
||||
didInit = false,
|
||||
docFrag = document.createDocumentFragment();
|
||||
|
||||
features = (function() {
|
||||
|
||||
var getAnimationFrame;
|
||||
|
||||
/**
|
||||
* hat tip: paul irish
|
||||
* http://paulirish.com/2011/requestanimationframe-for-smart-animating/
|
||||
* https://gist.github.com/838785
|
||||
*/
|
||||
|
||||
function timeoutShim(callback) {
|
||||
window.setTimeout(callback, 1000/(storm.animationInterval || 20));
|
||||
}
|
||||
|
||||
var _animationFrame = (window.requestAnimationFrame ||
|
||||
window.webkitRequestAnimationFrame ||
|
||||
window.mozRequestAnimationFrame ||
|
||||
window.oRequestAnimationFrame ||
|
||||
window.msRequestAnimationFrame ||
|
||||
timeoutShim);
|
||||
|
||||
// apply to window, avoid "illegal invocation" errors in Chrome
|
||||
getAnimationFrame = _animationFrame ? function() {
|
||||
return _animationFrame.apply(window, arguments);
|
||||
} : null;
|
||||
|
||||
var testDiv;
|
||||
|
||||
testDiv = document.createElement('div');
|
||||
|
||||
function has(prop) {
|
||||
|
||||
// test for feature support
|
||||
var result = testDiv.style[prop];
|
||||
return (result !== undefined ? prop : null);
|
||||
|
||||
}
|
||||
|
||||
// note local scope.
|
||||
var localFeatures = {
|
||||
|
||||
transform: {
|
||||
ie: has('-ms-transform'),
|
||||
moz: has('MozTransform'),
|
||||
opera: has('OTransform'),
|
||||
webkit: has('webkitTransform'),
|
||||
w3: has('transform'),
|
||||
prop: null // the normalized property value
|
||||
},
|
||||
|
||||
getAnimationFrame: getAnimationFrame
|
||||
|
||||
};
|
||||
|
||||
localFeatures.transform.prop = (
|
||||
localFeatures.transform.w3 ||
|
||||
localFeatures.transform.moz ||
|
||||
localFeatures.transform.webkit ||
|
||||
localFeatures.transform.ie ||
|
||||
localFeatures.transform.opera
|
||||
);
|
||||
|
||||
testDiv = null;
|
||||
|
||||
return localFeatures;
|
||||
|
||||
}());
|
||||
|
||||
this.timer = null;
|
||||
this.flakes = [];
|
||||
this.disabled = false;
|
||||
this.active = false;
|
||||
this.meltFrameCount = 20;
|
||||
this.meltFrames = [];
|
||||
|
||||
this.setXY = function(o, x, y) {
|
||||
|
||||
if (!o) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (storm.usePixelPosition || targetElementIsRelative) {
|
||||
|
||||
o.style.left = (x - storm.flakeWidth) + 'px';
|
||||
o.style.top = (y - storm.flakeHeight) + 'px';
|
||||
|
||||
} else if (noFixed) {
|
||||
|
||||
o.style.right = (100-(x/screenX*100)) + '%';
|
||||
// avoid creating vertical scrollbars
|
||||
o.style.top = (Math.min(y, docHeight-storm.flakeHeight)) + 'px';
|
||||
|
||||
} else {
|
||||
|
||||
if (!storm.flakeBottom) {
|
||||
|
||||
// if not using a fixed bottom coordinate...
|
||||
o.style.right = (100-(x/screenX*100)) + '%';
|
||||
o.style.bottom = (100-(y/screenY*100)) + '%';
|
||||
|
||||
} else {
|
||||
|
||||
// absolute top.
|
||||
o.style.right = (100-(x/screenX*100)) + '%';
|
||||
o.style.top = (Math.min(y, docHeight-storm.flakeHeight)) + 'px';
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
this.events = (function() {
|
||||
|
||||
var old = (!window.addEventListener && window.attachEvent), slice = Array.prototype.slice,
|
||||
evt = {
|
||||
add: (old?'attachEvent':'addEventListener'),
|
||||
remove: (old?'detachEvent':'removeEventListener')
|
||||
};
|
||||
|
||||
function getArgs(oArgs) {
|
||||
var args = slice.call(oArgs), len = args.length;
|
||||
if (old) {
|
||||
args[1] = 'on' + args[1]; // prefix
|
||||
if (len > 3) {
|
||||
args.pop(); // no capture
|
||||
}
|
||||
} else if (len === 3) {
|
||||
args.push(false);
|
||||
}
|
||||
return args;
|
||||
}
|
||||
|
||||
function apply(args, sType) {
|
||||
var element = args.shift(),
|
||||
method = [evt[sType]];
|
||||
if (old) {
|
||||
element[method](args[0], args[1]);
|
||||
} else {
|
||||
element[method].apply(element, args);
|
||||
}
|
||||
}
|
||||
|
||||
function addEvent() {
|
||||
apply(getArgs(arguments), 'add');
|
||||
}
|
||||
|
||||
function removeEvent() {
|
||||
apply(getArgs(arguments), 'remove');
|
||||
}
|
||||
|
||||
return {
|
||||
add: addEvent,
|
||||
remove: removeEvent
|
||||
};
|
||||
|
||||
}());
|
||||
|
||||
function rnd(n,min) {
|
||||
if (isNaN(min)) {
|
||||
min = 0;
|
||||
}
|
||||
return (Math.random()*n)+min;
|
||||
}
|
||||
|
||||
function plusMinus(n) {
|
||||
return (parseInt(rnd(2),10)===1?n*-1:n);
|
||||
}
|
||||
|
||||
this.randomizeWind = function() {
|
||||
var i;
|
||||
vRndX = plusMinus(rnd(storm.vMaxX,0.2));
|
||||
vRndY = rnd(storm.vMaxY,0.2);
|
||||
if (this.flakes) {
|
||||
for (i=0; i<this.flakes.length; i++) {
|
||||
if (this.flakes[i].active) {
|
||||
this.flakes[i].setVelocities();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.scrollHandler = function() {
|
||||
var i;
|
||||
// "attach" snowflakes to bottom of window if no absolute bottom value was given
|
||||
scrollY = (storm.flakeBottom ? 0 : parseInt(window.scrollY || document.documentElement.scrollTop || (noFixed ? document.body.scrollTop : 0), 10));
|
||||
if (isNaN(scrollY)) {
|
||||
scrollY = 0; // Netscape 6 scroll fix
|
||||
}
|
||||
if (!fixedForEverything && !storm.flakeBottom && storm.flakes) {
|
||||
for (i=0; i<storm.flakes.length; i++) {
|
||||
if (storm.flakes[i].active === 0) {
|
||||
storm.flakes[i].stick();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.resizeHandler = function() {
|
||||
if (window.innerWidth || window.innerHeight) {
|
||||
screenX = window.innerWidth - 16 - storm.flakeRightOffset;
|
||||
screenY = (storm.flakeBottom || window.innerHeight);
|
||||
} else {
|
||||
screenX = (document.documentElement.clientWidth || document.body.clientWidth || document.body.scrollWidth) - (!isIE ? 8 : 0) - storm.flakeRightOffset;
|
||||
screenY = storm.flakeBottom || document.documentElement.clientHeight || document.body.clientHeight || document.body.scrollHeight;
|
||||
}
|
||||
docHeight = document.body.offsetHeight;
|
||||
screenX2 = parseInt(screenX/2,10);
|
||||
};
|
||||
|
||||
this.resizeHandlerAlt = function() {
|
||||
screenX = storm.targetElement.offsetWidth - storm.flakeRightOffset;
|
||||
screenY = storm.flakeBottom || storm.targetElement.offsetHeight;
|
||||
screenX2 = parseInt(screenX/2,10);
|
||||
docHeight = document.body.offsetHeight;
|
||||
};
|
||||
|
||||
this.freeze = function() {
|
||||
// pause animation
|
||||
if (!storm.disabled) {
|
||||
storm.disabled = 1;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
storm.timer = null;
|
||||
};
|
||||
|
||||
this.resume = function() {
|
||||
if (storm.disabled) {
|
||||
storm.disabled = 0;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
storm.timerInit();
|
||||
};
|
||||
|
||||
this.toggleSnow = function() {
|
||||
if (!storm.flakes.length) {
|
||||
// first run
|
||||
storm.start();
|
||||
} else {
|
||||
storm.active = !storm.active;
|
||||
if (storm.active) {
|
||||
storm.show();
|
||||
storm.resume();
|
||||
} else {
|
||||
storm.stop();
|
||||
storm.freeze();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.stop = function() {
|
||||
var i;
|
||||
this.freeze();
|
||||
for (i=0; i<this.flakes.length; i++) {
|
||||
this.flakes[i].o.style.display = 'none';
|
||||
}
|
||||
storm.events.remove(window,'scroll',storm.scrollHandler);
|
||||
storm.events.remove(window,'resize',storm.resizeHandler);
|
||||
if (storm.freezeOnBlur) {
|
||||
if (isIE) {
|
||||
storm.events.remove(document,'focusout',storm.freeze);
|
||||
storm.events.remove(document,'focusin',storm.resume);
|
||||
} else {
|
||||
storm.events.remove(window,'blur',storm.freeze);
|
||||
storm.events.remove(window,'focus',storm.resume);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.show = function() {
|
||||
var i;
|
||||
for (i=0; i<this.flakes.length; i++) {
|
||||
this.flakes[i].o.style.display = 'block';
|
||||
}
|
||||
};
|
||||
|
||||
this.SnowFlake = function(type,x,y) {
|
||||
var s = this;
|
||||
this.type = type;
|
||||
this.x = x||parseInt(rnd(screenX-20),10);
|
||||
this.y = (!isNaN(y)?y:-rnd(screenY)-12);
|
||||
this.vX = null;
|
||||
this.vY = null;
|
||||
this.vAmpTypes = [1,1.2,1.4,1.6,1.8]; // "amplification" for vX/vY (based on flake size/type)
|
||||
this.vAmp = this.vAmpTypes[this.type] || 1;
|
||||
this.melting = false;
|
||||
this.meltFrameCount = storm.meltFrameCount;
|
||||
this.meltFrames = storm.meltFrames;
|
||||
this.meltFrame = 0;
|
||||
this.twinkleFrame = 0;
|
||||
this.active = 1;
|
||||
this.fontSize = (10+(this.type/5)*10);
|
||||
this.o = document.createElement('div');
|
||||
this.o.innerHTML = storm.snowCharacter;
|
||||
if (storm.className) {
|
||||
this.o.setAttribute('class', storm.className);
|
||||
}
|
||||
this.o.style.color = storm.snowColor;
|
||||
this.o.style.position = (fixedForEverything?'fixed':'absolute');
|
||||
if (storm.useGPU && features.transform.prop) {
|
||||
// GPU-accelerated snow.
|
||||
this.o.style[features.transform.prop] = 'translate3d(0px, 0px, 0px)';
|
||||
}
|
||||
this.o.style.width = storm.flakeWidth+'px';
|
||||
this.o.style.height = storm.flakeHeight+'px';
|
||||
this.o.style.fontFamily = 'arial,verdana';
|
||||
this.o.style.cursor = 'default';
|
||||
this.o.style.overflow = 'hidden';
|
||||
this.o.style.fontWeight = 'normal';
|
||||
this.o.style.zIndex = storm.zIndex;
|
||||
docFrag.appendChild(this.o);
|
||||
|
||||
this.refresh = function() {
|
||||
if (isNaN(s.x) || isNaN(s.y)) {
|
||||
// safety check
|
||||
return false;
|
||||
}
|
||||
storm.setXY(s.o, s.x, s.y);
|
||||
};
|
||||
|
||||
this.stick = function() {
|
||||
if (noFixed || (storm.targetElement !== document.documentElement && storm.targetElement !== document.body)) {
|
||||
s.o.style.top = (screenY+scrollY-storm.flakeHeight)+'px';
|
||||
} else if (storm.flakeBottom) {
|
||||
s.o.style.top = storm.flakeBottom+'px';
|
||||
} else {
|
||||
s.o.style.display = 'none';
|
||||
s.o.style.top = 'auto';
|
||||
s.o.style.bottom = '0%';
|
||||
s.o.style.position = 'fixed';
|
||||
s.o.style.display = 'block';
|
||||
}
|
||||
};
|
||||
|
||||
this.vCheck = function() {
|
||||
if (s.vX>=0 && s.vX<0.2) {
|
||||
s.vX = 0.2;
|
||||
} else if (s.vX<0 && s.vX>-0.2) {
|
||||
s.vX = -0.2;
|
||||
}
|
||||
if (s.vY>=0 && s.vY<0.2) {
|
||||
s.vY = 0.2;
|
||||
}
|
||||
};
|
||||
|
||||
this.move = function() {
|
||||
var vX = s.vX*windOffset, yDiff;
|
||||
s.x += vX;
|
||||
s.y += (s.vY*s.vAmp);
|
||||
if (s.x >= screenX || screenX-s.x < storm.flakeWidth) { // X-axis scroll check
|
||||
s.x = 0;
|
||||
} else if (vX < 0 && s.x-storm.flakeLeftOffset < -storm.flakeWidth) {
|
||||
s.x = screenX-storm.flakeWidth-1; // flakeWidth;
|
||||
}
|
||||
s.refresh();
|
||||
yDiff = screenY+scrollY-s.y+storm.flakeHeight;
|
||||
if (yDiff<storm.flakeHeight) {
|
||||
s.active = 0;
|
||||
if (storm.snowStick) {
|
||||
s.stick();
|
||||
} else {
|
||||
s.recycle();
|
||||
}
|
||||
} else {
|
||||
if (storm.useMeltEffect && s.active && s.type < 3 && !s.melting && Math.random()>0.998) {
|
||||
// ~1/1000 chance of melting mid-air, with each frame
|
||||
s.melting = true;
|
||||
s.melt();
|
||||
// only incrementally melt one frame
|
||||
// s.melting = false;
|
||||
}
|
||||
if (storm.useTwinkleEffect) {
|
||||
if (s.twinkleFrame < 0) {
|
||||
if (Math.random() > 0.97) {
|
||||
s.twinkleFrame = parseInt(Math.random() * 8, 10);
|
||||
}
|
||||
} else {
|
||||
s.twinkleFrame--;
|
||||
if (!opacitySupported) {
|
||||
s.o.style.visibility = (s.twinkleFrame && s.twinkleFrame % 2 === 0 ? 'hidden' : 'visible');
|
||||
} else {
|
||||
s.o.style.opacity = (s.twinkleFrame && s.twinkleFrame % 2 === 0 ? 0 : 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.animate = function() {
|
||||
// main animation loop
|
||||
// move, check status, die etc.
|
||||
s.move();
|
||||
};
|
||||
|
||||
this.setVelocities = function() {
|
||||
s.vX = vRndX+rnd(storm.vMaxX*0.12,0.1);
|
||||
s.vY = vRndY+rnd(storm.vMaxY*0.12,0.1);
|
||||
};
|
||||
|
||||
this.setOpacity = function(o,opacity) {
|
||||
if (!opacitySupported) {
|
||||
return false;
|
||||
}
|
||||
o.style.opacity = opacity;
|
||||
};
|
||||
|
||||
this.melt = function() {
|
||||
if (!storm.useMeltEffect || !s.melting) {
|
||||
s.recycle();
|
||||
} else {
|
||||
if (s.meltFrame < s.meltFrameCount) {
|
||||
s.setOpacity(s.o,s.meltFrames[s.meltFrame]);
|
||||
s.o.style.fontSize = s.fontSize-(s.fontSize*(s.meltFrame/s.meltFrameCount))+'px';
|
||||
s.o.style.lineHeight = storm.flakeHeight+2+(storm.flakeHeight*0.75*(s.meltFrame/s.meltFrameCount))+'px';
|
||||
s.meltFrame++;
|
||||
} else {
|
||||
s.recycle();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
this.recycle = function() {
|
||||
s.o.style.display = 'none';
|
||||
s.o.style.position = (fixedForEverything?'fixed':'absolute');
|
||||
s.o.style.bottom = 'auto';
|
||||
s.setVelocities();
|
||||
s.vCheck();
|
||||
s.meltFrame = 0;
|
||||
s.melting = false;
|
||||
s.setOpacity(s.o,1);
|
||||
s.o.style.padding = '0px';
|
||||
s.o.style.margin = '0px';
|
||||
s.o.style.fontSize = s.fontSize+'px';
|
||||
s.o.style.lineHeight = (storm.flakeHeight+2)+'px';
|
||||
s.o.style.textAlign = 'center';
|
||||
s.o.style.verticalAlign = 'baseline';
|
||||
s.x = parseInt(rnd(screenX-storm.flakeWidth-20),10);
|
||||
s.y = parseInt(rnd(screenY)*-1,10)-storm.flakeHeight;
|
||||
s.refresh();
|
||||
s.o.style.display = 'block';
|
||||
s.active = 1;
|
||||
};
|
||||
|
||||
this.recycle(); // set up x/y coords etc.
|
||||
this.refresh();
|
||||
|
||||
};
|
||||
|
||||
this.snow = function() {
|
||||
var active = 0, flake = null, i, j;
|
||||
for (i=0, j=storm.flakes.length; i<j; i++) {
|
||||
if (storm.flakes[i].active === 1) {
|
||||
storm.flakes[i].move();
|
||||
active++;
|
||||
}
|
||||
if (storm.flakes[i].melting) {
|
||||
storm.flakes[i].melt();
|
||||
}
|
||||
}
|
||||
if (active<storm.flakesMaxActive) {
|
||||
flake = storm.flakes[parseInt(rnd(storm.flakes.length),10)];
|
||||
if (flake.active === 0) {
|
||||
flake.melting = true;
|
||||
}
|
||||
}
|
||||
if (storm.timer) {
|
||||
features.getAnimationFrame(storm.snow);
|
||||
}
|
||||
};
|
||||
|
||||
this.mouseMove = function(e) {
|
||||
if (!storm.followMouse) {
|
||||
return true;
|
||||
}
|
||||
var x = parseInt(e.clientX,10);
|
||||
if (x<screenX2) {
|
||||
windOffset = -windMultiplier+(x/screenX2*windMultiplier);
|
||||
} else {
|
||||
x -= screenX2;
|
||||
windOffset = (x/screenX2)*windMultiplier;
|
||||
}
|
||||
};
|
||||
|
||||
this.createSnow = function(limit,allowInactive) {
|
||||
var i;
|
||||
for (i=0; i<limit; i++) {
|
||||
storm.flakes[storm.flakes.length] = new storm.SnowFlake(parseInt(rnd(flakeTypes),10));
|
||||
if (allowInactive || i>storm.flakesMaxActive) {
|
||||
storm.flakes[storm.flakes.length-1].active = -1;
|
||||
}
|
||||
}
|
||||
storm.targetElement.appendChild(docFrag);
|
||||
};
|
||||
|
||||
this.timerInit = function() {
|
||||
storm.timer = true;
|
||||
storm.snow();
|
||||
};
|
||||
|
||||
this.init = function() {
|
||||
var i;
|
||||
for (i=0; i<storm.meltFrameCount; i++) {
|
||||
storm.meltFrames.push(1-(i/storm.meltFrameCount));
|
||||
}
|
||||
storm.randomizeWind();
|
||||
storm.createSnow(storm.flakesMax); // create initial batch
|
||||
storm.events.add(window,'resize',storm.resizeHandler);
|
||||
storm.events.add(window,'scroll',storm.scrollHandler);
|
||||
if (storm.freezeOnBlur) {
|
||||
if (isIE) {
|
||||
storm.events.add(document,'focusout',storm.freeze);
|
||||
storm.events.add(document,'focusin',storm.resume);
|
||||
} else {
|
||||
storm.events.add(window,'blur',storm.freeze);
|
||||
storm.events.add(window,'focus',storm.resume);
|
||||
}
|
||||
}
|
||||
storm.resizeHandler();
|
||||
storm.scrollHandler();
|
||||
if (storm.followMouse) {
|
||||
storm.events.add(isIE?document:window,'mousemove',storm.mouseMove);
|
||||
}
|
||||
storm.animationInterval = Math.max(20,storm.animationInterval);
|
||||
storm.timerInit();
|
||||
};
|
||||
|
||||
this.start = function(bFromOnLoad) {
|
||||
if (!didInit) {
|
||||
didInit = true;
|
||||
} else if (bFromOnLoad) {
|
||||
// already loaded and running
|
||||
return true;
|
||||
}
|
||||
if (typeof storm.targetElement === 'string') {
|
||||
var targetID = storm.targetElement;
|
||||
storm.targetElement = document.getElementById(targetID);
|
||||
if (!storm.targetElement) {
|
||||
throw new Error('Snowstorm: Unable to get targetElement "'+targetID+'"');
|
||||
}
|
||||
}
|
||||
if (!storm.targetElement) {
|
||||
storm.targetElement = (document.body || document.documentElement);
|
||||
}
|
||||
if (storm.targetElement !== document.documentElement && storm.targetElement !== document.body) {
|
||||
// re-map handler to get element instead of screen dimensions
|
||||
storm.resizeHandler = storm.resizeHandlerAlt;
|
||||
//and force-enable pixel positioning
|
||||
storm.usePixelPosition = true;
|
||||
}
|
||||
storm.resizeHandler(); // get bounding box elements
|
||||
storm.usePositionFixed = (storm.usePositionFixed && !noFixed && !storm.flakeBottom); // whether or not position:fixed is to be used
|
||||
if (window.getComputedStyle) {
|
||||
// attempt to determine if body or user-specified snow parent element is relatlively-positioned.
|
||||
try {
|
||||
targetElementIsRelative = (window.getComputedStyle(storm.targetElement, null).getPropertyValue('position') === 'relative');
|
||||
} catch(e) {
|
||||
// oh well
|
||||
targetElementIsRelative = false;
|
||||
}
|
||||
}
|
||||
fixedForEverything = storm.usePositionFixed;
|
||||
if (screenX && screenY && !storm.disabled) {
|
||||
storm.init();
|
||||
storm.active = true;
|
||||
}
|
||||
};
|
||||
|
||||
function doDelayedStart() {
|
||||
window.setTimeout(function() {
|
||||
storm.start(true);
|
||||
}, 20);
|
||||
// event cleanup
|
||||
storm.events.remove(isIE?document:window,'mousemove',doDelayedStart);
|
||||
}
|
||||
|
||||
function doStart() {
|
||||
if (!storm.excludeMobile || !isMobile) {
|
||||
doDelayedStart();
|
||||
}
|
||||
// event cleanup
|
||||
storm.events.remove(window, 'load', doStart);
|
||||
}
|
||||
|
||||
// hooks for starting the snow
|
||||
if (storm.autoStart) {
|
||||
storm.events.add(window, 'load', doStart, false);
|
||||
}
|
||||
|
||||
return this;
|
||||
|
||||
}(window, document));
|
15
manifest.json
Normal 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"
|
||||
}]
|
||||
}
|
BIN
res/bg.jpg
Before Width: | Height: | Size: 760 KiB After Width: | Height: | Size: 847 KiB |
BIN
res/discord.png
Before Width: | Height: | Size: 114 KiB |
Before Width: | Height: | Size: 13 KiB |
BIN
res/logo.png
Before Width: | Height: | Size: 9.0 KiB |
233
res/logo.svg
Normal file
@ -0,0 +1,233 @@
|
||||
<?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"
|
||||
id="svg8"
|
||||
version="1.1"
|
||||
viewBox="0 0 60 60"
|
||||
height="60mm"
|
||||
width="60mm">
|
||||
<title
|
||||
id="title5858">RedXen Logo</title>
|
||||
<defs
|
||||
id="defs2">
|
||||
<linearGradient
|
||||
id="Background">
|
||||
<stop
|
||||
style="stop-color:#780a0a;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop5809" />
|
||||
<stop
|
||||
style="stop-color:#e03333;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop5811" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="Hill">
|
||||
<stop
|
||||
id="stop5786"
|
||||
offset="0"
|
||||
style="stop-color:#333333;stop-opacity:1" />
|
||||
<stop
|
||||
id="stop5788"
|
||||
offset="1"
|
||||
style="stop-color:#111111;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientTransform="matrix(1.1445742,0,0,1.000417,-11.44574,9.8977502)"
|
||||
y2="246.96245"
|
||||
x2="20.284225"
|
||||
y1="264.95703"
|
||||
x1="18.19083"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient5794"
|
||||
xlink:href="#Hill" />
|
||||
<linearGradient
|
||||
gradientTransform="translate(-9.9999983,10)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
y2="247"
|
||||
x2="70"
|
||||
y1="247"
|
||||
x1="9.9999981"
|
||||
id="linearGradient5802"
|
||||
xlink:href="#Background" />
|
||||
<filter
|
||||
id="filter7467"
|
||||
style="color-interpolation-filters:sRGB;">
|
||||
<feFlood
|
||||
id="feFlood7457"
|
||||
result="flood"
|
||||
flood-color="rgb(0,0,0)"
|
||||
flood-opacity="0.498039" />
|
||||
<feComposite
|
||||
id="feComposite7459"
|
||||
result="composite1"
|
||||
operator="in"
|
||||
in2="SourceGraphic"
|
||||
in="flood" />
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur7461"
|
||||
result="blur"
|
||||
stdDeviation="1"
|
||||
in="composite1" />
|
||||
<feOffset
|
||||
id="feOffset7463"
|
||||
result="offset"
|
||||
dy="0"
|
||||
dx="0" />
|
||||
<feComposite
|
||||
id="feComposite7465"
|
||||
result="composite2"
|
||||
operator="over"
|
||||
in2="offset"
|
||||
in="SourceGraphic" />
|
||||
</filter>
|
||||
<filter
|
||||
id="filter7479"
|
||||
style="color-interpolation-filters:sRGB;">
|
||||
<feFlood
|
||||
id="feFlood7469"
|
||||
result="flood"
|
||||
flood-color="rgb(0,0,0)"
|
||||
flood-opacity="0.498039" />
|
||||
<feComposite
|
||||
id="feComposite7471"
|
||||
result="composite1"
|
||||
operator="in"
|
||||
in2="SourceGraphic"
|
||||
in="flood" />
|
||||
<feGaussianBlur
|
||||
id="feGaussianBlur7473"
|
||||
result="blur"
|
||||
stdDeviation="1"
|
||||
in="composite1" />
|
||||
<feOffset
|
||||
id="feOffset7475"
|
||||
result="offset"
|
||||
dy="0"
|
||||
dx="0" />
|
||||
<feComposite
|
||||
id="feComposite7477"
|
||||
result="composite2"
|
||||
operator="over"
|
||||
in2="offset"
|
||||
in="SourceGraphic" />
|
||||
</filter>
|
||||
</defs>
|
||||
<metadata
|
||||
id="metadata5">
|
||||
<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>RedXen Logo</dc:title>
|
||||
<dc:creator>
|
||||
<cc:Agent>
|
||||
<dc:title>caskd</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:creator>
|
||||
<dc:rights>
|
||||
<cc:Agent>
|
||||
<dc:title>caskd</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:rights>
|
||||
<dc:publisher>
|
||||
<cc:Agent>
|
||||
<dc:title>caskd</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:publisher>
|
||||
<dc:source>https://redxen.eu</dc:source>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
transform="translate(0,-237)"
|
||||
style="display:inline"
|
||||
id="layer1">
|
||||
<rect
|
||||
style="opacity:1;fill:url(#linearGradient5802);fill-opacity:1;stroke-width:0.16486949"
|
||||
y="237"
|
||||
x="0"
|
||||
height="40"
|
||||
width="60"
|
||||
id="rect10" />
|
||||
<flowRoot
|
||||
transform="scale(0.26458333)"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1.25;font-family:Roboto;-inkscape-font-specification:Roboto;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
|
||||
id="flowRoot5815"
|
||||
xml:space="preserve"><flowRegion
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Roboto;-inkscape-font-specification:Roboto"
|
||||
id="flowRegion5817"><rect
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Roboto;-inkscape-font-specification:Roboto"
|
||||
y="1027.0603"
|
||||
x="41.719299"
|
||||
height="53.740116"
|
||||
width="215.66757"
|
||||
id="rect5819" /></flowRegion><flowPara
|
||||
id="flowPara5821" /></flowRoot> </g>
|
||||
<g
|
||||
transform="translate(0,-237)"
|
||||
style="display:inline"
|
||||
id="layer3">
|
||||
<path
|
||||
id="path5784"
|
||||
d="m 16.001934,277.95942 c 2.06657,-0.21143 3.194576,-0.35708 4.584104,-0.59187 4.389791,-0.74172 7.723704,-1.84791 11.454427,-3.80041 1.984187,-1.03847 3.576661,-1.99925 6.986967,-4.21542 3.041727,-1.97667 4.255814,-2.71715 5.639469,-3.43946 4.063097,-2.12113 7.89196,-2.90908 14.149163,-2.91183 L 60,263 V 270.50002 278 l -22.144837,-0.004 c -12.17966,-0.004 -22.013614,-0.0189 -21.853229,-0.0351 z"
|
||||
style="opacity:1;fill:#222222;fill-opacity:1;stroke:none;stroke-width:0.02939439;stroke-opacity:1;filter:url(#filter7479)" />
|
||||
</g>
|
||||
<g
|
||||
transform="translate(0,-237)"
|
||||
style="display:inline;opacity:1"
|
||||
id="layer2">
|
||||
<flowRoot
|
||||
transform="scale(0.26458333)"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1.25;font-family:Roboto;-inkscape-font-specification:Roboto;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
|
||||
id="flowRoot5823"
|
||||
xml:space="preserve"><flowRegion
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Roboto;-inkscape-font-specification:Roboto"
|
||||
id="flowRegion5825"><rect
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:Roboto;-inkscape-font-specification:Roboto"
|
||||
y="1009.1339"
|
||||
x="37.795269"
|
||||
height="54.695965"
|
||||
width="117.41467"
|
||||
id="rect5827" /></flowRegion><flowPara
|
||||
id="flowPara5829">RedXemndss</flowPara></flowRoot> <flowRoot
|
||||
transform="scale(0.26458333)"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:40px;line-height:1;font-family:Roboto;-inkscape-font-specification:Roboto;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none"
|
||||
id="flowRoot5831"
|
||||
xml:space="preserve"><flowRegion
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:1;font-family:Roboto;-inkscape-font-specification:Roboto"
|
||||
id="flowRegion5833"><rect
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:1;font-family:Roboto;-inkscape-font-specification:Roboto"
|
||||
y="1042.9702"
|
||||
x="38.537319"
|
||||
height="14.142109"
|
||||
width="143.18912"
|
||||
id="rect5835" /></flowRegion><flowPara
|
||||
id="flowPara5837">RX</flowPara></flowRoot> <path
|
||||
id="path5743"
|
||||
d="m 0,267.00487 v -10.00412 c 0,0 1.0796148,-0.002 1.6194099,5.4e-4 8.7372871,0.0475 15.8696861,4.2806 23.5758461,11.99045 6.876315,6.87962 15.164325,7.89657 33.157039,7.89657 0.527241,0 1.497783,0.0887 1.645004,0.0971 l 0.0027,20.01459 -60,-0.006 z"
|
||||
style="opacity:1;fill:url(#linearGradient5794);fill-opacity:1;stroke:none;stroke-width:0.0505005;stroke-opacity:1;filter:url(#filter7467)" />
|
||||
</g>
|
||||
<g
|
||||
transform="translate(0,-237)"
|
||||
style="opacity:0.03"
|
||||
id="layer4">
|
||||
<text
|
||||
id="text5845"
|
||||
y="292.97177"
|
||||
x="25.172283"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.52777767px;line-height:1.25;font-family:Bad Script;-inkscape-font-specification:'Bad Script, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;display:inline;opacity:1;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
|
||||
xml:space="preserve"><tspan
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:3.52777767px;line-height:1.25;font-family:Bad Script;-inkscape-font-specification:'Bad Script, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-feature-settings:normal;text-align:start;writing-mode:lr-tb;text-anchor:start;stroke-width:0.26458332"
|
||||
y="292.97177"
|
||||
x="25.172283"
|
||||
id="tspan5843">RedXen</tspan></text>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 9.1 KiB |
BIN
res/logowhite.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
274
res/web.css
@ -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;
|
||||
}
|
||||
}
|
BIN
res/yagpdb.png
Before Width: | Height: | Size: 50 KiB |