fix(curriculum): refine editable regions in workshop greeting card (#65389)

Co-authored-by: Jeevankumar-S <jeevenkumar2003@email.com>
Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
Jeevankumar S 2026-01-30 23:59:38 +05:30 committed by GitHub
parent 95aa78408f
commit 014826acd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
27 changed files with 175 additions and 332 deletions

View File

@ -40,21 +40,19 @@ assert.match(linkHrefValue, /^(\.\/)?styles\.css$/);
## --seed-contents--
```html
--fcc-editable-region--
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Greeting Card</title>
--fcc-editable-region--
--fcc-editable-region--
</head>
<body>
</body>
</html>
--fcc-editable-region--
```
```css

View File

@ -74,17 +74,12 @@ assert.strictEqual(document.querySelector("div > p.message").textContent.trim(),
<title>Greeting Card</title>
<link href="styles.css" rel="stylesheet">
</head>
--fcc-editable-region--
<body>
</body>
--fcc-editable-region--
--fcc-editable-region--
</body>
</html>
```
```css

View File

@ -63,12 +63,10 @@ assert.strictEqual(new __helpers.CSSHelp(document).getStyle("body")?.getProperty
</div>
</body>
</html>
```
```css
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -51,17 +51,15 @@ assert.oneOf(new __helpers.CSSHelp(document).getStyle(".card")?.getPropertyValue
</div>
</body>
</html>
```
```css
--fcc-editable-region--
body {
font-family: Arial, sans-serif;
padding: 40px;
text-align: center;
--fcc-editable-region--
}
--fcc-editable-region--

View File

@ -51,7 +51,6 @@ assert.oneOf(new __helpers.CSSHelp(document).getStyle(".card")?.getPropertyValue
</div>
</body>
</html>
```
```css
@ -62,12 +61,11 @@ body {
background-color: brown;
}
--fcc-editable-region--
.card {
background-color: white;
--fcc-editable-region--
--fcc-editable-region--
}
--fcc-editable-region--
```

View File

@ -48,7 +48,6 @@ assert.strictEqual(
</div>
</body>
</html>
```
```css
@ -59,14 +58,14 @@ body {
background-color: brown;
}
--fcc-editable-region--
.card {
background-color: white;
max-width: 400px;
padding: 40px;
margin: 0 auto;
--fcc-editable-region--
--fcc-editable-region--
}
--fcc-editable-region--
```

View File

@ -39,20 +39,15 @@ assert.strictEqual(document.querySelector("#greeting-card").lastElementChild.cla
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
--fcc-editable-region--
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
--fcc-editable-region--
--fcc-editable-region--
</div>
</body>
</html>
```
```css

View File

@ -70,17 +70,14 @@ assert.match(document.querySelectorAll(".card-links > a")[1].href, /#share$/);
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
--fcc-editable-region--
<div class="card-links"></div>
--fcc-editable-region--
</div>
</div>
</body>
</html>
```
```css

View File

@ -45,24 +45,19 @@ assert.strictEqual(document.querySelectorAll("section")[1].id, "share");
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
--fcc-editable-region--
--fcc-editable-region--
</body>
</html>
```
```css

View File

@ -51,28 +51,22 @@ assert.strictEqual(document.querySelector("#send").children[1].innerText.trim(),
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
--fcc-editable-region--
<section id="send"></section>
--fcc-editable-region--
<section id="share"></section>
<section id="send">
--fcc-editable-region--
--fcc-editable-region--
</section>
<section id="share"></section>
</body>
</html>
```
```css

View File

@ -53,31 +53,25 @@ assert.strictEqual(document.querySelector("#share").children[1].innerText.trim()
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
--fcc-editable-region--
<section id="share"></section>
--fcc-editable-region--
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
--fcc-editable-region--
--fcc-editable-region--
</section>
</body>
</html>
```
```css

View File

@ -39,30 +39,24 @@ assert.oneOf(new __helpers.CSSHelp(document).getStyle(".card:hover")?.getPropert
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -84,7 +78,5 @@ body {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -41,30 +41,24 @@ assert.strictEqual(new __helpers.CSSHelp(document).getStyle(".card:hover")?.getP
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -84,11 +78,11 @@ body {
box-shadow: 0 4px 8px gray;
}
--fcc-editable-region--
.card:hover {
background-color: khaki;
--fcc-editable-region--
--fcc-editable-region--
}
--fcc-editable-region--
```

View File

@ -61,30 +61,24 @@ assert.oneOf(
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -95,8 +89,6 @@ body {
background-color: brown;
}
--fcc-editable-region--
.card {
background-color: white;
max-width: 400px;
@ -104,6 +96,9 @@ body {
margin: 0 auto;
border-radius: 10px;
box-shadow: 0 4px 8px gray;
--fcc-editable-region--
--fcc-editable-region--
}
.card:hover {
@ -111,5 +106,4 @@ body {
transform: scale(1.1);
}
--fcc-editable-region--
```

View File

@ -44,30 +44,24 @@ assert.strictEqual(
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -95,7 +89,5 @@ body {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -44,30 +44,24 @@ assert.strictEqual(
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -93,11 +87,11 @@ body {
transform: scale(1.1);
}
--fcc-editable-region--
h1::before {
content: "🥳 ";
}
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -48,30 +48,24 @@ assert.strictEqual(new __helpers.CSSHelp(document).getStyle(".message")?.getProp
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -107,7 +101,5 @@ h1::after {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -55,30 +55,24 @@ assert.strictEqual(new __helpers.CSSHelp(document).getStyle(".card-links")?.getP
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -119,7 +113,5 @@ h1::after {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -76,30 +76,24 @@ assert.oneOf(new __helpers.CSSHelp(document).getStyle(".card-links a")?.getPrope
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -146,7 +140,5 @@ h1::after {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -44,30 +44,24 @@ assert.oneOf(
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -123,7 +117,5 @@ h1::after {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -39,30 +39,24 @@ assert.oneOf(
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -107,8 +101,6 @@ h1::after {
justify-content: space-around;
}
--fcc-editable-region--
.card-links a {
text-decoration: none;
font-size: 1em;
@ -116,9 +108,10 @@ h1::after {
border-radius: 5px;
color: white;
background-color: midnightblue;
}
--fcc-editable-region--
--fcc-editable-region--
}
.card-links a:hover {
background-color: orangered;

View File

@ -42,30 +42,24 @@ assert.oneOf(
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -126,7 +120,5 @@ h1::after {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -42,30 +42,24 @@ assert.strictEqual(
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -130,7 +124,5 @@ h1::after {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -39,30 +39,24 @@ assert.oneOf(new __helpers.CSSHelp(document).getStyle(".card-links a:visited")?.
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -131,7 +125,5 @@ h1::after {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -69,30 +69,24 @@ assert.strictEqual(new __helpers.CSSHelp(document).getStyle("section").getProper
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -165,7 +159,5 @@ h1::after {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -50,30 +50,24 @@ assert.strictEqual(
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -154,7 +148,5 @@ section {
--fcc-editable-region--
--fcc-editable-region--
```

View File

@ -50,30 +50,24 @@ assert.strictEqual(
<body>
<div class="card" id="greeting-card">
<h1>Happy Birthday!</h1>
<p class="message">
Wishing you all the happiness and joy on your special day!
</p>
<div class="card-links">
<a href="#send" class="send-link">Send Card</a>
<a href="#share" class="share-link">Share on Social Media</a>
</div>
</div>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
<section id="send">
<h2>Sending your card...</h2>
<p>Card successfully sent to your recipient!</p>
</section>
<section id="share">
<h2>Sharing your card...</h2>
<p>Your card was shared on social media!</p>
</section>
</body>
</html>
```
```css
@ -144,20 +138,21 @@ h1::after {
color: crimson;
}
--fcc-editable-region--
section {
margin: 20px auto;
max-width: 600px;
background-color: whitesmoke;
padding: 20px;
border-radius: 10px;
--fcc-editable-region--
}
section:hover{
transform: skewX(10deg);
}
--fcc-editable-region--
```