Skip to content
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

Feedback #1

Open
wants to merge 34 commits into
base: feedback
Choose a base branch
from
Open

Feedback #1

wants to merge 34 commits into from

Conversation

github-classroom[bot]
Copy link

@github-classroom github-classroom bot commented Aug 14, 2023

👋! GitHub Classroom created this pull request as a place for your teacher to leave feedback on your work. It will update automatically. Don’t close or merge this pull request, unless you’re instructed to do so by your teacher.
In this pull request, your teacher can leave comments and feedback on your code. Click the Subscribe button to be notified if that happens.
Click the Files changed or Commits tab to see all of the changes pushed to master since the assignment started. Your teacher can see this too.

Notes for teachers

Use this PR to leave feedback. Here are some tips:

  • Click the Files changed tab to see all of the changes pushed to master since the assignment started. To leave comments on specific lines of code, put your cursor over a line of code and click the blue + (plus sign). To learn more about comments, read “Commenting on a pull request”.
  • Click the Commits tab to see the commits pushed to master. Click a commit to see specific changes.
  • If you turned on autograding, then click the Checks tab to see the results.
  • This page is an overview. It shows commits, line comments, and general comments. You can leave a general comment below.
    For more information about this pull request, read “Leaving assignment feedback in GitHub”.

Subscribed: @breezyback @riadhmouamnia @liliumorion @mohamed70601 @SaraBegache

github-classroom bot and others added 30 commits August 14, 2023 16:48
…-in-dom

Render the Processed Story to the DOM done!
Added About Us page: fixes #12 & added CSS variables: fixes #13
Created about.js file & db.json file: fixes #14
Added confetti effect to the project
Copy link

@hiba-machfej hiba-machfej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing job team! Your code is organized, clean, and very easy to understand. Also, variable naming is on point. Thank you for putting a good effort into that!

// create the "about us" description text
function renderAboutUsText() {
const aboutUs = document.createElement("div");
aboutUs.classList.add(".about-us");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When adding classes to elements using classList.add, you should not include the dot (.) before the class name. For example, change aboutUs.classList.add(".about-us"); to aboutUs.classList.add("about-us");.

card.innerHTML = `<div class="image-content">
<span class="overlay"></span>
<div class="card-image">
<img src=${member.image} alt=${member.fullname} class="card-img" title=${member.fullname} />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure how the data is coming from the db but I think it good to wrap attribute values in quotes. For example src=${member.image} to src="${member.image}". This ensures proper HTML syntax.

{
"id": 1,
"fullname": "Riadh Mouamnia",
"image": "./assets//riadh.png",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a specific reason for having double slashes here?
I think it is better to have a single slash.

illustrationContainer.classList.add("illustration");
const img = document.createElement("img");
img.setAttribute("src", "assets/illustration.png");
img.setAttribute("alt", "illustration");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love that you thought about adding alt attribute as well!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can make the alt text in capital letter like: Illustration

<meta name="viewport" content="width=device-width" />
<title>madlibz</title>
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;700;800&display=swap"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's generally better to add Google Fonts to your CSS file rather than directly in your HTML file.

</article>
<section id="about"></section>
<!-- scripts -->
<script src="home.js"></script>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's nice you thought about adding multiple files.


processedStory.forEach((word) => {
if (word.word === "." || word.word === ",") {
createPunctuationText(word, previewContainer, editContainer);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job having different functions and organizing the code.

inputFields.forEach((input, i) => {
input.addEventListener("keypress", (e) => {
if (e.key === "Enter") {
const nextIndex = (i + 1) % inputFields.length;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's amazing that you thought about this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants