-
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 #14 from Matteo-Grellier/feature/crud-websocket-me…
…ssages ✨ Feat(crud+channel): Added first CRUD and display of the messages in channel
- Loading branch information
Showing
33 changed files
with
667 additions
and
166 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
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.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<script setup lang="ts"> | ||
type Props = { | ||
type?: "dark" | "light" | ||
} | ||
const props = defineProps<Props>(); | ||
</script> | ||
<template> | ||
<button :class="(!type || type == 'light') ? 'light-btn' : 'dark-btn' "> | ||
<slot/> | ||
</button> | ||
</template> | ||
<style scoped> | ||
/* Default values */ | ||
button { | ||
display: flex; | ||
align-items: center; | ||
text-align: center; | ||
padding: var(--button-padding-height) 0.5em; | ||
transition: all 0.2s ease-in-out; | ||
font-family: var(--button-font-family); | ||
font-size: var(--button-font-size); | ||
font-weight: 600; | ||
height: var(--button-height); | ||
border-radius: var(--button-border-radius); | ||
border: none; | ||
background-color: var(--color-yellow); | ||
border: 2px solid var(--color-yellow); | ||
color: var(--color-dark-blue); | ||
} | ||
button:hover { | ||
cursor: pointer; | ||
background-color: var(--color-main-blue); | ||
color: var(--color-yellow); | ||
box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.2); | ||
} | ||
:slotted(svg) { | ||
fill: var(--color-dark-blue); | ||
width: 30px; | ||
height: 30px; | ||
} | ||
button:hover :slotted(svg) { | ||
fill: var(--color-yellow); | ||
width: 30px; | ||
height: 30px; | ||
} | ||
button img { | ||
margin-right: 0; | ||
} | ||
/* Darker values */ | ||
.dark-btn { | ||
background-color: var(--color-main-blue); | ||
border: 2px solid var(--color-dark-blue); | ||
color: var(--color-white-grey); | ||
} | ||
.dark-btn :slotted(svg) { | ||
fill: var(--color-white-grey); | ||
width: 30px; | ||
height: 30px; | ||
} | ||
.dark-btn:hover { | ||
background-color: var(--color-main-blue); | ||
border: 2px solid var(--color-yellow); | ||
color: var(--color-yellow); | ||
} | ||
</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
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.