upgraded socials page

This commit is contained in:
liyunze 2024-06-09 13:45:08 +08:00
parent 0004fcc498
commit 5038c2ebb2
3 changed files with 772 additions and 117 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

View file

@ -1,135 +1,790 @@
--- ---
import Layout from "../layouts/Layout.astro"; import Layout from "../layouts/Layout.astro";
import SocialsComponent from "../components/elements/Socials.svelte";
const MY_TIMEZONE = "Asia/Kuala_Lumpur";
let hoursAhead = 0;
let minutesAhead = 0;
function getTimezoneDifference(timezone1: string, timezone2: string) {
// Create two dates: one in each time zone
const date1 = new Date().toLocaleString("en-US", { timeZone: timezone1 });
const date2 = new Date().toLocaleString("en-US", { timeZone: timezone2 });
// Convert the dates to Date objects
const dateObj1 = new Date(date1);
const dateObj2 = new Date(date2);
// Get the difference in minutes between the two dates
const diffMinutes = (dateObj2.getTime() - dateObj1.getTime()) / (1000 * 60);
// Convert the difference in minutes to hours and minutes
const diffHours = Math.floor(diffMinutes / 60);
const diffMinutesRemaining = Math.floor(diffMinutes % 60);
return { hours: diffHours, minutes: diffMinutesRemaining };
}
function displayTimeDifference(hour: number, minutes: number) {
let ahead = false;
if (hour < 0) {
hour = 24 + hour;
} else {
ahead = true;
}
if (hour === 0 && minutes === 0) {
return "";
}
let differenceDisplay = ahead ? "ahead" : "behind";
if (hour === 0) {
return `( ${minutes} minutes ${differenceDisplay} )`;
}
if (minutes === 0) {
return `( ${hour} hours ${differenceDisplay} )`;
}
return `( ${hour} hours and ${minutes} minutes ${differenceDisplay} )`;
}
let { hours, minutes } = getTimezoneDifference(
Intl.DateTimeFormat().resolvedOptions().timeZone,
MY_TIMEZONE
);
let timeDifference = displayTimeDifference(hours, minutes);
let time = new Date().toLocaleTimeString("en-US", {
timeZone: MY_TIMEZONE,
hour: "numeric",
minute: "numeric",
hour12: true,
});
let displayDate = new Date().toLocaleDateString("en-UK", {
timeZone: MY_TIMEZONE,
weekday: "long",
year: "numeric",
month: "short",
day: "numeric",
});
--- ---
<Layout title="Skills" description="Check out Ryan's socials"> <Layout title="Skills" description="Check out Ryan's socials">
<!-- twitch, youtube, github, codepen, discord, instagram, ko-fi, --> <div class="px-0 py-10 flex justify-center items-center flex-col">
<div class="px-0 pt-10">
<div class="flex flex-col justify-center items-center">
<div <div
class="overflow-hidden rounded-full id="cards"
border-2 border-white border-solid" class="grid grid-cols-2 gap-2 max-w-[1024px] w-[calc(100%-20px)] md:grid-cols-3 lg:grid-cols-4"
>
<div
id="intro"
class="social-card col-span-2 md:col-span-3 lg:col-span-4
h-[400px] md:h-[280px]"
>
<div
class="social-card-content flex flex-col md:flex-row md:gap-3 bg-cover bg-center"
>
<div
class="rounded-full border-2 border-white border-solid
overflow-hidden aspect-square
mt-auto mb-5 md:mb-0
flex justify-center items-center
bg-[rgb(20,20,20)]
w-32 md:w-44"
> >
<img <img
src="/images/RyanPogSmol.webp" src="/images/RyanPogSmol.webp"
alt="Ryan's Avatar" alt="Ryan"
width="100" width="176"
class="aspect-square w-32 md:w-44"
/> />
</div> </div>
<h2 class="text-lg text-center">@RythonDev</h2> <div class="md:h-1/2 md:mt-auto">
<h3 class="mt-5 text-center">Web Developer, Twitch streamer</h3> <h1 class="font-bold text-4xl mb-2">RythonDev</h1>
<div class="flex flex-row justify-center items-center py-5"> <p class="text-lg text-[#ccc]">
<SocialsComponent /> Freelance developer, content creator, student.
Working on my bachelor's degree in Computer Science!
</p>
</div>
</div>
</div>
<a href="https://rython.dev/" 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"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="size-12"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"
></path>
</svg>
</div>
<div>
<h2 class="font-bold text-xl">Website</h2>
<p class="text-[#ccc]">rython.dev</p>
</div>
</div>
</div>
</a>
<a href="https://twitch.tv/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"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div>
<svg
width="48"
height="48"
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect
width="48"
height="48"
rx="24"
fill="#8C44F7"></rect>
<path
d="M20.2022 37.5H23.231L26.2598 34.7227H30.8083L36.7926 28.3192L36.6249 13.5H15.9262L14.0502 18.3838V34.5236H20.2022V37.5ZM17.3935 31.7149V15.2607H35.252V27.1664L30.8712 31.7149H25.7044L22.6755 33.8109V31.7149H17.3935Z"
fill="white"></path>
<path
d="M24.6671 19.5994H26.3231V25.5H24.6671V19.5994Z"
fill="white"></path>
<path
d="M29.006 19.5994H30.662V25.5H29.006V19.5994Z"
fill="white"></path>
</svg>
</div>
<div>
<h2 class="font-bold text-xl">Twitch</h2>
<p class="text-[#ccc]">RythonDev</p>
</div>
</div>
</div>
</a>
<a href="https://youtube.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"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div>
<svg
width="48"
height="48"
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect
width="48"
height="48"
rx="24"
fill="#F10000"></rect>
<path
d="M35.469 18.429L35.499 18.625C35.209 17.596 34.426 16.802 33.431 16.513L33.41 16.508C31.5391 16 24.0101 16 24.0101 16C24.0101 16 16.5002 15.99 14.6103 16.508C13.5963 16.802 12.8123 17.596 12.5273 18.604L12.5223 18.625C11.8233 22.2759 11.8183 26.6629 12.5533 30.5718L12.5223 30.3738C12.8123 31.4028 13.5953 32.1968 14.5903 32.4858L14.6113 32.4908C16.4802 32.9998 24.0111 32.9998 24.0111 32.9998C24.0111 32.9998 31.5201 32.9998 33.411 32.4908C34.426 32.1968 35.21 31.4028 35.495 30.3948L35.5 30.3738C35.818 28.6759 36 26.7219 36 24.7259C36 24.6529 36 24.5789 35.999 24.5049C36 24.4369 36 24.3559 36 24.2749C36 22.2779 35.818 20.324 35.469 18.429ZM21.6082 28.1509V20.858L27.8741 24.5099L21.6082 28.1509Z"
fill="white"></path>
</svg>
</div>
<div>
<h2 class="font-bold text-xl">YouTube</h2>
<p class="text-[#ccc]">@RythonDev</p>
</div>
</div>
</div>
</a>
<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"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div>
<svg
width="48"
height="48"
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<rect
width="48"
height="48"
rx="24"
fill="url(#paint0_radial_973_2817)"></rect>
<path
d="M19.2632 12C15.263 12 12 15.263 12 19.2632V28.7368C12 32.7365 15.2629 36 19.2632 36H28.7368C32.7366 36 36 32.7366 36 28.7368V19.2632C36 15.2629 32.7365 12 28.7368 12H19.2632ZM19.2632 13.8947H28.7368C31.7124 13.8947 34.1053 16.287 34.1053 19.2632V28.7368C34.1053 31.7122 31.7122 34.1053 28.7368 34.1053H19.2632C16.287 34.1053 13.8947 31.7124 13.8947 28.7368V19.2632C13.8947 16.2869 16.2869 13.8947 19.2632 13.8947ZM30.3158 16.4211C29.6179 16.4211 29.0526 16.9863 29.0526 17.6842C29.0526 18.3821 29.6179 18.9474 30.3158 18.9474C31.0137 18.9474 31.5789 18.3821 31.5789 17.6842C31.5789 16.9863 31.0137 16.4211 30.3158 16.4211ZM24 17.6842C20.5233 17.6842 17.6842 20.5233 17.6842 24C17.6842 27.4767 20.5233 30.3158 24 30.3158C27.4767 30.3158 30.3158 27.4767 30.3158 24C30.3158 20.5233 27.4767 17.6842 24 17.6842ZM24 19.5789C26.4525 19.5789 28.4211 21.5475 28.4211 24C28.4211 26.4525 26.4525 28.4211 24 28.4211C21.5475 28.4211 19.5789 26.4525 19.5789 24C19.5789 21.5475 21.5475 19.5789 24 19.5789Z"
fill="white"></path>
<defs>
<radialGradient
id="paint0_radial_973_2817"
cx="0"
cy="0"
r="1"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(17.8439 48.0346) scale(59.8337 59.8337)"
>
<stop stop-color="#FFDD55"></stop>
<stop
offset="0.328"
stop-color="#FF543F"></stop>
<stop
offset="0.348"
stop-color="#FC5245"></stop>
<stop
offset="0.504"
stop-color="#E64771"></stop>
<stop
offset="0.643"
stop-color="#D53E91"></stop>
<stop
offset="0.761"
stop-color="#CC39A4"></stop>
<stop
offset="0.841"
stop-color="#C837AB"></stop>
</radialGradient>
</defs>
</svg>
</div>
<div>
<h2 class="font-bold text-xl">Instagram</h2>
<p class="text-[#ccc]">@RythonDev</p>
</div>
</div>
</div>
</a>
<a href="https://github.com/liyunze-coding" 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"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div>
<svg
version="1.1"
xmlns="http://www.w3.org/2000/svg"
width="48"
height="48"
viewBox="0 0 32 32"
fill="#fff"
>
<title>github</title>
<path
d="M0 15.968q0-3.264 1.28-6.208 2.528-5.952 8.48-8.48 2.944-1.28 6.208-1.28t6.208 1.28q5.888 2.496 8.48 8.48 1.28 3.040 1.28 6.208t-1.28 6.208q-2.592 6.016-8.48 8.544-2.944 1.28-6.208 1.28t-6.208-1.28q-5.952-2.56-8.48-8.544-1.28-2.944-1.28-6.208zM2.496 15.968q0 4.512 2.688 8.064 2.656 3.488 6.944 4.96v-2.56q0-1.92 1.28-2.784-0.64-0.032-1.504-0.224-1.632-0.288-2.784-1.024-2.912-1.76-2.912-6.368 0-2.4 1.6-4.096-0.736-1.888 0.16-4.096h0.64q0.32 0 0.8 0.16 1.248 0.384 2.784 1.408 1.952-0.512 3.84-0.512t3.872 0.512q1.248-0.832 2.336-1.28 1.024-0.384 1.472-0.32l0.384 0.032q0.864 2.208 0.16 4.096 1.6 1.696 1.6 4.096 0 3.584-1.76 5.408-0.96 1.024-2.528 1.6-1.312 0.48-2.912 0.608 1.312 0.928 1.312 2.784v2.56q4.128-1.472 6.816-5.024 2.624-3.52 2.624-8 0-2.72-1.056-5.248-1.024-2.432-2.88-4.288-1.792-1.792-4.288-2.848-2.56-1.088-5.216-1.088-2.624 0-5.248 1.088-2.4 1.024-4.288 2.848-1.792 1.856-2.88 4.288-1.056 2.528-1.056 5.248z"
></path>
</svg>
</div>
<div>
<h2 class="font-bold text-xl">Github</h2>
<p class="text-[#ccc]">liyunze-coding</p>
</div>
</div>
</div>
</a>
<a href="https://codepen.io/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"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div>
<svg
version="1.1"
id="Capa_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
width="40px"
height="40px"
viewBox="0 0 31.665 31.665"
fill="#fff"
style="enable-background:new 0 0 31.665 31.665;"
xml:space="preserve"
>
<g>
<path
d="M16.878,0.415c-0.854-0.565-1.968-0.552-2.809,0.034L1.485,9.214c-0.671,0.468-1.071,1.233-1.071,2.052v9.444
c0,0.84,0.421,1.623,1.122,2.086l12.79,8.455c0.836,0.553,1.922,0.553,2.758,0l13.044-8.618c0.7-0.463,1.122-1.246,1.122-2.086
v-9.279c0-0.839-0.421-1.622-1.121-2.085L16.878,0.415z M26.621,10.645l-4.821,3.237l-4.521-3.288L17.25,4.127L26.621,10.645z
M13.979,4.133v6.329l-4.633,3.24l-4.621-3.099L13.979,4.133z M3.458,13.722l2.991,2.004l-2.991,2.093V13.722z M14.058,27.215
l-9.331-6.258l4.661-3.258l4.67,3.133V27.215z M12.286,15.674l3.021-2.113l3.519,2.313l-3.119,2.095L12.286,15.674z M17.354,27.215
V20.83l4.463-2.991l4.805,3.159L17.354,27.215z M27.954,17.927l-3.168-2.082l3.168-2.125V17.927z"
></path>
</g>
<g> </g><g> </g><g> </g><g> </g><g> </g><g>
</g><g> </g><g> </g><g> </g><g> </g><g> </g><g>
</g><g> </g><g> </g><g> </g>
</svg>
</div>
<div>
<h2 class="font-bold text-xl">Codepen</h2>
<p class="text-[#ccc]">RythonDev</p>
</div>
</div>
</div>
</a>
<div class="social-card col-span-2">
<div
class="social-card-content flex flex-col justify-center items-start gap-5"
>
<div
class="flex flex-row gap-3 items-center justify-center"
>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="size-10"
width="40"
height="40"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
></path>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"
></path>
</svg>
<div>
<h2 class="font-bold text-xl">Location</h2>
<p class="text-[#ccc]">Asia, Malaysia</p>
</div> </div>
</div> </div>
<div <div
class="w-full class="flex flex-row justify-center items-center gap-3"
grid grid-cols-1 place-items-center gap-5
px-0 py-5
text-white"
> >
<!-- SOCIALS START HERE --> <svg
<a xmlns="http://www.w3.org/2000/svg"
href="https://twitch.tv/RythonDev" fill="none"
target="_blank" viewBox="0 0 24 24"
class="inline-block w-[clamp(200px,50vw,600px)] stroke-width="1.5"
relative stroke="currentColor"
rounded-full class="size-10"
bg-[#9146FF] border-[#9146FF]
border-solid border
px-2 py-2
text-center text-white
hover:bg-transparent hover:text-[#9146FF]
transition-colors duration-150"
> >
Twitch <path
stroke-linecap="round"
stroke-linejoin="round"
d="M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
></path>
</svg>
<div>
<h2 class="font-bold text-xl">Date & Time</h2>
<p class="text-[#ccc]">
{displayDate}
<br />
<span id="time-in-aus" class="uppercase">{time}</span> {timeDifference}
</p>
</div>
</div>
</div>
</div>
<a href="https://ko-fi.com/rython" 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"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div
class="w-12 h-12 aspect-square rounded-full bg-[#00BCF2] flex justify-center items-center"
>
<img
src="/images/socials/kofi_s_logo_nolabel.webp"
alt="ko-fi logo"
class="w-8 h-8"
width="32"
/>
</div>
<div>
<h2 class="font-bold text-xl">Ko-fi</h2>
<p class="text-[#ccc]">Rython</p>
</div>
</div>
</div>
</a> </a>
<a <a href="https://rython.dev/discord" target="_blank">
href="https://youtube.com/@RythonDev" <div class="social-card">
target="_blank" <div
class="inline-block w-[clamp(200px,50vw,600px)] class="social-card-content flex flex-col justify-between items-start group"
relative
rounded-full
bg-[#ff0000] border-[#ff0000]
border-solid border
px-7 py-2
text-center text-white
hover:bg-transparent hover:text-[#ff0000]
transition-colors duration-150"
> >
YouTube <div
class="absolute right-5 rotate-45 opacity-0
group-hover:opacity-100 group-hover:rotate-0
transition-all duration-300 ease-in-out"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div>
<svg width="48px" height="48px" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <circle cx="512" cy="512" r="512" style="fill:#5865f2"></circle> <path d="M689.43 349a422.21 422.21 0 0 0-104.22-32.32 1.58 1.58 0 0 0-1.68.79 294.11 294.11 0 0 0-13 26.66 389.78 389.78 0 0 0-117.05 0 269.75 269.75 0 0 0-13.18-26.66 1.64 1.64 0 0 0-1.68-.79A421 421 0 0 0 334.44 349a1.49 1.49 0 0 0-.69.59c-66.37 99.17-84.55 195.9-75.63 291.41a1.76 1.76 0 0 0 .67 1.2 424.58 424.58 0 0 0 127.85 64.63 1.66 1.66 0 0 0 1.8-.59 303.45 303.45 0 0 0 26.15-42.54 1.62 1.62 0 0 0-.89-2.25 279.6 279.6 0 0 1-39.94-19 1.64 1.64 0 0 1-.16-2.72c2.68-2 5.37-4.1 7.93-6.22a1.58 1.58 0 0 1 1.65-.22c83.79 38.26 174.51 38.26 257.31 0a1.58 1.58 0 0 1 1.68.2c2.56 2.11 5.25 4.23 8 6.24a1.64 1.64 0 0 1-.14 2.72 262.37 262.37 0 0 1-40 19 1.63 1.63 0 0 0-.87 2.28 340.72 340.72 0 0 0 26.13 42.52 1.62 1.62 0 0 0 1.8.61 423.17 423.17 0 0 0 128-64.63 1.64 1.64 0 0 0 .67-1.18c10.68-110.44-17.88-206.38-75.7-291.42a1.3 1.3 0 0 0-.63-.63zM427.09 582.85c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.02 28.44-20.37 51.6-46 51.6zm170.13 0c-25.23 0-46-23.16-46-51.6s20.38-51.6 46-51.6c25.83 0 46.42 23.36 46 51.6.01 28.44-20.17 51.6-46 51.6z" style="fill:#fff"></path> </g></svg>
</div>
<div>
<h2 class="font-bold text-xl">Discord</h2>
<p class="text-[#ccc]">rython.dev/discord</p>
</div>
</div>
</div>
</a> </a>
<a
href="https://rython.dev/discord" <a href="https://twitter.com/@RythonDev" target="_blank">
target="_blank" <div class="social-card">
class="inline-block w-[clamp(200px,50vw,600px)] <div
relative class="social-card-content flex flex-col justify-between items-start group"
rounded-full
bg-[#5865F2] border-[#5865F2]
border-solid border
px-7 py-2
text-center text-white
hover:bg-transparent hover:text-[#5865F2]"
> >
Discord <div
class="absolute right-5 rotate-45 opacity-0
group-hover:opacity-100 group-hover:rotate-0
transition-all duration-300 ease-in-out"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div>
<svg width="48px" height="48px" viewBox="126.444 2.281 589 589" xmlns="http://www.w3.org/2000/svg" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><circle cx="420.944" cy="296.781" r="294.5" fill="#2daae1"></circle><path d="M609.773 179.634c-13.891 6.164-28.811 10.331-44.498 12.204 16.01-9.587 28.275-24.779 34.066-42.86a154.78 154.78 0 0 1-49.209 18.801c-14.125-15.056-34.267-24.456-56.551-24.456-42.773 0-77.462 34.675-77.462 77.473 0 6.064.683 11.98 1.996 17.66-64.389-3.236-121.474-34.079-159.684-80.945-6.672 11.446-10.491 24.754-10.491 38.953 0 26.875 13.679 50.587 34.464 64.477a77.122 77.122 0 0 1-35.097-9.686v.979c0 37.54 26.701 68.842 62.145 75.961-6.511 1.784-13.344 2.716-20.413 2.716-4.998 0-9.847-.473-14.584-1.364 9.859 30.769 38.471 53.166 72.363 53.799-26.515 20.785-59.925 33.175-96.212 33.175-6.25 0-12.427-.373-18.491-1.104 34.291 21.988 75.006 34.824 118.759 34.824 142.496 0 220.428-118.052 220.428-220.428 0-3.361-.074-6.697-.236-10.021a157.855 157.855 0 0 0 38.707-40.158z" fill="#ffffff"></path></g></svg>
</div>
<div>
<h2 class="font-bold text-xl">Twitter</h2>
<p class="text-[#ccc]">@RythonDev</p>
</div>
</div>
</div>
</a> </a>
<a
href="https://instagram.com/rythondev" <a href="https://www.threads.net/@rythondev" target="_blank">
target="_blank" <div class="social-card">
class="inline-block w-[clamp(200px,50vw,600px)] <div
relative class="social-card-content flex flex-col justify-between items-start group"
rounded-full
bg-gradient-to-r from-purple-600 via-red-600 to-yellow-400
border-solid border
px-7 py-2
text-center text-white
hover:from-transparent hover:via-transparent hover:to-transparent"
> >
Instagram <div
class="absolute right-5 rotate-45 opacity-0
group-hover:opacity-100 group-hover:rotate-0
transition-all duration-300 ease-in-out"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="32"
height="32"
viewBox="0 0 46.652 46.652"
>
<path
id="Icon_ionic-md-arrow-back"
data-name="Icon ionic-md-arrow-back"
d="M32.988,14.432H7.938L19.484,2.886,16.494,0,0,16.494,16.494,32.988,19.38,30.1,7.938,18.556h25.05Z"
transform="translate(46.652 23.326) rotate(135)"
fill="#fff"></path>
</svg>
</div>
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
aria-label="Threads"
viewBox="0 0 192 192"
width="40px"
height="40px"
fill="#fff"
><path
class="x19hqcy"
d="M141.537 88.9883C140.71 88.5919 139.87 88.2104 139.019 87.8451C137.537 60.5382 122.616 44.905 97.5619 44.745C97.4484 44.7443 97.3355 44.7443 97.222 44.7443C82.2364 44.7443 69.7731 51.1409 62.102 62.7807L75.881 72.2328C81.6116 63.5383 90.6052 61.6848 97.2286 61.6848C97.3051 61.6848 97.3819 61.6848 97.4576 61.6855C105.707 61.7381 111.932 64.1366 115.961 68.814C118.893 72.2193 120.854 76.925 121.825 82.8638C114.511 81.6207 106.601 81.2385 98.145 81.7233C74.3247 83.0954 59.0111 96.9879 60.0396 116.292C60.5615 126.084 65.4397 134.508 73.775 140.011C80.8224 144.663 89.899 146.938 99.3323 146.423C111.79 145.74 121.563 140.987 128.381 132.296C133.559 125.696 136.834 117.143 138.28 106.366C144.217 109.949 148.617 114.664 151.047 120.332C155.179 129.967 155.42 145.8 142.501 158.708C131.182 170.016 117.576 174.908 97.0135 175.059C74.2042 174.89 56.9538 167.575 45.7381 153.317C35.2355 139.966 29.8077 120.682 29.6052 96C29.8077 71.3178 35.2355 52.0336 45.7381 38.6827C56.9538 24.4249 74.2039 17.11 97.0132 16.9405C119.988 17.1113 137.539 24.4614 149.184 38.788C154.894 45.8136 159.199 54.6488 162.037 64.9503L178.184 60.6422C174.744 47.9622 169.331 37.0357 161.965 27.974C147.036 9.60668 125.202 0.195148 97.0695 0H96.9569C68.8816 0.19447 47.2921 9.6418 32.7883 28.0793C19.8819 44.4864 13.2244 67.3157 13.0007 95.9325L13 96L13.0007 96.0675C13.2244 124.684 19.8819 147.514 32.7883 163.921C47.2921 182.358 68.8816 191.806 96.9569 192H97.0695C122.03 191.827 139.624 185.292 154.118 170.811C173.081 151.866 172.51 128.119 166.26 113.541C161.776 103.087 153.227 94.5962 141.537 88.9883ZM98.4405 129.507C88.0005 130.095 77.1544 125.409 76.6196 115.372C76.2232 107.93 81.9158 99.626 99.0812 98.6368C101.047 98.5234 102.976 98.468 104.871 98.468C111.106 98.468 116.939 99.0737 122.242 100.233C120.264 124.935 108.662 128.946 98.4405 129.507Z"
></path></svg
>
</div>
<div>
<h2 class="font-bold text-xl">Threads</h2>
<p class="text-[#ccc]">@RythonDev</p>
</div>
</div>
</div>
</a> </a>
<a </div>
href="https://ko-fi/rython" <div class="ml-auto mr-[calc((100vw-1024px)/2)] mt-10">
target="_blank" Hover Light effect by
class="inline-block w-[clamp(200px,50vw,600px)] <a class="underline text-white hover:text-blue-500"
relative href="https://www.youtube.com/watch?v=htGfnF1zN4g"
rounded-full target="_blank">
bg-cyan-500 border-cyan-500 Hyperplexed
border-solid border
px-7 py-2
text-center text-white
hover:bg-transparent hover:text-cyan-500"
>
Ko-fi
</a>
<a
href="https://github.com/liyunze-coding"
target="_blank"
class="inline-block w-[clamp(200px,50vw,600px)]
relative
rounded-full
bg-gray-100 border-gray-100
border-solid border
px-7 py-2
text-center text-black
hover:bg-transparent hover:text-gray-100"
>
Github
</a>
<a
href="https://codepen.io/rythondev"
target="_blank"
class="inline-block w-[clamp(200px,50vw,600px)]
relative
rounded-full
bg-gray-100 border-gray-100
border-solid border
px-7 py-2
text-center text-black
hover:bg-transparent hover:text-gray-100"
>
Codepen
</a> </a>
</div> </div>
</div> </div>
</Layout> </Layout>
<style>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");
:root {
--bg-color: rgb(20, 20, 20);
--card-color: rgb(23, 23, 23);
}
#cards:hover .social-card::after {
opacity: 1;
}
#intro .social-card-content {
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(20, 20, 20, 1) 50%
),
url("/images/ryan-run-TR.webp");
background-repeat: no-repeat;
}
.social-card {
background-color: rgba(255, 255, 255, 0.1);
border-radius: 3rem;
position: relative;
}
.social-card:not(#intro) {
height: 220px;
}
.social-card:hover::before {
opacity: 1;
}
.social-card::before,
.social-card::after {
border-radius: inherit;
content: "";
height: 100%;
left: 0px;
opacity: 0;
position: absolute;
top: 0px;
transition: opacity 500ms;
width: 100%;
}
.social-card::before {
background: radial-gradient(
800px circle at var(--mouse-x) var(--mouse-y),
rgba(255, 255, 255, 0.06),
transparent 40%
);
z-index: 3;
}
.social-card::after {
background: radial-gradient(
600px circle at var(--mouse-x) var(--mouse-y),
rgba(255, 255, 255, 0.5),
transparent 40%
);
z-index: 1;
}
.social-card > .social-card-content {
background-color: var(--card-color);
border-radius: inherit;
/* flex-grow: 1; */
inset: 1px;
padding: 10px;
position: absolute;
padding: 1.75rem;
z-index: 3;
}
</style>
<script is:inline>
document.getElementById("cards").onmousemove = (e) => {
for (const card of document.getElementsByClassName("social-card")) {
const rect = card.getBoundingClientRect(),
x = e.clientX - rect.left,
y = e.clientY - rect.top;
card.style.setProperty("--mouse-x", `${x}px`);
card.style.setProperty("--mouse-y", `${y}px`);
}
};
// const timeDifference = getTimezoneOffset();
// console.log(
// `The time difference between Melbourne and the user's timezone is ${timeDifference} hours.`
// );
let time = null;
setInterval( () => {
time = new Date().toLocaleTimeString("en-UK", {
timeZone: "Asia/Kuala_Lumpur",
hour: "numeric",
minute: "numeric",
hour12: true,
});
document.getElementById("time-in-aus").innerText = time;
}, 2000)
</script>