Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zasedání CF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Zasedání CF
Commits
576d31da
Commit
576d31da
authored
Nov 14, 2021
by
xaralis
Browse files
Options
Downloads
Patches
Plain Diff
feat: add transportation
parent
7166d0db
No related branches found
No related tags found
No related merge requests found
Pipeline
#6074
passed
Nov 14, 2021
Stage: build
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
.env
+1
-1
1 addition, 1 deletion
.env
src/App.js
+4
-0
4 additions, 0 deletions
src/App.js
src/config.js
+11
-2
11 additions, 2 deletions
src/config.js
src/pages/Accommodation.js
+3
-3
3 additions, 3 deletions
src/pages/Accommodation.js
src/pages/Transportation.js
+48
-0
48 additions, 0 deletions
src/pages/Transportation.js
with
67 additions
and
6 deletions
.env
+
1
−
1
View file @
576d31da
REACT_APP_STYLEGUIDE_URL="https://styleguide.pirati.cz/2.7.
0
"
REACT_APP_STYLEGUIDE_URL="https://styleguide.pirati.cz/2.7.
1
"
REACT_APP_ROOT_URL="https://cf2022.pirati.cz"
REACT_APP_CF_TITLE="CF 2022"
REACT_APP_CF_DESC="Oficiální stránka zasedání Celostátního fóra České pirátské strany, 8. - 9. 1. 2022."
...
...
This diff is collapsed.
Click to expand it.
src/App.js
+
4
−
0
View file @
576d31da
...
...
@@ -16,6 +16,7 @@ import classNames from "classnames";
import
MobileNav
from
"
components/MobileNav
"
;
import
{
basics
}
from
"
config
"
;
import
Transportation
from
"
pages/Transportation
"
;
import
VNav
from
"
./components/VNav
"
;
import
Accommodation
from
"
./pages/Accommodation
"
;
...
...
@@ -111,6 +112,9 @@ function PageBody() {
<
Route
path
=
"
/program
"
>
<
Program
/>
<
/Route
>
<
Route
path
=
"
/doprava
"
>
<
Transportation
/>
<
/Route
>
<
Route
path
=
"
/pro-dobrovolniky
"
>
<
Volunteers
/>
<
/Route
>
...
...
This diff is collapsed.
Click to expand it.
src/config.js
+
11
−
2
View file @
576d31da
...
...
@@ -42,6 +42,7 @@ export const nav = [
title
:
"
Stravování
"
,
},
{
link
:
"
/doprava
"
,
title
:
"
Doprava
"
,
},
{
...
...
@@ -254,7 +255,7 @@ export const accommodation = [
},
{
bedCount
:
2
,
price
:
1
7
00
,
price
:
1
9
00
,
},
],
},
...
...
@@ -276,7 +277,7 @@ export const accommodation = [
},
{
bedCount
:
2
,
price
:
1
7
00
,
price
:
1
9
00
,
},
],
},
...
...
@@ -304,6 +305,10 @@ export const accommodation = [
bedCount
:
3
,
price
:
1800
,
},
{
bedCount
:
4
,
price
:
2100
,
},
{
bedCount
:
5
,
price
:
2400
,
...
...
@@ -374,6 +379,10 @@ export const accommodation = [
help
:
"
Hotel Kristl bohužel nemá bezbariérový přístup.
"
,
},
variants
:
[
{
bedCount
:
1
,
price
:
450
,
},
{
bedCount
:
2
,
price
:
600
,
...
...
This diff is collapsed.
Click to expand it.
src/pages/Accommodation.js
+
3
−
3
View file @
576d31da
...
...
@@ -82,15 +82,15 @@ const Accommodation = () => {
<
table
className
=
"
table table--condensed table--light table--unxpadded w-full mt-4
"
>
<
thead
>
<
tr
className
=
"
text-left
"
>
<
th
>
Počet
lůžek
<
/th
>
<
th
>
Typ
pokoje
<
/th
>
<
th
>
Cena
za
osobu
<
/th
>
<
/tr
>
<
/thead
>
<
tbody
>
{
place
.
variants
.
map
((
v
,
idx
)
=>
(
<
tr
key
=
{
idx
}
>
<
td
>
{
v
.
bedCount
}
<
/td
>
<
td
>
{
pricePerHead
(
v
)}
<
/td
>
<
td
className
=
"
py-2
"
>
{
v
.
bedCount
}
-
lůžkový
<
/td
>
<
td
className
=
"
py-2
"
>
{
pricePerHead
(
v
)}
<
/td
>
<
/tr
>
))}
<
/tbody
>
...
...
This diff is collapsed.
Click to expand it.
src/pages/Transportation.js
0 → 100644
+
48
−
0
View file @
576d31da
import
React
from
"
react
"
;
import
{
Helmet
}
from
"
react-helmet
"
;
import
PageTitle
from
"
components/PageTitle
"
;
import
{
basics
}
from
"
config
"
;
const
Transportation
=
()
=>
{
return
(
<
article
className
=
"
space-y-8 w-full
"
>
<
PageTitle
>
Doprava
<
/PageTitle
>
<
Helmet
>
<
title
>
Doprava
|
{
basics
.
appTitle
}
<
/title
>
<
meta
property
=
"
og:title
"
content
=
"
Mapa
"
/>
<
/Helmet
>
<
div
className
=
"
content-block
"
>
<
h2
>
Vlakem
<
/h2
>
<
p
>
Pardubice
leží
na
hlavním
železničním
koridoru
a
díky
tomu
můžete
vyrazit
do
pořadatelského
města
můžete
po
kolejích
.
Takže
pokud
jste
z
Prahy
,
Ostravy
,
nebo
z
Jablůňkova
a
cestování
je
pro
vás
zážitkem
,
tak
využijte
směle
vlak
.
<
/p
>
<
h2
>
Autem
<
/h2
>
<
p
>
Pokud
zvolíte
dopravu
po
vlastní
ose
,
tak
se
k
nám
přiblížila
i
nějaká
ta
dálnice
,
nejblíže
je
D11
z
Prahy
,
dojedete
až
do
Opatovic
,
pak
pohodlně
dvouproudovce
až
do
Pardubic
.
Z
druhého
konce
se
pilně
buduje
D35
a
z
jihu
k
nám
sice
také
nevede
dálnice
,
ale
dorazíte
též
bez
větších
zádrhelů
.
GPS
vám
cestu
najde
a
autem
se
do
hlavního
města
Pardubického
kraje
bez
problémů
dostanete
.
Před
IDEONem
bude
pro
nás
vyhrazeno
parkování
.
<
/p
>
<
p
>
Do
Pardubic
doplujete
i
po
Labi
,
ale
i
letadlem
,
ale
to
vám
nedoporučujeme
:)
<
/p
>
<
p
>
Tak
na
viděnou
v
lednu
.
<
/p
>
<
/div
>
<
/article
>
);
};
export
default
Transportation
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment