Skip to content

Commit

Permalink
Merge pull request #4865 from HSLdevcom/DT-6033
Browse files Browse the repository at this point in the history
feat: dt-6033 raasepori instance, logo height config fix
  • Loading branch information
vesameskanen authored Sep 21, 2023
2 parents 24a88f7 + 428a073 commit 6ea65fb
Show file tree
Hide file tree
Showing 11 changed files with 167 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/component/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ $content-background-color: $background-color;
}

.logo {
height: 100%;
height: $nav-logo-height;
min-height: 40px;
min-width: 13em;
background-size: contain;
Expand Down
1 change: 1 addition & 0 deletions app/configurations/config.default.js
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,7 @@ export default {
varely: '(seutuplus|varely)',
kela: 'kelareitit',
pori: 'pori',
raasepori: '(raasepori|bosse)',
},

minutesToDepartureLimit: 9,
Expand Down
6 changes: 6 additions & 0 deletions app/configurations/config.matka.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default {
'Kajaani',
'Salo',
'Pori',
'Raasepori',
],

additionalFeedIds: {
Expand Down Expand Up @@ -504,6 +505,11 @@ export default {
sv: 'Björneborg',
en: 'Pori',
},
Raasepori: {
fi: 'Raasepori',
sv: 'Raseborg',
en: 'Raasepori',
},
},
stopCard: {
header: {
Expand Down
127 changes: 127 additions & 0 deletions app/configurations/config.raasepori.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
/* eslint-disable prefer-template */
import configMerger from '../util/configMerger';

const CONFIG = 'raasepori';
const APP_TITLE = 'Bossen reittiopas';
const APP_DESCRIPTION =
'Raaseporin reittiopas, Reittiopas Raasepori & Raseborgs reseplanerare, Reseplanerare Raseborg';

const walttiConfig = require('./config.waltti').default;

export default configMerger(walttiConfig, {
CONFIG,

feedIds: ['Raasepori', 'RaaseporiELY'],

appBarLink: {
name: 'Bosse',
href: 'https://raasepori.fi/bosse',
},

colors: {
primary: '#5B7B32',
iconColors: {
'mode-bus': '#5B7B32',
},
},

socialMedia: {
title: APP_TITLE,
description: APP_DESCRIPTION,
},

title: APP_TITLE,

// Navbar logo
logo: 'raasepori/raasepori_logo_valkoinen.png',
secondaryLogo: 'raasepori/raasepori_logo_musta.png',
favicon: './app/configurations/images/raasepori/favicon.png',

useSearchPolygon: true,

areaPolygon: [
[22.798050591810124, 60.02068257376368],
[22.79960774361706, 59.897540949175465],
[22.974192998046647, 59.86795098965149],
[23.1058934795999, 59.93636651320679],
[23.15420979372385, 59.90298885822057],
[23.213956747462134, 59.9263269199696],
[23.27525557012754, 59.91077003537629],
[23.257409077452678, 59.86950901276791],
[23.317931965654537, 59.82741676047499],
[23.569334176961746, 59.80986220394601],
[23.820736943339682, 59.94148746163248],
[23.961957460163006, 60.134858929105945],
[23.909193916601964, 60.22013915364576],
[23.30008536226046, 60.19083699661951],
[22.798050591810124, 60.02068257376368],
],

defaultEndpoint: {
address: 'Ekenäs, Raasepori',
lat: 59.975,
lon: 23.436111,
},

menu: {
copyright: { label: `© Raasepori ${walttiConfig.YEAR}` },
content: [
{
name: 'menu-feedback',
href: {
fi:
'https://www.raasepori.fi/asuminen-ja-ymparisto/liikenne-ja-veneily/joukkoliikenteen-yhteystiedot/',
sv:
'https://www.raseborg.fi/boende-och-miljo/trafik-och-batliv/kollektivtrafikens-kontaktuppgifter/',
en:
'https://www.raseborg.fi/boende-och-miljo/trafik-och-batliv/kollektivtrafikens-kontaktuppgifter/',
},
},
{
name: 'about-this-service',
route: '/tietoja-palvelusta',
},
{
name: 'accessibility-statement',
href: {
fi: 'https://www.digitransit.fi/accessibility',
sv: 'https://www.digitransit.fi/accessibility',
en: 'https://www.digitransit.fi/en/accessibility',
},
},
],
},

vehicles: true,
showVehiclesOnStopPage: true,
showVehiclesOnSummaryPage: true,

aboutThisService: {
fi: [
{
header: 'Tietoja palvelusta',
paragraphs: [
'Raaseporin kaupunki valitsi v. 2022 Waltti lippu- ja maksujärjestelmän uudeksi joukkoliikenteen lippujärjestelmäksi ja 5.6.2023 tämä otettiin käyttöön, ensimmäisenä kaupunkina läntisellä Uudellamaalla. Uudistus näkyy mm. lipputuotteiden hinnoittelussa ja valikoimassa, maksuvaihtoehdoissa ja reittioppaassa.',
],
},
],

sv: [
{
header: 'Om tjänsten',
paragraphs: [
'År 2022 valde Raseborgs stad biljett- och betalsystemet Waltti som nytt biljettsystem för kollektivtrafiken och den 5 juni 2023 togs detta i bruk, som den första staden i västra Nyland. Reformen kan ses i prissättning och urval av biljettprodukter, betalningsalternativ och reseplaneraren.',
],
},
],

en: [
{
header: 'About this service',
paragraphs: [
'In 2022, the city of Raseborg chose the Waltti ticket and payment system as the new public transport ticket system, and on June 5, 2023 this was put into use as the first city in western region of Nyland. The reform can be seen in the pricing and ticket products, payment options and the travelplanner.',
],
},
],
},
});
15 changes: 3 additions & 12 deletions app/configurations/config.walttiOpas.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default configMerger(walttiConfig, {
logo: 'walttiOpas/waltti-logo.png',
favicon: './app/configurations/images/walttiOpas/favicon.png',

feedIds: ['Salo', 'Kajaani', 'Raasepori'],
feedIds: ['Salo', 'Kajaani'],

defaultEndpoint: {
address: 'Helsinki-Vantaan Lentoasema',
Expand Down Expand Up @@ -131,11 +131,6 @@ export default configMerger(walttiConfig, {
fi: 'Salo',
sv: 'Salo',
en: 'Salo',
},
Raasepori: {
fi: 'Raasepori',
sv: 'Raseborg',
en: 'Raasepori',
}
},

Expand All @@ -151,13 +146,9 @@ export default configMerger(walttiConfig, {
[29.2, 64.1],
[28.7, 63.9],
[28.1, 63.8],
// Salo + Raasepori:
// Salo:
[23.1, 60.6],
[23.898, 60.207],
[23.942, 60.129],
[23.836, 59.980],
[23.847, 59.892],
[23.581, 59.796],
[23.7, 60.2],
[22.8, 59.9],
[22.7, 60.4],
[23.1, 60.6],
Expand Down
Binary file added app/configurations/images/raasepori/favicon.png
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.
3 changes: 3 additions & 0 deletions sass/themes/default/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,6 @@ $border-radius: 3px;
$border-radius-bigger: 8px;

$spinner-image: url('../default/default-spinner.png');

/* Navbar dimensions */
$nav-logo-height: 100%;
24 changes: 24 additions & 0 deletions sass/themes/raasepori/_theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* Raasepori theme */

/* Base theme */
@import '../../base/waltti';

/* Operator palette */
$raasepori-green: #5B7B32;

/* Application palette */
$primary-color: $raasepori-green;
$favourite-color: $raasepori-green;
$current-location-color: $primary-color;

/* Component palette */
$viewpoint-marker-color: $raasepori-green;
$link-color: $primary-color;
$desktop-title-color: $primary-color;
$top-bar-color: $primary-color;

/* Vehicle palette */
$bus-color: $raasepori-green;

/* Navbar dimensions */
$nav-logo-height: 3em;
2 changes: 2 additions & 0 deletions sass/themes/raasepori/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import 'theme';
@import '../../main';

0 comments on commit 6ea65fb

Please sign in to comment.