Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
76ded44
starting to set up the html
christina-baldwin Mar 25, 2025
7716172
finishing setting up the html structure
christina-baldwin Mar 26, 2025
a1c8209
dynamically adding quiz questions
christina-baldwin Mar 26, 2025
b8f4ee5
fixing the palcement of the submit button
christina-baldwin Mar 26, 2025
358bf4a
adding quiz instructions
christina-baldwin Mar 26, 2025
2d315cd
fixing the questions object so there are no duplicates
christina-baldwin Mar 26, 2025
f2b2536
changing the navigation to be a list
christina-baldwin Mar 26, 2025
96f985e
removing an extra inverted comma
christina-baldwin Mar 26, 2025
6595b98
adding aria label for the footer nav
christina-baldwin Mar 26, 2025
0d66ac5
linking the nav to different parts of the page
christina-baldwin Mar 26, 2025
ad035c0
adding alt placeholder for images
christina-baldwin Mar 26, 2025
9710e72
adding an aria control
christina-baldwin Mar 26, 2025
3e380a6
Merge pull request #1 from christina-baldwin/working-branch
christina-baldwin Mar 26, 2025
a97aa5e
adding accessibility tags
christina-baldwin Mar 26, 2025
5291ca0
Merge pull request #2 from christina-baldwin/accessibility
christina-baldwin Mar 27, 2025
3a2af4e
calculating the quiz results and displaying them in when the quiz is …
christina-baldwin Mar 27, 2025
13fe4be
trying to get the retake quiz button to work ITS NOT WORKING YET
christina-baldwin Mar 27, 2025
9841dac
Merge pull request #3 from christina-baldwin/quiz-functionality
christina-baldwin Mar 27, 2025
daf955a
new quiz
phenomenalCode Mar 27, 2025
73132b1
getting the quiz-refresh to work
christina-baldwin Mar 27, 2025
f5a7958
getting the "to home" button functionality to work
christina-baldwin Mar 27, 2025
c99d95d
Added tabindex
Lillebrorgroda Mar 28, 2025
6828d6a
Added role to img
Lillebrorgroda Mar 28, 2025
f06e3eb
Merge pull request #4 from christina-baldwin/tabindex
christina-baldwin Mar 28, 2025
5909ead
Merge pull request #5 from christina-baldwin/quiz-refresh
christina-baldwin Mar 28, 2025
e007209
Quiz
phenomenalCode Mar 28, 2025
53245a2
Merge branch 'main' into quiz-css
christina-baldwin Mar 28, 2025
48ea5df
Merge pull request #6 from christina-baldwin/quiz-css
christina-baldwin Mar 28, 2025
237931f
fixing some styling
christina-baldwin Mar 28, 2025
f586727
more styling
christina-baldwin Mar 28, 2025
74ef033
dynamically changing result text and making the cta-btn scroll to the…
christina-baldwin Mar 31, 2025
70e6be8
Merge pull request #7 from christina-baldwin/results-text
christina-baldwin Mar 31, 2025
269abc0
getting previous and next buttons to work and display questions indiv…
christina-baldwin Apr 1, 2025
bb77275
preventing next when question hasnt been answered and displaying a me…
christina-baldwin Apr 1, 2025
9a484b5
removing tabindex from the fieldset
christina-baldwin Apr 1, 2025
29291aa
getting the functionalits to work
christina-baldwin Apr 2, 2025
8bbfca2
ficing the quiz submit results in the carousel
christina-baldwin Apr 2, 2025
eefe3ae
Merge branch 'quiz-question-carousel' of https://github.com/christina…
christina-baldwin Apr 2, 2025
40df78c
Merge pull request #8 from christina-baldwin/quiz-question-carousel
christina-baldwin Apr 2, 2025
02c8b41
adding newest styling
christina-baldwin Apr 2, 2025
5b95d17
Merge pull request #9 from christina-baldwin/newest-css
christina-baldwin Apr 2, 2025
4ef999d
adding accessibility in html, js and styling
christina-baldwin Apr 2, 2025
77e0dec
Merge pull request #10 from christina-baldwin/finalising-accessibility
christina-baldwin Apr 2, 2025
6e622d4
more accessibility and styling
christina-baldwin Apr 3, 2025
e969900
Merge pull request #11 from christina-baldwin/refinement
christina-baldwin Apr 3, 2025
916c735
setting up the dark-mode css
christina-baldwin Apr 3, 2025
0b39d4d
Merge pull request #12 from christina-baldwin/high-contrast-toggle
christina-baldwin Apr 4, 2025
07400b3
changes
christina-baldwin Apr 4, 2025
3c336c5
SMALL FIXES
christina-baldwin Apr 4, 2025
0ef17e3
Merge branch 'main' of https://github.com/christina-baldwin/accessibi…
christina-baldwin Apr 4, 2025
3d11eda
Focus on question
Lillebrorgroda Apr 4, 2025
0258bd5
addin quick description and deployed site link
christina-baldwin Apr 4, 2025
a29e51e
Merge branch 'main' of https://github.com/christina-baldwin/accessibi…
christina-baldwin Apr 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added IMG/1c50e360-893f-4a77-8523-445ac92ee031.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added IMG/944faf04-56af-4b26-8775-09174491bd62.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added IMG/97e866db-9ce7-42ba-a3af-122746ac226f.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Web Accessibility Project

A basic web server template focused on web accessibility practices.
A web accessibility quiz built to use and test web accessibility practices.

### Installation
Team: Therese, Darius, Christina

1. Fork this repository by clicking the "Fork" button at the top right of the GitHub repository page.
### Deployed site

2. Clone your forked repository
accessibility-quiz-wind-3.netlify.app
10 changes: 0 additions & 10 deletions about.html

This file was deleted.

369 changes: 369 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,369 @@
* {
margin: 0;
padding: 0;
}
:root {
--bg-primary: #ffffff; /* White background */
--color-primary: #333333; /* Dark grey text */
--color-featured: #f0a500; /* Featured color (yellow/orange) */
--color-connect: #f2f2f3; /* Dark blue for headings */
--bg-white: #f9f9f9; /* Light grey background */
--border-gray: #cccccc; /* Light grey borders */
--bg-4rd: #f1f1f1; /* Light grey for cards */
--nf-bg-1: #2e3a59; /* Dark blue for quiz section */
--nf-bg-2: #1a1c2c; /* Very dark blue for hero section */
--nf-bg-3: #343a40; /* Dark gray for results section */
--color-orange: #ff6600; /* Dark orange for buttons */
--color-white: #ffffff; /* White text */
--bg-secondary: #222222; /* Dark background for footer */
}
body {
background: #2e3a59;
color: var(--bg-primary); /* White text */
font-family: sans-serif;
margin: 0;
line-height: 1.5;
}

.content-container {
max-width: 2500px;
margin: 0 auto;
}

.skip-link {
position: absolute;
top: -45px;
left: 0;
background: var(--nf-bg-2);
color: white;
padding: 8px;
z-index: 100;
transition: top 0.3s;
}

.skip-link:focus {
top: 0;
outline: var(--focus-outline);
outline-offset: 2px;
}

header {
background: var(--color-featured); /* Featured color */
padding: 1rem;
}

nav ul {
display: flex;
justify-content: center; /* Centers items horizontally */
align-items: center; /* Aligns items vertically */
gap: 2rem;
list-style: none;
margin: 0 auto; /* Centers within the parent */
padding: 0;
}

nav a {
font-size: 1.5rem;
color: var(--color-primary); /* Dark text for links */
text-decoration: none;
}

nav a:focus-visible {
outline: 2px solid #ff5500;
outline-offset: 2px;
border-radius: 2px;
}

nav a:hover {
color: white;
transition: all 0.3s ease;
}

footer nav a {
color: white;
}

footer nav a:hover {
color: #ff5500;
}

.hero-section {
background: var(--nf-bg-2); /* Very dark blue */
padding: 6rem 3rem;
text-align: center;
color: var(--color-white); /* White text on dark background */
}

.hero-section h1 {
color: var(--bg-primary); /* Blue heading */
font-size: 4.5rem;
margin-bottom: 7rem;
}
.hero-section p {
font-size: 2rem;
margin-bottom: 5rem;
}
.about-section {
background: #333333; /* Light background */
padding: 3rem;
}
.about-section h2 {
font-size: 2.5rem;
margin-bottom: 4rem;
}
.about-section p {
font-size: 1.7rem;
margin-bottom: 3rem;
}
.team-cards-container {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
padding: 1rem;
}
.team-card {
display: grid; /* Keeps content aligned inside */
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem;
background: var(--bg-4rd);
border: 1px solid var(--border-gray);
text-align: center;
max-width: 100%;
}

.team-card h3 {
color: var(--color-primary);
font-size: 2rem;
}

.team-card img {
max-width: 100%;
}

.team-card p {
color: var(--color-primary);
font-size: 1.2rem;
}

/* QUIZ SECTION */
.question {
background: var(--bg-white); /* Light grey background */
padding: 1.5rem;
margin: 1rem 0;
}
.quiz-form {
font-size: 2rem;
}
.quiz-section {
max-width: 800px;
margin: 0 auto;
padding: 3rem;
color: var(--bg-primary);
font-size: 1.2rem;
}
.quiz-section {
/* Light grey */
padding: 3rem;
/* Very dark blue for hero section */
color: var(--bg-primary); /* Adjust text color for contrast */
font-size: 1.2rem;
}
.quiz-section p {
margin-bottom: 2rem;
}
.h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
color: var(--color-connect); /* Dark blue for headings */
}
.p {
font-size: 1.5rem;
margin-bottom: 2rem;
color: var(--bg-primary); /* Dark blue for headings */
}
.quiz-section p {
font-size: 1.5rem;
margin-bottom: 2rem;
color: var(--bg-primary); /* Dark blue for headings */
}
legend {
font-size: 1.7rem;
color: #ffffff;
}
label {
font-size: 1.5rem;
color: #ffffff;
}
fieldset {
padding: 1rem;
margin-bottom: 2rem;
}

.quiz-option {
margin-bottom: 10px;
}

input[type="radio"] {
accent-color: #ff5500;
}

input[type="radio"]:focus-visible {
outline: 2px solid #ff5500;
outline-offset: 2px;
border-radius: 2px;
}

input[type="radio"]:focus-visible + label {
outline: 2px solid #ff5500;
outline-offset: 2px;
border-radius: 2px;
}

.quiz-result-section {
font-size: 2rem; /* Default text size */
background: var(--nf-bg-3); /* Dark gray */
padding: 2rem;
background-color: #f0a500; /* Featured color */
color: var(--color-white); /* White text */
/* text-align: center; Center text */
/* margin: 2rem auto; Centers the section horizontally */
max-width: 80%; /* Limits width for better readability */
border-radius: 12px; /* Soft rounded corners */
}
.quiz-result-section p {
font-size: 1.5rem;
background: var(--color-featured);
/* Makes text yellow */
padding: 1rem;
border-radius: 8px;
}

.quiz-content.quiz-section {
display: flex;
flex-direction: column;
/* align-items: center;
justify-content: center; */
padding: 2rem;
max-width: 80%;
margin: 0 auto;
}

.btns-container {
display: flex;
gap: 2rem;
}

.btn {
background: #f0a500; /* Dark orange */
color: #000000; /* White text */
padding: 0.75rem 1.5rem;
border: none;
border-radius: 8px;
cursor: pointer;
margin: 0.5rem;
font-size: 1.4rem;
}
.btn:hover {
background: #ff5500;
transform: translate(3px, -3px);
transition: all 0.3s ease-in-out;
}
.btn:focus {
outline: 3px solid #ff6600; /* Orange outline on focus for accessibility */
}
.hidden {
display: none;
}
footer {
background: var(--bg-secondary); /* Dark footer background */
color: var(--color-white); /* White text in footer */
text-align: center;
padding: 1rem;
}

/* HIGH CONTRAST MODE */

body.dark-mode {
background-color: black;
color: white;
}

body.dark-mode header {
background-color: white;
}

body.dark-mode nav a {
color: black;
}

body.dark-mode nav a:hover {
color: black;
text-decoration: underline;
}

body.dark-mode .hero-section {
background-color: black;
color: white;
}

body.dark-mode .btn {
background-color: white;
color: black;
}

body.dark-mode .about-section {
background-color: black;
color: white;
}

body.dark-mode .team-card h3 {
color: black;
}

body.dark-mode footer {
background-color: white;
color: black;
}

body.dark-mode footer nav a {
color: black;
}

body.dark-mode footer nav a:hover {
color: black;
text-decoration: underline;
}

/* MEDIA QUEREIES */
@media (max-width: 768px) {
.team-cards-container {
grid-template-columns: repeat(1, 1fr); /* Two columns on smaller screens */
}
}

@media (max-width: 480px) {
/* .team-cards-container {
grid-template-columns: repeat(1, 1fr);
} */
}

/* Add responsiveness for adjustable text size */
@media (max-width: 768px) {
html {
font-size: 80%;
}
.quiz-result-section {
font-size: 1.5rem; /* Smaller text on tablets */
padding: 1.5rem;
}
}

@media (max-width: 480px) {
.quiz-result-section {
font-size: 1.2rem; /* Even smaller text for mobile */
padding: 1rem;
max-width: 90%;
}
}
Loading