mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-12 02:47:28 -05:00
some stuff
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
|
||||
pretendo.css -
|
||||
main css file of the pretendo website
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
for home page only.
|
||||
sets the background
|
||||
|
||||
*/
|
||||
.hp-background {
|
||||
|
||||
-webkit-filter: grayscale(100%);
|
||||
filter: grayscale(100%);
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
homepage container for the title and stuff
|
||||
|
||||
*/
|
||||
.hp-container {
|
||||
|
||||
display: flex;
|
||||
position: relative;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
text-align: left;
|
||||
left: 0%;
|
||||
z-index: 100;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
title text
|
||||
|
||||
*/
|
||||
.title {
|
||||
|
||||
font-family: "Overpass Mono", monospace;
|
||||
font-size: 500%;
|
||||
line-height: 0;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
main text
|
||||
|
||||
*/
|
||||
.text {
|
||||
|
||||
font-family: "Space Mono", monospace;
|
||||
font-size: 150%;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
icon
|
||||
|
||||
*/
|
||||
.icon {
|
||||
|
||||
position: relative;
|
||||
height: 10%;
|
||||
width: 10%;
|
||||
|
||||
}
|
||||
|
||||
BIN
assets/images/bg.gif
Normal file
BIN
assets/images/bg.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 MiB |
@@ -1,28 +0,0 @@
|
||||
const router = require('express').Router();
|
||||
|
||||
/**
|
||||
* [GET]
|
||||
* Displays the account web page if user is authenticated,
|
||||
* and redirects to the login page if not
|
||||
*/
|
||||
router.get('/', (req, res) => {
|
||||
//res.render('account/dashboard');
|
||||
});
|
||||
|
||||
/**
|
||||
* [GET]
|
||||
* Displays the login web page
|
||||
*/
|
||||
router.get('/login', (req, res) => {
|
||||
res.render('account/login');
|
||||
});
|
||||
|
||||
/**
|
||||
* [POST]
|
||||
* Recieves data from web form
|
||||
*/
|
||||
router.post('/login/authenticate', (req, res) => {
|
||||
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
@@ -1,11 +1,20 @@
|
||||
const router = require('express').Router();
|
||||
/*
|
||||
|
||||
/**
|
||||
* [GET]
|
||||
* Displays the home page
|
||||
*/
|
||||
home.js -
|
||||
file for handling routes. this one's
|
||||
for routes on the root path
|
||||
|
||||
*/
|
||||
|
||||
// import express' router
|
||||
const router = require('express').Router()
|
||||
|
||||
// display home page
|
||||
router.get('/', (req, res) => {
|
||||
res.render('home');
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
res.render('home')
|
||||
|
||||
})
|
||||
|
||||
// export the router
|
||||
module.exports = router
|
||||
|
||||
78
server.js
78
server.js
@@ -1,30 +1,64 @@
|
||||
const express = require('express');
|
||||
const exphbs = require('express-handlebars');
|
||||
const app = express();
|
||||
const config = require('./config.json');
|
||||
require('colors');
|
||||
/*
|
||||
|
||||
const ROUTES = {
|
||||
HOME: require('./routes/home'),
|
||||
ACCOUNT: require('./routes/account')
|
||||
};
|
||||
server.js -
|
||||
the file that contains the code to run the server
|
||||
|
||||
app.engine('.hbs', exphbs({
|
||||
extname: '.hbs',
|
||||
layoutsDir: 'views',
|
||||
partialsDir: 'views/partials'
|
||||
}));
|
||||
app.set('view engine', '.hbs');
|
||||
*/
|
||||
|
||||
app.use('/assets', express.static('assets'));
|
||||
// module imports, and
|
||||
// some important variable defs
|
||||
const express = require("express"),
|
||||
handlebars = require("express-handlebars"),
|
||||
config = require("./config.json"),
|
||||
app = express()
|
||||
|
||||
app.use('/account', ROUTES.ACCOUNT);
|
||||
app.use('/', ROUTES.HOME);
|
||||
// import the colors module
|
||||
require("colors")
|
||||
|
||||
// locations for some files
|
||||
const locations = {
|
||||
|
||||
home: require("./routes/home"),
|
||||
|
||||
}
|
||||
|
||||
// load the handlebars module
|
||||
app.engine(".hbs", handlebars({
|
||||
|
||||
extname: ".hbs",
|
||||
layoutsDir: "views",
|
||||
partialsDir: "views/partials"
|
||||
|
||||
}))
|
||||
|
||||
// set express to use handlebars
|
||||
// as the templating engine
|
||||
app.set("view engine", ".hbs")
|
||||
|
||||
// set some routes on the server
|
||||
|
||||
// assets folder serving
|
||||
app.use("/assets", express.static("assets"))
|
||||
|
||||
// website root
|
||||
app.use('/', locations.home)
|
||||
|
||||
// send a 404 on a file not
|
||||
// being found
|
||||
app.use((req, res) => {
|
||||
res.render('404');
|
||||
});
|
||||
|
||||
// set the status to that
|
||||
// of a 404
|
||||
res.status("404")
|
||||
|
||||
// send the 404 template
|
||||
res.render("404")
|
||||
|
||||
})
|
||||
|
||||
// start the server
|
||||
app.listen(config.http.port, () => {
|
||||
console.log('Started '.green + 'on port '.red + new String(config.http.port).yellow);
|
||||
});
|
||||
|
||||
console.log(`started the server on port: ${ new String(config.http.port).green }`)
|
||||
|
||||
})
|
||||
|
||||
@@ -5,7 +5,9 @@
|
||||
<body>
|
||||
{{> navbar }}
|
||||
|
||||
|
||||
<h1>haha-yes</h1>
|
||||
|
||||
file not found!
|
||||
|
||||
{{> footer }}
|
||||
</body>
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{{> head }}
|
||||
<body>
|
||||
{{> navbar }}
|
||||
|
||||
|
||||
|
||||
{{> footer }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,12 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
{{> head }}
|
||||
<body>
|
||||
{{> navbar }}
|
||||
|
||||
|
||||
|
||||
{{> footer }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,12 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
{{> head }}
|
||||
<body>
|
||||
{{> navbar }}
|
||||
|
||||
</head>
|
||||
|
||||
<body class="hp-container">
|
||||
|
||||
<img class="hp-background" src="/assets/images/bg.gif">
|
||||
|
||||
<div class="hp-container">
|
||||
|
||||
<h1 class="title"><img class="icon" src="/assets/images/pretendo-logo.svg">pretendo</h1>
|
||||
<div class="text">
|
||||
an accurate-as-possible server emulation project for<br>
|
||||
nintendo consoles that use nintendo network
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{{> footer }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="A close-as-possible server emulation project for the 3DS and Wii U.">
|
||||
<meta name="description" content="an accurate-as-possible server emulation project for nintendo network-enabled devices">
|
||||
|
||||
<link rel="icon" href="/assets/favicon.ico">
|
||||
<link rel="apple-touch-icon" href="/assets/favicon.ico">
|
||||
<link rel="mask-icon" href="/assets/images/pretendo-logo.svg">
|
||||
|
||||
<title>Pretendo</title>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css?family=Overpass+Mono|Space+Mono" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/assets/css/pretendo.css">
|
||||
|
||||
|
||||
<title>pretendo</title>
|
||||
Reference in New Issue
Block a user