App.css
css1 kB85 linesIn Examples.zip
Examples.zipChapter09-FormssrcApp.css
.App {
min-height: 100vh;
}
.header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 40px 20px;
text-align: center;
}
.content {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
.examples-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 25px;
}
.demo-box {
background: white;
border-radius: 12px;
padding: 30px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.demo-box h3 {
color: #667eea;
border-bottom: 3px solid #667eea;
padding-bottom: 10px;
margin-top: 0;
}
form {
display: flex;
flex-direction: column;
gap: 15px;
}
input, select, textarea {
width: 100%;
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
font-size: 16px;
}
input:focus, select:focus, textarea:focus {
outline: none;
border-color: #667eea;
}
button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 5px;
cursor: pointer;
font-weight: 500;
transition: transform 0.2s;
}
button:hover {
transform: scale(1.05);
}
ul {
list-style: none;
padding: 0;
}
li {
padding: 10px;
margin: 5px 0;
background: #f9f9f9;
border-radius: 5px;
display: flex;
justify-content: space-between;
align-items: center;
}