-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcomponents.html
195 lines (188 loc) · 9.87 KB
/
components.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>Demo Website</title>
<link id="stylesheet" rel="stylesheet" href="styles/styles.min.css">
</head>
<body>
<div class="willow-page-container">
<!-- FOR DEMO SITE : THEME CHANGING COMPONENT -->
<div class="project-demo-controls">
<div class="project-demo-controls__container">
<button class="project-demo-controls__control" id="themeOne" data-stylesheet="styles">
<span class="project-key-symbol">1</span>Base Theme</button>
<button class="project-demo-controls__control" id="themeTwo" data-stylesheet="unum">
<span class="project-key-symbol">2</span>Unum</button>
<button class="project-demo-controls__control" id="themeThree" data-stylesheet="coloniallife">
<span class="project-key-symbol">3</span>Colonial Life</button>
<button class="project-demo-controls__control" id="introDisplay">
<span class="project-info">?</span>
</button>
</div>
</div>
<div class="project-intro" id="demoIntro" data-is-open="false">
<div class="container-fluid">
<h1 class="project-intro__heading">Willow Demo Site</h1>
<p>This site was built using the
<a href="https://github.com/unumux/willow" target="_blank">Willow library</a> and includes custom components.
<a href="https://github.com/unumux/willow-testing-site"
target="_blank">Fork the Github repo</a> to play with the code.</p>
<p>Use the "Theme" buttons to switch between available themes. You can also use the 1, 2, and 3 number keys
for quick theme changing.</p>
</div>
</div>
<!-- END THEME CHANGING COMPONENT -->
<!-- SKIP NAV COMPONENT -->
<div class="willow-skip-nav">
<div class="container-fluid">
<a href="#main" class="willow-skip-nav__link" aria-label="skip to main content">Skip to Content</a>
</div>
</div>
<!-- PAGE HEADER COMPONENT -->
<header class="willow-page-header" role="banner">
<div class="container-fluid">
<div class="willow-page-header__container">
<div class="willow-page-header__branding">
<!-- LOGO LINK COMPONENT -->
<a class="willow-logo-link" href="/willow-testing-site/" aria-label="go to home page">
<img class="willow-logo-link__image" src="https://via.placeholder.com/150x150" alt="">
</a>
</div>
<div class="willow-page-header__content-controls">
<a class="willow-page-header__content-open" aria-label="Open Menu" href="#">menu</a>
<a class="willow-page-header__content-close" aria-label="Close Menu" href="#">close</a>
</div>
<div class="willow-page-header__content">
<div class="willow-page-header__navigation">
<!-- PRIMARY NAV COMPONENT -->
<nav class="willow-primary-nav" role="navigation" aria-label="primary">
<h1 class="willow-primary-nav__heading sr-only">Site Primary Menu</h1>
<ul class="willow-primary-nav__list">
<li class="willow-primary-nav__item">
<a class="willow-primary-nav__link" href="/willow-testing-site/">Home</a>
</li>
<li class="willow-primary-nav__item">
<a class="willow-primary-nav__link willow-primary-nav__link--active" href="/willow-testing-site/components.html">Components</a>
</li>
<li class="willow-primary-nav__item">
<a class="willow-primary-nav__link" href="/willow-testing-site/example-pages.html">Example Pages</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</header>
<!-- BREADCRUMB COMPONENT -->
<nav class="willow-breadcrumbs" role="navigation" aria-label="breadcrumb">
<div class="container-fluid">
<h1 class="willow-breadcrumbs__heading sr-only">You are here:</h1>
<ol class="willow-breadcrumbs__list">
<li class="willow-breadcrumbs__item">
<a class="willow-breadcrumbs__link" href="/willow-testing-site/" aria-label="">Home</a>
</li>
<li class="willow-breadcrumbs__item willow-breadcrumbs__item--active">Components</li>
</ol>
</div>
</nav>
<!-- PAGE CONTENT COMPONENT -->
<main class="willow-page-content flex-grow" id="main" role="main">
<div class="container-fluid">
<h1>Component Examples</h1>
<p>Below are the components that come from the Willow library, and a custom component example.</p>
<ul>
<li>
<a href="/willow-testing-site/components/banner.html">Banner</a>
</li>
<li>
<a href="/willow-testing-site/components/breadcrumbs.html">Breadcrumbs</a>
</li>
<li>
<a href="/willow-testing-site/components/buttons.html">Button</a>
</li>
<li>
<a href="/willow-testing-site/components/cards.html">Card</a>
</li>
<li>
<a href="/willow-testing-site/components/custom-component.html">Custom Component</a>
</li>
<li>
<a href="/willow-testing-site/components/dialog.html">Dialog</a>
</li>
<li>
<a href="/willow-testing-site/components/modal.html">Modal</a>
</li>
<li>
<a href="/willow-testing-site/components/global-alert.html">Global Alert</a>
</li>
<li>
<a href="/willow-testing-site/components/grid.html">Grid</a>
</li>
<li>
<a href="/willow-testing-site/components/icons.html">Icons</a>
</li>
<li>
<a href="/willow-testing-site/components/inline-alert.html">Inline Alert</a>
</li>
<li>
<a href="/willow-testing-site/components/page-footer.html">Page Footer</a>
</li>
<li>
<a href="/willow-testing-site/components/page-header.html">Page Header</a>
</li>
<li>
<a href="/willow-testing-site/components/secondary-nav.html">Secondary Navigation</a>
</li>
</ul>
</div>
</main>
<!-- PAGE FOOTER COMPONENT -->
<footer class="willow-page-footer" role="contentinfo">
<div class="container-fluid">
<div class="willow-page-footer__container">
<div class="willow-page-footer__branding">
<!-- LOGO LINK COMPONENT -->
<a class="willow-logo-link" href="/willow-testing-site/" aria-label="go to home page">
<img class="willow-logo-link__image" src="https://via.placeholder.com/150x150" alt="">
</a>
</div>
<div class="willow-page-footer__navigation">
<nav class="willow-footer-nav" role="navigation" aria-label="footer">
<h1 class="willow-footer-nav__heading sr-only">Site Footer Menu</h1>
<ul class="willow-footer-nav__list">
<li class="willow-footer-nav__item">
<a class="willow-footer-nav__link" href="/willow-testing-site/" aria-label="">Home</a>
</li>
<li class="willow-footer-nav__item">
<a class="willow-footer-nav__link" href="/willow-testing-site/components.html" aria-label="">Components</a>
</li>
</ul>
</nav>
</div>
<small class="willow-page-footer__copyright">Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum, voluptas.</small>
</div>
</div>
</footer>
</div>
<script src="scripts/site.min.js"></script>
<script>
var dialog = document.querySelector(".willow-dialog");
var modal = document.querySelector(".willow-modal");
var openDialog = function () {
dialog.setAttribute("data-dialog-close", "false");
}
var closeDialog = function () {
dialog.setAttribute("data-dialog-close", "true");
}
var openModal = function () {
modal.setAttribute("data-modal-close", "false");
}
var closeModal = function () {
modal.setAttribute("data-modal-close", "true");
}
</script>
</body>
</html>