Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
21_22-J-02
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
21_22-J-02
21_22-J-02
Commits
c0bdc4a2
Commit
c0bdc4a2
authored
Apr 26, 2022
by
Chathurdi Vibhuda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feat/it17535090
parents
de27bdc8
87c6dff9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
355 additions
and
189 deletions
+355
-189
Presently/presently/db.sqlite3
Presently/presently/db.sqlite3
+0
-0
Presently/presently/users/models/output.wav
Presently/presently/users/models/output.wav
+0
-0
Presently/presently/users/pronunciation.py
Presently/presently/users/pronunciation.py
+0
-0
Presently/presently/users/templates/users/base.html
Presently/presently/users/templates/users/base.html
+1
-20
Presently/presently/users/templates/users/colourcube.html
Presently/presently/users/templates/users/colourcube.html
+354
-169
No files found.
Presently/presently/db.sqlite3
View file @
c0bdc4a2
No preview for this file type
Presently/presently/users/models/output.wav
View file @
c0bdc4a2
No preview for this file type
Presently/presently/users/pronunciation.py
0 → 100644
View file @
c0bdc4a2
Presently/presently/users/templates/users/base.html
View file @
c0bdc4a2
...
...
@@ -233,26 +233,7 @@
clickable
:
"
.dropzone-attach-files
"
});
</script>
<script
src=
"https://code.jquery.com/jquery-3.4.1.min.js"
integrity=
"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin=
"anonymous"
></script>
<script
type=
"text/javascript"
src=
"{% static 'users/assets/js/tinycolor.js' %}"
></script>
<script
type=
"text/javascript"
src=
"{% static 'users/assets/js/colorcube.js' %}"
></script>
<script>
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
)
{
i
[
'
GoogleAnalyticsObject
'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
()
{
(
i
[
r
].
q
=
i
[
r
].
q
||
[]).
push
(
arguments
)
},
i
[
r
].
l
=
1
*
new
Date
();
a
=
s
.
createElement
(
o
),
m
=
s
.
getElementsByTagName
(
o
)[
0
];
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'
script
'
,
'
https://www.google-analytics.com/analytics.js
'
,
'
ga
'
);
ga
(
'
create
'
,
'
UA-43388256-3
'
,
'
auto
'
);
ga
(
'
send
'
,
'
pageview
'
);
</script>
</body>
</html>
\ No newline at end of file
Presently/presently/users/templates/users/colourcube.html
View file @
c0bdc4a2
{% extends 'users/base.html' %}
<!DOCTYPE html>
{% load static %}
{% block content %}
<link
rel=
"stylesheet"
href=
"{% static 'users/assets/css/main.css' %}"
type=
"text/css"
>
<nav
aria-label=
"breadcrumb mt-4"
>
<ol
class=
"breadcrumb"
>
<li
class=
"breadcrumb-item"
><a
href=
"{% url 'home' %}"
>
Home
</a></li>
<li
class=
"breadcrumb-item"
><a
href=
"{% url 'feedback' %}"
>
Dashboard
</a></li>
<li
class=
"breadcrumb-item active"
aria-current=
"page"
>
Color Cube Accuracy
</li>
</ol>
</nav>
<main
class=
"l__main p__main container"
>
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
<meta
http-equiv=
"content-type"
content=
"text/html; charset=utf-8"
/>
<meta
name=
"author"
content=
"INSPIRO"
/>
<meta
name=
"description"
content=
"Themeforest Template Polo"
/>
<link
href=
"{% static 'users/assets/css/plugins.css' %}"
rel=
"stylesheet"
/>
<link
href=
"{% static 'users/assets/css/style.css' %}"
rel=
"stylesheet"
/>
<meta
charset=
"UTF-8"
>
<title>
ColorCube
</title>
<link
rel=
"stylesheet"
href=
"{% static 'users/assets/css/styles.css' %}"
type=
"text/css"
>
<meta
name=
"twitter:card"
content=
"summary"
>
<meta
name=
"twitter:site"
content=
"@oomphinc"
>
<meta
name=
"og:title"
content=
"ColorCube: Evaluate Accessible Color Palettes"
>
<meta
name=
"twitter:title"
content=
"ColorCube: Evaluate Accessible Color Palettes"
>
<meta
name=
"og:description"
content=
"Adjust color values to meet WCAG Level AA or AAA standards for legible color combinations."
>
<meta
name=
"twitter:description"
content=
"Adjust color values to meet WCAG Level AA or AAA standards for legible color combinations."
>
<meta
name=
"og:image"
content=
"assets/img/ColorCube-screenshot.png"
>
<meta
name=
"twitter:image"
content=
"assets/img/ColorCube-screenshot.png"
>
<meta
name=
"twitter:image:alt"
content=
"We are sorry, but this tool is not optimized for the visually impaired."
>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<script
type=
"text/javascript"
src=
"{% static 'users/assets/js/detection.js' %}"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"{% static 'users/assets/css/main.css' %}"
/>
</head>
<body>
<!-- <header id="header" class="lite">
<div class="header-inner">
<div class="container">
<div id="logo">
<img src="{% static 'users/assets/images/logo.png' %}" class="img-fluid" style="width: 300px;">
</div>
<div id="search">
<a
id="btn-search-close"
class="btn-search-close"
aria-label="Close search form"
><i class="icon-x"></i
></a>
<form
class="search-form"
action="https://inspirothemes.com/polo/search-results-page.html"
method="get"
>
<input
class="form-control"
name="q"
type="search"
placeholder="Type & Search..."
/>
<span class="text-muted"
>Start typing & press "Enter" or "ESC" to close</span
>
</form>
</div>
<div class="header-extras">
<ul>
<li>
<a id="btn-search" href="#"> <i class="icon-search"></i></a>
</li>
<li>
<div class="p-dropdown">
<a href="#"><i class="icon-globe"></i><span>EN</span></a>
<ul class="p-dropdown-content">
<li><a href="#">French</a></li>
<li><a href="#">Spanish</a></li>
<li><a href="#">English</a></li>
</ul>
</div>
</li>
</ul>
</div>
<div id="mainMenu-trigger">
<a class="lines-button x"><span class="lines"></span></a>
</div>
<div id="mainMenu">
<div class="container">
<nav>
<ul>
<li><a href="index-2.html">Home</a></li>
<li><a href="index-2.html">Contact Us</a></li>
<li><a href="index-2.html">About Us</a></li>
<li><a href="index-2.html">Profile</a></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</header> -->
<div
class=
"l__max u__space__outer cc__brand"
>
<h2
class=
"cc__brand__title"
>
</h2>
</div>
<main
class=
"l__main p__main"
>
<article
class=
"l__max u__space__outer"
>
<form
action=
"/"
class=
"u__space__outer u__space__vertical cc__form"
method=
"post"
>
{% csrf_token %}
<div
class=
"g__row"
>
{{form.as_p}}
<div
class=
"g__col g--three rhythm"
>
<h2>
Step 1:
</h2>
<p>
Detect HEX colors from the input image.
</p>
...
...
@@ -100,8 +200,8 @@
<!-- Submit Button -->
<div
class=
"cc__form__submit g--wide text-align-center"
>
<input
id=
"brand-color-button"
name=
"brand-color-button"
type=
"submit"
class=
"cc__form__button
"
value=
"Get Ratios"
>
<input
id=
"brand-color-button"
name=
"brand-color-button"
type=
"submit
"
class=
"cc__form__button"
value=
"Get Ratios"
>
</div>
</div>
...
...
@@ -113,32 +213,33 @@
<div
class=
"g__row"
>
<div
class=
"g__col g--two rhythm"
>
<h3>
Criteria
</h3>
<p>
This shows three different ratio targets and how color performs with each — white,
black, or other colors in the
palette:
</p>
<p>
This tool shows three different ratio targets and how your color performs with each
— white, black, or other colors in your
palette:
</p>
<ul>
<li><strong
class=
"text-light"
>
WCAG Level AAA:
</strong>
a contrast ratio equal or greate
r
than
<strong>
7.0
</strong>
. For large-scale text, a ratio equal or greater than
<strong>
4.5
</strong>
.
</li>
<li><strong
class=
"text-light"
>
WCAG Level AAA:
</strong>
a contrast ratio equal o
r
greater than
<strong>
7.0
</strong>
. For large-scale text, a ratio equal or greater
than
<strong>
4.5
</strong>
.
</li>
<li><strong
class=
"text-light"
>
WCAG Level AA:
</strong>
a contrast ratio equal or greater
than
<strong>
4.5
</strong>
. For large-scale text, a ratio equal or greater than
<strong>
3.0
</strong>
.
</li>
<li>
Text that is considered “Large-scale” is
<strong>
18 points (24px)
</strong>
or larger o
r
<strong>
14 points (19px) and bold
</strong>
or larger.
</li>
<li>
Text that is considered “Large-scale” is
<strong>
18 points (24px)
</strong>
or large
r
or
<strong>
14 points (19px) and bold
</strong>
or larger.
</li>
</ul>
</div>
<div
class=
"g__col g--two rhythm"
>
<p>
For more details about success criteria, see the
<a
title=
"Go to w3 website in a new window"
target=
"_blank"
href=
"https://www.w3.org/TR/WCAG21/#contrast-minimum"
>
WCAG 2.1 minimum
contrast ratios
</a>
page.
</p>
<p>
For more details about success criteria, see the
<a
title=
"Go to w3 website in a new window"
target=
"_blank"
href=
"https://www.w3.org/TR/WCAG21/#contrast-minimum"
>
WCAG 2.1 minimum contrast
ratios
</a>
page.
</p>
<h3>
Modify with HSL
</h3>
<p><strong>
Why HSL?
</strong>
By modifying primarily the saturation and/or lightness, the
original intention of the color is intact. To modify the Hue would be to start to modify the
color from a blue to a blue-green, or from a red to an orange. Of course, modify the Hue as
you wish as well, but our intention is to show how small movements to the saturation and
lightness can increase accessibility while retaining the intention of the brand color.
<a
href=
"https://www.nixsensor.com/what-is-hsl-color/"
target=
"_blank"
>
More about how HSL
works
</a>
.
</p>
original intention of the color is intact. To modify the Hue would be to start to modify
the color from a blue to a blue-green, or from a red to an orange. Of course, modify the
Hue as you wish as well, but our intention is to show how small movements to the
saturation and lightness can increase accessibility while retaining the intention of the
brand color.
<a
href=
"https://www.nixsensor.com/what-is-hsl-color/"
target=
"_blank"
>
More
about how HSL
works
</a>
.
</p>
</div>
</div>
</div>
...
...
@@ -147,24 +248,108 @@
<div
class=
"l__max--text u__space__outer u__space__vertical--top rhythm cc__results__description"
>
<h3>
Edge values
</h3>
<p>
Be careful with
<strong
class=
"text-light"
>
EDGE
</strong>
values
—
the color passes validation,
but is within 0.5. It may still present a legibility issue even though it gets a passing grade.
</p>
<p>
Be careful with
<strong
class=
"text-light"
>
EDGE
</strong>
values
—
the color passes
validation, but is within 0.5. It may still present a legibility issue even though it gets a
passing grade.
</p>
<h3>
Most legible Pair
</h3>
<p>
From the given list of colors, which color combination is the
<em>
most legible
</em>
? This does not
mean that the color pair will pass minimum requirements, but it has the best chance of passing.
</p>
<p>
From the given list of colors, which color combination is the
<em>
most legible
</em>
? This does
not mean that the color pair will pass minimum requirements, but it has the best chance of
passing.
</p>
<p><strong
class=
"text-light"
>
Custom:
</strong>
Use the text input to change the color pairing.
</p>
<h3>
Check your hover text color vs. your body text color
</h3>
<p>
If
<a
title=
"Go to Webaim.org, link opens in a new window."
target=
"_blank"
href=
"http://webaim.org/techniques/hypertext/link_text#appearance"
>
links are not underlined
</a>
,
there must be 3:1 contrast between link text and body text and also an additional change (e.g.,
underlining) on mouse hover and keyboard focus. Use the tool to compare your link color against your
body text color to see how they pair in the Most Legible column.
</p>
href=
"http://webaim.org/techniques/hypertext/link_text#appearance"
>
links are not
underlined
</a>
, there must be 3:1 contrast between link text and body text and also an
additional change (e.g., underlining) on mouse hover and keyboard focus. Use the tool to compare
your link color against your body text color to see how they pair in the Most Legible column.
</p>
</div>
</div>
</article>
</main>
</main>
<script
src=
"https://code.jquery.com/jquery-3.4.1.min.js"
integrity=
"sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin=
"anonymous"
></script>
<script
type=
"text/javascript"
src=
"assets/js/tinycolor.js"
></script>
<script
type=
"text/javascript"
src=
"assets/js/colorcube.js"
></script>
<script>
(
function
(
i
,
s
,
o
,
g
,
r
,
a
,
m
)
{
i
[
'
GoogleAnalyticsObject
'
]
=
r
;
i
[
r
]
=
i
[
r
]
||
function
()
{
(
i
[
r
].
q
=
i
[
r
].
q
||
[]).
push
(
arguments
)
},
i
[
r
].
l
=
1
*
new
Date
();
a
=
s
.
createElement
(
o
),
m
=
s
.
getElementsByTagName
(
o
)[
0
];
a
.
async
=
1
;
a
.
src
=
g
;
m
.
parentNode
.
insertBefore
(
a
,
m
)
})(
window
,
document
,
'
script
'
,
'
https://www.google-analytics.com/analytics.js
'
,
'
ga
'
);
ga
(
'
create
'
,
'
UA-43388256-3
'
,
'
auto
'
);
ga
(
'
send
'
,
'
pageview
'
);
</script>
</body>
<footer
id=
"footer"
>
<div
class=
"footer-content"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-xl-2 col-lg-2 col-md-3"
>
<div
class=
"widget"
>
</div>
</div>
</div>
</div>
</div>
<div
class=
"copyright-content"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-6"
>
<div
class=
"social-icons social-icons-colored float-left"
>
<ul>
<li
class=
"social-rss"
>
<a
href=
"#"
><i
class=
"fa fa-rss"
></i></a>
</li>
<li
class=
"social-facebook"
>
<a
href=
"#"
><i
class=
"fab fa-facebook-f"
></i></a>
</li>
<li
class=
"social-twitter"
>
<a
href=
"#"
><i
class=
"fab fa-twitter"
></i></a>
</li>
<li
class=
"social-vimeo"
>
<a
href=
"#"
><i
class=
"fab fa-vimeo"
></i></a>
</li>
<li
class=
"social-youtube"
>
<a
href=
"#"
><i
class=
"fab fa-youtube"
></i></a>
</li>
<li
class=
"social-pinterest"
>
<a
href=
"#"
><i
class=
"fab fa-pinterest"
></i></a>
</li>
<li
class=
"social-gplus"
>
<a
href=
"#"
><i
class=
"fab fa-google-plus-g"
></i></a>
</li>
</ul>
</div>
</div>
<div
class=
"col-lg-6"
>
<div
class=
"copyright-text text-center"
>
©
2021 Presently - Personal Trainer App
All Rights Reserved.
</div>
</div>
</div>
</div>
</div>
</footer>
</div>
</div>
<a
id=
"scrollTop"
><i
class=
"icon-chevron-up"
></i><i
class=
"icon-chevron-up"
></i></a>
{% endblock content %}
\ No newline at end of file
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment