Migrating to Svelte
User management not done. Footer not done Nav user management icon not positioned correctly
This commit is contained in:
BIN
static/bluenebula.png
Executable file
BIN
static/bluenebula.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.6 MiB |
BIN
static/bluenebula.webp
Normal file
BIN
static/bluenebula.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
6
static/bootstrap.min.css
vendored
Executable file
6
static/bootstrap.min.css
vendored
Executable file
File diff suppressed because one or more lines are too long
BIN
static/favicon.ico
Executable file
BIN
static/favicon.ico
Executable file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
BIN
static/friendscats1.png
Executable file
BIN
static/friendscats1.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 140 KiB |
141
static/global.css
Executable file
141
static/global.css
Executable file
@ -0,0 +1,141 @@
|
||||
body {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
font-display: swap;
|
||||
font-size: 1rem;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
display: flex;
|
||||
background-image: url("/bluenebula.webp");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
min-height: 200px;
|
||||
text-align: center;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
display: inline-block;
|
||||
font-size: 3rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* flexbox navbar test*/
|
||||
nav ul {
|
||||
display: flex;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
nav ul li {
|
||||
font-size: 1rem;
|
||||
text-align: center;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
nav li {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
/* Change color on hover */
|
||||
nav li a {
|
||||
margin-left: 20px;
|
||||
margin-right: 20px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
main {
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
/* Content types */
|
||||
section {
|
||||
border-radius: 5px;
|
||||
padding: 5px 20px;
|
||||
}
|
||||
|
||||
/*Simple css to style it like a toggle switch*/
|
||||
.theme-switch-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.theme-switch {
|
||||
display: inline-block;
|
||||
height: 24px;
|
||||
position: relative;
|
||||
width: 40px;
|
||||
}
|
||||
|
||||
.theme-switch input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.slider {
|
||||
background-color: #ccc;
|
||||
bottom: 0;
|
||||
cursor: pointer;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
transition: .2s;
|
||||
}
|
||||
|
||||
.slider:before {
|
||||
background-color: #fff;
|
||||
bottom: 4px;
|
||||
content: "";
|
||||
height: 16px;
|
||||
left: 4px;
|
||||
position: absolute;
|
||||
transition: .2s;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
input:checked + .slider {
|
||||
background-color: #66bb6a;
|
||||
}
|
||||
|
||||
input:checked + .slider:before {
|
||||
transform: translateX(16px);
|
||||
}
|
||||
|
||||
.slider.round {
|
||||
border-radius: 34px;
|
||||
}
|
||||
|
||||
.slider.round:before {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
|
||||
@media screen and (max-width: 700px) {
|
||||
.title {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
nav {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
flex-direction: column;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
nav ul li a {
|
||||
text-align: center;
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
7
static/includes/footer.php
Executable file
7
static/includes/footer.php
Executable file
@ -0,0 +1,7 @@
|
||||
<footer>
|
||||
<div class="container">
|
||||
<hr>
|
||||
<p>© Quartznet 2020 | <a href="/quartznet/policy">Policy</a></p>
|
||||
</div>
|
||||
</footer>
|
||||
|
33
static/includes/head.php
Executable file
33
static/includes/head.php
Executable file
@ -0,0 +1,33 @@
|
||||
<!-- General meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta content='text/html; charset=utf-8' http-equiv='Content-Type'>
|
||||
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="A software and game studio.">
|
||||
<meta name="keywords" content="quartznet, software, games, tools"/>
|
||||
<meta name="author" content="quartznet"/>
|
||||
|
||||
<!-- Open Graph tags -->
|
||||
<meta property="og:title" content="quartznet" />
|
||||
<meta property="og:description" content="We are software and game developers." />
|
||||
|
||||
<!-- Load CSS -->
|
||||
<link rel="stylesheet" href="/quartznet/assets/css/bootstrap.min.css" defer>
|
||||
<link href="/quartznet/assets/css/stylesheet.css" rel="stylesheet">
|
||||
<link href="/quartznet/assets/css/themes.css" rel="stylesheet">
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" rel="stylesheet">
|
||||
<link rel="icon" href="/quartznet/assets/favicon.ico">
|
||||
|
||||
<!-- Load javascript -->
|
||||
<script src="/quartznet/assets/js/jquery-3.5.1.min.js" defer></script>
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-120787474-1"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-120787474-1');
|
||||
</script>
|
24
static/includes/header.php
Executable file
24
static/includes/header.php
Executable file
@ -0,0 +1,24 @@
|
||||
<header>
|
||||
<div class="container">
|
||||
<nav class="navbar navbar-expand-md">
|
||||
<div class="navbar-collapse order-1 order-md-0 dual-collapse2">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li><a href="/quartznet/">Quartznet</a></li>
|
||||
<li><a href="/quartznet/about">About</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse w-100 order-3 dual-collapse2">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li><a href="/quartznet/admin">Admin</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="overlay">
|
||||
<div class="description">
|
||||
<h1 class="title">Quartznet</h1>
|
||||
<p>Software, Games, Science, Space!</p>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
43
static/themes.css
Executable file
43
static/themes.css
Executable file
@ -0,0 +1,43 @@
|
||||
/* Default theme */
|
||||
:root {
|
||||
--background-color: #222222;
|
||||
--headings-color: #ffffff;
|
||||
--font-color: #ffffff;
|
||||
}
|
||||
|
||||
/* Dark theme */
|
||||
html[data-theme='dark'] {
|
||||
--background-color: #222222;
|
||||
--headings-color: #ffffff;
|
||||
--font-color: #ffffff;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background-color);
|
||||
color: var(--font-color);
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5 {
|
||||
color: var(--headings-color);
|
||||
}
|
||||
|
||||
hr {
|
||||
background-color: #eeeeee;
|
||||
}
|
||||
|
||||
.overlay {
|
||||
border-bottom: 2px solid #eeeeee;
|
||||
}
|
||||
|
||||
li a:hover {
|
||||
border-bottom: 3px solid white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #CC99FF;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: white;
|
||||
}
|
5
static/user.svg
Normal file
5
static/user.svg
Normal file
@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white"
|
||||
stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user">
|
||||
<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path>
|
||||
<circle cx="12" cy="7" r="4"></circle>
|
||||
</svg>
|
After Width: | Height: | Size: 322 B |
Reference in New Issue
Block a user