First Commit
This commit is contained in:
commit
7c5a4cebbf
13 files changed
+1948
No files matched your search
@@ -0,0 +1,2 @@
|
||||
# Port to start server on.
|
||||
PORT=5000
|
||||
@@ -0,0 +1,5 @@
|
||||
# Dependencies.
|
||||
node_modules/*
|
||||
|
||||
# Enviroment variables
|
||||
.env
|
||||
@@ -0,0 +1,19 @@
|
||||
var express = require('express')
|
||||
var path = require('path');
|
||||
var http = require('http').createServer(express);
|
||||
var dotenv = require('dotenv');
|
||||
dotenv.config();
|
||||
|
||||
const app = express();
|
||||
|
||||
app.set('view engine', 'ejs');
|
||||
|
||||
app.use('/static', express.static(path.join(__dirname, 'public')));
|
||||
|
||||
var port = process.env.PORT || 5000;
|
||||
|
||||
const server = app.listen(port, function () {
|
||||
console.log('Server started.', server.address());
|
||||
});
|
||||
|
||||
require('./app/routes')(app, server);
|
||||
@@ -0,0 +1,9 @@
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const server = require('http').Server(app);
|
||||
|
||||
module.exports = function (app, server) {
|
||||
app.get('/', function (req, res) {
|
||||
res.render('index');
|
||||
});
|
||||
}
|
||||
Generated
+1470
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "dayz-website",
|
||||
"version": "1.0.0",
|
||||
"description": "dayz community website",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
"dev": "nodemon app.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://Braeden57/Dayz-Website"
|
||||
},
|
||||
"author": "Braeden Sowinski",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"dotenv": "^8.2.0",
|
||||
"ejs": "^3.1.5",
|
||||
"express": "^4.17.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^2.0.6"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,264 @@
|
||||
@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');
|
||||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
font-family: 'Oswald', sans-serif;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body::-webkit-scrollbar {
|
||||
width: 1em;
|
||||
}
|
||||
|
||||
body::-webkit-scrollbar-track {
|
||||
box-shadow: inset 0 0 6px rgba(37, 67, 152, 0.3);
|
||||
}
|
||||
|
||||
body::-webkit-scrollbar-thumb {
|
||||
background-color: darkgrey;
|
||||
outline: 1px solid slategrey;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
body {
|
||||
background: rgba(126, 134, 145, .4);
|
||||
}
|
||||
|
||||
nav {
|
||||
overflow-y: hidden;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 30px;
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
line-height: 50px;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.rules {
|
||||
margin-left: 200px;
|
||||
}
|
||||
|
||||
#about, #rules {
|
||||
height: 800px;
|
||||
}
|
||||
|
||||
#about-content, #rules-content, #require-content{
|
||||
transform: translate(0px, 300px);
|
||||
}
|
||||
|
||||
.text-link {
|
||||
border: none;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
ul li {
|
||||
display: inline-block;
|
||||
margin-top: 20px;
|
||||
margin-left: 30px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
ul li::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 10%;
|
||||
width: 0;
|
||||
background-color: #00a2ff;
|
||||
z-index: 9999;
|
||||
height: 3px;
|
||||
transition: 0.8s all;
|
||||
}
|
||||
|
||||
ul li:hover::before {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
ul li a{
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
transition: 0.8s all;
|
||||
}
|
||||
|
||||
ul li a:hover {
|
||||
color: #00a2ff
|
||||
}
|
||||
|
||||
.logo {
|
||||
padding: 0 20px;
|
||||
transform: translate(0px, 15px);
|
||||
}
|
||||
|
||||
.logo a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
font-size: 150%;
|
||||
}
|
||||
|
||||
.image-wrap {
|
||||
height: 100%;
|
||||
filter: brightness(80%);
|
||||
}
|
||||
|
||||
.box {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.main-content{
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 70%;
|
||||
}
|
||||
|
||||
.contact-content {
|
||||
position: absolute;
|
||||
top: 250%;
|
||||
left: 65%;
|
||||
}
|
||||
|
||||
.require-content {
|
||||
position: absolute;
|
||||
top: 490%;
|
||||
left: 10%;
|
||||
max-width: 800px;
|
||||
}
|
||||
|
||||
.details-box {
|
||||
color: white
|
||||
}
|
||||
|
||||
.details-box h2 {
|
||||
font-size: 2.2vw;
|
||||
font-family: arial;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.details-box h1 {
|
||||
font-size: 5vw;
|
||||
font-family: 'Oswald', sans-serif;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.details-box p {
|
||||
font-family: arial;
|
||||
font-size: 18px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
.join-btn {
|
||||
display: inline-block;
|
||||
padding: 11px 40px;
|
||||
font-size: 18px;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
border: 2px solid white;
|
||||
border-radius: 6px;
|
||||
transition: 0.8s all;
|
||||
background-color: transparent;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.join-btn:hover {
|
||||
background-color: #f6ba18;
|
||||
}
|
||||
|
||||
.about-container p,
|
||||
.creator p {
|
||||
font-family: arial;
|
||||
font-size: 18px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
/* Mobile Nav */
|
||||
|
||||
.menu {
|
||||
display: none;
|
||||
color: white;
|
||||
size: 125%;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
height: 100%;
|
||||
width: 0;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
left: 0;
|
||||
top: 0;
|
||||
background-color: #24252a;
|
||||
overflow-x: hidden;
|
||||
transition: all 0.5s ease 0s;
|
||||
}
|
||||
|
||||
.overlay--active {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.overlay__content {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.overlay a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
padding: 15px;
|
||||
font-size: 36px;
|
||||
display: block;
|
||||
transition: all 0.3s ease 0s;
|
||||
}
|
||||
|
||||
.overlay a:hover,
|
||||
.overlay a:focus {
|
||||
color: #0088a9;
|
||||
}
|
||||
|
||||
.overlay .close {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 45px;
|
||||
font-size: 60px;
|
||||
color: #edf0f1;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media screen and (max-height: 450px) {
|
||||
.overlay a {
|
||||
font-size: 20px;
|
||||
}
|
||||
.overlay .close {
|
||||
font-size: 40px;
|
||||
top: 15px;
|
||||
right: 35px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 800px) {
|
||||
.nav__links,
|
||||
.cta {
|
||||
display: none;
|
||||
}
|
||||
.menu {
|
||||
display: initial;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile background fix*/
|
||||
@media all and (max-width:480px) {
|
||||
img {display:block;margin:0 auto;}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 491 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 331 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 472 KiB |
@@ -0,0 +1,12 @@
|
||||
const doc = document;
|
||||
const menuOpen = doc.querySelector(".menu");
|
||||
const menuClose = doc.querySelector(".close");
|
||||
const overlay = doc.querySelector(".overlay");
|
||||
|
||||
menuOpen.addEventListener("click", () => {
|
||||
overlay.classList.add("overlay--active");
|
||||
});
|
||||
|
||||
menuClose.addEventListener("click", () => {
|
||||
overlay.classList.remove("overlay--active");
|
||||
});
|
||||
+143
@@ -0,0 +1,143 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang='en'>
|
||||
|
||||
<head>
|
||||
<title>GLW Dayz</title>
|
||||
<meta name='description' content='This is the SHSS Toytastic Website!'>
|
||||
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
|
||||
|
||||
<!-- Load CSS -->
|
||||
<link rel='stylesheet' href='/static/css/style.css'>
|
||||
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<!-- Desktop Nav menu -->
|
||||
<nav>
|
||||
<ul class="nav__links">
|
||||
<li><a href='#main'>Home</a></li>
|
||||
<li><a href="#about">About</a></li>
|
||||
<li><a href="#contact">Contact</a></li>
|
||||
<li><a href='#rules'>Rules</a></li>
|
||||
<li><a href='#requirements'>Requirements</a></li>
|
||||
<li><a href='https://dayz.gamepedia.com/DayZ_Wiki' target="_blank">Dayz Wiki</a></li>
|
||||
</ul>
|
||||
<p class="menu cta">Menu</p>
|
||||
</nav>
|
||||
|
||||
<!-- Moble Nav Menu -->
|
||||
<div id="mobile__menu" class="overlay">
|
||||
<a class="close">×</a>
|
||||
<div class="overlay__content">
|
||||
<a href="#main">Home</a>
|
||||
<a href="/about">About</a>
|
||||
<a href='#contact'>Contact</a>
|
||||
<a href='#rules'>Rules</a>
|
||||
<a href='#requirements'>Requirements</a>
|
||||
<a href='https://dayz.gamepedia.com/DayZ_Wiki' target="_blank">Dayz Wiki</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main Body / Welcome Section -->
|
||||
<div class='wrapper'>
|
||||
<div class='main' id='main'>
|
||||
<div class='image-box'>
|
||||
<div class='image-wrap'>
|
||||
<img src='/static/images/background.jpg' alt='background'>
|
||||
</div>
|
||||
<div class='main-content'>
|
||||
<div class='details-box'>
|
||||
<h2>A growing Dayz Communtiy</h2>
|
||||
<h1>Guns n Loot n Weed</h1>
|
||||
<p>We are a Dayz community always looking for more active members to join us in our journey throughout the wastelands of Chernarus.
|
||||
Before you join; be sure to read the <a href='#requirements'>Requirements</a> and <a href='#rules'>Rules</a></p>
|
||||
<a class='join-btn' href='https://discord.gg/J783uRgJFa' target="_blank">Join our Community</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- About Communtiy Section -->
|
||||
<div class="w3-container w3-content w3-center w3-padding-64" style="max-width:800px; margin-bottom: 15%; font-size: 115%;" id="about">
|
||||
<div id='about-content'>
|
||||
<h2 class="w3-wide">THE COMMUNTIY</h2>
|
||||
<p class="w3-opacity"><i></i></p>
|
||||
<p class="w3-justify">This website was created as a informative website to help us grow our communtiy. Who can join? Anyone can as long as
|
||||
they have the <a href="#requrements">Requirements</a>. Our community is growing fast with over 35+ members! We may run out of space,
|
||||
so come join now and start having fun. The server allows you to use Mouse and Keyboard on your xbox to play and is a KOS (Kill On Site)
|
||||
community. This makes us a high risk community; so form a faction or join one. Have a group of people to survive So Belive it or not.
|
||||
This site was custom programmed from scratch by a community member himelf.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Contact Section -->
|
||||
<div class='wrapper'>
|
||||
<div class='contact' id='contact'>
|
||||
<div class='image-box'>
|
||||
<div class='image-wrap'>
|
||||
<img src='/static/images/background2.jpg' alt='background'>
|
||||
</div>
|
||||
<div class='contact-content'>
|
||||
<div class='details-box'>
|
||||
<h2>Contact</h2>
|
||||
<hr>
|
||||
<h3>See something wrong with the website?<h3>
|
||||
<p>Contact the Developer on Discord: McDazzzled#5307<p>
|
||||
<br>
|
||||
<h3>or Create a</h3>
|
||||
<a class='join-btn' href='https://github.com/Braeden57/Dayz-Website/issues' target='_blank'>Bug Report</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Rules Section -->
|
||||
<div class="w3-container w3-content w3-center w3-padding-64" style="margin-bottom: 15%; font-size: 115%" id="rules">
|
||||
<div id='rules-content'>
|
||||
<h2 class='w3-wide'>Rules</h2>
|
||||
<p class="w3-opacity"><i></i></p>
|
||||
<ol class='rules'>
|
||||
<li class="w3-justify">1. Do not spam chats or post any content that is sexual, gruesome or racist</li>
|
||||
<li class="w3-justify">2. Do not shoot in Radio Zenit or raid the trader post there. Ignoring this rule can be an instant banned </li>
|
||||
<li class="w3-justify">3. No god mode glitching or lag switches</li>
|
||||
<li class="w3-justify">4. No combat logging</li>
|
||||
<li class="w3-justify">5. No base building around the no PvP zone</li>
|
||||
<li class="w3-justify">6. No border line camping on the no PVP Zone in Radio Zenit. Players must be in the next town over from no PVP area to engage PVP</li>
|
||||
<li class="w3-justify">7. Bounties can not be claimed by same faction members or allies</li>
|
||||
<li class="w3-justify">8. No ALT accounts if you get caught doing this you will be banned</li>
|
||||
</ol>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Requirements Section -->
|
||||
<div class='wrapper'>
|
||||
<div class='requirements' id='requirements'>
|
||||
<div class='image-box'>
|
||||
<div class='image-wrap'>
|
||||
<img src='/static/images/background3.jpg' alt='background'>
|
||||
</div>
|
||||
<div class='require-content'>
|
||||
<div class='details-box'>
|
||||
<h2 class="w3-wide">Requirements</h2>
|
||||
<p class="w3-opacity"><i></i></p>
|
||||
<p class="w3-justify">You will obviously need Dayz on your Xbox to play. You will also require <a href='https://discord.com/' target='_blank'>Discord</a>, a Microphone to use on your xbox.
|
||||
Optional requirement that is suggested is the <a href='https://dayz.ginfo.gg/' target='_blank'>Dayz Map</a> to help you navigate the large map of Chernarus.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Load Scripts -->
|
||||
<script src='/static/scripts/mobile.js'></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in new issue
Block a user