App.css
css1 kB68 linesIn Examples.zip
Examples.zipChapter10-RoutersrcApp.css
.App {
min-height: 100vh;
}
nav {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
gap: 20px;
justify-content: center;
}
nav a {
color: white;
text-decoration: none;
padding: 10px 20px;
border-radius: 5px;
transition: background 0.3s;
font-weight: 500;
}
nav a:hover,
nav a.active {
background: rgba(255,255,255,0.2);
}
.content {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
.page {
background: white;
border-radius: 12px;
padding: 40px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.page h1 {
color: #667eea;
margin-top: 0;
border-bottom: 3px solid #667eea;
padding-bottom: 15px;
}
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;
margin: 5px;
}
button:hover {
transform: scale(1.05);
}