mirror of
https://github.com/liyunze-coding/RythonDev.git
synced 2026-09-22 07:44:26 +00:00
fix instagram URL, updated stream schedule
This commit is contained in:
parent
d46ab9b545
commit
f3cf416df7
2 changed files with 18 additions and 20 deletions
|
|
@ -2,7 +2,16 @@
|
||||||
import moment from "moment-timezone";
|
import moment from "moment-timezone";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
|
|
||||||
let adjusted = true;
|
const myStreamSchedule = [
|
||||||
|
{
|
||||||
|
start: getUpcomingTimeDevTZ(3, "12:00"),
|
||||||
|
end: getUpcomingTimeDevTZ(3, "15:00"),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
start: getUpcomingTimeDevTZ(5, "10:00"),
|
||||||
|
end: getUpcomingTimeDevTZ(5, "16:00"),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
const myLocation = "Australia/Melbourne";
|
const myLocation = "Australia/Melbourne";
|
||||||
|
|
||||||
|
|
@ -57,26 +66,15 @@
|
||||||
end: string;
|
end: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
let sameTimezone = false;
|
let sameTimezone = true;
|
||||||
|
let adjusted = true;
|
||||||
|
|
||||||
let myStreamSchedule = [];
|
|
||||||
let localisedStreamSchedule = [];
|
let localisedStreamSchedule = [];
|
||||||
|
|
||||||
let formattedSchedule: Schedule[] = [];
|
let formattedSchedule: Schedule[] = [];
|
||||||
let formattedLocalisedSchedule: Schedule[] = [];
|
let formattedLocalisedSchedule: Schedule[] = [];
|
||||||
|
|
||||||
function displayStreamSchedule() {
|
function displayStreamSchedule() {
|
||||||
myStreamSchedule = [
|
|
||||||
{
|
|
||||||
start: getUpcomingTimeDevTZ(5, "10:00"),
|
|
||||||
end: getUpcomingTimeDevTZ(5, "18:00"),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
start: getUpcomingTimeDevTZ(6, "10:00"),
|
|
||||||
end: getUpcomingTimeDevTZ(6, "18:00"),
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
localisedStreamSchedule = myStreamSchedule.map((stream) => ({
|
localisedStreamSchedule = myStreamSchedule.map((stream) => ({
|
||||||
start: convertToUserLocalTimezone(stream.start),
|
start: convertToUserLocalTimezone(stream.start),
|
||||||
end: convertToUserLocalTimezone(stream.end),
|
end: convertToUserLocalTimezone(stream.end),
|
||||||
|
|
@ -101,11 +99,11 @@
|
||||||
|
|
||||||
if (
|
if (
|
||||||
formattedLocalisedSchedule[0].day === formattedSchedule[0].day &&
|
formattedLocalisedSchedule[0].day === formattedSchedule[0].day &&
|
||||||
formattedLocalisedSchedule[0].start ===
|
formattedLocalisedSchedule[0].start === formattedSchedule[0].start
|
||||||
formattedSchedule[0].start &&
|
|
||||||
formattedLocalisedSchedule[0].end === formattedSchedule[0].end
|
|
||||||
) {
|
) {
|
||||||
sameTimezone = true;
|
sameTimezone = true;
|
||||||
|
} else {
|
||||||
|
sameTimezone = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -203,15 +203,15 @@ import StreamScheduleComponent from "../components/sections/StreamSchedule.svelt
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
<!-- Instagram -->
|
<!-- Instagram -->
|
||||||
<a href="https://instagram.com/@RythonDev" target="_blank">
|
<a href="https://instagram.com/RythonDev" target="_blank">
|
||||||
<div class="social-card">
|
<div class="social-card">
|
||||||
<div
|
<div
|
||||||
class="social-card-content flex flex-col justify-between items-start group"
|
class="social-card-content flex flex-col justify-between items-start group"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="absolute right-5 rotate-45 opacity-0
|
class="absolute right-5 rotate-45 opacity-0
|
||||||
group-hover:opacity-100 group-hover:rotate-0
|
group-hover:opacity-100 group-hover:rotate-0
|
||||||
transition-all duration-300 ease-in-out"
|
transition-all duration-300 ease-in-out"
|
||||||
>
|
>
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue