Moved css, js files from includes to assets.

This commit is contained in:
Gitea
2020-02-06 17:33:58 -05:00
parent 0d798846b0
commit 5443d91f86
11 changed files with 145 additions and 59 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,49 +0,0 @@
/* 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;
}
}

View File

@ -1,14 +1,14 @@
<footer>
<p>&copy; Quartznet 2019 | <a href="/quartznet/policy">Policy</a></p>
</footer>
<footer>
<p>&copy; 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>
<!-- 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>
<script src="/quartznet/assets/js/jquery-3.4.1.min.js" defer></script>
<script src="/quartznet/assets/js/bootstrap.bundle.min.js" defer></script>

View File

@ -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">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="At quartznet, we develop games and tools.">
<meta name="keywords" content="Quartznet, Software, Games, Tools"/>
<link rel="icon" href="/quartznet/assets/favicon.ico">
<link href="/quartznet/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="/quartznet/assets/css/stylesheet.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
<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="/quartznet/assets/css/light.css" onload="document.documentElement.style.display = \'\'">'
);
}
</script>
<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)">
<!-- Load based on colour scheme -->
<link rel="stylesheet" href="/quartznet/assets/css/dark.css" media="(prefers-color-scheme: dark)">
<link rel="stylesheet" href="/quartznet/assets/css/light.css" media="(prefers-color-scheme: no-preference), (prefers-color-scheme: light)">

View File

@ -1,10 +1,11 @@
<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>
<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"><a href="/quartznet/contact">Contact</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>

File diff suppressed because one or more lines are too long

View File

@ -1,67 +0,0 @@
/* 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;
}
}

88
includes/page.php Executable file
View 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>&copy; 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>

View File

@ -1,168 +0,0 @@
/* Quartznet - Main stylesheet */
html, body {
margin: 0px;
padding: 0px;
}
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: 16px;
line-height: 1.8;
}
header {
min-height: 50px;
padding: 10px 0px;
}
.title {
/* border: 2px solid red; */
font-size: 48px;
padding-left: 10px;
padding-right: 10px; /* text-align: center; */
}
/* flexbox navbar test*/
.menu {
padding-left: 0;
display: flex;
flex-flow: row wrap;
}
.info {
/* border: 2px solid red; */
flex: 1 1 100%;
font-size: 20px;
padding-left: 10px;
padding-right: 10px;
text-align: center;
}
.item {
/* border: 2px solid red; */
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: 3%;
margin-bottom: 30px;
margin-top: 30px;
}
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;
}