Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
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
Container registry
Model registry
Operate
Environments
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
Maják
Commits
1d37ca20
Commit
1d37ca20
authored
2 years ago
by
Štěpán Farka
Browse files
Options
Downloads
Patches
Plain Diff
[ADD] UI provider to people page
parent
653404b7
No related branches found
No related tags found
2 merge requests
!607
Pirati.cz
,
!575
Feature/pirati cz
Pipeline
#9361
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/styleguide/source/_patterns/templates/people.mustache
+22
-8
22 additions, 8 deletions
main/styleguide/source/_patterns/templates/people.mustache
main/styleguide/source/_patterns/templates/program.mustache
+2
-2
2 additions, 2 deletions
main/styleguide/source/_patterns/templates/program.mustache
with
24 additions
and
10 deletions
main/styleguide/source/_patterns/templates/people.mustache
+
22
−
8
View file @
1d37ca20
...
@@ -15,14 +15,28 @@
...
@@ -15,14 +15,28 @@
</div>
</div>
</div>
</div>
<div
class=
"container--medium"
>
<div
class=
"container--medium"
>
<div
class=
"__js-root"
>
<ui-view-provider
:initial=
"{candidates: true, program: false}"
:sync-location=
"true"
v-slot=
"{ isCurrentView, toggleView }"
>
<div
class=
"flex justify-center mb-12"
>
<div
class=
"flex justify-center mb-12"
>
{{>
molecules-multi-state-switch
}}
<div
class=
"switch"
>
<a
@
click=
"toggleView('candidates')"
class=
"switch__item"
:class=
"{'switch__item--active': isCurrentView('candidates')}"
>
Poslanecká sněmovna
</a>
<a
@
click=
"toggleView('program')"
class=
"switch__item"
:class=
"{'switch__item--active': isCurrentView('program')}"
>
Vláda
</a>
</div>
</div>
</div>
<div
class=
"flex flex-wrap justify-center mb-12"
>
<div
class=
"flex flex-wrap justify-center mb-12"
>
<template
v-if=
"isCurrentView('candidates')"
>
{{>
molecules-person-contact-big-block
(
name
:
"Ivan Bartoš"
,
function
:
"předseda Pirátů, poslanec PSP ČR za Ústecký kraj, ministr, vicepremiér"
)
}}
{{>
molecules-person-contact-big-block
(
name
:
"Ivan Bartoš"
,
function
:
"předseda Pirátů, poslanec PSP ČR za Ústecký kraj, ministr, vicepremiér"
)
}}
</template>
<template
v-if=
"isCurrentView('program')"
>
{{>
molecules-person-contact-big-block
(
name
:
"Klára Kocmanová"
,
function
:
"poslankyně Parlamentu České republiky za Středočeský kraj"
)
}}
{{>
molecules-person-contact-big-block
(
name
:
"Klára Kocmanová"
,
function
:
"poslankyně Parlamentu České republiky za Středočeský kraj"
)
}}
{{>
molecules-person-contact-big-block
(
name
:
"Olga Richterová"
,
function
:
"poslankyně, místopředsedkyně PSP ČR"
)
}}
{{>
molecules-person-contact-big-block
(
name
:
"Olga Richterová"
,
function
:
"poslankyně, místopředsedkyně PSP ČR"
)
}}
{{>
molecules-person-contact-big-block
(
name
:
"Jakub Michálek"
,
function
:
"předseda poslaneckého klubu Pirátů"
)
}}
{{>
molecules-person-contact-big-block
(
name
:
"Jakub Michálek"
,
function
:
"předseda poslaneckého klubu Pirátů"
)
}}
</template>
</div>
</ui-view-provider>
</div>
</div>
</div>
</div>
{{>
organisms-newsletter-section
}}
{{>
organisms-newsletter-section
}}
...
...
This diff is collapsed.
Click to expand it.
main/styleguide/source/_patterns/templates/program.mustache
+
2
−
2
View file @
1d37ca20
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
<ui-view-provider
:initial=
"{candidates: true, program: false}"
:sync-location=
"true"
v-slot=
"{ isCurrentView, toggleView }"
>
<ui-view-provider
:initial=
"{candidates: true, program: false}"
:sync-location=
"true"
v-slot=
"{ isCurrentView, toggleView }"
>
<div
class=
"mb-12"
>
<div
class=
"mb-12"
>
<div
class=
"switch"
>
<div
class=
"switch"
>
<a
@
click=
"toggleView('candidates')"
class=
"switch__item"
:class=
"{'switch__item--active': isCurrentView('candidates')}"
>
Program
</a>
<a
@
click=
"toggleView('candidates')"
class=
"switch__item"
:class=
"{'switch__item--active': isCurrentView('candidates')}"
>
Komunální volby 2022
</a>
<a
@
click=
"toggleView('program')"
class=
"switch__item"
:class=
"{'switch__item--active': isCurrentView('program')}"
>
Lidé
</a>
<a
@
click=
"toggleView('program')"
class=
"switch__item"
:class=
"{'switch__item--active': isCurrentView('program')}"
>
Sněmovní volby 2021
</a>
</div>
</div>
</div>
</div>
<div
class=
"mb-12"
>
<div
class=
"mb-12"
>
...
...
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