Skip to content

feat: added Dasia Lesson_05 User stories #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Oct 11, 2024
12 changes: 12 additions & 0 deletions lesson_05/dasiaenglish/lesson_05.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
## User Stories

# Shein app
-As a shopper I would like to virtually try on clothing items to see if they fit or not before purchasing.
This will help reduce returns and ensure customer satisfaction by allowing users to feel more confident in their purchases.

-As a buyer I would like to know exaclty how much I am spending, with a recommendation on what is worth my dolor, by grouping clothes a certain way.
This will help shoppers make more informed decisions and feel like they're making smart purchases, leading to a better shopping experience.


-As a fashionesta I want a personalized stylist to creat outfits with what is in my cart, that way I can mix and match my clothes.
This will enhance the shopping experience by helping users create stylish, personalized outfits, making them more likely to buy multiple items and enjoy their purchase.
59 changes: 23 additions & 36 deletions lesson_05/quiz/src/lesson5.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@ import {
AnswerChoice,
MultipleChoiceQuizQuestion,
QuizPrinter,
QuizQuestion,
} from "codedifferently-instructional";

export class Lesson5 {
run(): void {
run() {
const quizQuestions = Lesson5.makeQuizQuestions();
if (!quizQuestions) throw new Error("Quiz questions cannot be null");
const printer = new QuizPrinter();
printer.printQuiz(quizQuestions);
}

static makeQuizQuestions(): QuizQuestion[] {
static makeQuizQuestions() {
return [
Lesson5.makeQuestion0(),
Lesson5.makeQuestion1(),
Expand All @@ -27,8 +24,7 @@ export class Lesson5 {
Lesson5.makeQuestion9(),
];
}

private static makeQuestion0(): QuizQuestion {
static makeQuestion0() {
return new MultipleChoiceQuizQuestion(
0,
"What is the purpose of the <h1> tag in HTML?",
Expand All @@ -38,11 +34,10 @@ export class Lesson5 {
[AnswerChoice.C, "To insert an image"],
[AnswerChoice.D, "To create a paragraph"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.B,
);
}

private static makeQuestion1(): QuizQuestion {
static makeQuestion1() {
return new MultipleChoiceQuizQuestion(
1,
"Which attribute is used to specify alternative text for an image in HTML?",
Expand All @@ -52,11 +47,10 @@ export class Lesson5 {
[AnswerChoice.C, "alt"],
[AnswerChoice.D, "href"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.C,
);
}

private static makeQuestion2(): QuizQuestion {
static makeQuestion2() {
return new MultipleChoiceQuizQuestion(
2,
"Which HTML tag is used to create a hyperlink?",
Expand All @@ -66,11 +60,10 @@ export class Lesson5 {
[AnswerChoice.C, "<div>"],
[AnswerChoice.D, "<link>"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.B,
);
}

private static makeQuestion3(): QuizQuestion {
static makeQuestion3() {
return new MultipleChoiceQuizQuestion(
3,
"Which of the following is a semantic HTML tag?",
Expand All @@ -80,11 +73,10 @@ export class Lesson5 {
[AnswerChoice.C, "<span>"],
[AnswerChoice.D, "<br>"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.B,
);
}

private static makeQuestion4(): QuizQuestion {
static makeQuestion4() {
return new MultipleChoiceQuizQuestion(
4,
"What does CSS stand for?",
Expand All @@ -94,11 +86,10 @@ export class Lesson5 {
[AnswerChoice.C, "Computer Style Sheets"],
[AnswerChoice.D, "Cascading System Sheets"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.B,
);
}

private static makeQuestion5(): QuizQuestion {
static makeQuestion5() {
return new MultipleChoiceQuizQuestion(
5,
"Which CSS property is used to change the text color?",
Expand All @@ -108,11 +99,10 @@ export class Lesson5 {
[AnswerChoice.C, "text-color"],
[AnswerChoice.D, "background-color"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.B,
);
}

private static makeQuestion6(): QuizQuestion {
static makeQuestion6() {
return new MultipleChoiceQuizQuestion(
6,
"How do you add a comment in CSS?",
Expand All @@ -122,11 +112,10 @@ export class Lesson5 {
[AnswerChoice.C, "/* this is a comment */"],
[AnswerChoice.D, "<!-- this is a comment -->"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.C,
);
}

private static makeQuestion7(): QuizQuestion {
static makeQuestion7() {
return new MultipleChoiceQuizQuestion(
7,
"Which CSS property controls the size of text?",
Expand All @@ -136,11 +125,10 @@ export class Lesson5 {
[AnswerChoice.C, "text-size"],
[AnswerChoice.D, "text-style"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.B,
);
}

private static makeQuestion8(): QuizQuestion {
static makeQuestion8() {
return new MultipleChoiceQuizQuestion(
8,
"What is the default display value for `<div>` in CSS?",
Expand All @@ -150,11 +138,10 @@ export class Lesson5 {
[AnswerChoice.C, "inline-block"],
[AnswerChoice.D, "none"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.B,
);
}

private static makeQuestion9(): QuizQuestion {
static makeQuestion9() {
return new MultipleChoiceQuizQuestion(
9,
"How do you link an external CSS file to an HTML document?",
Expand All @@ -164,11 +151,11 @@ export class Lesson5 {
[AnswerChoice.C, "<stylesheet link='styles.css'>"],
[AnswerChoice.D, "<css href='styles.css'>"],
]),
AnswerChoice.UNANSWERED,
AnswerChoice.A,
);
}
}

if (!process.env.JEST_WORKER_ID) {
new Lesson5().run();
}
//# sourceMappingURL=lesson5.js.map