Skip to content

Commit

Permalink
Merge pull request #2 from FerneLabs/fix/home-view-transitions
Browse files Browse the repository at this point in the history
rollback transitions to native comps
  • Loading branch information
joeperpetua authored Dec 19, 2024
2 parents 284af2c + 9a638df commit 177da6f
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 104 deletions.
Binary file removed public/favicon.ico
Binary file not shown.
89 changes: 0 additions & 89 deletions public/index.html

This file was deleted.

11 changes: 9 additions & 2 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ const setOpen = (state: boolean) => {
games
</p>

<TransitionGeneric type="opacityFromMin" duration="300">
<transition
enter-active-class="transition-opacity duration-300"
leave-active-class="transition-opacity duration-300"
enter-from-class="opacity-0"
enter-to-class="opacity-100"
leave-from-class="opacity-100"
leave-to-class="opacity-0"
>
<div
v-show="gamesOpen"
class="absolute top-20 right-20 bg-white shadow-lg rounded p-4 flex flex-col bg-background w-[50vw] md:w-fit"
Expand All @@ -49,7 +56,7 @@ const setOpen = (state: boolean) => {
{{ game.name }}
</RouterLink>
</div>
</TransitionGeneric>
</transition>

<RouterLink to="/#about"> about </RouterLink>
</div>
Expand Down
11 changes: 9 additions & 2 deletions src/components/PartnerCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ const { name, redirectUrl, height = '200', width = '200' } = defineProps<Props>(
<template>
<div @mouseenter="setHover(true)" @mouseleave="setHover(false)" class="relative my-2">
<img :src="getImgUrl(name)" :alt="`${name} logo`" :height="height" :width="width" />
<TransitionGeneric type="opacityFromMin" duration="300">
<transition
enter-active-class="transition-opacity duration-300"
leave-active-class="transition-opacity duration-300"
enter-from-class="opacity-0"
enter-to-class="opacity-100"
leave-from-class="opacity-100"
leave-to-class="opacity-0"
>
<div
v-show="hover"
class="absolute top-0 flex flex-col justify-center items-center w-full bg-backdrop90 h-full"
Expand All @@ -39,6 +46,6 @@ const { name, redirectUrl, height = '200', width = '200' } = defineProps<Props>(
>see more</a
>
</div>
</TransitionGeneric>
</transition>
</div>
</template>
2 changes: 0 additions & 2 deletions src/components/icons/GitHub-icon.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { defineProps } from 'vue'
interface Props {
width?: string
height?: string
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/LinkedIn-icon.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { defineProps } from 'vue'
interface Props {
width?: string
height?: string
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/Telegram-icon.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { defineProps } from 'vue'
interface Props {
width?: string
height?: string
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/X-icon.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { defineProps } from 'vue'
interface Props {
width?: string
height?: string
Expand Down
2 changes: 0 additions & 2 deletions src/components/transitions/Opacity-min-max.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<script setup lang="ts">
import { defineProps } from 'vue'
interface Props {
duration: string
min: string
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

"paths": {
"@/*": ["./src/*"]
}
},
"resolveJsonModule": true,
"esModuleInterop": true
}
}

0 comments on commit 177da6f

Please sign in to comment.