-
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.
Merge pull request #102 from HE-Arc/sp-95-adding-visual-details-and-a…
…dpating-for-desktop-version Adding visual details and adpating for desktop version
- Loading branch information
Showing
8 changed files
with
177 additions
and
28 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.
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,71 @@ | ||
<script setup> | ||
import APIClient from '@/api_client'; | ||
import { onMounted, defineProps, ref } from 'vue'; | ||
const imageData = ref(''); | ||
const imageLoaded = ref(false); | ||
const props = defineProps({ | ||
id_category: Number | ||
}) | ||
onMounted(async () => { | ||
console.log(props.id_category); | ||
imageData.value = await APIClient.getImageCategory(props.id_category); | ||
imageLoaded.value = true; | ||
}); | ||
</script> | ||
|
||
<template> | ||
<Transition> | ||
<div v-if="imageLoaded"> | ||
<h2 class="title">Categorie</h2> | ||
<div class="category-banner" :style="{ backgroundImage: 'url(' + imageData + ')' }"> | ||
<div class="opacity-filter"> | ||
<span class="category-name">Politique</span> <!-- TODO --> | ||
</div> | ||
</div> | ||
</div> | ||
</Transition> | ||
</template> | ||
|
||
<style scoped style="scss"> | ||
.v-enter-active, | ||
.v-leave-active { | ||
transition: all 1s ease; | ||
} | ||
.v-enter-from, | ||
.v-leave-to { | ||
opacity: 0; | ||
transform: scale(0.9); | ||
} | ||
.category-banner { | ||
border-radius: 1.5rem; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
margin-bottom: 1.3rem; | ||
.opacity-filter { | ||
background-color: rgba(0, 0, 0, 0.5); | ||
padding: 1rem; | ||
border-radius: 1.5rem; | ||
height: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
.category-name { | ||
font-family: 'Montserrat', Inter, sans-serif; | ||
font-weight: 800; | ||
color: black; | ||
font-size: 1.75rem; | ||
font-style: italic; | ||
color: white; | ||
text-transform: uppercase; | ||
} | ||
} | ||
} | ||
</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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script setup> | ||
</script> | ||
|
||
<template> | ||
<footer> | ||
<span class="copyright">© 2024 MasterIQ - Maëlys Alessio Simon</span> | ||
</footer> | ||
</template> | ||
|
||
<style scoped style="scss"> | ||
footer { | ||
min-height: 5rem; | ||
background-image: url('/background.jpg'); | ||
background-size: cover; | ||
margin-top: 1rem; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
.copyright { | ||
background-color: white; | ||
padding: .3rem; | ||
border-radius: 15px; | ||
} | ||
} | ||
</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