App.css

css3 kB203 linesIn Examples.zip

Examples.zipChapter06-StatesrcApp.css

CSS
.App {
  min-height: 100vh;
  background-color: #f0f2f5;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.header h1 {
  margin: 0 0 10px 0;
  font-size: 2.5em;
}

.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.info-banner {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 5px solid #667eea;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-banner h2 {
  color: #667eea;
  margin-top: 0;
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.demo-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.demo-card h3 {
  margin: 0 0 20px 0;
  color: #333;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

.big-number {
  font-size: 3em;
  font-weight: bold;
  color: #667eea;
  text-align: center;
  margin: 20px 0;
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-group button,
.demo-card button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}

.button-group button:hover,
.demo-card button:hover {
  transform: scale(1.05);
}

.text-input,
.form-group input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 10px;
}

.text-input:focus,
.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

.light {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  transition: all 0.3s;
}

.light.on {
  background-color: yellow;
  box-shadow: 0 0 30px yellow;
}

.light.off {
  background-color: #333;
  color: white;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #555;
}

.profile-display {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
}

.profile-display h4 {
  margin-top: 0;
}

.todo-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.todo-input input {
  flex: 1;
  margin-bottom: 0;
}

.todo-list {
  list-style: none;
  padding: 0;
}

.todo-list li {
  background-color: #f9f9f9;
  padding: 12px;
  margin: 8px 0;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.todo-list button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  padding: 5px;
}

.tips-box {
  background: white;
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid #28a745;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tips-box h3 {
  color: #28a745;
  margin-top: 0;
}

.tips-box code {
  background-color: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  color: #d63384;
}

In src/