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

Update translation, add hot-news embed #722

Merged
merged 9 commits into from
Nov 29, 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
3,832 changes: 1,637 additions & 2,195 deletions data/kalkulacka/parliamentary-2024/global.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
<meta property="og:title" content="TestVot 2024" />
<meta
property="og:description"
content="9 prezidentských kandidátů. Kdo z nich bude reprezentovat vaše názory?"
content="TestVot este o aplicație imparțială care poate ajuta în a decide pe cine să votezi."
/>
<meta
property="og:image"
content="https://archiv.volebnikalkulacka.cz/images/og-image-2023.png"
content="https://testvot.eu/images/og-image-ro.png"
/>
<meta
property="og:image:secure_url"
content="https://archiv.volebnikalkulacka.cz/images/og-image-2023.png"
content="https://testvot.eu/images/og-image-ro.png"
/>
<meta property="og:image:type " content="image/png" />
<meta property="og:image:width" content="1200" />
Expand All @@ -27,11 +27,11 @@
<meta name="twitter:title" content="TestVot 2024" />
<meta
name="twitter:description"
content="9 prezidentských kandidátů. Kdo z nich bude reprezentovat vaše názory?"
content="TestVot este o aplicație imparțială care poate ajuta în a decide pe cine să votezi."
/>
<meta
name="twitter:image"
content="https://archiv.volebnikalkulacka.cz/images/og-image-2023.png"
content="https://testvot.eu/images/og-image-ro.png"
/>
<title>TestVot 2024</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
Expand Down
Binary file added frontend/public/images/og-image-ro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions frontend/src/components/FooterMultiWord.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const router = useRouter();
<div class="data-1">
<LogoComponent size="small" text />
<BodyText size="small">
Testvot este un ajutor imparțial în a decide pe cine să voteze.
TestVot este o aplicație imparțială care poate ajuta în a decide pe cine să votezi.
</BodyText>
</div>
<div class="data-3">
Expand Down Expand Up @@ -50,7 +50,7 @@ const router = useRouter();
</div>
<div class="data-5">
<StackComponent spacing="medium">
<TitleText size="small" tag="h5">Kontakt</TitleText>
<TitleText size="small" tag="h5">Contact</TitleText>
<StackComponent spacing="extra-small">
<a href="mailto:[email protected]">
<StackComponent spacing="small" centered horizontal>
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/components/embeds/HotNewsEmbed.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<script setup lang="ts">
import ThemeProvider from '@/components/utilities/theming/ThemeProvider.vue';
</script>

<template>
<ThemeProvider theme="hot-news">
<router-view />
</ThemeProvider>
</template>
23 changes: 23 additions & 0 deletions frontend/src/components/themes/HotNewsTheme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@import '@/components/themes/DefaultTheme.scss';

*:deep() {
// Override any of the default theme variables here

// Color palette
// -------------
// Primary colors
--palette-primary-10: 31, 27, 41;
--palette-primary-30: 50, 48, 82;
--palette-primary-50: 64, 69, 110;
--palette-primary-70: 90, 101, 151;
--palette-primary-90: 132, 155, 210;

// Secondary colors
--palette-secondary-10: 9, 18, 51;
--palette-secondary-30: 112, 65, 65;
--palette-secondary-50: 160, 93, 93;
--palette-secondary-70: 240, 200, 200;
--palette-secondary-90: 252, 236, 236;

--color-neutral-bg: var(--palette-secondary-70);
}
7 changes: 7 additions & 0 deletions frontend/src/components/themes/HotNewsTheme.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<template>
<div>
<slot />
</div>
</template>

<style lang="scss" scoped src="@/components/themes/HotNewsTheme.scss" />
14 changes: 7 additions & 7 deletions frontend/src/routes/email-collection/EmailCollectionPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const onSubmit = async () => {
if (response.ok) {
posting.value = false;
success.value = true;
message.value = 'Sikeres feliratkozás!';
message.value = '';

const user = (await response.json()) as User;
userStore.setUser(user);
Expand Down Expand Up @@ -186,14 +186,14 @@ const onRefuse = async () => {
>.
</BodyText>
<BodyText size="medium">
Te invităm să faci parte dintr-un grup de cetățeni pe care îi vom
contacta din nou cu întrebări despre problemele, nevoile și
opiniile lor. Eventualele tale răspunsuri vor fi folosite doar în
formă anonimizată.
Te invităm să faci parte dintr-un grup de cetățeni pe care
îivom contacta din nou cu întrebări despre problemele,
nevoile șiopiniile lor. Eventualele tale răspunsuri vor fi
folosite doarîn formă anonimizată.
</BodyText>
<BodyText size="medium">
Iți vom trimite pe același email și un rezumat a ceea ce a reieșit
din analiza statistică a răspunsurilor la TestVot.
Iți vom trimite pe același email și un rezumat a ceea ce a
reieșit din analiza statistică a răspunsurilor la TestVot.
</BodyText>
</StackComponent>
<template #after />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/guide/GuidePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const districtNameWithCode = showDistrictCode
? `${districtName} (${districtCode})`
: districtName;

const breadcrumbs = `${electionName} — ${districtNameWithCode}`;
const breadcrumbs = `${electionName} — TestVot 2024`;

const forwardRoute = computed(
() =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const districtNameWithCode = showDistrictCode
? `${districtName} (${districtCode})`
: districtName;

const breadcrumbs = `${electionName} — ${districtNameWithCode}`;
const breadcrumbs = `${electionName} — TestVot 2024`;

const handlePreviousClick = () => {
// go to the last question
Expand Down Expand Up @@ -155,7 +155,7 @@ const handleShowComparsionClick = () => {
color="neutral"
@click="handleSkipClick"
>
SKIP
Sari peste
<template #iconAfter>
<IconComponent :icon="mdiArrowRight" />
</template>
Expand Down Expand Up @@ -220,7 +220,7 @@ const handleShowComparsionClick = () => {
color="neutral"
@click="handleSkipClick"
>
SKIP
Sari peste
<template #iconAfter>
<IconComponent :icon="mdiArrowRight" />
</template>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/question/QuestionPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const districtNameWithCode = showDistrictCode
? `${districtName} (${districtCode})`
: districtName;

const breadcrumbs = `${electionName} — ${districtNameWithCode}`;
const breadcrumbs = `${electionName} — TestVot 2024`;

const forwardRoute = computed(
() =>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/recap/RecapPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const districtNameWithCode = showDistrictCode
? `${districtName} (${districtCode})`
: districtName;

const breadcrumbs = `${electionName} — ${districtNameWithCode}`;
const breadcrumbs = `${electionName} — TestVot 2024`;

const handlePreviousClick = () => {
router.push({
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/recap/RecapQuestionCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const toggleClick = () => {
<strong>{{ question.title }}</strong>
</BodyText>
<BodyText class="mobile" size="small">
{{ question.name }}
{{ question.title }}
</BodyText>
<BodyText v-show="isExpanded" class="mobile" size="medium">
<strong>{{ question.title }}</strong>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/result/ResultPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const districtNameWithCode = showDistrictCode
? `${districtName} (${districtCode})`
: districtName;

const breadcrumbs = `${electionName} — ${districtNameWithCode}`;
const breadcrumbs = `${electionName} — TestVot 2024`;

const handlePreviousClick = () => {
router.push({
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/share/SharePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ watch(isInitialized, (value) => {
const districtNameWithCode = showDistrictCode
? `${districtName} (${districtCode})`
: districtName;
breadcrumbs.value = `${electionName} — ${districtNameWithCode}`;
breadcrumbs.value = `${electionName} — TestVot 2024`;
}
});
const handleFillAgainClick = () => {
Expand Down
Loading