-
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.
Merge pull request #115 from clubcapra/114-design-of-a-recrutement-page
114 design of a recrutement page
- Loading branch information
Showing
16 changed files
with
831 additions
and
130 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<script lang="ts" setup> | ||
const props = defineProps<{ | ||
button?: string; | ||
link?: string; | ||
imageRight: boolean; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<div | ||
class="container mx-auto px-4 py-20 flex flex-col gap-8 items-center w-full" | ||
:class="props.imageRight ? 'md:flex-row' : 'md:flex-row-reverse'" | ||
> | ||
<div | ||
class="flex flex-col gap-8 md:w-1/2" | ||
data-aos="fade-up" | ||
data-aos-delay="200" | ||
> | ||
<h2 class="font-bold font-sans text-4xl md:text-5xl"> | ||
<slot name="title" /> | ||
</h2> | ||
<p v-if="$slots.content1"> | ||
<slot name="content1" /> | ||
</p> | ||
<p v-if="$slots.content2"> | ||
<slot name="content2" /> | ||
</p> | ||
<a | ||
v-if="props.button && props.link" | ||
class="bg-black hover:border-primary-50 border-2 border-black transition-colors text-white font-medium text-lg py-2 px-4 rounded-lg w-fit" | ||
:href="props.link" | ||
target="_blank" | ||
> | ||
{{ props.button }} | ||
</a> | ||
</div> | ||
<div class="w-full md:w-1/2" data-aos="fade-up" data-aos-delay="400"> | ||
<slot name="image" /> | ||
</div> | ||
</div> | ||
</template> |
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 |
---|---|---|
@@ -0,0 +1,117 @@ | ||
<script setup lang="ts"> | ||
import { ref, type Ref } from 'vue'; | ||
import { useI18n } from 'vue-i18n'; | ||
const { t } = useI18n(); | ||
export interface QA { | ||
question: string; | ||
answer: string; | ||
} | ||
const content: QA[] = [ | ||
{ | ||
question: 'question_implication', | ||
answer: 'answer_implication', | ||
}, | ||
{ | ||
question: 'question_skills', | ||
answer: 'answer_skills', | ||
}, | ||
{ | ||
question: 'question_apply', | ||
answer: 'answer_apply', | ||
}, | ||
{ | ||
question: 'question_recruitment_period', | ||
answer: 'answer_recruitment_period', | ||
}, | ||
{ | ||
question: 'question_visit', | ||
answer: 'answer_visit', | ||
}, | ||
]; | ||
const selected: Ref<number | null> = ref(null); | ||
const showAll = ref(false); | ||
const containers: Ref<HTMLElement[]> = ref([]); | ||
</script> | ||
|
||
<template> | ||
<section | ||
id="FAQ" | ||
class="container mx-auto mb-10 px-4 bg-gray-100 w-100 pt-10 rounded-2xl" | ||
> | ||
<h2 class="text-5xl md:text-6xl font-bold font-sans text-center pt-10"> | ||
{{ t('faq') }} | ||
</h2> | ||
<div class="flex justify-center px-4 py-20"> | ||
<div class="container mx-auto px-4"> | ||
<!-- Column 1 --> | ||
<div class="bg-white max-w-full mx-auto border border-gray-200"> | ||
<ul class="shadow-box"> | ||
<li | ||
v-for="(qa, index) in content" | ||
:key="index" | ||
class="relative border-b border-gray-200" | ||
> | ||
<button | ||
type="button" | ||
class="w-full px-6 py-5 text-left" | ||
@click=" | ||
selected !== index ? (selected = index) : (selected = null) | ||
" | ||
> | ||
<div class="flex items-center justify-between"> | ||
<div class="flex"> | ||
<p class="w-8 shrink-0 text-xl font-semibold"> | ||
{{ t('question') }} | ||
</p> | ||
<p class="pt-1">{{ t(qa.question) }}</p> | ||
</div> | ||
<svg | ||
:class="{ | ||
'transform rotate-180': selected == index || showAll, | ||
}" | ||
class="w-5 h-5 text-gray-500" | ||
fill="none" | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path d="M19 9l-7 7-7-7" /> | ||
</svg> | ||
</div> | ||
</button> | ||
<div | ||
ref="containers" | ||
class="relative overflow-hidden transition-all max-h-0 duration-700" | ||
style="" | ||
:style=" | ||
selected == index || showAll | ||
? 'max-height: ' + containers[index]?.scrollHeight + 'px' | ||
: '' | ||
" | ||
> | ||
<div class="px-6 pb-5 flex"> | ||
<p class="w-8 shrink-0 text-xl font-semibold"> | ||
{{ t('answer') }} | ||
</p> | ||
<p class="pt-1">{{ t(qa.answer) }}</p> | ||
</div> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</template> | ||
|
||
<style scoped> | ||
.max-h-0 { | ||
max-height: 0; | ||
} | ||
</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.