Moved css, js files from includes to assets.
This commit is contained in:
parent
5365d8b34a
commit
7473506141
11 changed files with 145 additions and 59 deletions
6
assets/css/bootstrap.min.css
vendored
Executable file
6
assets/css/bootstrap.min.css
vendored
Executable file
File diff suppressed because one or more lines are too long
49
assets/css/dark.css
Executable file
49
assets/css/dark.css
Executable file
|
|
@ -0,0 +1,49 @@
|
||||||
|
/* Dark mode */
|
||||||
|
@media (prefers-color-scheme:dark) {
|
||||||
|
body {
|
||||||
|
background-color: #2d383e;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3 {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
background-color: #182329;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #CC99FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
color: white;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
background-color: #182329;
|
||||||
|
}
|
||||||
|
|
||||||
|
main p {
|
||||||
|
color: #C8C8C8;
|
||||||
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
|
background-color: #182329;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background-color: #182329;
|
||||||
|
color: #C8C8C8;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
67
assets/css/light.css
Executable file
67
assets/css/light.css
Executable file
|
|
@ -0,0 +1,67 @@
|
||||||
|
/* Light mode */
|
||||||
|
@media (prefers-color-scheme:light) {
|
||||||
|
body {
|
||||||
|
background-color: #AAAAAA;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3 {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu * {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
li a {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
li a:hover {
|
||||||
|
color: #CC99FF;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
li a:visited {
|
||||||
|
|
||||||
|
/*color: blue;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
main p {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
main a, footer a {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
main a:hover, footer a:hover {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
section {
|
||||||
|
background-color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
background-color: white;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
168
assets/css/stylesheet.css
Executable file
168
assets/css/stylesheet.css
Executable file
|
|
@ -0,0 +1,168 @@
|
||||||
|
/* Quartznet - Main stylesheet */
|
||||||
|
html, body {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
border: 0px;
|
||||||
|
width:100%;
|
||||||
|
height:100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3 {
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: url(/assets/textures/blue.jpg);
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
font-size: 18px;
|
||||||
|
font-display: swap;
|
||||||
|
line-height: 1.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
min-height: 50px;
|
||||||
|
padding: 10px 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 48px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* flexbox navbar test*/
|
||||||
|
.menu {
|
||||||
|
padding-left: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
flex: 1 1 100%;
|
||||||
|
font-size: 20px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item {
|
||||||
|
flex: 0 1 100px;
|
||||||
|
font-size: 18px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
li a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
li a:visited {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Main content box */
|
||||||
|
main {
|
||||||
|
margin-top: 30px;
|
||||||
|
margin-bottom: 30px;
|
||||||
|
margin-top: 30px;
|
||||||
|
min-height: 70vh;
|
||||||
|
/*Extra space to push footer to the bottom when there is not much content*/
|
||||||
|
min-height: calc(100vh - (60px + 215px));
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3 {
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Different content box types*/
|
||||||
|
section {
|
||||||
|
border-radius: 5px;
|
||||||
|
min-height: 380px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Login test */
|
||||||
|
.login-form {
|
||||||
|
margin: 0 auto;
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-control, .btn {
|
||||||
|
min-height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group {
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group>input, .form-label-group>label {
|
||||||
|
padding: var(--input-padding-y) var(--input-padding-x);
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group>label {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
margin-bottom: 0; /* Override default `<label>` margin */
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #495057;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-radius: .25rem;
|
||||||
|
transition: all .1s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group input::-webkit-input-placeholder {
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group input:-ms-input-placeholder {
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group input::-ms-input-placeholder {
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group input::-moz-placeholder {
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group input::placeholder {
|
||||||
|
color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group input:not(:placeholder-shown) {
|
||||||
|
padding-top: calc(var(--input-padding-y) + var(--input-padding-y) * (2 / 3));
|
||||||
|
padding-bottom: calc(var(--input-padding-y) / 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-label-group input:not(:placeholder-shown)~label {
|
||||||
|
color: #777;
|
||||||
|
font-size: 12px;
|
||||||
|
padding-top: calc(var(--input-padding-y) / 3);
|
||||||
|
padding-bottom: calc(var(--input-padding-y) / 3);
|
||||||
|
}
|
||||||
|
/*end login test */
|
||||||
|
|
||||||
|
/* Footer at bottom of page */
|
||||||
|
footer {
|
||||||
|
font-size: 18px;
|
||||||
|
height: 60px;
|
||||||
|
line-height: 60px;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer > p {
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
6
assets/js/bootstrap.bundle.min.js
vendored
Executable file
6
assets/js/bootstrap.bundle.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
2
assets/js/jquery-3.4.1.min.js
vendored
Normal file
2
assets/js/jquery-3.4.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -1,14 +1,14 @@
|
||||||
<footer>
|
<footer>
|
||||||
<p>© Quartznet 2019 | <a href="/quartznet/policy">Policy</a></p>
|
<p>© Quartznet 2020 | <a href="/quartznet/policy">Policy</a></p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!-- google analytics -->
|
<!-- Google analytics -->
|
||||||
<script>
|
<script>
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
function gtag(){dataLayer.push(arguments);}
|
function gtag(){dataLayer.push(arguments);}
|
||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
gtag('config', 'UA-120787474-1');
|
gtag('config', 'UA-120787474-1');
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="/quartznet/includes/jquery-3.4.1.min.js" defer></script>
|
<script src="/quartznet/assets/js/jquery-3.4.1.min.js" defer></script>
|
||||||
<script src="/quartznet/includes/bootstrap.bundle.min.js" defer></script>
|
<script src="/quartznet/assets/js/bootstrap.bundle.min.js" defer></script>
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,25 @@
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
<meta name="description" content="We are software and game developers.">
|
||||||
|
<meta name="keywords" content="Quartznet, Software, Games, Tools"/>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<link rel="icon" href="/quartznet/assets/favicon.ico">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<link href="/quartznet/assets/css/bootstrap.min.css" rel="stylesheet">
|
||||||
<meta name="description" content="At quartznet, we develop games and tools.">
|
<link href="/quartznet/assets/css/stylesheet.css" rel="stylesheet">
|
||||||
<meta name="keywords" content="Quartznet, Software, Games, Tools"/>
|
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
<link rel="icon" href="/quartznet/assets/favicon.ico">
|
<script>
|
||||||
<link href="/quartznet/includes/bootstrap.min.css" rel="stylesheet">
|
// If `prefers-color-scheme` is not supported, fall back to light mode.
|
||||||
<link href="/quartznet/includes/stylesheet.css" rel="stylesheet">
|
// In this case, light.css will be downloaded with `highest` priority.
|
||||||
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
|
if (window.matchMedia('(prefers-color-scheme: dark)').media === 'not all') {
|
||||||
|
document.documentElement.style.display = 'none';
|
||||||
|
document.head.insertAdjacentHTML(
|
||||||
|
'beforeend',
|
||||||
|
'<link rel="stylesheet" href="/quartznet/assets/css/light.css" onload="document.documentElement.style.display = \'\'">'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<script>
|
<!-- Load based on colour scheme -->
|
||||||
// If `prefers-color-scheme` is not supported, fall back to light mode.
|
<link rel="stylesheet" href="/quartznet/assets/css/dark.css" media="(prefers-color-scheme: dark)">
|
||||||
// In this case, light.css will be downloaded with `highest` priority.
|
<link rel="stylesheet" href="/quartznet/assets/css/light.css" media="(prefers-color-scheme: no-preference), (prefers-color-scheme: light)">
|
||||||
if (window.matchMedia('(prefers-color-scheme: dark)').media === 'not all') {
|
|
||||||
document.documentElement.style.display = 'none';
|
|
||||||
document.head.insertAdjacentHTML(
|
|
||||||
'beforeend',
|
|
||||||
'<link rel="stylesheet" href="/includes/light.css" onload="document.documentElement.style.display = \'\'">'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<!-- Load based on colour scheme -->
|
|
||||||
<link rel="stylesheet" href="/quartznet/includes/dark.css" media="(prefers-color-scheme: dark)">
|
|
||||||
<link rel="stylesheet" href="/quartznet/includes/light.css" media="(prefers-color-scheme: no-preference), (prefers-color-scheme: light)">
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
<header>
|
<header>
|
||||||
<nav class="container">
|
<nav class="container">
|
||||||
<a class="title" href="/quartznet/">Quartznet</a>
|
<a class="title" href="/quartznet/">Quartznet</a>
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li class="item"><a href="/quartznet/about">About</a></li>
|
<li class="item"><a href="/quartznet/about">About</a></li>
|
||||||
<li class="item button"><a href="/quartznet/admin/login.php">Admin</a></li>
|
<li class="item"><a href="/quartznet/contact">Contact</a></li>
|
||||||
<li class="toggle"><a href="#"><i class="fas fa-bars"></i></a></li>
|
<li class="item button"><a href="/quartznet/admin/login.php">Admin</a></li>
|
||||||
</ul>
|
<li class="toggle"><a href="#"><i class="fas fa-bars"></i></a></li>
|
||||||
</nav>
|
</ul>
|
||||||
</header>
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
|
||||||
88
includes/page.php
Executable file
88
includes/page.php
Executable file
|
|
@ -0,0 +1,88 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
<meta name="description" content="We are software and game developers.">
|
||||||
|
<meta name="keywords" content="Quartznet, Software, Games, Tools" />
|
||||||
|
|
||||||
|
<title>Quartznet</title>
|
||||||
|
|
||||||
|
<link rel="icon" href="/quartznet/assets/favicon.ico">
|
||||||
|
<link href="/quartznet/includes/bootstrap.min.css" rel="stylesheet">
|
||||||
|
<link href="/quartznet/includes/stylesheet.css" rel="stylesheet">
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// If `prefers-color-scheme` is not supported, fall back to light mode.
|
||||||
|
// In this case, light.css will be downloaded with `highest` priority.
|
||||||
|
if (window.matchMedia('(prefers-color-scheme: dark)').media === 'not all') {
|
||||||
|
document.documentElement.style.display = 'none';
|
||||||
|
document.head.insertAdjacentHTML(
|
||||||
|
'beforeend',
|
||||||
|
'<link rel="stylesheet" href="/includes/light.css" onload="document.documentElement.style.display = \'\'">'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<!-- Load based on colour scheme -->
|
||||||
|
<link rel="stylesheet" href="/quartznet/includes/dark.css" media="(prefers-color-scheme: dark)">
|
||||||
|
<link rel="stylesheet" href="/quartznet/includes/light.css" media="(prefers-color-scheme: no-preference), (prefers-color-scheme: light)">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<nav class="container">
|
||||||
|
<a class="title" href="/quartznet/">Quartznet</a>
|
||||||
|
<ul class="menu">
|
||||||
|
<li class="item"><a href="/quartznet/about">About</a></li>
|
||||||
|
<li class="item button"><a href="/quartznet/admin/login.php">Admin</a></li>
|
||||||
|
<li class="toggle"><a href="#"><i class="fas fa-bars"></i></a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="container">
|
||||||
|
<section>
|
||||||
|
<h1>Sirius</h1>
|
||||||
|
<a href="/quartznet/sirius"><img class="img-fluid rounded mb-4 mb-lg-0" src="https://placehold.it/900x400" alt=""></a>
|
||||||
|
<p>A 2D sci-fi game about wannabe space captain trying to find their path.</p>
|
||||||
|
<p>Stores: Steam, Itch</p>
|
||||||
|
<p>Platforms: Windows, Mac, Linux</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section>
|
||||||
|
<h1>Coming soon</h1>
|
||||||
|
<a href="/quartznet/sirius"><img class="img-fluid rounded mb-4 mb-lg-0" src="https://placehold.it/900x400" alt=""></a>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm">
|
||||||
|
<p>More text here soonTM.</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm">
|
||||||
|
<p>Stores: Steam, Itch</p>
|
||||||
|
<p>Platforms: Windows, Mac, Linux</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<p>© Quartznet 2020 | <a href="/quartznet/policy">Policy</a></p>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Google analytics -->
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
gtag('config', 'UA-120787474-1');
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script src="/quartznet/includes/jquery-3.4.1.min.js" defer></script>
|
||||||
|
<script src="/quartznet/includes/bootstrap.bundle.min.js" defer></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
Loading…
Reference in a new issue