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 |
3
.gitignore
vendored
@ -1,3 +0,0 @@
|
||||
*.css
|
||||
.*~
|
||||
*.kate-swp
|
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 caskd
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
17
README.md
Normal file
@ -0,0 +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.
|
||||
|
||||
## How does this work?
|
||||
It is based around flexboxes mostly to ensure efficiency and good support.
|
||||
|
||||
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.
|
||||
|
||||
## 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;
|
||||
}
|
169
css/main.less
@ -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 }
|
||||
}
|
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: 298 KiB After Width: | Height: | Size: 104 KiB |
@ -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.
|
@ -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 aren’t 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.
|
173
index.html
@ -1,110 +1,75 @@
|
||||
<!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>
|
||||
|
||||
<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: #ccc">
|
||||
<div id="bg" class="bg-landing">
|
||||
<img alt="background" data-depth="0.2" src="res/bg.jpg">
|
||||
</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 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="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="slideshow">
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<div class="spacer"></div>
|
||||
<div class="logo slide-top">
|
||||
<img alt="logo" src="res/logo.svg">
|
||||
</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="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 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>
|
||||
</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
Normal file
After Width: | Height: | Size: 847 KiB |
Before Width: | Height: | Size: 4.0 KiB |
BIN
res/logo.png
Before Width: | Height: | Size: 26 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 |
Before Width: | Height: | Size: 180 KiB |
Before Width: | Height: | Size: 156 KiB |
Before Width: | Height: | Size: 56 KiB |
Before Width: | Height: | Size: 128 KiB |