-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs(web-twig): Redesign the demo app #DS-1479
Include header and footer on all demo pages for easier navigation.
- Loading branch information
1 parent
c09a825
commit 9d6c2f8
Showing
55 changed files
with
389 additions
and
159 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
apps/web-twig-demo/templates/assets/spiritLogoInverted.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<img | ||
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjUiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA2NSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMzQ4MTIgMTEuOTA2OEw0LjI2MzY3IDYuNTk5MzlDNC4zNjA2OCA2LjA4NDg2IDQuNTM1IDUuNjE1NDMgNC43ODc1IDUuMTkxOTZMNC43ODc4OCA1LjE5MTMyTDQuNzg4MjggNS4xOTA2OEM1LjIxMzM3IDQuNTAyMzUgNS44MDY4MiAzLjk2MTE1IDYuNTY2MDEgMy41NjcxN0M3LjMyNTQ3IDMuMTU4NzMgOC4xOTk0NCAyLjkzMzk1IDkuMTg1NjcgMi44OTA0N0w5LjE4NzgxIDIuODkwMzhIOS4xODk5NEMxMC40NzEyIDIuODkwMzggMTEuNTE1NiAzLjA0MTIyIDEyLjMxODYgMy4zNDc1MUMxMy4xMjY2IDMuNjUwMjggMTMuODQ5NSA0LjAxMTIxIDE0LjQ4NjUgNC40MzA3MkwxNC41NTggNC40Nzc3OUwxMy4yOTMzIDcuMDI3ODlMMTMuMjA0OSA2Ljk3OTQ5QzEyLjYwNzkgNi42NTI4NyAxMS45OTcgNi4zOD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" | ||
alt="Spirit" | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
{% extends 'layout/default.html.twig' %} | ||
|
||
{% block content %} | ||
{% block title %}Components{% endblock%} | ||
|
||
<section class="UNSTABLE_Section"> | ||
{% block content %} | ||
|
||
<h2 class="typography-heading-medium-bold text-secondary mb-900 mb-tablet-1100">Components</h2> | ||
<ul class="Grid Grid--cols-2 Grid--tablet--cols-3 list-unstyled"> | ||
{% include 'partials/tabs.html.twig' %} | ||
|
||
{% for component in components %} | ||
<li> | ||
<a href="components/{{ component | lower }}/" class="docs-TileLink">{{ component }}</a> | ||
</li> | ||
{% endfor %} | ||
<ul class="Grid Grid--cols-2 Grid--tablet--cols-3"> | ||
|
||
</ul> | ||
{% for component in components %} | ||
<li class="d-grid"> | ||
<a href="components/{{ component | lower }}/" class="docs-Card text-truncate">{{ component }}</a> | ||
</li> | ||
{% endfor %} | ||
|
||
</section> | ||
</ul> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
{% extends 'layout/default.html.twig' %} | ||
|
||
{% block content %} | ||
{% block title %}Helpers{% endblock%} | ||
|
||
<section class="UNSTABLE_Section"> | ||
{% block content %} | ||
|
||
<h2 class="typography-heading-medium-bold text-secondary mb-900 mb-tablet-1100">Helpers</h2> | ||
<ul class="Grid Grid--cols-2 Grid--tablet--cols-3 list-unstyled"> | ||
{% include 'partials/tabs.html.twig' %} | ||
|
||
{% for helper in helpers %} | ||
<li> | ||
<a href="helpers/{{ helper }}/" class="docs-TileLink">{{ helper | replace({'-': ' '}) | title }}</a> | ||
</li> | ||
{% endfor %} | ||
<ul class="Grid Grid--cols-2 Grid--tablet--cols-3"> | ||
|
||
</ul> | ||
{% for helper in helpers %} | ||
<li> | ||
<a href="helpers/{{ helper }}/" class="docs-Card">{{ helper | replace({'-': ' '}) | title }}</a> | ||
</li> | ||
{% endfor %} | ||
|
||
</section> | ||
</ul> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,37 @@ | ||
{% extends 'layout/base.html.twig' %} | ||
|
||
|
||
{% block body %} | ||
|
||
{% block header %}{% include 'partials/header.html.twig' %}{% endblock %} | ||
{% set title -%} | ||
{% block title %}{% endblock %} | ||
{%- endset %} | ||
|
||
<main class="bg-primary py-1100 py-tablet-1600"> | ||
<div class="Container"> | ||
{% set parentPageName -%} | ||
{% block parentPageName %}{% endblock %} | ||
{%- endset %} | ||
|
||
{% set parentPageUrl = '.' %} | ||
{% if parentPageName == 'Components' %} | ||
{% set parentPageUrl = '/' %} | ||
{% endif %} | ||
|
||
{% set isUnstable -%} | ||
{% block isUnstable %}{% endblock %} | ||
{%- endset %} | ||
|
||
{% include 'partials/tabs.html.twig' %} | ||
{% block header %} | ||
{% include 'partials/header.html.twig' %} | ||
{% include 'partials/cover.html.twig' with { isUnstable, parentPageName, parentPageUrl, title } only %} | ||
{% endblock %} | ||
|
||
<main class="py-1000"> | ||
<div class="Container"> | ||
|
||
{% block content %}{% endblock %} | ||
|
||
</div> | ||
</main> | ||
|
||
{% include 'partials/footer.html.twig' only %} | ||
|
||
{% endblock %} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<div class="spirit-theme-light-on-brand bg-primary mb-tablet-1200 py-1200 py-tablet-1700"> | ||
<div class="Container"> | ||
|
||
<h1 | ||
class="Flex Flex--noWrap Flex--alignmentXStretch Flex--alignmentYCenter Flex--row typography-heading-xlarge-bold" | ||
style="--flex-spacing: var(--spirit-space-1000)" | ||
> | ||
{{ title }} | ||
|
||
{% if isUnstable %} | ||
<span class="Tag Tag--large Tag--warning">Unstable</span> | ||
{% endif %} | ||
</h1> | ||
|
||
<Breadcrumbs> | ||
<ol> | ||
<li class="d-flex"> | ||
<Link href="http://localhost:3456" color="primary" isUnderlined>Spirit</Link> | ||
<Icon name="chevron-right" /> | ||
</li> | ||
<li class="d-flex"> | ||
<Link href="/" color="primary" isUnderlined>Web Twig</Link> | ||
<Icon name="chevron-right" /> | ||
</li> | ||
{% if parentPageName %} | ||
<li class="d-flex"> | ||
<Link href="{{ parentPageUrl }}" color="primary" isUnderlined>{{ parentPageName }}</Link> | ||
<Icon name="chevron-right" /> | ||
</li> | ||
{% endif %} | ||
<li class="d-flex"> | ||
{# Use <a> instead of <Link> so `href` can be empty (= current URL): #} | ||
<a href="" class="link-secondary" aria-current="page">{{ title }}</a> | ||
</li> | ||
</ol> | ||
</Breadcrumbs> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<footer class="bg-secondary mt-1200 mt-tablet-1700 pt-1400 pb-1200 text-center"> | ||
<div class="Container"> | ||
|
||
© Alma Career Oy and its subsidiaries | ||
|
||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,48 @@ | ||
<header class='spirit-theme-light-on-brand bg-primary text-secondary py-1200 py-tablet-1400'> | ||
<div class="Container"> | ||
<Header UNSAFE_className="spirit-theme-light-on-brand"> | ||
|
||
<h1 class='typography-heading-xlarge-bold'>Spirit Design System</h1> | ||
<h2 class='typography-heading-medium-bold text-secondary mb-1000'>Web Twig — Development Preview</h2> | ||
<a href="http://localhost:3456" aria-label="Spirit Development Preview"> | ||
{% include 'assets/spiritLogoInverted.html.twig' %} | ||
</a> | ||
|
||
<div class="d-grid d-tablet-block"> | ||
<a href="https://github.com/lmc-eu/spirit-design-system" class="Button Button--tertiary Button--large mb-400 mb-tablet-0 mr-tablet-400"> | ||
GitHub Project | ||
</a> | ||
<a href="https://spirit.supernova-docs.io/spirit/" class="Button Button--tertiary Button--large"> | ||
Spirit Docs → | ||
</a> | ||
</div> | ||
<HeaderMobileActions dialogId="off-canvas-navigation" /> | ||
|
||
</div> | ||
</header> | ||
<HeaderDesktopActions aria-label="Main navigation"> | ||
<HeaderNav> | ||
<HeaderNavItem> | ||
<HeaderLink href="http://localhost:3456/packages/web/">Web</HeaderLink> | ||
</HeaderNavItem> | ||
<HeaderNavItem> | ||
<HeaderLink href="http://localhost:3456/packages/web-react/">Web React</HeaderLink> | ||
</HeaderNavItem> | ||
<HeaderNavItem> | ||
<HeaderLink href="/" isCurrent>Web Twig</HeaderLink> | ||
</HeaderNavItem> | ||
<HeaderNavItem> | ||
<HeaderLink href="http://localhost:3456/packages/form-validations/">Form Validations</HeaderLink> | ||
</HeaderNavItem> | ||
</HeaderNav> | ||
</HeaderDesktopActions> | ||
|
||
</Header> | ||
|
||
<HeaderDialog id="off-canvas-navigation" aria-label="Menu"> | ||
<HeaderDialogCloseButton dialogId="off-canvas-navigation" /> | ||
|
||
<HeaderDialogActions aria-label="Main navigation"> | ||
<HeaderDialogNav> | ||
<HeaderDialogNavItem> | ||
<HeaderDialogLink href="http://localhost:3456/packages/web/">Web</HeaderDialogLink> | ||
</HeaderDialogNavItem> | ||
<HeaderDialogNavItem> | ||
<HeaderDialogLink href="http://localhost:3456/packages/web-react/">Web React</HeaderDialogLink> | ||
</HeaderDialogNavItem> | ||
<HeaderDialogNavItem> | ||
<HeaderDialogLink href="#" isCurrent>Web Twig</HeaderDialogLink> | ||
</HeaderDialogNavItem> | ||
<HeaderDialogNavItem> | ||
<HeaderDialogLink href="http://localhost:3456/packages/form-validations/">Form Validations</HeaderDialogLink> | ||
</HeaderDialogNavItem> | ||
</HeaderDialogNav> | ||
</HeaderDialogActions> | ||
|
||
</HeaderDialog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
{% set routeName = app.request.get('_route') %} | ||
|
||
<ul class="Tabs mb-1400" role="tablist"> | ||
<li class="Tabs__item"> | ||
<a href="/" class="Tabs__link{% if routeName == 'index' %} is-selected" aria-selected="true{% endif %}">Components</a> | ||
</li> | ||
<li class="Tabs__item"> | ||
<a href="icons/" class="Tabs__link{% if routeName == 'icons_index' %} is-selected" aria-selected="true{% endif %}">Icons</a> | ||
</li> | ||
<li class="Tabs__item"> | ||
<a href="helpers/" class="Tabs__link{% if routeName == 'helpers_index' %} is-selected" aria-selected="true{% endif %}">Helpers</a> | ||
</li> | ||
<li class="Tabs__item"> | ||
<a href="validations/" class="Tabs__link{% if routeName == 'validations_index' %} is-selected" aria-selected="true{% endif %}">Validations</a> | ||
</li> | ||
</ul> | ||
{% set isComponentsSelected = routeName == 'index' %} | ||
{% set isIconsSelected = routeName == 'icons_index' %} | ||
{% set isHelpersSelected = routeName == 'helpers_index' %} | ||
{% set isValidationsSelected = routeName == 'validations_index' %} | ||
|
||
<div class="breakout-container"> | ||
<ScrollView direction="horizontal" overflowDecorators="shadows" data-spirit-toggle="scrollView" UNSAFE_className="mb-800 mb-tablet-1100"> | ||
<TabList UNSAFE_className="mb-800 mx-auto"> | ||
<TabItem> | ||
<TabLink href="/" isSelected={{ isComponentsSelected }}>Components</TabLink> | ||
</TabItem> | ||
<TabItem> | ||
<TabLink href="/icons" isSelected={{ isIconsSelected }}>Icons</TabLink> | ||
</TabItem> | ||
<TabItem> | ||
<TabLink href="/helpers" isSelected={{ isHelpersSelected }}>Helpers</TabLink> | ||
</TabItem> | ||
<TabItem> | ||
<TabLink href="/validations" isSelected={{ isValidationsSelected }}>Validations</TabLink> | ||
</TabItem> | ||
</TabList> | ||
</ScrollView> | ||
</div> |
Oops, something went wrong.