Skip to content
Snippets Groups Projects
Commit 0d46e1cf authored by Katarína Sieklová's avatar Katarína Sieklová
Browse files

feat: finish chapter 1

parent 3af11fb7
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -51,8 +51,12 @@ export const opening = [ ...@@ -51,8 +51,12 @@ export const opening = [
SK: "Asi pravdepodobne netušíš, čo je inzulín. Vysvetlím ti to.", SK: "Asi pravdepodobne netušíš, čo je inzulín. Vysvetlím ti to.",
}, },
{ {
EN: "When we eat or drink, our body breaks down the sugar molecules and releases parts of it called glucose into our blood.", EN: "When we eat or drink, our body breaks down the sugar molecules.",
SK: "Keď jeme alebo pijeme, naše telo rozkladá molekuly cukru a uvoľňuje ich časti, ktoré nazývame glukóza, do našej krvi.", SK: "Keď jeme alebo pijeme, naše telo rozkladá molekuly cukru.",
},
{
EN: "Parts of it called glucose are released into our blood.",
SK: "Časti, ktoré nazývame glukóza, sa uvoľnia do našej krvi."
}, },
{ {
EN: "That's great, because we all need some glucose. It is what gives us our energy.", EN: "That's great, because we all need some glucose. It is what gives us our energy.",
......
This diff is collapsed.
...@@ -21,10 +21,10 @@ const Intro = () => { ...@@ -21,10 +21,10 @@ const Intro = () => {
return ( return (
<> <>
<div <div className="bg-primary-dark h-screen">
className="relative" <div className="absolute bottom-0">
> <img src="src/assets/backgrounds/homepage-static.svg" alt="background picture"/>
<img src="src/assets/backgrounds/homepage-static.svg" alt="bg"/> </div>
</div> </div>
<div> <div>
<button <button
...@@ -39,7 +39,8 @@ const Intro = () => { ...@@ -39,7 +39,8 @@ const Intro = () => {
{language === 'EN' ? 'English' : 'Slovenčina'} {language === 'EN' ? 'English' : 'Slovenčina'}
</button> </button>
{showLangMenu && ( {showLangMenu && (
<div className="mt-2 p-2 border-4 border-black font-primary bg-primary-main z-10 absolute top-60 left-28"> <div
className="mt-2 p-2 border-4 border-black font-primary bg-primary-main z-10 absolute top-60 left-28">
<button <button
className="block mt-1 border-2 border-black font-primary bg-primary-light hover:bg-primary-dark" className="block mt-1 border-2 border-black font-primary bg-primary-light hover:bg-primary-dark"
onClick={() => handleLanguageChange('EN')} onClick={() => handleLanguageChange('EN')}
......
...@@ -29,7 +29,7 @@ const Opening = () => { ...@@ -29,7 +29,7 @@ const Opening = () => {
<div className="w-screen"> <div className="w-screen">
<div className="text mt-12"> <div className="text mt-12">
<div id="intro-text" className="font-speech max-w-md" <div id="intro-text" className="font-speech max-w-md"
style={{position: 'absolute', top: 300, left: 200, right: 900}}> style={{position: 'absolute', top: 300, left: 150, right: 900}}>
<Typewriter <Typewriter
options={{ options={{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment