JSFiddle - React, Tailwind, and code Playground

by leongaban

HTML

<div id="tour_modal">
    <section id="section1">
        <header>header</header>
        <img src="http://placehold.it/350x150"/>
        <h1>This is the h1</h1>
    </section>
    
    <section id="section2">
        <header>header 2</header>
        <img src="http://placehold.it/350x150"/>
        <h1>This is the h1 for section2</h1>
    </section>
    
    <section id="section3">
        <header>header 3</header>
        <img src="http://placehold.it/350x150"/>
        <h1>This is the h1 for section3</h1>
    </section>
    
    <div class="modal_footer">
        <ul>
            <li>< Prev</li>
            <li>*</li>
            <li>*</li>
            <li>*</li>
            <li>*</li>
            <li>Next ></li>
        </ul>
    </div>
</div>

<div class="overlay"></div>

CSS

body {
    font-family: Arial;
    background: #F8F8F8;
}

.overlay {
    position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	width: 100%;
	height: 100%;
	background: black;
	opacity: .85;
	z-index: 3;
}

#tour_modal {
    display: block;
    position: absolute;
    top: 15%;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 30px 20px;
    width: 400px;
    height: 230px;
    background: white;
    z-index: 10;
}

.modal section {
    position: relative;
    height: 340px;
}

.modal header {
    margin: 0 auto;
    text-align: center;
    height: 40px;
    font-size: 28px;
    color: blue;
}

.modal img {
    margin: 0 auto;
}

.modal h1 {
    position: relative;
    width: 100%;
    font-family: LatoLight;
    font-size: 18px;
    text-align: center;
    line-height: 30px;
    color: $blue;
}

#section1 {
    display: block;
}

#section2 {
    display: none;
}

#section3 {
    display: none;
}

.modal_footer li {
    float: left;
    list-style: none;
    margin: 0 20px;
    background: cyan;
}