-
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.
- Loading branch information
Showing
45 changed files
with
1,033 additions
and
742 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
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 |
---|---|---|
|
@@ -24,4 +24,4 @@ const variantClass = { | |
<ArrowIcon /> | ||
{{ text }} | ||
</RouterLink> | ||
</template> | ||
</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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<template> | ||
<div class="bg-black/30 fixed left-0 top-0 w-screen h-screen grid"> | ||
<div class="grid place-self-center bg-slate-100 w-3/5 h-fit p-10 rounded-xl gap-5"> | ||
<slot /> | ||
</div> | ||
<div class="bg-black/30 fixed left-0 top-0 w-screen h-screen grid"> | ||
<div class="grid place-self-center bg-slate-100 w-3/5 h-fit p-10 rounded-xl gap-5"> | ||
<slot /> | ||
</div> | ||
</template> | ||
</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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<script setup lang="ts"> | ||
defineProps({ | ||
bad: Boolean | ||
bad: Boolean | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div v-if="bad === true" class="bg-red-300 px-10 py-7 fixed rounded-xl bottom-4 right-4"> | ||
<slot /> | ||
</div> | ||
<div v-else class="bg-green-300 px-10 py-7 fixed rounded-xl bottom-4 right-4"> | ||
<slot /> | ||
</div> | ||
</template> | ||
<div v-if="bad === true" class="bg-red-300 px-10 py-7 fixed rounded-xl bottom-4 right-4"> | ||
<slot /> | ||
</div> | ||
<div v-else class="bg-green-300 px-10 py-7 fixed rounded-xl bottom-4 right-4"> | ||
<slot /> | ||
</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 |
---|---|---|
@@ -1,31 +1,42 @@ | ||
<script setup lang="ts"> | ||
import type { ContentType } from '@/types'; | ||
import { RouterLink } from 'vue-router'; | ||
import type { ContentCardType } from '@/types' | ||
import { RouterLink } from 'vue-router' | ||
import { ref } from 'vue' | ||
import IconBookmark from './icons/IconBookmark.vue'; | ||
import IconBookmark from './icons/IconBookmark.vue' | ||
import { saveContent } from '@/backend'; | ||
import { saveContent } from '@/backend' | ||
let windowSave = ref(false) | ||
defineProps<ContentType>() | ||
const props = withDefaults(defineProps<ContentCardType & { variant?: 'default' | 'lazyload' }>(), { | ||
variant: 'default' | ||
}) | ||
</script> | ||
|
||
<template> | ||
<li class="flex flex-col gap-2 flex-none flex-shrink-0"> | ||
<RouterLink :to="`/content/${id}`"> | ||
<div class="bg-gray-800 flex items-center justify-center"> | ||
<img class="w-32 h-full" :src="'https://www.artic.edu/iiif/2/'+image_id+'/full/843,/0/default.jpg'" :alt="alt_text" /> | ||
</div> | ||
|
||
<h3 class="line-clamp-1">{{ title }}</h3> | ||
</RouterLink> | ||
<button class="place-self-end" @click="windowSave = ! windowSave"> | ||
<IconBookmark class="w-4" /> | ||
</button> | ||
<div v-show="windowSave" class="absolute top-0 right-0 bg-slate-300"> | ||
|
||
</div> | ||
</li> | ||
</template> | ||
<li v-if="variant === 'default'" class="flex flex-col gap-2 flex-none flex-shrink-0"> | ||
<RouterLink :to="`/content/${id}`"> | ||
<div class="bg-gray-800 flex items-center justify-center"> | ||
<img | ||
class="w-32 h-full" | ||
:src="'https://www.artic.edu/iiif/2/' + image_id + '/full/843,/0/default.jpg'" | ||
:alt="alt_text" | ||
/> | ||
</div> | ||
<h3 class="line-clamp-1">{{ title }}</h3> | ||
</RouterLink> | ||
<button class="place-self-end" @click="windowSave = !windowSave"> | ||
<IconBookmark class="w-4" /> | ||
</button> | ||
<div v-show="windowSave" class="absolute top-0 right-0 bg-slate-300"></div> | ||
</li> | ||
<li v-else-if="variant === 'lazyload'"> | ||
<div class="flex flex-col gap-2"> | ||
<div class="bg-gray-300 px-32 py-28 w-full h-full rounded-lg"></div> | ||
<div class="flex justify-between"> | ||
<div class="bg-gray-300 w-36 h-8 rounded-lg"></div> | ||
<div class="bg-gray-300 w-14 h-8 rounded-lg"></div> | ||
</div> | ||
</div> | ||
</li> | ||
</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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<script setup lang="ts"> | ||
import { RouterLink } from 'vue-router'; | ||
import { RouterLink } from 'vue-router' | ||
defineProps({ | ||
tag: String, | ||
tag: String | ||
}) | ||
</script> | ||
|
||
<template> | ||
<li> | ||
<RouterLink :to="`/search?tag=${tag}`" class="px-5 py-2 bg-slate-300/30 rounded-xl"> | ||
<span>{{ tag }}</span> | ||
</RouterLink> | ||
</li> | ||
</template> | ||
<li> | ||
<RouterLink :to="`/search?tag=${tag}`" class="px-5 py-2 bg-slate-300/30 rounded-xl"> | ||
<span>{{ tag }}</span> | ||
</RouterLink> | ||
</li> | ||
</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 |
---|---|---|
@@ -1,48 +1,53 @@ | ||
<!-- eslint-disable vue/multi-word-component-names --> | ||
<script setup lang="ts"> | ||
import IconFacebook from './icons/IconFacebook.vue' | ||
import IconTwitter from './icons/IconTwitter.vue' | ||
import IconInstagram from './icons/IconInstagram.vue' | ||
import LogoBlack from './icons/LogoBlack.vue' | ||
</script> | ||
|
||
<template> | ||
<footer class="flex justify-between mt-5 py-5 px-20"> | ||
<footer class="flex flex-col lg:flex-row justify-evenly mt-5 py-5 px-10 lg:px-20"> | ||
<div class="flex flex-col gap-3"> | ||
<LogoBlack /> | ||
<p>© 2024 Pulse News SARL</p> | ||
<ul class="flex gap-5 text-3xl"> | ||
<li><i class="fa-brands fa-facebook"></i></li> | ||
<li><i class="fa-brands fa-twitter"></i></li> | ||
<li><i class="fa-brands fa-instagram"></i></li> | ||
<ul class="flex gap-5 items-center"> | ||
<RouterLink to="#"><IconFacebook /></RouterLink> | ||
<RouterLink to="#"><IconTwitter /></RouterLink> | ||
<RouterLink to="#"><IconInstagram /></RouterLink> | ||
</ul> | ||
</div> | ||
<div class="grid grid-cols-2 gap-5 lg:grid-cols-4"> | ||
<ul class="font-serif"> | ||
<li> | ||
<p><b>Pulse</b></p> | ||
</li> | ||
<li><a href="team.html">Équipe</a></li> | ||
<li><a href="about.html">À propos</a></li> | ||
</ul> | ||
<ul class="font-serif"> | ||
<li> | ||
<p><b>Produit</b></p> | ||
</li> | ||
<li><a href="features.html">Fonctionnalités</a></li> | ||
<li><a href="prices.html">Tarifs</a></li> | ||
</ul> | ||
<ul class="font-serif"> | ||
<li> | ||
<p><b>Support</b></p> | ||
</li> | ||
<li><a href="">Centre d'aide</a></li> | ||
<li><a href="">FAQ</a></li> | ||
<li><a href="">Contacter le support</a></li> | ||
</ul> | ||
<ul class="font-serif"> | ||
<li> | ||
<p><b>Légal</b></p> | ||
</li> | ||
<li><a href="">Conditions générales d'utilisation</a></li> | ||
<li><a href="">Conditions générales de vente</a></li> | ||
<li><a href="">Politique de confidentialité</a></li> | ||
</ul> | ||
</div> | ||
<ul class="font-serif"> | ||
<li> | ||
<p><b>Pulse</b></p> | ||
</li> | ||
<li><a href="team.html">Équipe</a></li> | ||
<li><a href="about.html">À propos</a></li> | ||
</ul> | ||
<ul class="font-serif"> | ||
<li> | ||
<p><b>Produit</b></p> | ||
</li> | ||
<li><a href="features.html">Fonctionnalités</a></li> | ||
<li><a href="prices.html">Tarifs</a></li> | ||
</ul> | ||
<ul class="font-serif"> | ||
<li> | ||
<p><b>Support</b></p> | ||
</li> | ||
<li><a href="">Centre d'aide</a></li> | ||
<li><a href="">FAQ</a></li> | ||
<li><a href="">Contacter le support</a></li> | ||
</ul> | ||
<ul class="font-serif"> | ||
<li> | ||
<p><b>Légal</b></p> | ||
</li> | ||
<li><a href="">Conditions générales d'utilisation</a></li> | ||
<li><a href="">Conditions générales de vente</a></li> | ||
<li><a href="">Politique de confidentialité</a></li> | ||
</ul> | ||
</footer> | ||
</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
Oops, something went wrong.