Have you visited sites where you see the fancy review section, which is astonishing and attractive. This section adds a charm to the frontend development and creates a mark on the visitor of the page. So sites host both dynamic reviews and static. We will be learning a static way.
OUTLINE:
You can have this section with many reviews in your own project websites too and since it is a local requirement, we need not have the knowledge of ajax work or HTTP requesting. Just the javascript file is enough. Since it is a beginner project for web development, three types of files is enough for this.
Web Development Kit will be shipped to you and you can learn and build using tutorials. You can start for free today!
1. Web Development with PHP and MySQL
2. Front End Web Development with React JS
PREREQUISITE :
1. From this site https://fontawesome.com/download, you need to download the freely available file containing icons, fonts, CSS files, etc.
It will be downloaded as zipped file extract whole file to project folder
(named as “ fontawesome-free-5.14.0-web ” )
2. collection of images, job profile, reviews to be shown of people you want in this project in your project file. Well you can upload the pics on google drive or other cloud platform and just use them from the sharing links instead of local address so hosting becomes easy
REQUIREMENTS:
Hardware:
One Laptop or Desktop with any OS (Linux/Windows/iOS)
Want to develop practical skills on Web Development? Checkout our latest projects and start learning for free
Software/Technology:
IMPLEMENTATION:
We will divide the work into three Files to ease down the work:
1.The HTML file
2. The JavaScript file
3. The CSS file
1.HTML File (named index.html or anything you prefer)
“./fontawesome-free-5.14.0-web/css/all.min.css”
2. CSS File (style.css or any name)
@import
--clr-red-dark: hsl(360, 67%, 44%);
--clr-red-light: hsl(360, 71%, 66%);
--clr-green-dark: hsl(125, 67%, 44%);
--clr-green-light: hsl(125, 71%, 66%);
--clr-black: #222;
--ff-primary: "Roboto", sans-serif;
--ff-secondary: "Open Sans", sans-serif;
--transition: all 0.3s linear;
--spacing: 0.25rem;
.underline {
height: 0.25rem;
width: 5rem;
background: var(--clr-primary-5);
margin-left: auto;
margin-right: auto;
}
NOTE: the second CSS file is already created so no worry
3. Java Script File ( app.js or any name you want)
Note: since we have not covered ajax and not setting up HTTP request we are directly using the pre-provided reviews here
const author = document.getElementById("author");
const nextBtn = document.querySelector(".next-btn");
const curentItem = 0;
window.addEventListener("DOMContentLoaded", function () {
showPerson(currentItem);
});
Note: here for listening we used “DOMContentLoaded” which is for loading of page each time
if yes then currentItem = 0
if yes then currentItem =3
And now we are done, our review section is completed. If you want to see the prebuilt codes you can visit following
https://github.com/vaibhavkumar-779/webpage-review
Skyfi Labs helps students learn practical skills by building real-world projects.
You can enrol with friends and receive kits at your doorstep
You can learn from experts, build working projects, showcase skills to the world and grab the best jobs.
Get started today!
Join 250,000+ students from 36+ countries & develop practical skills by building projects
Get kits shipped in 24 hours. Build using online tutorials.
Stay up-to-date and build projects on latest technologies