Skip to content

Commit

Permalink
Merge pull request #76 from FAC29A/improve-accessibility
Browse files Browse the repository at this point in the history
improved accessibility form lighthouse recommendations
  • Loading branch information
Luciensday authored Oct 25, 2023
2 parents 78a1697 + 67443c1 commit 2765837
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ footer {


.no-cover-image-div{
background-color: var(--light-grey);
background-color: var(--mid-light-grey);
width: 11.25rem;
height: 17.25rem;
text-align: center;
Expand All @@ -552,12 +552,12 @@ footer {
}

.cover-title {
color: var(--dark-grey);
color: var(--footer-dark);
font-size: 0.8rem;
}

.cover-author {
color: var(--dark-grey);
color: var(--footer-dark);
font-size: 0.7rem
}

Expand Down
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Bookster: the book disovery app">
<link href="css/normalize.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
Expand Down Expand Up @@ -53,7 +54,7 @@ <h1>Bookster</h1>
</section>

<main>
<section id="genre-section ">
<section id="genre-section">
<div class="section-banner">
<div class="padding-for-banner-text">
<h2>Books by Genre</h2>
Expand All @@ -66,6 +67,7 @@ <h2>Books by Genre</h2>
class="carousel_button carousel_button--left"
id="prev"
data-dir="prev"
aria-label="Previous Slide"
>
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -86,6 +88,7 @@ <h2>Books by Genre</h2>
class="carousel_button carousel_button--right"
id="next"
data-dir="next"
aria-label="Next Slide"
>
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
7 changes: 7 additions & 0 deletions javascript/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,47 @@ const carouselData = [
{
genre: "Adult Fiction",
image: "images/adult-fiction.jpeg",
alt: "Lessons in Chemistry cover",
search: "hardcover-fiction",
id: "carousel-fiction",
href: "bestsellers.html?category=hardcover-fiction"
},
{
genre: "Adult Nonfiction",
image: "images/adult-nonfiction.jpeg",
alt: "Going Infinite cover",
search: "hardcover-nonfiction",
id: "carousel-nonfiction",
href: "bestsellers.html?category=hardcover-nonfiction"
},
{
genre: "Young Adult Fiction",
image: "images/young-adult.jpeg",
alt: "Curious Tides cover",
search: "young-adult-hardcover",
id: "carousel-young",
href: "bestsellers.html?category=young-adult-hardcover"
},
{
genre: "Children's Fiction (8-12)",
image: "images/children8-12.jpeg",
alt: "The Puppets of Spellhorst cover",
search: "childrens-middle-grade-hardcover",
id: "carousel-children",
href: "bestsellers.html?category=childrens-middle-grade-hardcover"
},
{
genre: "Picture Books",
image: "images/picture.jpeg",
alt: "Just Because cover",
search: "picture-books",
id: "carousel-picture",
href: "bestsellers.html?category=picture-books"
},
{
genre: "Graphic Books and Manga",
image: "images/graphic.jpeg",
alt: "Hooky cover",
search: "graphic-books-and-manga",
id: "carousel-graphic",
href: "bestsellers.html?category=graphic-books-and-manga"
Expand All @@ -61,6 +67,7 @@ function carouselLinks(category) {
const genreImageContainer = document.createElement('div');
const genreImage = document.createElement('img');
genreImage.src = category.image;
genreImage.alt = category.alt;
genreImage.className = 'carousel_img';
genreImageContainer.className = 'carousel-img-container';
genreImageContainer.appendChild(genreImage);
Expand Down
2 changes: 1 addition & 1 deletion result.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h2 class="result-banner-text">

<!-- lucien added for loading indicator -->
<div id="loading-indicator" style="display: none;">
<p>Bear with...</p>
<p style="text-align: center;">&#128218; Books loading... </p>
</div>

</div>
Expand Down

0 comments on commit 2765837

Please sign in to comment.