Skip to content

Commit 00dcc95

Browse files
committed
Cleanup and better structure
1 parent d53f644 commit 00dcc95

File tree

17 files changed

+23
-41
lines changed

17 files changed

+23
-41
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.php linguist-language=PHP

src/_templates/_head.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<meta property="og:image" content="/static/images/branding/avatar.png" />
1212

1313
<meta content="<?php echo $title ?? "Title"; ?>" property="og:title"/>
14-
<meta content="<?php echo $desc ?? "default description"; ?>" property="og:description"/>
15-
<meta content="<?php echo $desc ?? "default description"; ?>" name="description"/>
14+
<meta content="<?php echo $description ?? "default description"; ?>" property="og:description"/>
15+
<meta content="<?php echo $description ?? "default description"; ?>" name="description"/>
1616

1717
<meta name="revisit-after" content="2 days"/>
1818
<meta name="keywords" content="AlexFlipnote, Twitter, Developer, Github"/>

src/playground/alexspin/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<?php
44
$title = "alexspin";
5-
$description = "alexspin";
5+
$description = "bottom text";
66
$path = "/playground/alexspin";
77

88
require_once("./src/_templates/_head.php");
@@ -16,7 +16,7 @@
1616
<div class="center-object">
1717
<h1 class="runescape" id="spin-time">0.0s</h1>
1818
<video loop id="spin-video">
19-
<source src="/static/playground/alexspin/alexspin.mp4" type="video/mp4">
19+
<source src="/static/videos/alexspin.mp4" type="video/mp4">
2020
</video>
2121
</div>
2222
</div>

src/playground/hexclock/index.php

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,14 @@
11
<html>
22
<head>
3-
<title>HEX Clock - #000000</title>
4-
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
6-
<!-- Meta Data-->
7-
<meta name="theme-color" content="#14bae4"/>
8-
<meta content="https://alexflipnote.dev/static/images/branding/avatar.png" property="og:image"/>
9-
<link rel="icon" type="image/x-icon" href="https://alexflipnote.dev/static/images/favicon.ico"/>
10-
<meta content="HEX Clock - #000000" property="og:title"/>
11-
<meta content="The clock that changes the HEX background after 24h clock" property="og:description"/>
12-
<meta content="The clock that changes the HEX background after 24h clock" name="description"/>
13-
<meta name="revisit-after" content="2 days"/>
14-
<meta name="keywords" content="AlexFlipnote, Twitter, Developer, Github"/>
15-
<meta property="og:locale" content="en_GB"/>
16-
<link rel="canonical" href="https://alexflipnote.dev/playground/hexclock"/>
17-
<meta property="og:url" content="https://alexflipnote.dev/playground/hexclock"/>
18-
<meta property="og:site_name" content="AlexFlipnote"/>
19-
<meta name="twitter:card" content="summary"/>
20-
<meta name="twitter:site" content="@AlexFlipnote"/>
21-
<!-- CSS-->
22-
<link href="/static/playground/hexclock/modesta.css" type="text/css" rel="stylesheet"/>
23-
<link href="/static/playground/hexclock/custom.css" type="text/css" rel="stylesheet"/>
24-
<!-- JavaScript-->
25-
<script src="/static/playground/hexclock/clock.js" type="text/javascript"></script>
3+
<?php
4+
$title = "HEX Clock - #000000";
5+
$description = "The clock that changes the HEX background after 24h clock";
6+
$path = "/playground/hexclock";
7+
8+
require_once("./src/_templates/_head.php");
9+
?>
10+
<link href="/static/css/hexclock.css" type="text/css" rel="stylesheet"/>
11+
<script src="/static/js/hexclock.js" type="text/javascript"></script>
2612
</head>
2713
<body id="bg" style="background-color: #000000" class="dark-theme">
2814
<div class="center-object center-text time-container">

src/playground/spooky/index.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
55
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
66
<meta name="theme-color" content="#000000"/>
7-
<meta content="https://alexflipnote.dev/static/playground/spooky/skull_full.png" property="og:image"/>
8-
<link rel="icon" type="image/x-icon" href="https://alexflipnote.dev/static/playground/spooky/skull.png"/>
7+
<meta content="https://alexflipnote.dev/static/images/skull_full.png" property="og:image"/>
8+
<link rel="icon" type="image/x-icon" href="https://alexflipnote.dev/static/images/skull.png"/>
99
<meta content="Spooktober" property="og:title"/>
1010
<meta content="Have a spooky October!" property="og:description"/>
1111
<meta content="Have a spooky October!" name="description"/>
12-
<link href="/static/playground/spooky/style.css" type="text/css" rel="stylesheet"/>
13-
<script src="/static/playground/spooky/script.js" type="text/javascript" charset="utf-8"></script>
12+
<link href="/static/css/spooky.css" type="text/css" rel="stylesheet"/>
13+
<script src="/static/js/spooky.js" type="text/javascript" charset="utf-8"></script>
1414
</head>
1515
<body>
1616
<section id="window">
@@ -21,7 +21,7 @@
2121
<button id="window-close" class="window-close-button window-button tooltip"><span class="tooltiptext">You can't escape!</span>
2222
</button>
2323
</div>
24-
<div class="window-content flex-gird"><img src="/static/playground/spooky/skull.png" draggable="false" class="alert"/>
24+
<div class="window-content flex-gird"><img src="/static/images/skull.png" draggable="false" class="alert"/>
2525
<div class="alert-text">
2626
<p class="alert-inner-text">Time to get spooky!</p>
2727
</div>
File renamed without changes.
File renamed without changes.

static/playground/spooky/style.css renamed to static/css/spooky.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ html, body {
66

77
@font-face {
88
font-family: "MSsans";
9-
src: url("/static/playground/spooky/MS_Sans_Serif.ttf") format("truetype");
9+
src: url("/static/fonts/MS_Sans_Serif.ttf") format("truetype");
1010
}
1111

1212
video {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)