diff --git a/frontend/public/trasa.png b/frontend/public/trasa.png new file mode 100644 index 0000000..28038cf Binary files /dev/null and b/frontend/public/trasa.png differ diff --git a/frontend/src/scripts/index.js b/frontend/src/scripts/index.js index bd5bc73..2297ce7 100644 --- a/frontend/src/scripts/index.js +++ b/frontend/src/scripts/index.js @@ -14,6 +14,7 @@ class Main extends Component { this.state = { text: "", status: "", + faq: false, }; } onSubmit(event){ @@ -37,6 +38,9 @@ class Main extends Component { } }); } + togglefaq(){ + this.setState({faq: !this.state.faq}); + } render(){ return (
@@ -48,6 +52,40 @@ class Main extends Component {
{this.state.text}
} + {this.state.faq && +
} + {this.state.faq && +
this.togglefaq()}> +
e.stopPropagation()}> + +
+
+
Kolik spoluúčastníků mám očekávat?
+

Zatím je kapacita závodu 50 účastníků.

+
+
+
+
+
Kolik lahváčů do sebe po cestě kopnu?
+

Celkem jsou 4 čekárny a v každé padne jeden lahváč.

+
+
+
+
+
A co panákové?
+

To já upřímě nevím. Záleží na tvém skóre v soutěžích.

+
+
+
+
+
Jaká je trasa závodu?
+

+ +
+
+
+
+ }
@@ -75,6 +113,9 @@ class Main extends Component {

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam sapien sem, ornare ac, nonummy non, lobortis a enim. Sed vel lectus. Donec odio tempus molestie, porttitor ut, iaculis quis, sem. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat. Aliquam erat volutpat. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.

+
+

Stále nevíš jestli se zůčastníš? přečti si náš

+
{/*
this.onSubmit(e)}>

Registrace

@@ -98,8 +139,19 @@ class Main extends Component {
+<<<<<<< HEAD
*/}
+======= + +
+ +
+
+ +
+
+>>>>>>> aa695fd (add FAQ)
info@alkator.cz diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index 0af53c7..826298e 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -50,4 +50,25 @@ form.container{ .kontakt > div > a { margin:auto; padding: 10px; +} + +.shadow { + background: rgba(0,0,0,0.4); + z-index: 1; + top: 0; + bottom: 0; + left: 0; + right: 0; + position: fixed; +} + +.faq { + z-index: 2; + top: 0; + bottom:0; + left:0; + right: 0; + position:fixed; + overflow-y:scroll; + overflow-x:hidden; } \ No newline at end of file