summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-07-11 12:18:05 +0200
committerRaindropsSys <contact@minteck.org>2023-07-11 12:18:05 +0200
commit80c7267f17b17925245aa41829eed3311e13f970 (patch)
treed219d69786f71047ba14f93d847e57b6c9902aec
parentf44afc1190e5a3e922ae723e3f7e6f70e3b79c65 (diff)
downloadviolette-80c7267f17b17925245aa41829eed3311e13f970.tar.gz
violette-80c7267f17b17925245aa41829eed3311e13f970.tar.bz2
violette-80c7267f17b17925245aa41829eed3311e13f970.zip
Updated 2 files and added 6 files (automated)
-rw-r--r--.idea/deployment.xml14
-rw-r--r--assets/icons/discord.svg1
-rw-r--r--assets/icons/email.svg1
-rw-r--r--assets/icons/mastodon.svg13
-rw-r--r--assets/icons/reddit.svg1
-rw-r--r--assets/icons/twitter.svg1
-rw-r--r--includes/coldhaze.json8
-rw-r--r--index.php53
8 files changed, 84 insertions, 8 deletions
diff --git a/.idea/deployment.xml b/.idea/deployment.xml
new file mode 100644
index 0000000..87325ed
--- /dev/null
+++ b/.idea/deployment.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="PublishConfigData" serverName="zephyrheights" remoteFilesAllowedToDisappearOnAutoupload="false">
+ <serverData>
+ <paths name="zephyrheights">
+ <serverdata>
+ <mappings>
+ <mapping deploy="/pool/web/violette" local="$PROJECT_DIR$" web="/" />
+ </mappings>
+ </serverdata>
+ </paths>
+ </serverData>
+ </component>
+</project> \ No newline at end of file
diff --git a/assets/icons/discord.svg b/assets/icons/discord.svg
new file mode 100644
index 0000000..a402cbb
--- /dev/null
+++ b/assets/icons/discord.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px" height="24px"><path d="M19.229,6.012c-0.903-0.73-2.015-1.246-2.872-1.572c-0.307-0.117-0.653-0.076-0.923,0.111C15.162,4.737,15,5.045,15,5.374 C15,5.72,14.72,6,14.374,6c-1.573,0-3.176,0-4.749,0C9.28,6,9,5.72,9,5.375c0-0.329-0.162-0.638-0.433-0.824 C8.296,4.364,7.95,4.323,7.643,4.441c-0.86,0.329-1.978,0.85-2.894,1.59C3.831,6.882,2,11.861,2,16.165 c0,0.076,0.019,0.15,0.057,0.216c1.265,2.233,4.714,2.817,5.499,2.842c0.005,0.001,0.009,0.001,0.014,0.001 c0.139,0,0.286-0.056,0.351-0.18l0.783-1.485c-0.646-0.164-1.313-0.359-2.04-0.617c-0.521-0.185-0.792-0.757-0.607-1.277 s0.758-0.791,1.277-0.607c3.526,1.254,5.624,1.253,9.345-0.005c0.525-0.175,1.092,0.104,1.268,0.627 c0.177,0.523-0.104,1.091-0.627,1.268c-0.728,0.246-1.392,0.434-2.035,0.594l0.793,1.503c0.065,0.124,0.213,0.18,0.351,0.18 c0.005,0,0.009,0,0.014-0.001c0.786-0.025,4.235-0.61,5.499-2.843C21.981,16.315,22,16.241,22,16.164 C22,11.861,20.169,6.882,19.229,6.012z M9.04,13.988c-0.829,0-1.5-0.893-1.5-1.996c0-1.102,0.671-1.996,1.5-1.996 c0.832-0.11,1.482,0.893,1.5,1.996C10.54,13.095,9.869,13.988,9.04,13.988z M14.996,14.012c-0.829,0-1.5-0.895-1.5-2s0.671-2,1.5-2 s1.5,0.895,1.5,2S15.825,14.012,14.996,14.012z"/></svg> \ No newline at end of file
diff --git a/assets/icons/email.svg b/assets/icons/email.svg
new file mode 100644
index 0000000..51e57d3
--- /dev/null
+++ b/assets/icons/email.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg> \ No newline at end of file
diff --git a/assets/icons/mastodon.svg b/assets/icons/mastodon.svg
new file mode 100644
index 0000000..cfbb023
--- /dev/null
+++ b/assets/icons/mastodon.svg
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
+<path d="M21.7,6.2c-0.3-2.2-2.3-4-4.6-4.4c-0.4-0.1-1.9-0.3-5.3-0.3h0c-3.4,0-4.2,0.2-4.6,0.3C5,2.2,2.9,3.8,2.4,6
+ C2.2,7.1,2.2,8.4,2.2,9.5c0.1,1.6,0.1,3.3,0.2,4.9c0.1,1.1,0.3,2.1,0.5,3.2c0.5,1.9,2.4,3.6,4.3,4.2c2,0.7,4.2,0.8,6.3,0.3
+ c0.2-0.1,0.5-0.1,0.7-0.2c0.5-0.2,1.1-0.3,1.5-0.7c0,0,0,0,0,0c0,0,0,0,0,0v-1.6c0,0,0,0,0,0c0,0,0,0,0,0s0,0,0,0s0,0,0,0
+ c-1.3,0.3-2.7,0.5-4.1,0.5c-2.4,0-3-1.1-3.2-1.6c-0.1-0.4-0.2-0.8-0.3-1.3c0,0,0,0,0,0c0,0,0,0,0,0c0,0,0,0,0,0s0,0,0,0
+ c1.3,0.3,2.6,0.5,4,0.5c0.3,0,0.6,0,1,0c1.4,0,2.8-0.1,4.1-0.4c0,0,0.1,0,0.1,0c2.1-0.4,4.1-1.7,4.3-4.9c0-0.1,0-1.3,0-1.5
+ C21.7,10.6,21.9,7.8,21.7,6.2z M18.4,14.3h-2.2V8.9c0-1.1-0.5-1.7-1.4-1.7c-1.1,0-1.6,0.7-1.6,2v3h-2.2v-3c0-1.4-0.5-2-1.6-2
+ c-1,0-1.4,0.6-1.4,1.7v5.4H5.7V8.7c0-1.1,0.3-2,0.9-2.7C7.2,5.3,8,5,8.9,5c1.1,0,2,0.4,2.6,1.3l0.5,0.9l0.5-0.9
+ C13.2,5.4,14,5,15.1,5c1,0,1.8,0.3,2.4,1c0.6,0.7,0.9,1.6,0.9,2.7L18.4,14.3L18.4,14.3z"/>
+</svg>
diff --git a/assets/icons/reddit.svg b/assets/icons/reddit.svg
new file mode 100644
index 0000000..3f5be65
--- /dev/null
+++ b/assets/icons/reddit.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px" height="24px"><path d="M 14 3 C 12.300781 3 11 4.414063 11 6 L 11 8.03125 C 8.882813 8.175781 6.976563 8.785156 5.4375 9.71875 C 4.878906 9.28125 4.21875 9.03125 3.5625 9.03125 C 2.835938 9.03125 2.128906 9.308594 1.625 9.875 C 0.667969 11.070313 0.753906 13.023438 2.09375 14.03125 C 2.03125 14.347656 2 14.667969 2 15 C 2 17.054688 3.242188 18.84375 5.0625 20.0625 C 6.882813 21.28125 9.320313 22 12 22 C 14.679688 22 17.117188 21.28125 18.9375 20.0625 C 20.757813 18.84375 22 17.054688 22 15 C 22 14.667969 21.9375 14.347656 21.875 14.03125 C 23.238281 12.945313 23.378906 11.003906 22.375 9.875 C 21.871094 9.308594 21.164063 9.03125 20.4375 9.03125 C 19.78125 9.03125 19.121094 9.28125 18.5625 9.71875 C 17.023438 8.785156 15.117188 8.175781 13 8.03125 L 13 6 C 13 5.386719 13.300781 5 14 5 C 14.320313 5 14.773438 5.171875 15.53125 5.4375 C 16.203125 5.671875 17.09375 5.914063 18.25 5.96875 C 18.589844 6.585938 19.25 7 20 7 C 21.101563 7 22 6.101563 22 5 C 22 3.898438 21.101563 3 20 3 C 19.273438 3 18.632813 3.382813 18.28125 3.96875 C 17.394531 3.925781 16.769531 3.765625 16.1875 3.5625 C 15.519531 3.328125 14.878906 3 14 3 Z M 20 4 C 20.601563 4 21 4.398438 21 5 C 21 5.601563 20.601563 6 20 6 C 19.398438 6 19 5.601563 19 5 C 19 4.398438 19.398438 4 20 4 Z M 12 10 C 14.320313 10 16.382813 10.636719 17.8125 11.59375 C 19.242188 12.550781 20 13.753906 20 15 C 20 16.246094 19.242188 17.449219 17.8125 18.40625 C 16.382813 19.363281 14.320313 20 12 20 C 9.679688 20 7.617188 19.363281 6.1875 18.40625 C 4.757813 17.449219 4 16.246094 4 15 C 4 13.753906 4.757813 12.550781 6.1875 11.59375 C 7.617188 10.636719 9.679688 10 12 10 Z M 3.59375 10.03125 C 3.925781 10.03125 4.277344 10.101563 4.59375 10.28125 C 3.628906 11.023438 2.878906 11.9375 2.4375 12.96875 C 1.855469 12.28125 1.867188 11.191406 2.375 10.53125 C 2.671875 10.195313 3.121094 10.03125 3.59375 10.03125 Z M 20.40625 10.03125 C 20.878906 10.03125 21.328125 10.195313 21.625 10.53125 C 22.117188 11.085938 22.15625 12.175781 21.5625 12.9375 C 21.121094 11.914063 20.363281 11.019531 19.40625 10.28125 C 19.722656 10.101563 20.074219 10.03125 20.40625 10.03125 Z M 9 12 C 8.171875 12 7.5 12.671875 7.5 13.5 C 7.5 14.328125 8.171875 15 9 15 C 9.828125 15 10.5 14.328125 10.5 13.5 C 10.5 12.671875 9.828125 12 9 12 Z M 15 12 C 14.171875 12 13.5 12.671875 13.5 13.5 C 13.5 14.328125 14.171875 15 15 15 C 15.828125 15 16.5 14.328125 16.5 13.5 C 16.5 12.671875 15.828125 12 15 12 Z M 16.09375 16.40625 C 15.195313 17.207031 13.699219 17.6875 12 17.6875 C 10.300781 17.6875 8.804688 17.199219 7.90625 16.5 C 8.40625 17.800781 10 19 12 19 C 14 19 15.59375 17.804688 16.09375 16.40625 Z"/></svg> \ No newline at end of file
diff --git a/assets/icons/twitter.svg b/assets/icons/twitter.svg
new file mode 100644
index 0000000..e339cea
--- /dev/null
+++ b/assets/icons/twitter.svg
@@ -0,0 +1 @@
+<?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px" height="24px"> <path d="M22,3.999c-0.78,0.463-2.345,1.094-3.265,1.276c-0.027,0.007-0.049,0.016-0.075,0.023c-0.813-0.802-1.927-1.299-3.16-1.299 c-2.485,0-4.5,2.015-4.5,4.5c0,0.131-0.011,0.372,0,0.5c-3.353,0-5.905-1.756-7.735-4c-0.199,0.5-0.286,1.29-0.286,2.032 c0,1.401,1.095,2.777,2.8,3.63c-0.314,0.081-0.66,0.139-1.02,0.139c-0.581,0-1.196-0.153-1.759-0.617c0,0.017,0,0.033,0,0.051 c0,1.958,2.078,3.291,3.926,3.662c-0.375,0.221-1.131,0.243-1.5,0.243c-0.26,0-1.18-0.119-1.426-0.165 c0.514,1.605,2.368,2.507,4.135,2.539c-1.382,1.084-2.341,1.486-5.171,1.486H2C3.788,19.145,6.065,20,8.347,20 C15.777,20,20,14.337,20,8.999c0-0.086-0.002-0.266-0.005-0.447C19.995,8.534,20,8.517,20,8.499c0-0.027-0.008-0.053-0.008-0.08 c-0.003-0.136-0.006-0.263-0.009-0.329c0.79-0.57,1.475-1.281,2.017-2.091c-0.725,0.322-1.503,0.538-2.32,0.636 C20.514,6.135,21.699,4.943,22,3.999z"/></svg> \ No newline at end of file
diff --git a/includes/coldhaze.json b/includes/coldhaze.json
index 2be4de7..036aed9 100644
--- a/includes/coldhaze.json
+++ b/includes/coldhaze.json
@@ -2,6 +2,10 @@
"count": 21,
"ponies": [
{
+ "url": "https:\/\/ponies.equestria.horse\/error\/nofile\/?s=gdapd&m=saquq&t=heads",
+ "label": "Autumn Blaze"
+ },
+ {
"url": "https:\/\/ponies.equestria.horse\/assets\/heads\/7d9f543ef74240f69d0786c3f298312401f2ed945677411eb994f07c36616bb2.png",
"label": "Cinnamon Fire"
},
@@ -62,10 +66,6 @@
"label": "Stuffie"
},
{
- "url": "https:\/\/ponies.equestria.horse\/assets\/heads\/7d9f543ef74240f69d0786c3f2983124676421cdba3142dead6e8b3ba3dc87ae.png",
- "label": "Twilight Sparkle"
- },
- {
"url": "https:\/\/ponies.equestria.horse\/assets\/heads\/7d9f543ef74240f69d0786c3f298312493bc9946900a4e3c902da48ce37a894b.png",
"label": "Dusk Rainbow"
},
diff --git a/index.php b/index.php
index ac402be..3d91075 100644
--- a/index.php
+++ b/index.php
@@ -1,6 +1,11 @@
<?php
+$start = microtime(true);
+
$coldhaze = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/coldhaze.json"), true);
+$coldhaze["ponies"] = array_filter($coldhaze["ponies"], function ($i) {
+ return !str_contains($i["url"], "/error/");
+});
?>
@@ -69,6 +74,23 @@ $coldhaze = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes
.action-link:active {
transform: scale(0.95);
}
+
+ #debug {
+ tab-index: -1;
+ opacity: 0;
+ user-select: none;
+ user-focus: none;
+ }
+
+ #debug-inner {
+ pointer-events: none;
+ user-select: none;
+ user-focus: none;
+ }
+
+ #debug:hover {
+ opacity: 1;
+ }
</style>
</head>
<body style="background-image: url('/assets/bg.webp'); background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; height: 100%; background-color: #1a242c; overflow: hidden; margin: 0 20px;">
@@ -149,7 +171,7 @@ $coldhaze = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes
<img src="/assets/icons/contact.svg" alt="Contact icon" aria-label="Contact icon" style="height: 32px;">
<span style="vertical-align: middle;">Get in touch with us</span>
</a>
- <a tabindex="0" href="https://blog.raindrops.equestria.horse" target="_blank" class="action-link" style="cursor: pointer; background-color: rgba(0, 0, 0, .1); padding: 20px; border-radius: 10px;">
+ <a tabindex="0" href="https://raindrops-blog.equestria.horse" target="_blank" class="action-link" style="cursor: pointer; background-color: rgba(0, 0, 0, .1); padding: 20px; border-radius: 10px;">
<img src="/assets/icons/blog.svg" alt="Blog icon" aria-label="Blog icon" style="height: 32px;">
<span style="vertical-align: middle;">Visit our blog</span>
</a>
@@ -192,7 +214,24 @@ $coldhaze = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes
</div>
<div class="modal-body">
- Modal body..
+ <p>Here are the different ways you can get in touch with us:</p>
+ <div class="list-group">
+ <a class="list-group-item list-group-item-action" href="mailto:raindrops@equestria.dev" target="_blank">
+ <img src="/assets/icons/email.svg" style="width: 24px; height: 24px;"><span style="vertical-align: middle; margin-left: 5px;">raindrops@equestria.dev</span>
+ </a>
+ <div class="list-group-item">
+ <img src="/assets/icons/discord.svg" style="width: 24px; height: 24px;"><span style="vertical-align: middle; margin-left: 5px;">raindrops.sys</span>
+ </div>
+ <a class="list-group-item list-group-item-action" href="https://equestria.social/@minteck" target="_blank">
+ <img src="/assets/icons/mastodon.svg" style="width: 24px; height: 24px;"><span style="vertical-align: middle; margin-left: 5px;">@minteck@equestria.social</span>
+ </a>
+ <a class="list-group-item list-group-item-action" href="https://twitter.com/miapone_" target="_blank">
+ <img src="/assets/icons/twitter.svg" style="width: 24px; height: 24px;"><span style="vertical-align: middle; margin-left: 5px;">@miapone_</span>
+ </a>
+ <a class="list-group-item list-group-item-action" href="https://reddit.com/user/Minteck" target="_blank">
+ <img src="/assets/icons/reddit.svg" style="width: 24px; height: 24px;"><span style="vertical-align: middle; margin-left: 5px;">u/Minteck</span>
+ </a>
+ </div>
</div>
</div>
</div>
@@ -218,11 +257,17 @@ $coldhaze = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes
<p>The icons used on this website are provided by <a href="https://icons8.com" target="_blank">Icons8</a> and Google as part of <a href="https://fonts.google.com/icons" target="_blank">Material Design</a>.</p>
<h4>Legal notices</h4>
- <p>Should any copyright be infringed, please get in touch with us at <a href="raindrops@equestria.dev">raindrops@equestria.dev</a> (mention it is a copyright-related request), and we will proceed as quickly as possible once we have confirmed your identity.</p>
- <p>For additional details about how Equestria.dev manages copyright and user data, please refer to <a href="https://equestria.horse/legal" target="_blank">the legal portal</a>.</p>
+ <p>Should any copyright be infringed, please get in touch with us at <a href="mailto:raindrops@equestria.dev">raindrops@equestria.dev</a> (mention it is a copyright-related request), and we will proceed as quickly as possible once we have confirmed your identity.</p>
+ <p>For additional details about how Equestria.dev manages copyright and user data, please refer to <a href="https://equestria.dev/legal" target="_blank">the legal portal</a>.</p>
</div>
</div>
</div>
</div>
+
+ <div style="color: white; text-shadow: 0 0 10px black; position: fixed; top: 8px; left: 8px;" id="debug">
+ <div id="debug-inner">
+ Rendered in <?= round((microtime(true) - $start) * 1000, 2) ?> ms<br>PID: <?= getmypid() ?><br>Memory: <?= round(memory_get_usage(false) / 1024, 1) ?>K/<?= round(memory_get_peak_usage(false) / 1024, 1) ?>K
+ </div>
+ </div>
</body>
</html> \ No newline at end of file