JSFiddle - React, Tailwind, and code Playground
by GordyNumberOne
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cincinnati Yoga Retreat</title>
<style>
body {
font-family: Arial, sans-serif;
padding: 2rem;
background-color: #f9f9f9;
color: #333;
}
h1, h2 {
text-align: center;
color: #555;
}
.container {
max-width: 800px;
margin: 0 auto;
background-color: #fff;
padding: 2rem;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.section {
margin-bottom: 2rem;
}
img {
width: 100%;
border-radius: 10px;
}
.address, .schedule {
font-style: italic;
}
.cta {
text-align: center;
margin-top: 2rem;
}
.center-div {
width: 100%; /* Full width of the viewport */
height: 80vh;
background-color: #f9f9f9;
border-radius: 15px;
padding: 5px;
box-sizing: border-box;
color: white;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
@media only screen and (max-width: 100%) {
.center-div {
height: 40vh;
width: 80%;
background-color: #f9f9f9;
border-radius: 15px;
padding: 5px;
box-sizing: border-box;
color: white;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
}
button {
background-color: #007BFF;
color: white;
padding: 0.7rem 1.5rem;
font-size: 1rem;
border: none;
border-radius: 5px;
cursor: pointer;
...