App.css

css3 kB197 linesIn Examples.zip

Examples.zipChapter01-IntroductionsrcApp.css

CSS
.App {
  min-height: 100vh;
}

.App-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.App-header h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 700;
}

.subtitle {
  font-size: 1.2em;
  margin: 10px 0 0 0;
  opacity: 0.9;
}

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

.info-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.info-card h2 {
  color: #667eea;
  margin-top: 0;
  font-size: 1.8em;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.info-card ul {
  line-height: 1.8;
  color: #555;
  font-size: 1.05em;
}

.info-card li {
  margin: 10px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #e0e4e8;
  transition: all 0.3s;
}

.feature:hover {
  border-color: #667eea;
  transform: scale(1.05);
}

.feature h3 {
  color: #667eea;
  margin: 0 0 10px 0;
  font-size: 1.3em;
}

.feature p {
  color: #666;
  margin: 0;
}

.concepts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.concept {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf0 100%);
  border-radius: 10px;
  border-left: 5px solid #667eea;
  transition: all 0.3s;
}

.concept:hover {
  background: linear-gradient(135deg, #e8ecf0 0%, #dde1e6 100%);
  transform: translateX(5px);
}

.concept-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  border-radius: 50%;
  flex-shrink: 0;
}

.concept h4 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 1.2em;
}

.concept p {
  margin: 0;
  color: #666;
}

.info-card.success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border: 2px solid #4caf50;
}

.info-card.success h2 {
  color: #2e7d32;
  border-bottom-color: #4caf50;
}

.command-box {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 10px 0;
  font-family: 'Courier New', monospace;
  font-size: 1.05em;
  overflow-x: auto;
  border: 2px solid #4caf50;
}

.command-box code {
  background: transparent;
  color: #4caf50;
  padding: 0;
  font-size: 1em;
}

@media (max-width: 768px) {
  .App-header h1 {
    font-size: 1.8em;
  }

  .content {
    padding: 20px 15px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .concept {
    flex-direction: column;
    text-align: center;
  }
}







In src/