mirror of
https://github.com/Fluffy-Bean/Fluffys-website.git
synced 2025-05-24 04:14:57 +00:00
flasky flasky
This commit is contained in:
parent
e6e2714a95
commit
40baf07fe1
36 changed files with 1035 additions and 1365 deletions
7
templates/error.html
Normal file
7
templates/error.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<div class="title">
|
||||
<h1>{{error}}</h1>
|
||||
<p style="text-align: center;">{{msg}}</p>
|
||||
</div>
|
||||
{% endblock %}
|
4
templates/funny.html
Normal file
4
templates/funny.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<img src="{{ url_for('static', filename='images/funny.jpg') }}" alt="Funny" id="funny">
|
||||
{% endblock %}
|
35
templates/index.html
Normal file
35
templates/index.html
Normal file
|
@ -0,0 +1,35 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<div class="content" id="about">
|
||||
<h2>Special Thanks</h2>
|
||||
<p>Jeetix: Helping me with learning how to make websites!</p>
|
||||
<p>Carty: Teaching me how to run servers and the networking!</p>
|
||||
<p>mrHDash: For the Ref Sheet and most other art on the page!</p>
|
||||
<p>Zadok: Silly taidum art seen below!</p>
|
||||
<p>Shep: For the free YHC!</p>
|
||||
</div>
|
||||
|
||||
<div class="content" id="contact">
|
||||
<h2>Stalk me</h2>
|
||||
<button class="btn">
|
||||
Twitter
|
||||
<i class="ph-twitter-logo"></i>
|
||||
</button>
|
||||
<button class="btn">
|
||||
Mastodon
|
||||
<i class="ph-linux-logo"></i>
|
||||
</button>
|
||||
<button class="btn">
|
||||
Telegram
|
||||
<i class="ph-telegram-logo"></i>
|
||||
</button>
|
||||
<button class="btn">
|
||||
Github
|
||||
<i class="ph-github-logo"></i>
|
||||
</button>
|
||||
<button class="btn">
|
||||
Discord
|
||||
<i class="ph-discord-logo"></i>
|
||||
</button>
|
||||
</div>
|
||||
{% endblock %}
|
106
templates/layout.html
Normal file
106
templates/layout.html
Normal file
|
@ -0,0 +1,106 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Leggy land</title>
|
||||
<link rel="stylesheet" href="{{url_for('static', filename='css/style.css')}}" defer>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.6.0.min.js"
|
||||
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
|
||||
crossorigin="anonymous">
|
||||
</script>
|
||||
<script src="https://unpkg.com/phosphor-icons" defer></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="nav">
|
||||
<button class="nav-toggle"><i class="ph-list"></i></button>
|
||||
<p>Leggy land</p>
|
||||
</div>
|
||||
|
||||
<div class="aside">
|
||||
<div class="aside-container">
|
||||
<a href="/#" class="aside-item">
|
||||
Home
|
||||
<i class="ph-arrow-right"></i>
|
||||
</a>
|
||||
<a href="/#contact" class="aside-item">
|
||||
Social Media
|
||||
<i class="ph-arrow-right"></i>
|
||||
</a>
|
||||
<a href="/#about" class="aside-item">
|
||||
About
|
||||
<i class="ph-arrow-right"></i>
|
||||
</a>
|
||||
|
||||
<hr>
|
||||
|
||||
<a href="/" class="aside-item">
|
||||
Gallery
|
||||
<i class="ph-image"></i>
|
||||
</a>
|
||||
<a href="/status" class="aside-item">
|
||||
Server Status
|
||||
<i class="ph-cpu"></i>
|
||||
</a>
|
||||
<a href="/" class="aside-item">
|
||||
Gwa Gwa
|
||||
<i class="ph-package"></i>
|
||||
</a>
|
||||
|
||||
<hr>
|
||||
|
||||
<a href="/funny" class="aside-item">
|
||||
lol
|
||||
<i class="ph-arrow-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wrapper">
|
||||
{% block content %} {% endblock %}
|
||||
</div>
|
||||
|
||||
<div class="footer">
|
||||
<p>Last updated 27th Dec</p>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let btnColours = [ 'red', 'yellow', 'green', 'blue', 'purple']
|
||||
let btnElements = document.querySelectorAll('.btn');
|
||||
let asideElements = document.querySelectorAll('.aside-item');
|
||||
|
||||
for (let i = 0; i < btnElements.length; i++) {
|
||||
btnElements[i].addEventListener("mouseover", function() {
|
||||
let randomColour = Math.floor(Math.random() * btnColours.length);
|
||||
this.style.color = `var(--${btnColours[randomColour]})`;
|
||||
});
|
||||
|
||||
btnElements[i].addEventListener("mouseout", function() {
|
||||
this.style.color = '';
|
||||
});
|
||||
}
|
||||
for (let i = 0; i < asideElements.length; i++) {
|
||||
asideElements[i].addEventListener("mouseover", function() {
|
||||
let randomColour = Math.floor(Math.random() * btnColours.length);
|
||||
this.classList.add(`aside-${btnColours[randomColour]}`);
|
||||
});
|
||||
|
||||
asideElements[i].addEventListener("mouseout", function() {
|
||||
this.classList = 'aside-item';
|
||||
});
|
||||
}
|
||||
|
||||
let navToggle = document.querySelector('.nav-toggle');
|
||||
let aside = document.querySelector('.aside');
|
||||
|
||||
navToggle.addEventListener('click', function() {
|
||||
aside.classList.toggle('aside-active');
|
||||
});
|
||||
|
||||
function fadeOnLoad(obj) {
|
||||
$(obj).fadeIn(621);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue