From 5472d7c7c78c0a51af7214c8fa2bd72fbe70db10 Mon Sep 17 00:00:00 2001 From: floppydiskette Date: Thu, 8 Aug 2024 15:21:30 +0100 Subject: Finish that shit --- resources/views/components/current-track.blade.php | 2 +- resources/views/components/discord-status.blade.php | 3 +++ resources/views/components/layout.blade.php | 2 +- resources/views/components/online-status.blade.php | 3 --- resources/views/components/toh-quote.blade.php | 8 +++++++- resources/views/components/top-tracks.blade.php | 2 ++ resources/views/components/weather.blade.php | 18 +++++++++++------- 7 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 resources/views/components/discord-status.blade.php delete mode 100644 resources/views/components/online-status.blade.php (limited to 'resources/views/components') diff --git a/resources/views/components/current-track.blade.php b/resources/views/components/current-track.blade.php index d42ad3b..0770240 100644 --- a/resources/views/components/current-track.blade.php +++ b/resources/views/components/current-track.blade.php @@ -1,4 +1,4 @@ -
+ diff --git a/resources/views/components/discord-status.blade.php b/resources/views/components/discord-status.blade.php new file mode 100644 index 0000000..00d2c7a --- /dev/null +++ b/resources/views/components/discord-status.blade.php @@ -0,0 +1,3 @@ +I'm +

{{ $status["text"] }}!

+

Time in Britain:

diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php index 294c153..1d1b22d 100644 --- a/resources/views/components/layout.blade.php +++ b/resources/views/components/layout.blade.php @@ -45,7 +45,7 @@
diff --git a/resources/views/components/online-status.blade.php b/resources/views/components/online-status.blade.php deleted file mode 100644 index 5c63deb..0000000 --- a/resources/views/components/online-status.blade.php +++ /dev/null @@ -1,3 +0,0 @@ -I'm -

Online!

-

Time in Britain:

diff --git a/resources/views/components/toh-quote.blade.php b/resources/views/components/toh-quote.blade.php index 898b001..d9dfab1 100644 --- a/resources/views/components/toh-quote.blade.php +++ b/resources/views/components/toh-quote.blade.php @@ -1,6 +1,12 @@

@foreach($quote["lines"] as $line) - {{ $line["character"] }}: "{{ $line["line"] }}"
+ {{ $line["character"] }}: + {{-- Literally only one thing will trigger this lmao --}} + @if($line["line"] == "*Rage squeals*") + {{ $line["line"] }} + @else + "{{ $line["line"] }}" + @endif
@endforeach ({{ $quote["attribution"] }})

diff --git a/resources/views/components/top-tracks.blade.php b/resources/views/components/top-tracks.blade.php index a8c94f2..0b563b4 100644 --- a/resources/views/components/top-tracks.blade.php +++ b/resources/views/components/top-tracks.blade.php @@ -1,3 +1,4 @@ +

Top 10 Tracks (Last 30 days):

@@ -14,3 +15,4 @@ @endforeach
+
diff --git a/resources/views/components/weather.blade.php b/resources/views/components/weather.blade.php index 09d9a37..b4dfcaa 100644 --- a/resources/views/components/weather.blade.php +++ b/resources/views/components/weather.blade.php @@ -1,7 +1,11 @@ -

Weather:

-

- 69C
- 0mm/hr
- 69%
- 420inHg -

+

Weather Conditions:

+
+

Temperature: {{ round(($conditions[0]["temp"] - 32) * (5/9), 1) }} degC

+

Rain: {{ ($conditions[0]["rain_rate_last"] * 0.2) }}mm/hr ({{ $conditions[0]["rainfall_daily"] }}mm today)

+@if ($conditions[0]["wind_speed_last"] != 0) +

Wind: {{ round($conditions[0]["wind_speed_last"], 1) }}mph ({{ $conditions[0]["wind_dir_last"] }} deg)

+@else +

Wind: 0mph

+@endif +

Humidity: {{ round($conditions[0]["hum"], 1) }}%

+

Pressure: {{ round($conditions[2]["bar_sea_level"], 1) }} inHg

-- cgit v1.2.3-54-g00ecf