Skip to content

Commit

Permalink
#74 (style) - Add switch list mode speaker list
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlopez authored and fcamblor committed Aug 27, 2024
1 parent 2356ae5 commit 16a1b67
Show file tree
Hide file tree
Showing 9 changed files with 61 additions and 22 deletions.
6 changes: 3 additions & 3 deletions mobile/src/components/speaker-card/SpeakerCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@
&._has-liked {
&:before {
width: 40%;
height: 70%;
height: 50%;
right: 0;
bottom: 0;
transform: scale(1);
background: linear-gradient(331deg, rgba(var(--voxxrin-event-theme-colors-primary-rgb), 0.6) 30%, rgba(var(--voxxrin-event-theme-colors-primary-rgb), 0.6) 80%);
background: linear-gradient(331deg, rgba(var(--voxxrin-event-theme-colors-primary-rgb), 0.4) 30%, rgba(var(--voxxrin-event-theme-colors-primary-rgb), 0.4) 80%);
opacity: 1;
filter: blur(32px);
animation: scale-in-center 0.1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
Expand All @@ -183,7 +183,7 @@
background-position: right;
background-size: cover;
transform: scale(1);
opacity: 0.5;
opacity: 1;
mix-blend-mode: overlay;
animation: scale-in-center 0.1s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
Expand Down
11 changes: 11 additions & 0 deletions mobile/src/components/speaker-card/SpeakerCompactCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@
border: 1px solid var(--app-primary);
background-color: var(--app-background);
@media (prefers-color-scheme: dark) {
color: var(--app-white);
border: 1px solid var(--app-white);
background-color: transparent;
}
&-nb {
display: flex;
align-items: center;
Expand All @@ -267,6 +273,11 @@
border-radius: 22px;
background-color: var(--app-primary-shade);
color: var(--app-white);
@media (prefers-color-scheme: dark) {
border-right: 1px solid var(--app-white);
background-color: var(--app-medium--contrast);
}
}
}
</style>
16 changes: 0 additions & 16 deletions mobile/src/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,6 @@ type RootTranslation = {
* S​p​e​a​k​e​r​s
*/
Speakers: string
/**
* L​i​k​e​ ​s​p​e​a​k​e​r
*/
Like_Speaker: string
/**
* S​e​e​ ​t​h​e​ ​s​p​e​a​k​e​r​'​s​ ​p​a​g​e
*/
View_Profil_Speaker: string
/**
* W​e​l​c​o​m​e​ ​t​o
*/
Expand Down Expand Up @@ -778,14 +770,6 @@ export type TranslationFunctions = {
* Speakers
*/
Speakers: () => LocalizedString
/**
* Like speaker
*/
Like_Speaker: () => LocalizedString
/**
* See the speaker's page
*/
View_Profil_Speaker: () => LocalizedString
/**
* Welcome to
*/
Expand Down
32 changes: 32 additions & 0 deletions mobile/src/styles/components/_listModeSwitch.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.listModesSwitch {
background-color: var(--app-background);
border-radius: 44px;
border: 1px solid var(--app-beige-line);

&-button {
height: 38px;
width: 38px;
margin: 0;
--background: transparent;
--color: var(--app-primary);
--padding-start: 0;
--padding-end: 0;

@media (prefers-color-scheme: dark) {
&.button-solid {
--background: transparent;
--color: var(--app-white);
}
}

&._active {
--background: var(--app-primary);
--color: var(--app-white);

@media (prefers-color-scheme: dark) {
--background: var(--app-white);
--color: var(--app-primary);
}
}
}
}
1 change: 1 addition & 0 deletions mobile/src/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/* ~ COMPONENTS*/
@import "@/styles/components/avatar.scss";
@import "@/styles/components/listCardsButtons.scss";
@import "@/styles/components/listModeSwitch.scss";
@import "@/styles/components/tabsSelection.scss";

/* ~ BASE */
Expand Down
2 changes: 1 addition & 1 deletion mobile/src/styles/utils/_animations.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}
100% {
transform: scale(1);
opacity: 1;
opacity: 0.7;
}
}

Expand Down
2 changes: 2 additions & 0 deletions mobile/src/styles/utils/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
--app-white-90: rgba(255, 255, 255, 0.9);
--app-white-80: rgba(255, 255, 255, 0.8);
--app-white-70: rgba(255, 255, 255, 0.7);
--app-white-60: rgba(255, 255, 255, 0.6);
--app-white-50: rgba(255, 255, 255, 0.5);

--app-primary: #0F0F0F;
--app-primary-rgb: 15, 15, 15;
Expand Down
4 changes: 2 additions & 2 deletions mobile/src/styles/vendors/ionic/customs/_custom-ion-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}

ion-toggle {
--track-background-checked: var(--voxxrin-event-theme-colors-primary-hex);
--track-background-checked: var(--voxxrin-event-theme-colors-secondary-hex);
}
}
}
}
9 changes: 9 additions & 0 deletions mobile/src/views/event/SpeakersDirectoryPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
<ion-header class="toolbarHeader">
<ion-toolbar>
<ion-title slot="start">{{ LL.Speakers() }}</ion-title>
<div slot="end" class="listModesSwitch">
<ion-button class="listModesSwitch-button _active">
<ion-icon :icon="albums"></ion-icon>
</ion-button>
<ion-button class="listModesSwitch-button">
<ion-icon :icon="list"></ion-icon>
</ion-button>
</div>
</ion-toolbar>
</ion-header>

Expand All @@ -26,6 +34,7 @@
import PoweredVoxxrin from "@/components/ui/PoweredVoxxrin.vue";
import SpeakerCard from "@/components/speaker-card/SpeakerCard.vue";
import SpeakerCompactCard from "@/components/speaker-card/SpeakerCompactCard.vue";
import {albums, list} from "ionicons/icons";
const { LL } = typesafeI18n()
Expand Down

0 comments on commit 16a1b67

Please sign in to comment.