-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bff003d
commit 0c3969d
Showing
7 changed files
with
12,523 additions
and
16,502 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,56 @@ | ||
<template> | ||
<div> | ||
<ContentList path="/experience" v-slot="{ list }"> | ||
<div class="grid grid-cols-10 gap-8"> | ||
<template v-for="item in list" :key="item._path"> | ||
<div | ||
class="col-span-full md:col-span-3 lg:col-span-2 rounded-md border-2 border-brand_primary_light dark:border-brand_primary_dark overflow-x-scroll md:overflow-hidden" | ||
> | ||
<ul class="flex flex-row md:flex-col"> | ||
<template v-for="(exp, index) in item.experience" :key="index"> | ||
<li | ||
@click="() => toggleIndex(index)" | ||
:class="[ | ||
'cursor-pointer flex flex-col items-center justify-center md:text-lg md:leading-lg text-center py-2 px-4 hover:bg-brand_primary_light hover:text-typography_primary_dark dark:hover:bg-brand_primary_dark dark:hover:text-typography_primary_light', | ||
currentIndex === index | ||
? 'bg-brand_primary_light text-background_light dark:text-typography_primary_light dark:bg-brand_primary_dark' | ||
: 'text-typography_primary_light dark:text-typography_primary_dark' | ||
]" | ||
> | ||
{{ exp.company.short }} | ||
</li> | ||
</template> | ||
</ul> | ||
</div> | ||
</template> | ||
<template v-for="item in list" :key="item._path"> | ||
<div | ||
class="experience-list col-span-full md:col-span-7 lg:col-span-8 rounded-md border-2 border-brand_primary_light dark:border-brand_primary_dark p-4" | ||
> | ||
<template v-for="(exp, index) in item.experience" :key="index"> | ||
<ExperienceItem :data="exp" :class="[currentIndex === index ? 'block' : 'hidden']" /> | ||
</template> | ||
</div> | ||
</template> | ||
</div> | ||
</ContentList> | ||
<div> | ||
<div class="grid grid-cols-10 gap-8"> | ||
<template v-for="item in list" :key="item._path"> | ||
<div | ||
class="col-span-full md:col-span-3 lg:col-span-2 rounded-md border-2 border-brand_primary_light dark:border-brand_primary_dark overflow-x-scroll md:overflow-hidden" | ||
> | ||
<ul class="flex flex-row md:flex-col"> | ||
<template v-for="(exp, index) in item.experience" :key="index"> | ||
<li | ||
@click="() => toggleIndex(index)" | ||
:class="[ | ||
'cursor-pointer flex flex-col items-center justify-center md:text-lg md:leading-lg text-center py-2 px-4 hover:bg-brand_primary_light hover:text-typography_primary_dark dark:hover:bg-brand_primary_dark dark:hover:text-typography_primary_light', | ||
currentIndex === index | ||
? 'bg-brand_primary_light text-background_light dark:text-typography_primary_light dark:bg-brand_primary_dark' | ||
: 'text-typography_primary_light dark:text-typography_primary_dark', | ||
]" | ||
> | ||
{{ exp.company.short }} | ||
</li> | ||
</template> | ||
</ul> | ||
</div> | ||
</template> | ||
<template v-for="item in list" :key="item._path"> | ||
<div | ||
class="experience-list col-span-full md:col-span-7 lg:col-span-8 rounded-md border-2 border-brand_primary_light dark:border-brand_primary_dark p-4" | ||
> | ||
<template v-for="(exp, index) in item.experience" :key="index"> | ||
<ExperienceItem | ||
:data="exp" | ||
:class="[currentIndex === index ? 'block' : 'hidden']" | ||
/> | ||
</template> | ||
</div> | ||
</template> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from 'vue'; | ||
const currentIndex = ref(0); | ||
const toggleIndex = (index) => { | ||
currentIndex.value = index; | ||
currentIndex.value = index; | ||
}; | ||
const list = await queryContent('/experience').find(); | ||
</script> | ||
|
||
<style scoped> | ||
.experience-list { | ||
min-height: 55vh; | ||
min-height: 55vh; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,86 @@ | ||
<template> | ||
<div class="grid grid-cols-8 grid-rows-8 gap-2"> | ||
<div class="grid-image-wrapper row-start-5 row-span-1 col-start-3 col-span-3"> | ||
<img :src="props.imageTL.src" :alt="props.imageTL.alt" srcset="" class="grid-image"/> | ||
<div class="image-overlay bg-brand_primary_light dark:bg-brand_primary_dark"/> | ||
</div> | ||
<div class="grid-image-wrapper row-start-6 row-span-5 col-span-5"> | ||
<img :src="props.imageBL.src" :alt="props.imageBL.alt" srcset="" class="grid-image" /> | ||
<div class="image-overlay bg-brand_primary_light dark:bg-brand_primary_dark"/> | ||
</div> | ||
<div class="grid-image-wrapper row-start-1 row-[span_7_/_span_7] col-start-6 col-span-3"> | ||
<img :src="props.imageTR.src" :alt="props.imageTR.alt" srcset="" class="grid-image" /> | ||
<div class="image-overlay bg-brand_primary_light dark:bg-brand_primary_dark"/> | ||
</div> | ||
<div class="grid-image-wrapper row-start-8 row-span-2 col-start-6 col-span-2"> | ||
<img :src="props.imageBR.src" :alt="props.imageBR.alt" srcset="" class="grid-image" /> | ||
<div class="image-overlay bg-brand_primary_light dark:bg-brand_primary_dark"/> | ||
</div> | ||
<div class="grid grid-cols-8 grid-rows-8 gap-2"> | ||
<div | ||
class="grid-image-wrapper row-start-2 row-span-3 col-start-2 col-span-3" | ||
> | ||
<img | ||
:src="props.imageTL.src" | ||
:alt="props.imageTL.alt" | ||
srcset="" | ||
class="grid-image" | ||
/> | ||
<div | ||
class="image-overlay bg-brand_primary_light dark:bg-brand_primary_dark" | ||
/> | ||
</div> | ||
<div class="grid-image-wrapper row-start-5 row-span-4 col-span-4"> | ||
<img | ||
:src="props.imageBL.src" | ||
:alt="props.imageBL.alt" | ||
srcset="" | ||
class="grid-image" | ||
/> | ||
<div | ||
class="image-overlay bg-brand_primary_light dark:bg-brand_primary_dark" | ||
/> | ||
</div> | ||
<div | ||
class="grid-image-wrapper row-start-1 row-span-5 col-start-5 col-span-3" | ||
> | ||
<img | ||
:src="props.imageTR.src" | ||
:alt="props.imageTR.alt" | ||
srcset="" | ||
class="grid-image" | ||
/> | ||
<div | ||
class="image-overlay bg-brand_primary_light dark:bg-brand_primary_dark" | ||
/> | ||
</div> | ||
<div | ||
class="grid-image-wrapper row-start-6 row-span-2 col-start-5 col-span-2" | ||
> | ||
<img | ||
:src="props.imageBR.src" | ||
:alt="props.imageBR.alt" | ||
srcset="" | ||
class="grid-image" | ||
/> | ||
<div | ||
class="image-overlay bg-brand_primary_light dark:bg-brand_primary_dark" | ||
/> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
const props = defineProps({ | ||
imageTR: { | ||
type: Object | ||
}, | ||
imageTL: { | ||
type: Object | ||
}, | ||
imageBR: { | ||
type: Object | ||
}, | ||
imageBL: { | ||
type: Object | ||
} | ||
imageTR: { | ||
type: Object, | ||
}, | ||
imageTL: { | ||
type: Object, | ||
}, | ||
imageBR: { | ||
type: Object, | ||
}, | ||
imageBL: { | ||
type: Object, | ||
}, | ||
}); | ||
</script> | ||
|
||
<style scoped> | ||
.grid-image { | ||
@apply object-cover z-[1] w-full h-full; | ||
@apply object-cover z-[1] w-full h-full; | ||
} | ||
.grid-image-wrapper:hover { | ||
@apply shadow-lg; | ||
@apply shadow-lg; | ||
} | ||
.image-overlay { | ||
@apply w-full h-full opacity-25 absolute top-0 left-0 z-[2]; | ||
} | ||
.grid-image-wrapper { | ||
@apply relative overflow-hidden z-[1] rounded-sm duration-300 transition-all; | ||
@apply relative overflow-hidden z-[1] rounded-sm duration-300 transition-all; | ||
} | ||
</style> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.