styles.css
css4 kB243 linesIn Tutorial.zip
Tutorial.zipstyles.css
/* React Tutorial Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
background-color: white;
border-radius: 10px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
header {
background: linear-gradient(135deg, #61dafb 0%, #282c34 100%);
color: white;
padding: 30px;
text-align: center;
}
header h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
header p {
font-size: 1.2em;
opacity: 0.9;
}
.content {
padding: 40px;
}
.content h2 {
color: #282c34;
margin-top: 30px;
margin-bottom: 15px;
font-size: 2em;
border-bottom: 3px solid #61dafb;
padding-bottom: 10px;
}
.content h3 {
color: #444;
margin-top: 25px;
margin-bottom: 12px;
font-size: 1.5em;
}
.content p {
margin-bottom: 15px;
color: #555;
font-size: 1.1em;
}
.content ul, .content ol {
margin-left: 30px;
margin-bottom: 20px;
}
.content li {
margin-bottom: 10px;
color: #555;
}
.content strong {
color: #282c34;
}
/* Code Blocks */
pre {
background-color: #282c34;
color: #61dafb;
padding: 20px;
border-radius: 8px;
overflow-x: auto;
margin: 20px 0;
border-left: 4px solid #61dafb;
}
code {
font-family: 'Courier New', Courier, monospace;
font-size: 0.95em;
}
.inline-code {
background-color: #f4f4f4;
color: #d63384;
padding: 2px 6px;
border-radius: 3px;
font-family: 'Courier New', Courier, monospace;
}
/* Navigation */
.navigation {
display: flex;
justify-content: space-between;
align-items: center;
padding: 30px 40px;
background-color: #f8f9fa;
border-top: 3px solid #61dafb;
}
.nav-button {
padding: 12px 30px;
background-color: #61dafb;
color: #282c34;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: all 0.3s ease;
display: inline-block;
border: 2px solid #61dafb;
}
.nav-button:hover {
background-color: #282c34;
color: #61dafb;
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.nav-button.disabled {
opacity: 0.3;
pointer-events: none;
}
.home-button {
padding: 10px 25px;
background-color: #282c34;
color: white;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
transition: all 0.3s ease;
}
.home-button:hover {
background-color: #3d424d;
transform: translateY(-2px);
}
/* Table of Contents */
.toc {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
margin-top: 30px;
}
.toc-item {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 25px;
border-radius: 10px;
text-decoration: none;
display: block;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.toc-item:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.toc-item h3 {
color: white;
margin-bottom: 10px;
font-size: 1.3em;
}
.toc-item p {
color: rgba(255, 255, 255, 0.9);
font-size: 0.95em;
margin: 0;
}
/* Info Boxes */
.info-box {
background-color: #e7f3ff;
border-left: 5px solid #2196F3;
padding: 15px 20px;
margin: 20px 0;
border-radius: 5px;
}
.warning-box {
background-color: #fff3cd;
border-left: 5px solid #ffc107;
padding: 15px 20px;
margin: 20px 0;
border-radius: 5px;
}
.success-box {
background-color: #d4edda;
border-left: 5px solid #28a745;
padding: 15px 20px;
margin: 20px 0;
border-radius: 5px;
}
/* Responsive Design */
@media (max-width: 768px) {
.content {
padding: 20px;
}
header h1 {
font-size: 1.8em;
}
.navigation {
flex-direction: column;
gap: 15px;
}
.toc {
grid-template-columns: 1fr;
}
}
/* Syntax Highlighting */
.keyword { color: #c678dd; }
.function { color: #61afef; }
.string { color: #98c379; }
.comment { color: #5c6370; font-style: italic; }
.number { color: #d19a66; }
In Tutorial.zip
01-introduction.html6 kB02-getting-started.html9 kB03-jsx.html10 kB04-components.html10 kB05-props.html11 kB06-state.html14 kB07-hooks.html15 kB08-events.html15 kB09-forms.html17 kB10-router.html9 kB11-styling.html11 kB12-useeffect.html11 kB13-usecontext.html13 kB14-useref.html13 kB15-custom-hooks.html19 kBindex.html5 kBstyles.css4 kB