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

finish first page #65

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

finish first page #65

wants to merge 3 commits into from

Conversation

hgaeh
Copy link

@hgaeh hgaeh commented Oct 6, 2023

No description provided.

Copy link

@NadiaPosch NadiaPosch left a comment

Choose a reason for hiding this comment

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

Well done! I'm impressed by how far you've got already and how neat your design looks. You can really be proud of yourself 🥳
You have a solid html structure and your stylings are well organised as well, although you could simplify in a few places. I wasn't sure if the relevant index.html was the one in the code folder or the other one. If it's the one in the code folder, I'd suggest you remove the duplicates to avoid confusion :) My comments should apply to both of the index.html and the style.css files. If anythings unclear you can just re-comment or we'll take a look next Saturday :)

/* Here in the css file you'll write your styling. make sure to link the css file to the html file. If it's linked correctly you should see a light blue background. */

body {
background-color: white;

Choose a reason for hiding this comment

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

If you'd like to get rid of the margin that's applied by default in the body, you could add margin: 0; here

Comment on lines +14 to +28
.menu {
font-family: "Arial";
text-transform: uppercase;
font-size: 12pt;
display: flex;
background-color: #00311a;
color: #eeeeee;
text-align: center;
padding: 20px;
cursor: pointer;
margin-top: 10px;
margin-bottom: 10px;
flex-direction: row;
justify-content: space-between;
}

Choose a reason for hiding this comment

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

Because the heading1 has a large margin per default, the margins of the menu don't have any effect, so you could safely remove them. You could also remove text-align: center; because you've positioned the links with flexbox. Also, flex-direction: row; is set by default, so you don't have to specify it. Setting justify-content: space-around; would also look nice if you'd like to try :)

So, I'd suggest the following changes:

Suggested change
.menu {
font-family: "Arial";
text-transform: uppercase;
font-size: 12pt;
display: flex;
background-color: #00311a;
color: #eeeeee;
text-align: center;
padding: 20px;
cursor: pointer;
margin-top: 10px;
margin-bottom: 10px;
flex-direction: row;
justify-content: space-between;
}
.menu {
font-family: "Arial";
text-transform: uppercase;
font-size: 12pt;
display: flex;
background-color: #00311a;
color: #eeeeee;
padding: 20px;
cursor: pointer;
justify-content: space-around;
}

<a href="overview.html">Welcome</a>
</div>
</div>
<div class="footer">

Choose a reason for hiding this comment

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

Have you considered adding these links to the menu above? It would be more useful to scroll to the sections they link to. Right now, the section is right below so the scrolling doesn't really work.

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FoodBlog</title>
<link rel="stylesheet" type="text/css" href="style.css"

Choose a reason for hiding this comment

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

Suggested change
<link rel="stylesheet" type="text/css" href="style.css"
<link rel="stylesheet" type="text/css" href="style.css" />

margin-bottom: 10px;
flex-direction: row;
justify-content: space-between;
scroll-behavior: smooth;

Choose a reason for hiding this comment

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

If you'd like to have smooth scrolling, you'd have to set it in the html tag:

html {
     scroll-behavior: smooth;
}

text-decoration: none;
}
.welcome {
margin-top: 15pt;

Choose a reason for hiding this comment

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

pt is usually only used in print to make sure the font has exactly the right size. In web development and for your websites specifically, I'd recommend you use px for spacings such as margins or paddings and also font sizes.

Comment on lines +87 to +98
.aboutme {
margin-top: 12pt;
font-family: "Arial";
text-align: center;
color: #00311a;
}
.contact {
margin-top: 12pt;
font-family: "Arial";
text-align: center;
color: #00311a;
}

Choose a reason for hiding this comment

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

The cool thing about classes is that they're reusable. So if two elements should have exactly the same properties, you can just set the same class in the html. So here you could remove one of them and reuse the other (see other comment)

<a href="#aboutme">About Me</a>
<a href="#contact">Contact</a>
</div>
<h2 class="aboutme" id="aboutme">

Choose a reason for hiding this comment

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

Suggested change
<h2 class="aboutme" id="aboutme">
<div class="aboutme" id="aboutme">

inspriration with me.
</p>
</div>
<div class="contact" id="contact">

Choose a reason for hiding this comment

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

Because the contact class has the same properties as aboutme, you could remove contact and set here aboutme instead (maybe it would make sense to rename the class to something more general):

Suggested change
<div class="contact" id="contact">
<div class="aboutme" id="contact">

.splitview-inner {
display: flex;
flex-direction: row;
flex-wrap: wrap;

Choose a reason for hiding this comment

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

If you don't specify a width for the instructions, it'll also wrap on desktop because the two elements don't fit beside each other. If you'd only like to wrap on mobile, you could set flex-wrap in the media query below

@hgaeh
Copy link
Author

hgaeh commented Nov 1, 2023

Hi Nadia, thx for your time and all good proposal! I removed all redundant code and will keep eye on this (and not only focus on coding haha). I have one question that I will ask you on Saturday

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.

2 participants