feat: update module titles and enhance button styles

This commit is contained in:
Michael Czechowski
2025-05-14 03:40:15 +02:00
parent e9ce5f96d2
commit 48ef3e07d4
10 changed files with 43 additions and 12 deletions

View File

@@ -1,13 +1,13 @@
{
"id": "css-fundamentals",
"title": "CSS Fundamentals: The Language of Web Design",
"title": "101 Rules and Selectors",
"description": "Cascading Style Sheets (CSS) form the cornerstone of modern web presentation. This module provides a comprehensive introduction to CSS syntax, selectors, properties, and core design concepts. You'll develop a deep understanding of how CSS empowers web developers to control visual aesthetics, layout, and responsive behavior across digital interfaces. Throughout these lessons, we'll build a robust foundation that prepares you for more advanced web engineering topics.",
"difficulty": "beginner",
"lessons": [
{
"id": "css-syntax-structure",
"title": "CSS Syntax: The Building Blocks",
"description": "CSS (Cascading Style Sheets) follows a structured syntax that consists of selectors targeting HTML elements and declaration blocks defining their styling. A declaration block contains one or more declarations separated by semicolons, with each declaration consisting of a property and value pair. This fundamental structure forms the basis of all CSS rules and allows for precise control over web page presentation. Understanding this syntax is critical for effectively implementing any styling on the web.",
"description": "CSS (Cascading Style Sheets) follows a structured syntax that consists of selectors targeting HTML elements and declaration blocks defining their styling. A declaration block contains one or more declarations separated by semicolons, with each declaration consisting of a property and value pair. This fundamental structure forms the basis of all CSS rules and allows for precise control over web page presentation. Understanding this syntax is critical for effectively implementing any styling on the web.<br><br><pre>/* Element selctor */\np {\n color: orangered;\n /* │ └─── Indicates the value of the expression\n │ \n └─────────── Indicates the property of the expression */\n}</pre>",
"task": "Complete the CSS rule by providing a valid selector that targets all paragraph elements (p). This selector should apply to every paragraph on the page. Notice how the declaration block is already structured with the property-value pair 'color: blue;'.",
"previewHTML": "<p>This paragraph should be blue.</p><p>This paragraph should also be blue.</p><div>This div element should remain unchanged.</div>",
"previewBaseCSS": "body { font-family: Arial, sans-serif; padding: 20px; line-height: 1.6; }",
@@ -35,7 +35,7 @@
"previewHTML": "<h2>This is a heading that needs styling</h2><p>This is a paragraph that should remain unchanged.</p><h2>This is another heading that needs the same styling</h2>",
"previewBaseCSS": "body { font-family: Arial, sans-serif; padding: 20px; line-height: 1.6; }",
"sandboxCSS": "h2, p { border: 1px dashed #ccc; padding: 10px; margin-bottom: 10px; }",
"codePrefix": "/* Write an element selector for h2 elements and set their color and text-decoration */\n",
"codePrefix": "",
"initialCode": "",
"codeSuffix": " {\n color: red;\n text-decoration: underline;\n}",
"previewContainer": "preview-area",

View File

@@ -1,6 +1,6 @@
{
"id": "box-model",
"title": "CSS Box Model & Layout Principles",
"title": "Padding, Borders, and Margins",
"description": "Master the fundamental principles of space management in web design through the CSS box model. This module explores how content, padding, borders, and margins combine to create layout structures that are both visually appealing and structurally sound.",
"difficulty": "beginner",
"lessons": [

View File

@@ -1,6 +1,6 @@
{
"id": "selectors",
"title": "CSS Selectors Deep Dive",
"title": "Specificity",
"description": "Master the art of targeting HTML elements using various CSS selectors, from basics to specificity rules.",
"difficulty": "beginner",
"lessons": [

View File

@@ -1,6 +1,6 @@
{
"id": "units-variables",
"title": "CSS Units & Variables",
"title": "Units, var() and calc()",
"description": "Understand the variety of CSS measurement units and how to define and use custom properties for maintainable styles.",
"difficulty": "beginner",
"lessons": [

View File

@@ -1,6 +1,6 @@
{
"id": "transitions-animations",
"title": "CSS Transitions & Animations",
"title": "Transitions & Animations",
"description": "Bring interactivity to your UI by smoothly transitioning properties and creating keyframe-driven animations.",
"difficulty": "beginner",
"lessons": [

View File

@@ -1,6 +1,6 @@
{
"id": "layouts",
"title": "Advanced Layouts: Flexbox & Grid",
"title": "Flexbox & Grid",
"description": "Master modern CSS layout techniques with Flexbox and Grid for responsive, powerful designs.",
"difficulty": "intermediate",
"lessons": [