Skip to content

Commit

Permalink
Add compass icon next to political orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
stesiam committed Jun 6, 2024
1 parent c240318 commit 17a246d
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 28 deletions.
64 changes: 48 additions & 16 deletions app/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ ui <- add_cookie_handlers(
)
),
tags$th(i18n$t("New Democracy"),
tags$span(class = "party-orientation",
i18n$t("Center-right/Right")),
tags$div(class = "party-orientation",
tags$div(
icon("compass")
),
tags$div(i18n$t("Center-right/Right"))
),
tags$div(class = "established",
tags$div(
icon("calendar-days")
Expand All @@ -92,8 +96,12 @@ ui <- add_cookie_handlers(
)
),
tags$th(i18n$t("SYRIZA"),
tags$span(class = "party-orientation",
i18n$t("Center-left/Left")),
tags$div(class = "party-orientation",
tags$div(
icon("compass")
),
tags$div(i18n$t("Center-left/Left"))
),
tags$div(class = "established",
tags$div(
icon("calendar-days")
Expand All @@ -113,8 +121,12 @@ ui <- add_cookie_handlers(
)
),
tags$th(i18n$t("PASOK"),
tags$span(class = "party-orientation",
i18n$t("Center-left")),
tags$div(class = "party-orientation",
tags$div(
icon("compass")
),
tags$div(i18n$t("Center-left"))
),
tags$div(class = "established",
tags$div(
icon("calendar-days")
Expand All @@ -134,8 +146,12 @@ ui <- add_cookie_handlers(
)
),
tags$th(i18n$t("KKE"),
tags$span(class = "party-orientation",
i18n$t("Far-left")),
tags$div(class = "party-orientation",
tags$div(
icon("compass")
),
tags$div(i18n$t("Far-left"))
),
tags$div(class = "established",
tags$div(
icon("calendar-days")
Expand All @@ -155,8 +171,12 @@ ui <- add_cookie_handlers(
)
),
tags$th(i18n$t("Elliniki Lysi"),
tags$span(class = "party-orientation",
i18n$t("Right/Far-right")),
tags$div(class = "party-orientation",
tags$div(
icon("compass")
),
tags$div(i18n$t("Right/Far-right"))
),
tags$div(class = "established",
tags$div(
icon("calendar-days")
Expand All @@ -176,8 +196,12 @@ ui <- add_cookie_handlers(
)
),
tags$th(i18n$t("Niki"),
tags$span(class = "party-orientation",
i18n$t("Far-right")),
tags$div(class = "party-orientation",
tags$div(
icon("compass")
),
tags$div(i18n$t("Far-right"))
),
tags$div(class = "established",
tags$div(
icon("calendar-days")
Expand All @@ -197,8 +221,12 @@ ui <- add_cookie_handlers(
)
),
tags$th(i18n$t("Plefsi"),
tags$span(class = "party-orientation",
i18n$t("Catch-all")),
tags$div(class = "party-orientation",
tags$div(
icon("compass")
),
tags$div(i18n$t("Catch-all"))
),
tags$div(class = "established",
tags$div(
icon("calendar-days")
Expand All @@ -218,8 +246,12 @@ ui <- add_cookie_handlers(
)
),
tags$th(i18n$t("MeRA25"),
tags$span(class = "party-orientation",
i18n$t("Left")),
tags$div(class = "party-orientation",
tags$div(
icon("compass")
),
tags$div(i18n$t("Left"))
),
tags$div(class = "established",
tags$div(
icon("calendar-days")
Expand Down
12 changes: 8 additions & 4 deletions app/www/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@ html{
}
}

.party-orientation{
display: block;
font-family: EB Garamond;
font-weight: normal;

.party-orientation {
display: flex;
font-family: Montserrat;
font-weight: normal;
font-size: 0.8em;
gap: 0.5em;
align-items: center;
}

.established{
Expand Down
16 changes: 8 additions & 8 deletions app/www/translations/translation_el.csv
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ en,el
"Bonus 50 Seats (2012-2019)", "Μπόνους 50 εδρών (2012-2019)"
"No Bonus (2023Α)", "Αναλογική κατανομή (2023Α)"
"Proportional Bonus (2023Β-", "Αναλογικό μπόνους (2023Β-)"
"Center-right/Right", "Κεντροδεξια/Δεξια"
"Center-left/Left", "Κεντροαριστερα/Αριστερα"
"Center-left", "Κεντροαριστερα"
"Left/Far-left", "Αριστερα"
"Right/Far-right", "Δεξια/Ακροδεξια"
"Far-right", "Ακροδεξια"
"Center-right/Right", "Κεντροδεξιά/Δεξιά"
"Center-left/Left", "Κεντροαριστερά/Αριστερά"
"Center-left", "Κεντροαριστερά"
"Left/Far-left", "Αριστερά"
"Right/Far-right", "Δεξιά/Ακροδεξιά"
"Far-right", "Ακροδεξιά"
"Catch-all", "Πολυσυλλεκτικό"
"Far-left", "Ακροαριστερα"
"Left", "Αριστερα"
"Far-left", "Ακροαριστερά"
"Left", "Αριστερά"

0 comments on commit 17a246d

Please sign in to comment.