Skip to content

Commit

Permalink
Hlavicka pre webove sidla - logo, vyhladavanie, jazyky, socialne siet…
Browse files Browse the repository at this point in the history
…e, menu, submenu
  • Loading branch information
LubosKat committed Oct 19, 2020
1 parent 0ea8226 commit ec77346
Show file tree
Hide file tree
Showing 48 changed files with 2,712 additions and 763 deletions.
6 changes: 5 additions & 1 deletion app/assets/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ $govuk-show-breakpoints: false;
padding-top: 30px;
padding-right: 15px;
padding-bottom: 15px;
padding-left: 15px; }
padding-left: 15px;
&-overflowed {
overflow: visible;
}
}
@media (min-width: 641px) {
.example {
padding-top: 45px;
Expand Down
2 changes: 2 additions & 0 deletions app/views/komponenty/examples/hlavickaWeboveSidla1.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{% from "../../../../src/idsk/components/header-extended/macro.njk" import idskHeaderExtended %}
{{ idskHeaderExtended({}) }}
79 changes: 79 additions & 0 deletions app/views/komponenty/examples/hlavickaWeboveSidla2.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{% from "../../../../src/idsk/components/header-extended/macro.njk" import idskHeaderExtended %}
{{ idskHeaderExtended({
navigation: [
{
link: '#1',
text: 'Ministerstvo'
},
{
link: '#2',
text: 'Sekcie',
active: true
},
{
link: '#3',
text: 'Programy EŠIF'
},
{
link: '#4',
text: 'Aktuality'
},
{
link: '#5',
text: 'Kontakt'
}
],
language: {
current: {
text: "slovenčina",
flag: "slovakia-flag-icon-16.png"
},
choices: [
{
flag: "slovakia-flag-icon-16.png",
text: "slovenčina"
},
{
flag: "united-states-of-america-flag-icon-16.png",
text: "english"
},
{
flag: "germany-flag-icon-16.png",
text: "german"
}
]
},
socials: [
{
icon: "fab fa-instagram",
link: "#",
text: "Instagram"
},
{
icon: "fab fa-linkedin-in",
link: "#",
text: "Linkedin"
},
{
icon: "fab fa-facebook-f",
link: "#",
text: "Facebook"
},
{
icon: "fab fa-twitter",
link: "#",
text: "Twitter"
}
],
notifications: [
{
type: "info",
iconFallbackText: "info",
html: "Ak prichádzate z rizikovej krajiny, musíte vyplniť <a href='#' title='formulár'>formulár</a>."
},
{
iconFallbackText: "warning",
html: "Ak prichádzate z rizikovej krajiny, musíte vyplniť <a href='#' title='formulár'>formulár</a>."
}
]
}) }}
134 changes: 134 additions & 0 deletions app/views/komponenty/examples/hlavickaWeboveSidla3.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{% from "../../../../src/idsk/components/header-extended/macro.njk" import idskHeaderExtended %}
{{ idskHeaderExtended({
headerTitle: "Domov",
navigation:[
{
link: '#1',
text: 'Ministerstvo'
},
{
link: '#2',
text: 'Sekcie'
},
{
text: 'Programy EŠIF',
link: "#3",
submenu: [
{
link: "#3.1",
text: "Domov dôchodcov",
icon: "fas fa-home"
},
{
link: "#3.2",
text: "Zoznam úloh",
icon: "fas fa-tasks"
},
{
link: "#3.3",
text: "Zabezpečenie dát",
icon: "fas fa-unlock"
},
{
link: "#3.4",
text: "Ochrana práv",
icon: "fas fa-user-shield"
},
{
link: "#3.5",
text: "Kvapka nádeje",
icon: "fas fa-hand-holding-water"
},
{
link: "#3.6",
text: "Programy 6"
},
{
link: "#3.7",
text: "Programy 7"
},
{
link: "#3.8",
text: "Programy 8"
},
{
link: "#3.9",
text: "Programy 9"
},
{
link: "#3.10",
text: "Programy 10"
}
]
},
{
link: '#4',
text: 'Aktuality',
submenu: [
{
link: "#4.1",
text: "Aktuality 1"
},
{
link: "#4.2",
text: "Aktuality 2"
},
{
link: "#4.3",
text: "Aktuality 3"
},
{
link: "#4.4",
text: "Aktuality 4"
}
]
},
{
link: '#5',
text: 'Kontakt'
}
],
search: true,
language: {
current: {
text: "slovenčina",
flag: "slovakia-flag-icon-16.png"
},
choices: [
{
flag: "slovakia-flag-icon-16.png",
text: "slovenčina"
},
{
flag: "united-states-of-america-flag-icon-16.png",
text: "english"
},
{
flag: "germany-flag-icon-16.png",
text: "german"
}
]
},
socials: [
{
icon: "fab fa-instagram",
link: "#",
text: "Instagram"
},
{
icon: "fab fa-linkedin-in",
link: "#",
text: "Linkedin"
},
{
icon: "fab fa-facebook-f",
link: "#",
text: "Facebook"
},
{
icon: "fab fa-twitter",
link: "#",
text: "Twitter"
}
]
}) }}
6 changes: 6 additions & 0 deletions app/views/komponenty/examples/stitokInfo.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% from "../../../../src/idsk/components/warning-text/macro.njk" import idskWarningText %}
{{ idskWarningText({
type: "info",
iconFallbackText: "info",
html: "Ak prichádzate z rizikovej krajiny, musíte vyplniť <a href='#' title='formulár'>formulár</a>."
}) }}
5 changes: 5 additions & 0 deletions app/views/komponenty/examples/stitokVarovanie.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% from "../../../../src/idsk/components/warning-text/macro.njk" import idskWarningText %}
{{ idskWarningText({
iconFallbackText: "warning",
html: "Ak prichádzate z rizikovej krajiny, musíte vyplniť <a href='#' title='formulár'>formulár</a>."
}) }}
2 changes: 1 addition & 1 deletion app/views/komponenty/hlavicka-paticka.njk
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
<div class="govuk-grid-column-two-thirds">
<h2 class="govuk-heading-l" id="priklady">Rozšírené príklady pre hlavičku a pätičku</h2>
<ul class="govuk-list">
<li><a href="/custom-components/Header">Rozšírené príklady hlavičky</a></li>
<li><a href="/custom-components/header">Rozšírené príklady hlavičky</a></li>
<li><a href="/custom-components/footer">Rozšírené príklady pätičky</a></li>
</ul>
</div>
Expand Down
77 changes: 77 additions & 0 deletions app/views/komponenty/hlavicka-webove-sidla.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{% extends "layout.njk" %}
{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}

{% set pageName = "Hlavička pre webové sídla" %}

{% block beforeContent %}
{{ govukBreadcrumbs({
"items": [
{ text: 'ID-SK frontend', href: '/' + legacyQuery },
{ text: pageName }
]
}) }}
{% endblock %}

{% block content %}
<div class="govuk-width-container">

<span class="govuk-caption-xl">Webové komponenty</span>
<h1 class="govuk-heading-xl">{{pageName}}</h1>
<p class="govuk-body-l">POPIS</p>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">

<h2 class="govuk-heading-s">Obsah:</h2>
<ul class="govuk-list">
<li><a href="#info">Popis</a></li>
<li><a href="#ukazka1">Ukážka 1</a></li>
<li><a href="#ukazka2">Ukážka 2</a></li>
<li><a href="#ukazka3">Ukážka 3</a></li>
<li><a href="#priklady">Priklady</a></li>
</ul>

<h3 class="govuk-heading-m" id="info">Popis</h3>
<p class="govuk-body">
Informacie o komponente
</p>
</div>

<div class="govuk-grid-column-full">
<h3 class="govuk-heading-m" id="ukazka1">Ukážka 1</h3>
<div class="example">
{% set exampleComponentHtml %}
{% include "../komponenty/examples/hlavickaWeboveSidla1.njk" %}
{% endset %}
{{exampleComponentHtml | safe}}
</div>
<h3 class="govuk-heading-m" id="ukazka2">Ukážka 2</h3>
<div class="example example-overflowed">
{% set exampleComponentHtml %}
{% include "../komponenty/examples/hlavickaWeboveSidla2.njk" %}
{% endset %}
{{exampleComponentHtml | safe}}
</div>
<h3 class="govuk-heading-m" id="ukazka3">Ukážka 3</h3>
<p class="govuk-body">
Každá položka v podmenu môže obsahovať aj ikonku. Všetky voľne dostupné ikonky nájdete na <a href="https://fontawesome.com/icons?d=gallery&m=free" title="FontAwesome" target="_blank">tejto stránke</a>.
</p>
<div class="example example-overflowed">
{% set exampleComponentHtml %}
{% include "../komponenty/examples/hlavickaWeboveSidla3.njk" %}
{% endset %}
{{exampleComponentHtml | safe}}
</div>
</div>

<div class="govuk-grid-column-two-thirds">
<h2 class="govuk-heading-l" id="priklady">Rozšírené príklady pre hlavičku a pätičku</h2>
<ul class="govuk-list">
<li><a href="/custom-components/header-extended">Rozšírené príklady hlavičky pre webové sídla</a></li>
</ul>
</div>

</div>

</div>
{% endblock %}
58 changes: 58 additions & 0 deletions app/views/komponenty/stitok-varovanie-info.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{% extends "layout.njk" %}
{% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}

{% set pageName = "Štítok - varovanie / info" %}

{% block beforeContent %}
{{ govukBreadcrumbs({
"items": [
{ text: 'ID-SK frontend', href: '/' + legacyQuery },
{ text: pageName }
]
}) }}
{% endblock %}

{% block content %}
<div class="govuk-width-container">

<span class="govuk-caption-xl">Webové komponenty</span>
<h1 class="govuk-heading-xl">{{pageName}}</h1>
<p class="govuk-body-l">POPIS</p>

<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">

<h2 class="govuk-heading-s">Obsah:</h2>
<ul class="govuk-list">
<li><a href="#info">Popis</a></li>
<li><a href="#ukazka1">Ukážka info štítku</a></li>
<li><a href="#ukazka2">Ukážka varovacieho štítku</a></li>
</ul>

<h3 class="govuk-heading-m" id="info">Popis</h3>
<p class="govuk-body">
Informacie o komponente
</p>
</div>

<div class="govuk-grid-column-full">
<h3 class="govuk-heading-m" id="ukazka1">Ukážka info štítku</h3>
<div class="example">
{% set exampleComponentHtml %}
{% include "../komponenty/examples/stitokInfo.njk" %}
{% endset %}
{{exampleComponentHtml | safe}}
</div>
<h3 class="govuk-heading-m" id="ukazka2">Ukážka varovacieho štítku</h3>
<div class="example">
{% set exampleComponentHtml %}
{% include "../komponenty/examples/stitokVarovanie.njk" %}
{% endset %}
{{exampleComponentHtml | safe}}
</div>
</div>

</div>

</div>
{% endblock %}
Loading

0 comments on commit ec77346

Please sign in to comment.