Skip to content

Commit

Permalink
#91 replacements
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikgeissler committed May 20, 2023
1 parent 3eb1a34 commit 4be7b55
Show file tree
Hide file tree
Showing 20 changed files with 42 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/lib/BasePage.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import Toc from 'svelte-toc'
import { Img } from '.'
import { microcopy } from './stores'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ChapterList.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { microcopy } from './stores'
import type { Chapter } from './types'
Expand Down
8 changes: 6 additions & 2 deletions src/lib/Footer.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { repository } from '$root/package.json'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { Social } from '.'
import { microcopy } from './stores'
import type { Link } from './types'
Expand All @@ -10,12 +10,16 @@
</script>

<footer>
{@html $microcopy?.icons?.global?.award}
{@html $microcopy?.icons?.pages?.nav?.expand}
{@html $microcopy?.icons?.pages?.footer['Impressum']}

<img src="/favicon.svg" alt="SbS Logo" height="60" />
<span>© {new Date().getFullYear()} {$microcopy?.footer?.name}</span>
<div>
{#each links as { title, url }}
<a href={url}>
<Icon inline icon={$microcopy?.icons?.footer[title]} />
<Icon inline icon={$microcopy?.icons?.pages?.footer[title]} />
{title}
</a>
{/each}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Nav.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { beforeNavigate } from '$app/navigation'
import { page } from '$app/stores'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { slide } from 'svelte/transition'
import type { NavLink } from './types'
import { microcopy } from './stores'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/PlaceSelect.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import type { Result } from '@mapbox/mapbox-gl-geocoder'
import type { Map as MapBox, Marker } from 'mapbox-gl'
import mapbox from 'mapbox-gl'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/PostPreview.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { Img, ToolTip } from '.'
import type { Post } from './types'
import { microcopy } from './stores'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Social.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { microcopy } from './stores'
export let social: Record<string, string>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/TagList.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { fade, slide } from 'svelte/transition'
import type { Post } from './types'
import { microcopy } from './stores'
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ThemeSwitcher.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { colorMode, microcopy } from './stores'
// TODO: i18n the color mode titles
Expand Down
3 changes: 2 additions & 1 deletion src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetch_chapters, fetch_yaml } from '$lib/fetch'
import { microcopy } from '$lib/stores'
import { microcopy, icons } from '$lib/stores'
import type { Chapter, NavLink } from '$lib/types'

export const load = async () => {
Expand All @@ -8,6 +8,7 @@ export const load = async () => {
const social = await fetch_yaml(`Social`)
const chapters = await fetch_chapters()
const smallTexts = await fetch_yaml(`smallTexts`)
const iconYaml = await fetch_yaml('icons')
microcopy.set(smallTexts)

// ensure the non-chapter link spans all chapter subnav columns
Expand Down
4 changes: 2 additions & 2 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { ChapterMap } from '$lib'
import { microcopy } from '$lib/stores'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
export let data
Expand Down Expand Up @@ -64,7 +64,7 @@
<div style="background: var(--light-blue);">
<span>{$microcopy?.indexPage?.boxes?.organizationMemberNumber}</span>
<strong>
<Icon inline icon="fa6-solid:user-group" {style} />
<Icon inline icon={microcopy?.icons?.global?.group} {style} />
{@html $microcopy?.indexPage?.boxes?.organizationMemberName}
</strong>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/auszeichnungen/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { BasePage, Img } from '$lib'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { microcopy } from '../../lib/stores.js'
export let data
Expand Down
4 changes: 2 additions & 2 deletions src/routes/blog/[slug]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Img, ToolTip } from '$lib'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { onMount } from 'svelte'
import { microcopy } from '/src/lib/stores.js'
export let data
Expand Down Expand Up @@ -68,7 +68,7 @@
<strong>{new Date(date).toLocaleDateString(`de`)}</strong>
</span>
<span>
<Icon icon="ic:round-remove-red-eye" />
<Icon icon={$microcopy?.icons?.pages?.blog?.eye} />
{n_readers}
</span>
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/faq/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { Collapsible } from '$lib'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { flip } from 'svelte/animate'
import { scale } from 'svelte/transition'
import { microcopy } from '../../lib/stores.js'
Expand Down
2 changes: 1 addition & 1 deletion src/routes/lernmaterial/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { BasePage, Img } from '$lib'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { flip } from 'svelte/animate'
import { scale } from 'svelte/transition'
import { microcopy } from '../../lib/stores.js'
Expand Down
2 changes: 1 addition & 1 deletion src/routes/presse/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { BasePage, Img } from '$lib'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { microcopy } from '../../lib/stores.js'
export let data
Expand Down
2 changes: 1 addition & 1 deletion src/routes/signup-pupil/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// to make the signup form truely adaptive to other countries, these 3 files need to be imported adaptively (same in the other form)
import { signup_form_submit_handler } from '$lib/azure'
import { signupStore } from '$lib/stores'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { microcopy } from '../../lib/stores.js'
export let data
Expand Down
2 changes: 1 addition & 1 deletion src/routes/signup-student/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { CircleSpinner, FormField, Modal } from '$lib'
import { signup_form_submit_handler } from '$lib/azure'
import { signupStore } from '$lib/stores'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
import { microcopy } from '../../lib/stores.js'
export let data
Expand Down
2 changes: 1 addition & 1 deletion src/routes/standorte/[slug]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { BasePage } from '$lib'
import { microcopy } from '$lib/stores'
import Icon from '@iconify/svelte'
import { Icon } from '@iconify/svelte'
export let data
$: ({ page, slug } = data)
Expand Down
22 changes: 15 additions & 7 deletions src/signup-form/de/smallTexts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ indexPage:
boxes:
locationsName: Standorte
studentsName: Studierende
studentsNumber: 2872
studentsNumber: 3228
pupilsName: Schüler:innen
pupilsNumber: 3186
pupilsNumber: 3231
scholarshipName: '<a style="color: white;" href="/stipendium">Stipendien</a>'
scholarshipNumber: 9
scholarshipNumber: 12
organizationMemberName: Vereinsmitglieder
organizationMemberNumber: 350

footer:
name: "Studenten bilden Schüler e.V."
Expand All @@ -34,10 +36,12 @@ map:
text:
active: "aktiver Standort"
inSetup: "in Gründung"
partner: "Partner"

chapterList:
locations: "Unsere Standorte"
inSetup: "Standorte in Gründung"
partner: "Partner Standorte"

location:
register: "Anmeldungen"
Expand All @@ -46,6 +50,7 @@ location:
linkStudentInfo: "/mitmachen/nachhilfelehrer"
infoStudentButton: "Infos für Studierende"
joinPupil: "Suchst du Nachhilfe?"
declinePupil: "Warteliste voll :("
registerPupil: "Als Schüler:in anmelden"
linkPupilInfo: "/mitmachen/schueler"
infoPupilButton: "Infos für Schüler:innen"
Expand Down Expand Up @@ -91,10 +96,11 @@ icons:
expand: &EXPAND "bi:chevron-expand"
graduate: &GRADUATE "fa-solid:user-graduate"
graduationCap: &GRADUATION_CAP "fa-solid:graduation-cap"
group: &GROUP "fa6-solid:user-group"
# handshake
hands: &HANDS_HELPING "fa-solid:hands-helping"
information: &INFORMATION "bi:info-circle-fill"
link: &LINK bx:link
link: &LINK "bx:link"
newspaper: &NEWSPAPER "ion:newspaper"
# marker
place: &PLACE "ic:place"
Expand All @@ -117,14 +123,16 @@ icons:
article:
history: "ic:round-history-edu"
person: "bi:person-circle"
blog:
eye: "ic:round-remove-red-eye"
chapterList:
construction: "ic:round-construction"
footer:
Datenschutz: "ic:round-privacy-tip"
Impressum: "octicon:law"
Satzung: "ion:document-text"
Spenden: *CURRENCY
cookie: bxs:cookie
cookie: "bxs:cookie"
opensource: "ri:open-source-fill"
index:
update: "ic:update"
Expand All @@ -136,7 +144,7 @@ icons:
Mitmachen: "ion:people-circle"
Standorte: *PLACE
expand: *EXPAND
menu: heroicons-solid:menu
menu: "heroicons-solid:menu"
Über Uns: *PLANT
placeSelect:
delete: "ic:delete"
Expand All @@ -159,7 +167,7 @@ icons:
Bundesvorstand: "ion:stats-chart"
Erfahrungsberichte: "ic:rate-review"
Events: "ic:event-available"
Freizeit: "ic:be ach-access"
Freizeit: "ic:beach-access"
IT: "bx:git-branch"
Interview: "ic:question-answer"
Mentoring: *TEACHER
Expand Down

0 comments on commit 4be7b55

Please sign in to comment.