Skip to content

Commit

Permalink
fix(popup): review popup design
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Ribiere committed Mar 26, 2024
1 parent 9568787 commit 791ccf0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/components/Stats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
</p>
<div class="flex flex-row justify-around mb-2 text-main">
<div class="flex flex-col">
<span class="icon icon-female text-3xl text-center"/>
<span class="icon icon-female text-4xl text-center"/>
<span id="statsFemale" class="font-bold text-center"/>
<p class="text-xs uppercase text-center">{{ $t("stats.females") }}</p>
</div>
<div class="flex flex-col">
<span class="icon icon-male text-3xl text-center"/>
<span class="icon icon-male text-4xl text-center"/>
<span id="statsMale" class="font-bold text-center"/>
<p class="text-xs uppercase text-center">{{ $t("stats.males") }}</p>
</div>
<div class="flex flex-col">
<span class="icon icon-kid text-3xl text-center"/>
<span class="icon icon-kid text-4xl text-center"/>
<span id="statsMinor" class="font-bold text-center"/>
<p class="text-xs uppercase text-center">{{ $t("stats.minors") }}</p>
</div>
Expand All @@ -73,7 +73,7 @@
<div class="flex flex-row">
<span class="icon icon-bib text-3xl text-left text-secondary"/>
<div class="flex flex-col">
<span id="statsChildren" class="font-bold text-center text-secondary"/>
<span id="statsChildren" class="font-bold text-left text-secondary"/>
<p class="text-3xs uppercase text-left text-secondary text-stats-box">{{ $t("stats.children") }}</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/popUpContent/DeathDescription.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
</div>
<p class="font-bold">{{ format(deathData.date, "full") }}</p>
<hr class="border-dotted border-main border"/>
<p class="text-sm"><span class="icon icon-lifebuoy text-xl mr-3"/> {{ $t("popup.boatInvolved") }}:
<p class="text-sm mt-2 mb-2"><span class="icon icon-lifebuoy text-xl mr-3"/> {{ $t("popup.boatInvolved") }}:
<span class="font-bold">{{ deathData.boatInvolved }}</span>
</p>
<p class="text-sm"><span class="icon icon-rescue text-xl mr-3"/> {{ $t("popup.peoplesNB") }}:
<p class="text-sm mb-2"><span class="icon icon-rescue text-xl mr-3"/> {{ $t("popup.peoplesNB") }}:
<span class="font-bold">{{ deathData.deathNumber }}</span>
</p>
<p class="text-sm flex" v-if="deathData.testimonySrc.length > 0">
Expand Down
4 changes: 2 additions & 2 deletions src/components/popUpContent/IncidentDescription.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
</div>
<p class="font-bold">{{ format(incidentData.date, "full") }}</p>
<hr class="border-dotted border-main border"/>
<p class="text-sm"><span class="icon icon-lifebuoy text-xl mr-3"/> {{ $t("popup.boatInvolved") }}:
<p class="text-sm mb-2 mt-2"><span class="icon icon-lifebuoy text-xl mr-3"/> {{ $t("popup.boatInvolved") }}:
<span class="font-bold">{{ incidentData.boatInvolved }}</span>
</p>
<p class="text-sm flex">
<p class="text-sm mb-2 flex">
<img src="@/assets/warning.svg" class="popup-icon"> {{ $t("popup.facts") }}:
<span class="font-bold">{{ incidentData.incAction }}</span>
</p>
Expand Down
6 changes: 5 additions & 1 deletion src/components/popUpContent/OperationDescription.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<script lang="ts" setup>
// import { Colors } from "@/utils/Colors"
import { store } from "@/main"
import { computed, ref } from "vue"
import { computed } from "vue"
import { OpsData } from "@/classes/data/OpsData"
import { format } from "@formkit/tempo"
Expand Down Expand Up @@ -116,4 +116,8 @@ function setCurrentImage (url: string) {
button {
left: 100%;
}
p, span {
color: var(--text-color);
}
</style>

0 comments on commit 791ccf0

Please sign in to comment.