Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Conversation

nazaninsaedi
Copy link

Wireframe

Copy link

netlify bot commented Dec 16, 2023

Deploy Preview for cyf-module-html-css ready!

Name Link
🔨 Latest commit ef70421
🔍 Latest deploy log https://app.netlify.com/sites/cyf-module-html-css/deploys/657d907f27d2b000087534fa
😎 Deploy Preview https://deploy-preview-188--cyf-module-html-css.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance:
Accessibility:
Best Practices:
SEO:
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@pseudopilot pseudopilot left a comment

Choose a reason for hiding this comment

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

Great job, @nazaninsaedi !

I left some comments for you regarding HTML code formatting so that you could understand better why and where we need indents.
But we don't really always need to format the code ourselves (even though we try to watch proper formatting, we may miss something). For this purpose there are different plugins/extensions for your IDE (VS Code). The most popular is Prettier.
You can read here how to add and use it:
https://www.digitalocean.com/community/tutorials/how-to-format-code-with-prettier-in-visual-studio-code

My another recommendation is to make more informative descriptions of commits. For example, for the next commit where you're going to fix formatting you can write 'fix index.html code formatting'.

Good luck!

Comment on lines +15 to +19
<header>

<h1 class="header">Learning how to use Git</h1>
<p class="heading_summary">This page will help you develop some understanding of Git</p>
</header>
Copy link
Contributor

Choose a reason for hiding this comment

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

We may want to remove the extra empty line after <header> tag. We usually use empty lines do visually separate some semantic blocks. But here h1 and p are nested to the header.

<p class="heading_summary">This page will help you develop some understanding of Git</p>
</header>

<main class="container">
Copy link
Contributor

Choose a reason for hiding this comment

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

You may notice that <main... tag has twice bigger indent from the left than <header> above. It shouldn't be so because these are sibling elements. We increase indents only for nested/child elements.

Comment on lines +23 to +26
<article class="article" id="article-1">

<h1 class="article-heading">What is Git?</h2>
<p class="article-summary">By far, the most widely used modern version control system in the world today is Git.
Copy link
Contributor

Choose a reason for hiding this comment

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

As h1 and p are child elements for article they should have bigger indent from the left.


Branching in Git is very lightweight and fast!</p>
<a href="https://www.w3schools.com/git/git_branch.asp?remote=github"><button class="article_button">Read more</button></a>
</article>
Copy link
Contributor

Choose a reason for hiding this comment

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

</article> is a closing tag of the parent element. So, it should have smaller indent (same as opening tag <article>).

</main>
<footer>
<div class="footer-content">
<p>Contact Us: <a href="nazaninsaedi088@gmail.com">nazaninsaedi088@gmail.com</a></p>
Copy link
Contributor

Choose a reason for hiding this comment

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

If you want this link to open user's email box and create a new letter you may want to modify this link the following way:

<a href="mailto:nazaninsaedi088@gmail.com">nazaninsaedi088@gmail.com</a>

You can read more about different link types here if you like:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

Copy link

@ziggyrafiq ziggyrafiq left a comment

Choose a reason for hiding this comment

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

Please consider renaming the images (1).jpeg, images (2).jpeg and images (3).jpeg to a meaningful name such as cake-01.jpeg

Copy link

@ziggyrafiq ziggyrafiq left a comment

Choose a reason for hiding this comment

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

please consider the recommendations and also look at the code I am using on my site https://ziggyrafiq.com/Styles/CSS/styles.css and understand how I have used CSS3 also you can look at my github repo https://github.com/ziggyrafiq to gain further understanding

text-align: center;
}

.footer-content {

Choose a reason for hiding this comment

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

please look at naming this as html5 semantic element footer tag ie footer

border-radius: 10%;
}

:root {

Choose a reason for hiding this comment

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

please move this to the root/top of the CSS file

border-radius: 50%;

}
.header-area {

Choose a reason for hiding this comment

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

please consider using html5 semantic element header then css3 class name here

align-items: flex-end;
text-align: end;
}
#menu-inpt {

Choose a reason for hiding this comment

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

please consider using a name which everyone can understand such as #menu-input then the one you are using also if this is to hide a hamburger menu icon on desktop devices then please consider using more meaningful name

height: 100%;
}

.header-area p {

Choose a reason for hiding this comment

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

please consider using html5 semantic element header then using CSS3 class name here such as header p to target the element

align-items: flex-start;
gap: 1em;
}
.nav-a {

Choose a reason for hiding this comment

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

same as above

Suggested change
.nav-a {
nav a {

justify-content: space-between;
}

#nav-footer {

Choose a reason for hiding this comment

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

consider using html5 semantic element footer to target then IDs or css3 class

position: static;
justify-content: flex-end;
}

Choose a reason for hiding this comment

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

consider using something like this

Suggested change
nav ul

Comment on lines +41 to +81
.article {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: 1px solid rgb(58, 3, 44);
padding: 43px;
margin: 43px;
}

article:first-child {
background-color: rgba(89, 10, 65, 0.11);

}

.article-wrap {
display: grid;
grid-template-columns: 1fr 1fr;

gap: 20px;
width: 100%;
}
.article_button {
border: rgb(235, 121, 227);
background-color: rgb(246, 185, 237);
color:rgb(126, 4, 101)
padding: .75rem;
border-radius: 8px;
text-align: center;


}

.read-more {
margin: 10px;
padding: 5px;
background-color: rgba(153, 8, 158, 0.63);
border: 0.1px solid rgba(148, 10, 125, 0.63);
border-radius: 6px;
color: rgb(208, 156, 194);
}

Choose a reason for hiding this comment

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

please consider using html5 semantic element article for this and then target it take a look at this style sheet https://ziggyrafiq.com/Styles/CSS/styles.css


<article class="article" id="article-1">

<h1 class="article-heading">What is Git?</h2>

Choose a reason for hiding this comment

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

consider using article h1 in css and then remove the class article-heading as not required

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

Successfully merging this pull request may close these issues.

3 participants