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 { 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";
|
||||
|
||||
|
|
@ -57,26 +66,15 @@
|
|||
end: string;
|
||||
};
|
||||
|
||||
let sameTimezone = false;
|
||||
let sameTimezone = true;
|
||||
let adjusted = true;
|
||||
|
||||
let myStreamSchedule = [];
|
||||
let localisedStreamSchedule = [];
|
||||
|
||||
let formattedSchedule: Schedule[] = [];
|
||||
let formattedLocalisedSchedule: Schedule[] = [];
|
||||
|
||||
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) => ({
|
||||
start: convertToUserLocalTimezone(stream.start),
|
||||
end: convertToUserLocalTimezone(stream.end),
|
||||
|
|
@ -101,11 +99,11 @@
|
|||
|
||||
if (
|
||||
formattedLocalisedSchedule[0].day === formattedSchedule[0].day &&
|
||||
formattedLocalisedSchedule[0].start ===
|
||||
formattedSchedule[0].start &&
|
||||
formattedLocalisedSchedule[0].end === formattedSchedule[0].end
|
||||
formattedLocalisedSchedule[0].start === formattedSchedule[0].start
|
||||
) {
|
||||
sameTimezone = true;
|
||||
} else {
|
||||
sameTimezone = false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -203,15 +203,15 @@ import StreamScheduleComponent from "../components/sections/StreamSchedule.svelt
|
|||
</div>
|
||||
</a>
|
||||
<!-- 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-content flex flex-col justify-between items-start group"
|
||||
>
|
||||
<div
|
||||
class="absolute right-5 rotate-45 opacity-0
|
||||
group-hover:opacity-100 group-hover:rotate-0
|
||||
transition-all duration-300 ease-in-out"
|
||||
group-hover:opacity-100 group-hover:rotate-0
|
||||
transition-all duration-300 ease-in-out"
|
||||
>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
|
|
|||
Loading…
Reference in a new issue