Skip to content

Commit

Permalink
Image resize and conversion to webp format
Browse files Browse the repository at this point in the history
  • Loading branch information
andreacw5 committed Sep 22, 2022
1 parent 49dfcb3 commit 030e2d0
Show file tree
Hide file tree
Showing 24 changed files with 123 additions and 9 deletions.
3 changes: 1 addition & 2 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ module.exports = {
title: 'Home' || '',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' }
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
link: [
{ rel: 'icon', type: 'image/png', href: '/index.png' },
Expand Down
Binary file removed src/assets/img/activity.jpg
Binary file not shown.
Binary file removed src/assets/img/groups.jpg
Binary file not shown.
Binary file removed src/assets/img/hq.png
Binary file not shown.
Binary file added src/assets/img/hq.webp
Binary file not shown.
Binary file modified src/assets/img/lazy.webp
Binary file not shown.
Binary file modified src/assets/img/reportage_car.webp
Binary file not shown.
Binary file added src/assets/img/vehicles/cars/land.webp
Binary file not shown.
Binary file added src/assets/img/vehicles/cars/mitsubishi.webp
Binary file not shown.
Binary file removed src/assets/img/vehicles/ducato/ducato.jpg
Binary file not shown.
Binary file removed src/assets/img/vehicles/iveco/iveco2.jpg
Binary file not shown.
Binary file removed src/assets/img/vehicles/land/land.jpg
Binary file not shown.
Binary file removed src/assets/img/vehicles/land/land2.jpg
Binary file not shown.
Binary file removed src/assets/img/vehicles/mitsu/mitsubishi.jpg
Binary file not shown.
Binary file removed src/assets/img/vehicles/mitsu/mitsubishi3.jpg
Binary file not shown.
Binary file added src/assets/img/vehicles/trucks/ducato.webp
Binary file not shown.
Binary file added src/assets/img/vehicles/trucks/iveco.webp
Binary file not shown.
Binary file added src/assets/img/volunteers/groups.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions src/components/navigation/LowerBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
<v-container class="py-0 px-0 px-sm-2">
<v-btn text color="#ffffff" nuxt :to="{ path: localePath('/')}">{{ $t('menu.home') }}</v-btn>
<v-btn text color="#ffffff" nuxt :to="{ path: localePath('/about')}">{{ $t('menu.about') }}</v-btn>
<v-btn text color="#ffffff" nuxt :to="{ path: localePath('/operations')}">{{ $t('menu.activity') }}</v-btn>
<v-btn text color="#ffffff" nuxt :to="{ path: localePath('/headquarter')}">{{ $t('menu.headquarters') }}</v-btn>
<v-btn text color="#ffffff" nuxt :to="{ path: localePath('/operations')}">{{ $t('operations.title') }}</v-btn>
<v-btn text color="#ffffff" nuxt :to="{ path: localePath('/headquarter')}">{{ $t('headquarters.title') }}</v-btn>
<v-btn text color="#ffffff" nuxt :to="{ path: localePath('/volunteer')}">{{ $t('menu.volunteer') }}</v-btn>
<v-btn text color="#ffffff" nuxt :to="{ path: localePath('/vehicle')}">{{ $t('menu.vehicles') }}</v-btn>
</v-container>
Expand Down
3 changes: 1 addition & 2 deletions src/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default {
sidebar: [
{ icon: 'home', i18n: 'menu.home', path: '/'},
{ icon: 'account-group', i18n: 'menu.about', path: '/about'},
{ icon: 'shield-alert-outline', i18n: 'menu.activity', path: '/operations'},
{ icon: 'shield-alert-outline', i18n: 'operations.title', path: '/operations'},
{ icon: 'office-building', i18n: 'menu.headquarters', path: '/headquarter'},
{ icon: 'account-group', i18n: 'menu.volunteer', path: '/volunteer'},
{ icon: 'car-settings', i18n: 'menu.vehicles', path: '/vehicle'},
Expand All @@ -106,7 +106,6 @@ export default {
this.$auth.setUser(user)
// Set axios token
this.$axios.setToken(token, 'Bearer')
console.log('auth done!')
} else {
this.$auth.logout()
}
Expand Down
116 changes: 116 additions & 0 deletions src/pages/alerts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,122 @@
<page-title i18n="menu.alerts" title='Allerte' class="mb-2" />
<!-- Allerte list -->
<div class="flex-grow-1 min-w-0">
<v-row dense>
<v-col cols="12" md="12">
<v-card>
<v-card-title>
Le fasi operative
</v-card-title>
<v-card-text>
Quando c'è un'allerta, Regioni e comuni valutano, in base alla propria organizzazione e al proprio territorio, quale fase operativa del piano di Protezione Civile attivare:
<strong>ATTENZIONE</strong>, <strong>PRE-ALLARME</strong>, <strong>ALLARME</strong>. In caso di allerta rossa sul territorio, si attiva almeno la fase di pre-allarme.
</v-card-text>
</v-card>
</v-col>
<v-col cols="12" md="12">
<v-row dense>
<v-col cols="12" md="4">
<v-card>
<v-card-title>
<v-icon class="mr-2">mdi-alert-circle-outline</v-icon>
ATTENZIONE
</v-card-title>
<v-divider />
<v-card-subtitle>
Il comune si prepara a rispondere all'eventuale emergenza attivando risorse e prodecure
</v-card-subtitle>
<v-card-text>
<p class="center-text"><strong>VERIFICA</strong></p>
<p>la prontezza operativa della propria struttura in contatto con Regione e Prefettura. <br>
Verifica le reperibilità del personale e dei volontari</p>
</v-card-text>
</v-card>
</v-col>
<v-col cols="12" md="4">
<v-card>
<v-card-title>
<v-icon class="mr-2">mdi-alert-circle-outline</v-icon>
PRE-ALLARME
</v-card-title>
<v-divider />
<v-card-subtitle>
Il comune si mobilita per prevenire o ridurre i possibili danni a persone, animali e cose
</v-card-subtitle>
<v-card-text>
<p class="center-text"><strong>ATTIVA</strong></p>
<p>il Centro Operativo Comunale per coordinbare gli interventi <br>
il personale e i volontari iniziano le attività di monitoraggio di sottopassi, argini, ponti,...</p>
</v-card-text>
</v-card>
</v-col>
<v-col cols="12" md="4">
<v-card>
<v-card-title>
<v-icon class="mr-2">mdi-alert-circle-outline</v-icon>
ALLARME
</v-card-title>
<v-divider />
<v-card-subtitle>
Il comune pienamente operativo per fronteggiare effetti e danni previsti o in atto
</v-card-subtitle>
<v-card-text>
<p class="center-text"><strong>COORDINA</strong></p>
<p>tutte le attività di assistenza e soccorso alla popolazione <br>
l'evacuazione delle aree a rischio e il soccorso ai cittadini in difficoltà</p>
</v-card-text>
</v-card>
</v-col>
</v-row>
</v-col>
<v-col cols="12" md="12">
<v-card>
<v-card-title>
I colori delle allerte
</v-card-title>
<v-card-text>
<p>Il dipartimento di protezione civile invia bollettini giornalieri codificando lo stato delle zone tramite codici colori, verde, giallo, arancione e rosso. In base al colore assegnato il territorio dovrà attivare le risorse opportune per verificare, mitigare ed eventualmente gestire l'emergenza in arrivo. Più l'allerta è importante, peggiori sono i possibili danni previsti </p>
<v-row dense>
<v-col cols="12" md="4">
<v-card color="yellow" outlined>
<v-card-title>
<v-icon class="mr-2">mdi-alert-circle-outline</v-icon>
Giallo
</v-card-title>
<v-divider />
<v-card-text>
<p>Il territorio è soggetto a condizioni meteorologiche avverse, ma non è previsto alcun fenomeno particolarmente pericoloso</p>
</v-card-text>
</v-card>
</v-col>
<v-col cols="12" md="4">
<v-card color="orange" outlined>
<v-card-title>
<v-icon class="mr-2">mdi-alert-circle-outline</v-icon>
Arancione
</v-card-title>
<v-divider />
<v-card-text>
<p>Il territorio è soggetto a condizioni meteorologiche avverse, ma non è previsto alcun fenomeno particolarmente pericoloso</p>
</v-card-text>
</v-card>
</v-col>
<v-col cols="12" md="4">
<v-card color="red" outlined rounded>
<v-card-title>
<v-icon class="mr-2">mdi-alert-circle-outline</v-icon>
Rosso
</v-card-title>
<v-divider />
<v-card-text>
<p>Il territorio è soggetto a condizioni meteorologiche avverse, ma non è previsto alcun fenomeno particolarmente pericoloso</p>
</v-card-text>
</v-card>
</v-col>
</v-row>
</v-card-text>
</v-card>
</v-col>
</v-row>
</div>
</v-container>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/vehicle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default {
{ name: "og:description", content: "" },
{ name: "og:type", content: "website" },
{ name: "og:url", content: "https://procivsettimomi.it" },
{ name: "og:image", content: "/assets/img/activity.jpg" },
{ name: "og:image", content: "/assets/img/lazy.webp" },
]
},
data() {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/volunteer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<v-card>
<v-img
:lazy-src="require('@/assets/img/lazy.webp')"
:src="require('@/assets/img/groups.jpg')"
:src="require('@/assets/img/volunteers/groups.webp')"
max-height="250"
></v-img>
</v-card>
Expand Down Expand Up @@ -65,7 +65,7 @@ export default {
{ name: "og:description", content: "" },
{ name: "og:type", content: "website" },
{ name: "og:url", content: "https://procivsettimomi.it" },
{ name: "og:image", content: "/assets/img/activity.jpg" },
{ name: "og:image", content: "/assets/img/lazy.webp" },
]
}
};
Expand Down
Binary file modified src/static/index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 030e2d0

Please sign in to comment.