Initial commit
This commit is contained in:
7
includes/bootstrap.bundle.min.js
vendored
Executable file
7
includes/bootstrap.bundle.min.js
vendored
Executable file
File diff suppressed because one or more lines are too long
7
includes/bootstrap.min.css
vendored
Executable file
7
includes/bootstrap.min.css
vendored
Executable file
File diff suppressed because one or more lines are too long
49
includes/dark.css
Executable file
49
includes/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;
|
||||
}
|
||||
|
||||
}
|
14
includes/footer.php
Executable file
14
includes/footer.php
Executable file
@ -0,0 +1,14 @@
|
||||
<footer>
|
||||
<p>© Quartznet 2019 | <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>
|
26
includes/head.php
Executable file
26
includes/head.php
Executable file
@ -0,0 +1,26 @@
|
||||
|
||||
<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/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)">
|
10
includes/header.php
Executable file
10
includes/header.php
Executable file
@ -0,0 +1,10 @@
|
||||
<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>
|
2
includes/jquery-3.4.1.min.js
vendored
Normal file
2
includes/jquery-3.4.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
67
includes/light.css
Executable file
67
includes/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
includes/stylesheet.css
Executable file
168
includes/stylesheet.css
Executable file
@ -0,0 +1,168 @@
|
||||
/* 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;
|
||||
}
|
Reference in New Issue
Block a user