Skip to content

Commit

Permalink
fix the marquee
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetari committed Aug 25, 2024
1 parent 6b86b4c commit 23f97b1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<main class="relative h-full">
<Hero />
<div
class="padding-x relative rounded-t-3xl bg-[#0B0B0A] py-[5%] text-flax-smoke-200"
class="relative rounded-t-3xl bg-[#0B0B0A] py-[5%] text-flax-smoke-200"
>
<Services />
<Marquee />
Expand Down
24 changes: 12 additions & 12 deletions src/components/design/Marquee.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<template>
<section
id="marquee-section"
class="mb-32 flex h-[60svh] w-full flex-col items-stretch justify-around overflow-clip md:h-[75svh] lg:h-svh"
class="heading-1 sm:heading-display mb-32 flex h-[40vh] w-full flex-col items-stretch justify-around overflow-x-clip bg-[#0B0B0A] leading-none text-flax-smoke-200 md:h-[75svh] lg:h-svh"
>
<!-- Marquee 1: Dynamic Direction -->
<div id="marquee-1" class="flex">
<h4
v-for="i in 3"
:key="`marquee1-${i}`"
class="heading-display flex items-center whitespace-nowrap text-nowrap font-bold"
class="flex items-center whitespace-nowrap text-nowrap font-bold"
>
Ebraheem Alhetari
<div class="mx-10 w-fit scale-50 sm:scale-75">
<div class="w-fit scale-[0.5] sm:mx-10 sm:scale-75">
<svg
style="width: var(--heading-display)"
style="width: var(--)"
viewBox="0 0 55 37"
xmlns="http://www.w3.org/2000/svg"
>
Expand All @@ -31,17 +31,17 @@
<h4
v-for="i in 2"
:key="`marquee2-${i}`"
class="heading-display flex items-center whitespace-nowrap text-nowrap font-bold"
class="flex items-center whitespace-nowrap text-nowrap font-bold"
>
<span
class="font-sans text-transparent [-webkit-text-stroke:1.5px_white]"
>
welcome to the show
</span>

<div class="mx-10 w-fit scale-50 fill-current sm:scale-75">
<div class="w-fit scale-[0.5] fill-current sm:mx-10 sm:scale-75">
<svg
style="width: var(--heading-display)"
style="width: var(--)"
viewBox="0 0 102 102"
xmlns="http://www.w3.org/2000/svg"
>
Expand All @@ -59,10 +59,10 @@
<h4
v-for="i in 3"
:key="`marquee3-${i}`"
class="heading-display flex items-center whitespace-nowrap text-nowrap font-bold"
class="flex items-center whitespace-nowrap text-nowrap font-bold"
>
enjoy the animation
<div class="mx-10 w-fit scale-50 fill-current sm:scale-75">
<div class="w-fit scale-[0.5] fill-current sm:mx-10 sm:scale-75">
<svg
style="width: var(--heading-display)"
viewBox="0 0 100 101"
Expand Down Expand Up @@ -135,8 +135,8 @@
};
onMounted(() => {
initializeMarqueeWithObserver('marquee-1', true, -10, 0.5);
initializeMarqueeWithObserver('marquee-2', false, 1, 0.5);
initializeMarqueeWithObserver('marquee-3', true, 10, 1);
initializeMarqueeWithObserver('marquee-1', true, -10, 0.3);
initializeMarqueeWithObserver('marquee-2', false, 1, 0.6);
initializeMarqueeWithObserver('marquee-3', true, 10);
});
</script>
2 changes: 1 addition & 1 deletion src/components/sections/Services.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<section id="services" class="mb-20">
<section id="services" class="padding-x mb-20">
<div class="flex w-full flex-col">
<h1
id="what-i-do"
Expand Down

0 comments on commit 23f97b1

Please sign in to comment.