generated from daisybutler/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tester.html
184 lines (184 loc) · 11.2 KB
/
tester.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="Interactive Color Splash combination tester tool">
<meta name="keywords" content="colour, colours, colour combination, colour testing, colour theme, project colour scheme, website design, design">
<link rel="icon" type="image/png" sizes="100x100" href="assets/images/project-images/ms2-favicon.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/classic.min.css"/>
<link rel="stylesheet" href="assets/css/style.css">
<title>Colour Tester</title>
</head>
<body>
<!--p-0 removes white space from either side of the container-->
<header class="container-fluid p-0">
<!--NAVBAR-->
<nav class="navbar navbar-expand navbar-light" style="background-image: linear-gradient(#dddddd, #f1efef, #dddddd)">
<a href="index.html" class="navbar-brand"><i class="fas fa-palette"></i></a>
<!--Navbar always collapsed because only two nav-items to display - fits comfortably on all screen sizes-->
<div class="navbar-collapse collapse justify-content-stretch" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="tester.html">Tester</a>
</li>
</ul>
</div>
</nav>
<!--TESTER PAGE HEADING-->
<div id="main-heading-section" class="row container-fluid">
<div class="col-12">
<h1 id="main-heading">Colour Tester</h1>
</div>
</div>
</header>
<!--TESTING CONTROLS-->
<div id="colour-sampling-area" class="container-fluid">
<div class="row">
<div id="testing-controls-panel" class="col-12">
<ul class="testing-controls">
<li class="control-link">
<button id="combinationGenerator" class="control" onclick = "return generateCombination();">Ideas</button>
</li>
<!--Refresh control triggers a modal asking user to confirm they are happy to lose their current colour selection - ensures control is not clicked by accident-->
<li class="control-link">
<button class="control" data-toggle="modal" data-target="#refreshWarning">Refresh</button>
</li>
<li class="control-link">
<button type="submit" class="control" onclick="exportSelection()">Share</button>
</li>
<!--Help control triggers a modal containing usage instructions - ensure content is only displayed when user requests it to reduce page congestion-->
<li class="control-link">
<button class="control" data-toggle="modal" data-target="#helpModal">Help</button>
</li>
</ul>
<!--REFRESH WARNING MODAL-->
<div class="modal fade" id="refreshWarning" tabindex="-1" role="dialog" aria-labelledby="refreshWarningLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="refreshWarningLabel">Are you sure you want to refresh?</h5>
</div>
<div class="modal-body">
<p>By clicking refresh, your current colour selection will be lost.</p>
</div>
<div class="modal-footer">
<a role="button" class="btn btn-success" href="tester.html">Yes, refresh</a>
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<!--HELP MODAL-->
<div class="modal fade" id="helpModal" tabindex="-1" role="dialog" aria-labelledby="helpModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="helpModalLabel">How To Use</h5>
</div>
<div class="modal-body">
<p>1. Select a block, text or background swatch <img src="assets/images/project-images/swatch-example.png" width="17" height="17" alt="example-swatch" > by clicking on it.<br>
<br>2. Change the colour by using the circular colour picker <img src="assets/images/project-images/colour-picker-example.png" width="17" height="17" alt="example-colour-picker"> OR directly entering a colour value into the bottom left-hand box.<br>
<br>3. Tap the "Save" button.<br>
<br>4. Play around until you find a combination of colours that you like!
</p>
</div>
<!--Button allows user to close modal once they no longer require it-->
<div class="modal-footer">
<button type="button" class="btn btn-success" data-dismiss="modal">Got it!</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!--INTERACTIVE COLOUR SAMPLING BLOCKS-->
<div class="row">
<div id="color-sample-background" class="col-12 col-sm-9 col-md-7 offset-md-1 offset-lg-2 color-seven">
<div class="row">
<div id="color-sample-1" class="col-12 color-sample color-one">
<h2 id="sample-heading">Colour</h2>
</div>
<div id="color-sample-2" class="col-12 color-sample color-two">
<h3 id="sample-subheading">A Definition</h3>
</div>
<div id="color-sample-3" class="col-12 color-sample color-three">
<p id="sample-paragraph">The property possessed by an object of producing different sensations on the eye as a result of the way it reflects or emits light.</p>
</div>
</div>
</div>
<div id="color-picker-toggles">
<!--SWATCHES - user clicks to trigger color picker display. User can then change the colour of the corresponding sampling block-->
<div class="row">
<div id="swatches" class="col-12 d-flex col-sm-1 d-sm-block">
<p class="category-titles d-none d-sm-block"><strong>Swatches</strong></p>
<p class="category-titles d-none d-sm-block">Blocks</p>
<div class="swatch color-one color-picker-1"></div>
<div class="swatch color-two color-picker-2"></div>
<div class="swatch color-three color-picker-3"></div>
<p class="category-titles d-none d-sm-block">Text</p>
<div class="swatch color-four color-picker-4"></div>
<div class="swatch color-five color-picker-5"></div>
<div class="swatch color-six color-picker-6"></div>
<p class="category-titles d-none d-sm-block">Background</p>
<div class="swatch color-seven color-picker-7"></div>
</div>
</div>
</div>
<!--Hex numbers displayed on md screens and greater, since not enough room on smaller screens-->
<div id="hex-color-labels" class="d-none d-md-block">
<div class="row">
<div id="labels" class="col-1">
<div id="hex-one">
<p>#EF7566</p>
</div>
<div id="hex-two">
<p>#46D9BD</p>
</div>
<div id="hex-three">
<p>#BD60CE</p>
</div>
<div id="hex-four">
<p>#FFFFFF</p>
</div>
<div id="hex-five">
<p>#FFFFFF</p>
</div>
<div id="hex-six">
<p>#FFFFFF</p>
</div>
<div id="hex-seven">
<p>#FFFFFF</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!--FOOTER-->
<footer class="footer mt-auto">
<div class="container-fluid">
<div class="row">
<div class="col-12 footer-contents">
<i class="fas fa-palette"></i>
<p class="copyright">© Colour Splash 2020</p>
</div>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
<script src="assets/js/colorPicker.js"></script>
<script src="assets/js/combinationGenerator.js"></script>
<script src="assets/js/exportSelection.js"></script>
</body>
</html>