Skip to content

Add files via upload #1

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Babak-BashirZadeh
Copy link

homework #1 html-css portfolioV.01

homework #1 html-css portfolioV.01
Change in descriptions
Comment on lines 51 to 56
<button id="button" onclick="window.location.href='babak.bashirzadeh@gmail.com/';"><i class="fa-solid fa-at"></i> My Email</button>

<button id="button" onclick="window.location.href='https://www.linkedin.com/in/babak-bashirzadeh/';"><i class="fa-brands fa-linkedin"></i> My LinkdIn</button>


<button id="button" onclick="window.location.href='https://github.com/Babak-BashirZadeh';"><i class="fa-brands fa-github"></i> My GitHub</button>

Choose a reason for hiding this comment

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

It's unnecessary (and less clear) to create these links as buttons with in-line JavaScript; it would be better to simply use anchor elements (a tags- as you did above)

Comment on lines 32 to 35
<div class="item">HTML</div>
<div class="item">CSS</div>
<div class="item">JavaScript</div>
<div class="item">Agile</div>

Choose a reason for hiding this comment

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

Since these elements just contain text, it would be better to use span or p tags

Comment on lines 60 to 61
<script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>

Choose a reason for hiding this comment

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

I'd move these script tags to the head

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Babak | Portfolio | Web developer</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" />

Choose a reason for hiding this comment

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

Fix indendation- also in a few other places in the file

Comment on lines 8 to 9
}
.navicon{

Choose a reason for hiding this comment

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

Leave a blank line between CSS selectors to help with readability

Comment on lines +12 to +18
<ul class="navbar">
<li><a href="#header"><span class="navicon"><ion-icon name="home-outline"></ion-icon></span>Home</a></li>
<li><a href="#about"><span class="navicon"><ion-icon name="planet-outline"></ion-icon></span>About</a></li>
<li><a href="#skills"><span class="navicon"><ion-icon name="barbell-outline"></ion-icon></span>Skills</a></li>
<li><a href="#portfolio"><span class="navicon"><ion-icon name="rocket-outline"></ion-icon></ion-icon></span>Portfolio</a></li>
<li><a href="#contact"><span class="navicon"><ion-icon name="paper-plane-outline"></ion-icon></span>Contact</a></li>
</ul>

Choose a reason for hiding this comment

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

You don't need to create a list here; you could just nest the a tags inside the nav (and reshuffle your CSS properties a bit)

color: #fff;
text-decoration: none;
font-weight: bold;
transition: color 0.3s;

Choose a reason for hiding this comment

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

Nice

Comment on lines 76 to 77
}
section h2 {

Choose a reason for hiding this comment

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

Again, including a blank line here to space out the two selectors would make it easier to read

Comment on lines 143 to 145
.navbar {
flex-direction: column;
}

Choose a reason for hiding this comment

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

I can see why you did this, but the column layout means the navbar takes up a lot of the viewport on a mobile screen- maybe consider using flex-wrap instead?

@albertRowett
Copy link

Overall, I think this looks really good just 2 days into learning HTML/CSS! Main things to improve: using the most appropriate HTML tag for each element; indentation, spacing, etc. that helps with code legibility

Copy link

@bhas bhas left a comment

Choose a reason for hiding this comment

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

Please create a new Pull Request where the base branch is your own repository and not HackYourFuture

image

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.

3 participants