Skip to content

Scot-Class-5/Karma-Webpage - #232

Closed
sPuoja wants to merge 2 commits into
CodeYourFuture:masterfrom
sPuoja:master
Closed

Scot-Class-5/Karma-Webpage#232
sPuoja wants to merge 2 commits into
CodeYourFuture:masterfrom
sPuoja:master

Conversation

@sPuoja

@sPuoja sPuoja commented Jun 18, 2021

Copy link
Copy Markdown

Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in HOW_TO_MARK.md in the root of this repository

Your Details

  • Your Name: Puoja Rajen
  • Your City: Glasgow
  • Your Slack Name: Puoja

Homework Details

  • Module: HTML/CSS
  • Week: 2

Notes

  • What did you find easy?

  • html codes

  • What did you find hard?

  • css and aligning the items

  • What do you still not understand?

  • flexbox

  • Any other notes?

@sPuoja sPuoja changed the title Final Page Scot-Class-5/Karma-Webpage Jun 18, 2021

@bonboh bonboh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good job @sPuoja! I've left a few comments and tips for you to read, but you don't need to do anything else 👍

Comment thread css/style.css
body {
font-family: 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 16px;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
font-size: 16px;

We should never override the browser font size setting, as this means if the user changes their browser setting font size to 24px then this webpage doesn't increase in size. Also, it's good practice to use relative units like % or rem for font-size instead of px so elements change proportionally when the user changes font size.

Comment thread css/style.css
header{
display: flex;
justify-content: space-evenly;
align-content: center;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
align-content: center;
align-items: center;

It can be confusing because of the similar words, but align-items is the one we want here to centre the elements vertically

Comment thread css/style.css
Comment on lines +36 to +43
nav ul{
display: flex;
list-style: none;
justify-content: space-evenly;
width: 50rem;
padding: 1rem 0rem;

}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
nav ul{
display: flex;
list-style: none;
justify-content: space-evenly;
width: 50rem;
padding: 1rem 0rem;
}
nav ul li {
display: inline-block;
list-style: none;
justify-content: space-evenly;
padding: 1rem;
}

Instead of setting a specific width for the menu links and using flexbox, we can turn the links into inline boxes so they are horizontal and they will have their own natural width

Comment thread css/style.css
color:rgb(197, 189, 189);
}

nav ul a:hover{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
nav ul a:hover{
nav ul a:focus,
nav ul a:hover{

When adding hover, we should also add focus so keyboard users can use the Tab key to jump to this and also get the same style

Comment thread css/style.css
color: rgb(105, 102, 102);
font-weight: 500;
}
x-special/nautilus-clipboard

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
x-special/nautilus-clipboard

Looks like this was accidentally left in!

Comment thread css/style.css
width: auto;
margin: 0 auto;
padding-top: 4rem;
box-shadow: 0px 1px 0px rgb(189, 187, 187);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
box-shadow: 0px 1px 0px rgb(189, 187, 187);
border-bottom: 1px solid rgb(189, 187, 187);

For a single line, we usually use border instead of box-shadow, so we could change it here

Comment thread css/style.css
Comment on lines +155 to +157
footer section{
display: flex;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
footer section{
display: flex;
}

The social media icons are already horizontal so we don't need to use flex here

Comment thread css/style.css
footer img{
margin: 0.5rem;
height: 1.5rem;
padding: 1rem 1rem;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
padding: 1rem 1rem;
padding: 1rem;

We usually use the shorthand so we can change it to just 1rem

Comment thread index.html
Comment on lines +29 to +30
<img src="img/first-background.jpg">
<div class="hero-text">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
<img src="img/first-background.jpg">
<div class="hero-text">

We can remove these, like I mentioned in my CSS suggestions

Comment thread index.html
<img src="img/first-background.jpg">
<div class="hero-text">
<h1>Introducing Karma</h1>
<h2>Bring WiFi with you, everywhere you go.<h2>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
<h2>Bring WiFi with you, everywhere you go.<h2>
<p>Bring WiFi with you, everywhere you go.<p>

This doesn't seem like a heading to me — there is already a heading above it — so we could change this to a p

@bonboh bonboh closed this Jun 24, 2021
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