Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pxweb2 164 presentation page #125

Merged
merged 5 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions apps/pxweb2/public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,21 @@
"welcome_trans_test": "Welcome to the <1>app</1> for PxWeb 2.0!"
},
"presentation_page": {
"header": {
"searchbutton": "Search",
"languagebutton": "languages",
"statistics": "Statistikkbanken"
},
"sidemenu": {
"hide": "Hide menu",
"selection": {
"title": "Filter",
"variablebox": {
"search":{
"search": {
"placeholder": "Search",
"label": "Search",
"arialabelicontext" : "Search icon",
"ariallabelclearbuttontext" : "Clear search icon"
"arialabelicontext": "Search icon",
"ariallabelclearbuttontext": "Clear search icon"
}
}
},
Expand Down
124 changes: 124 additions & 0 deletions apps/pxweb2/public/locales/no/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@
"title": "PxWeb 2.0",
"logo": "PxWeb 2.0"
},
"footer": {
"contact": {
"title": "Kontakt",
"description": "Beskrivelsestekst..."
},
"about": {
"title": "Om",
"description": "Beskrivelsestekst..."
},
"accessibility": {
"title": "Tilgjengelighet",
"description": "Beskrivelsestekst..."
},
"version": {
"title": "Versjon",
"description": "Beskrivelsestekst..."
}
},
"generic_buttons": {
"ok": "OK",
"cancel": "Avbryt",
Expand All @@ -14,5 +32,111 @@
"start_page": {
"header": "Velkommen til appen!",
"welcome_trans_test": "Velkommen til <1>appen</1> for PxWeb 2.0!"
},
"presentation_page": {
"header": {
"searchbutton": "Søk",
"languagebutton": "språk",
"statistics": "Statistikkbanken"
},
"sidemenu": {
"hide": "Skjul meny",
"selection": {
"title": "Filter",
"variablebox": {
"search": {
"placeholder": "Søk",
"label": "Søk",
"arialabelicontext": "Søkeikon",
"ariallabelclearbuttontext": "Fjern søkeikon"
}
}
},
"view": {
"title": "Vis",
"table": {
"title": "Tabell"
},
"graph": {
"title": "Graf"
}
},
"edit": {
"title": "Rediger",
"customize": {
"title": "Tilpass",
"pivot": {
"title": "Pivot"
},
"rearrange": {
"title": "Omorganiser tabell",
"description": "Beskrivelsestekst..."
},
"change_order": {
"title": "Endre rekkefølge",
"description": "Beskrivelsestekst..."
}
},
"calculate": {
"title": "Beregn",
"sum": {
"title": "Sum",
"description": "Beskrivelsestekst..."
}
},
"hide_display": {
"title": "Skjul/vis"
}
},
"save": {
"title": "Lagre",
"file": {
"title": "Lagre som fil",
"excel": "Excel (xlsx)"
},
"imagefile": {
"title": "Lagre som graf",
"png": "Diagram (png)"
},
"link": {
"title": "Lagre som lenke",
"description": "Beskrivelsestekst..."
},
"api": {
"title": "API",
"description": "Beskrivelsestekst..."
}
},
"help": {
"title": "Hjelp"
}
},
"main_content": {
"last_updated": "Sist oppdatert",
"show_details": "Vis detaljer",
"about_table": {
"title": "Om tabellen",
"footnotes": {
"title": "Noter",
"show_all_footnotes": "Vis alle noter for tabellen"
},
"information": {
"title": "Informasjon",
"description": "Tabellen er en del av statistikken {{statistics}}"
},
"definition": {
"title": "Definisjoner",
"description": "Beskrivelsestekst..."
},
"metadata": {
"title": "Metadata",
"description": "Beskrivelsestekst..."
}
},
"related": {
"title": "Relatert",
"description": "Beskrivelsestekst..."
}
}
}
}
2 changes: 1 addition & 1 deletion apps/pxweb2/public/theme/variables.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Wed, 17 Apr 2024 13:00:42 GMT
* Generated on Tue, 23 Apr 2024 08:54:01 GMT
*/

:root {
Expand Down
5 changes: 5 additions & 0 deletions apps/pxweb2/src/@types/resources.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ interface Resources {
"welcome_trans_test": "Welcome to the <1>app</1> for PxWeb 2.0!"
},
"presentation_page": {
"header": {
"searchbutton": "Search",
"languagebutton": "languages",
"statistics": "Statistikkbanken"
},
"sidemenu": {
"hide": "Hide menu",
"selection": {
Expand Down
22 changes: 22 additions & 0 deletions apps/pxweb2/src/app/app.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,31 @@
width: 100%;
}

.main {
display: flex;
width: 100%;
}

.desktopNavigation {
display: none;
@media (min-width: fixed.$breakpoints-medium-min-width) {
display: block;
}
}

.mobileNavigation {
display: none;
position: fixed;
bottom: 0;
@media (max-width: fixed.$breakpoints-small-max-width) {
display: block;
}
}

@media (min-width: fixed.$breakpoints-xsmall-min-width) and (max-width: fixed.$breakpoints-xsmall-max-width) {
.breakpoints {
max-width: 100px;

color: white;
background-color: black;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { render } from '@testing-library/react';

import App from './app';
window.PxWeb2Config = {
language: {
supportedLanguages: ['en', 'no', 'ar', 'sv'],
defaultLanguage: 'en',
fallbackLanguage: 'en',
},
};

describe('App', () => {
it('should render successfully', () => {
Expand Down
Loading
Loading