-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Search: ajout endpoints et query API correcte
Style: ajout styles sur certaines pages Changements structuration HTML
- Loading branch information
Showing
12 changed files
with
194 additions
and
78 deletions.
There are no files selected for viewing
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
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,26 +1,27 @@ | ||
<script setup lang="ts"> | ||
const props = defineProps({ | ||
to: String, | ||
text: String, | ||
isLink: Boolean | ||
}) | ||
import ArrowIcon from '@/components/icons/IconArrow.vue' | ||
const props = withDefaults( | ||
defineProps<{ | ||
variant?: 'default' | 'dark' | 'outlined' | ||
url: string | ||
text: string | ||
}>(), | ||
{ variant: 'default' } | ||
) | ||
const variantClass = { | ||
default: 'border border-pink hover:shadow-[inset_0_0_0_8px_#feaa9b]', | ||
dark: 'bg-black text-white', | ||
outlined: 'text-white border border-white hover:shadow-[inset_0_0_0_8px_white]' | ||
} | ||
</script> | ||
|
||
<template> | ||
<a | ||
v-if="props.isLink" | ||
class="flex rounded-lg bg-blue-500 text-white w-full justify-center py-1" | ||
v-on="$props" | ||
:href="to" | ||
<RouterLink | ||
:to="`${url}`" | ||
class="inline-flex items-center gap-4 px-6 py-4 text-xs font-bold uppercase tracking-wide transition duration-300 ease-in-out lg:px-8 lg:py-6 lg:text-sm" | ||
:class="variantClass[props.variant]" | ||
> | ||
{{ props.text }} | ||
</a> | ||
<button | ||
v-else | ||
class="flex rounded-lg bg-blue-500 text-white w-full justify-center py-1" | ||
v-on="$props" | ||
:click="to" | ||
> | ||
{{ props.text }} | ||
</button> | ||
</template> | ||
<ArrowIcon /> | ||
{{ text }} | ||
</RouterLink> | ||
</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
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
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,6 @@ | ||
<template> | ||
<svg width="24" height="32" viewBox="0 0 24 32" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M1.5335 30.4962L1.53349 30.4962L1.5298 30.4988C1.52816 30.4993 1.5246 30.5 1.51875 30.5C1.51779 30.5 1.51702 30.5 1.5164 30.4999C1.51524 30.4998 1.51464 30.4997 1.51447 30.4997L1.51326 30.4993C1.512 30.4988 1.50917 30.4972 1.50597 30.494C1.50278 30.4908 1.50123 30.488 1.50069 30.4867L1.50031 30.4855C1.50026 30.4853 1.5 30.484 1.5 30.4813V3C1.5 2.17218 2.17218 1.5 3 1.5H21C21.8278 1.5 22.5 2.17218 22.5 3V30.4813C22.5 30.484 22.4997 30.4853 22.4997 30.4855L22.4993 30.4867C22.4988 30.488 22.4972 30.4908 22.494 30.494C22.4908 30.4972 22.488 30.4988 22.4867 30.4993L22.4855 30.4997C22.4853 30.4997 22.484 30.5 22.4813 30.5C22.4754 30.5 22.4719 30.4993 22.4702 30.4988L22.4665 30.4962L12.8602 23.7712L12 23.169L11.1398 23.7712L1.5335 30.4962Z" stroke="black" stroke-width="3"/> | ||
</svg> | ||
|
||
</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
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
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.