https://github.com/dentednerd/fm-bootcamp-testimonials
A solution to the Coding bootcamp testimonials slider challenge on Frontend Mentor.
https://github.com/dentednerd/fm-bootcamp-testimonials
Last synced: 6 months ago
JSON representation
A solution to the Coding bootcamp testimonials slider challenge on Frontend Mentor.
- Host: GitHub
- URL: https://github.com/dentednerd/fm-bootcamp-testimonials
- Owner: dentednerd
- Created: 2021-04-05T12:58:31.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-05T13:04:01.000Z (about 5 years ago)
- Last Synced: 2025-02-07T00:32:11.361Z (over 1 year ago)
- Language: SCSS
- Size: 1.91 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frontend Mentor - Coding bootcamp testimonials slider solution
This is a solution to the [Coding bootcamp testimonials slider challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/coding-bootcamp-testimonials-slider-4FNyLA8JL). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Author](#author)
## Overview
### The challenge
Users should be able to:
- View the optimal layout for the component depending on their device's screen size
- Navigate the slider using either their mouse/trackpad or keyboard
### Screenshot

### Links
- Solution URL: [https://www.frontendmentor.io/solutions/coding-bootcamp-testimonials-solution-using-sass-DungPw5JD](https://www.frontendmentor.io/solutions/coding-bootcamp-testimonials-solution-using-sass-DungPw5JD)
- Live Site URL: [https://dentednerd.github.io/fm-bootcamp-testimonials/](https://dentednerd.github.io/fm-bootcamp-testimonials/)
## My process
### Built with
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
### What I learned
This would have been a lot easier with React, and its useState hook. I would have had a lot more room for animations. As it stands, my Javascript solution can only two entries and toggling the visibility of each.
```js
const slide = () => {
var elements = document.getElementsByClassName('visible');
Array.from(elements).forEach((element) => {
Array.from(element.parentNode.childNodes).forEach((sibling) => {
sibling.classList && sibling.classList.toggle('visible');
});
});
}
```
## Author
- Website - [Joey Imlay](https://joeyimlay.dev)
- Frontend Mentor - [@dentednerd](https://www.frontendmentor.io/profile/dentednerd)
- Twitter - [@dentednerd](https://www.twitter.com/dentednerd)