Skip to content

Commit c65fa02

Browse files
committed
some styling adjustments
1 parent 27c8fe6 commit c65fa02

File tree

5 files changed

+17
-14
lines changed

5 files changed

+17
-14
lines changed

src/app/layout.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import '@ionic/react/css/core.css'
66

77
import '../../styles/global.css'
88

9-
import { Inter } from 'next/font/google'
9+
import { Karla } from 'next/font/google'
1010

11-
const inter = Inter({
11+
const karla = Karla({
1212
subsets: ['latin'],
1313
display: 'swap',
14-
variable: '--font-inter',
14+
variable: '--font-karla',
1515
})
1616

1717
export const metadata: Metadata = {
@@ -25,7 +25,7 @@ export default function RootLayout({
2525
children: React.ReactNode
2626
}>) {
2727
return (
28-
<html lang="de" suppressHydrationWarning={true} className={inter.variable}>
28+
<html lang="de" suppressHydrationWarning={true} className={karla.variable}>
2929
<body>{children}</body>
3030
</html>
3131
)

src/components/exercise-view/ExerciseViewContent.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ export function ExerciseViewContent() {
109109
if (multiScreenExercise && showIntroScreen) {
110110
// return a full screen intro screen with yellow background
111111
return (
112-
<div className="absolute inset-0 bg-yellow-100 flex justify-between flex-col">
112+
<div className="absolute inset-0 bg-[#FFF1C5] flex justify-between flex-col">
113113
<button
114-
className="absolute top-4 left-4 text-blue-500 hover:text-blue-700 text-2xl"
114+
className="absolute top-4 left-4 text-[#007EC1] bg-[#FFEAA8] text-2xl h-[17px] w-[17px] flex items-center justify-center"
115115
onClick={() => {
116116
history.push('/app/home')
117117
}}
@@ -120,19 +120,19 @@ export function ExerciseViewContent() {
120120
</button>
121121
<div></div>
122122

123-
<div>
124-
<div className="w-[270px] mx-auto">
123+
<div className="text-[#0C0A1C] w-[285px] mx-auto">
124+
<div className="w-[210px] mx-auto">
125125
<img src="/birdie_idle.svg" alt="" />
126126
</div>
127-
<h1 className="font-bold mx-4 text-xl text-center">
127+
<h1 className="font-extrabold text-[22px] text-center">
128128
Willkommen zur {skill}!
129129
</h1>
130-
<div className="mx-4 text-center mt-5">{introText}</div>
130+
<div className="text-center mt-5 text-sm opacity-85">{introText}</div>
131131
</div>
132132
<div>
133133
<div className="flex justify-center mt-4 mb-2">
134134
<button
135-
className="bg-yellow-500 hover:bg-yellow-600 px-4 py-2 rounded-full text-white w-[290px]"
135+
className="bg-[#F3BA03] hover:bg-yellow-600 px-4 py-2 rounded-full text-white w-[290px]"
136136
onClick={() => {
137137
ExerciseViewStore.update(s => {
138138
s.showIntroScreen = false
@@ -142,7 +142,7 @@ export function ExerciseViewContent() {
142142
Mit der ersten Aufgabe beginnen
143143
</button>
144144
</div>
145-
<p className="text-xs text-gray-400 w-[270px] mx-auto mb-7 text-center transition-colors">
145+
<p className="text-xs w-[270px] mx-auto mb-7 text-center transition-colors text-[#B9B9B9]">
146146
(du musst nicht alles auf einmal machen. Dein Fortschritt wird
147147
gespeichert)
148148
</p>

src/content/navigations.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -2267,6 +2267,9 @@ export const navigationData: { [key: number]: Navigation } = {
22672267
Jetzt hast du schon die ersten Skills gemeistert! <br></br> Bist
22682268
du bereit für die <strong>1. Challenge</strong> &#9733;? Hier
22692269
kannst du zeigen, was du gelernt hast!
2270+
<br />
2271+
<br />
2272+
Die Bearbeitungszeit ist etwa 15 Minuten.
22702273
</>
22712274
),
22722275
position: { x: 240, y: 760 },

styles/global.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body {
2020

2121
:root,
2222
html {
23-
--ion-default-font: var(--font-inter) !important;
23+
--ion-default-font: var(--font-karla) !important;
2424
}
2525

2626
.rounded-footer-shadow {

tailwind.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
theme: {
66
extend: {
77
fontFamily: {
8-
sans: ['var(--font-inter)', ...defaultTheme.fontFamily.sans],
8+
sans: ['var(--font-karla)', ...defaultTheme.fontFamily.sans],
99
},
1010
},
1111
},

0 commit comments

Comments
 (0)