Skip to content

Commit afde928

Browse files
committed
small improvements
1 parent aac2bd5 commit afde928

File tree

7 files changed

+122
-123
lines changed

7 files changed

+122
-123
lines changed

public/videos/V_YFwPaEEBY.mp4

1.4 MB
Binary file not shown.

src/components/ColorThemeToggle.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<label
2-
class="relative ml-4 inline-flex flex-shrink-0 cursor-pointer items-center"
2+
class="relative ml-6 inline-flex flex-shrink-0 cursor-pointer items-center"
33
aria-label="Toggle dark mode"
44
>
55
<input type="checkbox" value="" class="peer sr-only" />
66
<div
7-
class="h-6 w-11 rounded-full border-2 border-black bg-gray-700 transition duration-300 ease-in-out after:absolute after:left-[4px] after:top-[4px] after:h-4 after:w-4 after:rounded-full after:border-2 after:border-black after:bg-white after:transition-all after:content-[''] hover:bg-pink-200 peer-checked:bg-pink-300 peer-checked:shadow-[2px_2px_0px_rgba(0,0,0,1)] peer-checked:after:translate-x-5"
7+
class="transition-preset h-6 w-11 rounded-full border-2 border-black bg-gray-700 after:absolute after:left-[4px] after:top-[4px] after:h-4 after:w-4 after:rounded-full after:border-2 after:border-black after:bg-white after:transition-all after:content-[''] hover:bg-pink-200 peer-checked:bg-pink-300 peer-checked:shadow-[2px_2px_0px_rgba(0,0,0,1)] peer-checked:after:translate-x-5"
88
>
99
</div>
1010
<!--<span class="text-md ms-3 font-medium">Dark mode</span>-->

src/components/YouTubeClipsGrid.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function getBadgeColors(library: string) {
4848
tutorials.map((tut) => {
4949
return (
5050
<div
51-
class={`group flex flex-col justify-between overflow-hidden rounded-base border-2 border-black bg-lightBg transition duration-300 ease-in-out hover:shadow-cardLight focus:shadow-cardLight dark:bg-bg ${getBackgroundColors(tut.library)}`}
51+
class={`transition-preset group flex flex-col justify-between overflow-hidden rounded-base border-2 border-black bg-lightBg hover:shadow-cardLight focus:shadow-cardLight dark:bg-bg ${getBackgroundColors(tut.library)}`}
5252
>
5353
<div class="aspect-video overflow-hidden">
5454
<video
@@ -82,7 +82,7 @@ function getBadgeColors(library: string) {
8282
href={tut.link}
8383
target="_blank"
8484
rel="noopener noreferrer"
85-
class="flex-shrink-0 rounded-base border-2 border-black bg-main px-5 py-2 transition duration-300 ease-in-out hover:bg-pink-300 hover:shadow-buttonLight active:bg-pink-500"
85+
class="transition-preset flex-shrink-0 rounded-base border-2 border-black bg-main px-5 py-2 hover:bg-pink-300 hover:shadow-buttonLight active:bg-pink-500"
8686
>
8787
Watch
8888
</a>

0 commit comments

Comments
 (0)