diff --git a/src/app.html b/src/app.html index 50c86a5..7cb724e 100644 --- a/src/app.html +++ b/src/app.html @@ -1,86 +1,17 @@
- + + + + diff --git a/src/lib/components/Header.svelte b/src/lib/components/Header.svelte index 8bb2e70..374a0a9 100644 --- a/src/lib/components/Header.svelte +++ b/src/lib/components/Header.svelte @@ -96,12 +96,13 @@ diff --git a/src/lib/styles/fonts.css b/src/lib/styles/fonts.css new file mode 100644 index 0000000..a7d774d --- /dev/null +++ b/src/lib/styles/fonts.css @@ -0,0 +1,47 @@ +@font-face { + font-family: 'Merienda'; + font-display: swap; + src: + url('/fonts/merienda.regular.woff2') format('woff2'), + url('/fonts/merienda.regular.woff') format('woff'); + font-weight: 400; + font-style: normal; + font-display: swap; + font-optical-sizing: auto; +} + +@font-face { + font-family: 'Merienda'; + font-display: swap; + src: + url('/fonts/merienda.medium.woff2') format('woff2'), + url('/fonts/merienda.medium.woff') format('woff'); + font-weight: 500; + font-style: normal; + font-display: swap; + font-optical-sizing: auto; +} + +@font-face { + font-family: 'Merienda'; + font-display: swap; + src: + url('/fonts/merienda.semi-bold.woff2') format('woff2'), + url('/fonts/merienda.semi-bold.woff') format('woff'); + font-weight: 600; + font-style: normal; + font-display: swap; + font-optical-sizing: auto; +} + +@font-face { + font-family: 'Merienda'; + font-display: swap; + src: + url('/fonts/merienda.bold.woff2') format('woff2'), + url('/fonts/merienda.bold.woff') format('woff'); + font-weight: 700; + font-style: normal; + font-display: swap; + font-optical-sizing: auto; +} diff --git a/src/lib/styles/global.css b/src/lib/styles/global.css new file mode 100644 index 0000000..71a074f --- /dev/null +++ b/src/lib/styles/global.css @@ -0,0 +1,74 @@ +:root { + font-family: 'Merienda', cursive; + font-size: 16px; + line-height: 24px; + font-weight: 400; + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + -webkit-text-size-adjust: 100%; +} + +* { + box-sizing: border-box; +} + +body { + display: flex; + justify-content: center; + flex-direction: column; + margin: 0; + width: 100%; + height: 100%; +} + +#app { + display: flex; + flex-direction: column; + align-items: center; + width: 100%; + background-color: #f2f6f5; + z-index: 10; +} + +input[type='submit'] { + width: 100%; + font-size: 20px; + margin-top: 20px; + background-color: #05345f; + font-weight: 700; + color: white; + padding: 10px; + -webkit-appearance: none; + border-radius: 0; +} + +input[type='submit']:hover { + cursor: pointer; + background-color: black; + color: white; +} + +body a { + text-decoration: none; + color: #06345f; + border-bottom: 3px solid #06345f; +} + +body a:hover { + background-color: #06345f; + color: #ffffff; +} + +:is(h1, h2, h3, h4, h5, h6) { + color: #06345f; +} + +strong { + color: #06345f; +} + +ul li::marker { + color: #06345f; +} diff --git a/src/lib/styles/variables.css b/src/lib/styles/variables.css new file mode 100644 index 0000000..763f082 --- /dev/null +++ b/src/lib/styles/variables.css @@ -0,0 +1,5 @@ +:root { + --color-primary: #06345f; + + --font-base: 'Merienda'; +} diff --git a/src/lib/utils/isMobile.js b/src/lib/utils/isMobile.js new file mode 100644 index 0000000..b7037ac --- /dev/null +++ b/src/lib/utils/isMobile.js @@ -0,0 +1,9 @@ +import { browser } from '$app/environment'; + +export const isMobile = () => { + if (browser) { + return window.matchMedia('only screen and (max-width: 768px)').matches; + } else { + return null; + } +}; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index c79c07d..3b39e0a 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,4 +1,8 @@- {@html $t('home.banner.subtitle')} -
-- {$t('home.banner.description')} -
- - - -- {$t('home.donation.cta')} + {$t('home.donation.cta')} – {$t('home.donation.cta.description')}
- {$t('home.cta.cta')} + {$t('home.cta.cta')} – {@html $t('home.cta.cta.description')}