JSFiddle - React, Tailwind, and code Playground
by Purushottam Mallick
HTML
<div class="skills">
<div class="mySlides ">
<button class="skills__button"><span class="circle__dot"><p>+10P</p></span>Creative Thinking</button>
</div>
<div class="mySlides ">
<button class="skills__button"><span class="circle__dot"><p>+10P</p></span>Flexible Thinking</button>
</div>
<div class="mySlides ">
<button class="skills__button"><span class="circle__dot"><p>+20P</p></span>Management</button>
</div>
<div class="mySlides ">
<button class="skills__button"><span class="circle__dot"><p>+20P</p></span>Strategic Thinking</button>
</div>
<div style="text-align:center">
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
<span class="dot"></span>
</div>
</div>
CSS
body {
box-sizing: border-box;
overflow-x: hidden;
}
.profile {
border:2px solid black;
border-radius: 25px;
background: white;
margin: 10px;
padding:2px 20px;
}
#profile__currency{
font-weight: bold;
margin-top: -15%;
}
#section {
margin-left: 70px;
margin-right: 70px;
}
.header__one {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
h1 {
font-family: sans-serif;
}
h2 {
font-family: sans-serif;
margin-top: -2px;
}
.button__thumbs {
border:2px solid black;
border-radius: 25px;
background: white;
margin: 10px;
}
.far {
font-size: 18px;
position: relative;
left:20%;
padding: 0;
margin: 0;
}
.booking__content {
display: flex;
justify-content: space-around;
}
.image__left {
position: relative;
text-align: center;
color: white;
width:50%;
height: auto;
}
.top-right {
position: absolute;
top: 8px;
right: 16px;
color:white;
font-family: sans-serif;
font-weight: 700;
}
.bottom-left {
position: absolute;
bottom:38px;
left: 16px;
color:white;
font-family: sans-serif;
font-weight: 700;
border:1px solid white;
padding:4px 10px;
}
.booking {
margin-top: -35px;
padding:20px 30px;
width:calc(50% - 40px);
}
#device {
margin-top: -24px;
float: right;
}
.devices {
float: right;
display: flex;
margin-top: -30px;
margin-right: -10px;
}
.or {
margin-left: 8px;
}
.button__booking {
border: none;
color: black;
font-family: sans-serif;
padding: 10px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin-right: 7px;
margin-top:8px;
cursor: pointer;
border-radius:25px;
}
@media screen and (max-width:1175px) and (min-width:1024px) {
.button__booking {
padding:5px 15px;
}
}
@media screen and (min-width:320px) and (max-width:600px) {
.button__booking{
padding:3px 10px;
}
}
.seats {
display: flex;
}
#seat__left{
margin-right:35%;
}
.recommended {
font-size: 12px;
font-weight: 700;
position:...
JavaScript
var skill__slideIndex = 0;
showSlides();
function showSlides() {
var j;
var skills__slides = document.getElementsByClassName("mySlides");
var skill__dots = document.getElementsByClassName("dot");
for (j = 0; j < skills__slides.length; j++) {
skills__slides[j].style.display = "none";
}
skill__slideIndex++;
if (skill__slideIndex > skills__slides.length) {skill__slideIndex = 1}
for (j = 0; j < skill__dots.length; j++) {
skill__dots[j].className = skill__dots[j].className.replace(" active", "");
}
skills__slides[skill__slideIndex-1].style.display = "block";
skill__dots[skill__slideIndex-1].className += " active";
setTimeout(showSlides, 2000); // Change image every 2 seconds
}