#1 added job card

Abierta
sushma desea fusionar 2 commits de review en master
sushma comentado hace 4 años
Aún no existe contenido.
sushma solicitud de revisión de adwaith hace 4 años
adwaith cambios solicitados hace 4 años
adwaith dejó un comentario

Hey! Have made several comments, please resolve them and commit the next set of improvements.

css/style.css
@@ -4,3 +4,3 @@

@font-face {
font-family: Lato;
font-family: oswald;
adwaith comentado hace 4 años

Make the font family “Oswald”. Lowercasing, and camel/snake casing gives an impression of variables. This isn’t a variable, this is a text fragment, treat it as such

Make the font family "Oswald". Lowercasing, and camel/snake casing gives an impression of variables. This isn’t a variable, this is a text fragment, treat it as such
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -7,2 +6,3 @@
font-family: oswald;
font-weight: 500;
src: url('../fonts/Lato/Lato-Regular.ttf');
src: url('../fonts/Oswald/static/Oswald-Regular.ttf');
adwaith comentado hace 4 años

Weird folder structure - why would you put the TTF file inside a static folder?

Weird folder structure - why would you put the TTF file inside a static folder?
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -14,3 +15,3 @@

body {
font-family: Lato;
font-family: "oswald";
adwaith comentado hace 4 años

Inconsistent quotation marks. Either use single quotes or double quotes throughout your CSS, HTML, or any language.

Inconsistent quotation marks. Either use single quotes or double quotes throughout your CSS, HTML, or any language.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -17,3 +18,4 @@
font-weight: 700;
}

header h2{
adwaith comentado hace 4 años

Too generic - there’s no guarantee that there’s only one header in this page. (In fact, it won’t be just one header; the card has a header too).

Use a more specific selector, such as header#page-title h2 instead.

Too generic - there's no guarantee that there's only one header in this page. (In fact, it won't be just one header; the card has a header too). Use a more specific selector, such as `header#page-title h2` instead.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -18,2 +19,4 @@
}

header h2{
font-size: 2rem;
adwaith comentado hace 4 años

Good idea, stick with rem units. They’re better than px.

Good idea, stick with rem units. They're better than px.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -20,0 +22,4 @@
font-size: 2rem;
font-family: "Oswald", sans-serif;
font-weight: 200;
color:#c8c8c8;
adwaith comentado hace 4 años

Space after the ":" missing

Space after the `":"` missing
sushma ha marcado esta conversación como resuelta
@@ -20,0 +31,4 @@
color: #959595;
text-align: center;
line-height: 2.3;
padding: 0 5%;
adwaith comentado hace 4 años

Percentage values for padding can be confusing - especially for the vertical ones. The vertical padding will change with the width of the element, that doesn’t make much sense. I’d stick to padding in pixels here, it doesn’t need to scale.

Percentage values for padding can be confusing - especially for the vertical ones. The vertical padding will change with the width of the element, that doesn't make much sense. I'd stick to padding in pixels here, it doesn't need to scale.
sushma comentado hace 4 años

Not sure, why it’s confusing and how does vertical padding affect width? It’s the height that get’s affected by vertical padding right?

Also I was searching about problems with precentage padding and bumped into this: https://css-tricks.com/oh-hey-padding-percentage-is-based-on-the-parent-elements-width/

This got me confused even more.

Not sure, why it's confusing and how does vertical padding affect width? It's the height that get's affected by vertical padding right? Also I was searching about problems with precentage padding and bumped into this: https://css-tricks.com/oh-hey-padding-percentage-is-based-on-the-parent-elements-width/ This got me confused even more.
css/style.css
@@ -20,0 +33,4 @@
line-height: 2.3;
padding: 0 5%;
font-size: 1rem;
font-family: "Poppins",sans-serif;
adwaith comentado hace 4 años

Space between commas, please. Almost all linters in all languages recommend this.

Space between commas, please. Almost all linters in all languages recommend this.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -66,1 +88,3 @@
font-size: 13px;
font-size: 0.75rem;
font-weight: 100;
font-family: "poppins";
adwaith comentado hace 4 años

Poppins hasn’t been defined - there’s no TTF file it’s linked to. Plus, lowercase and inconsistent quotation marks

Poppins hasn't been defined - there's no TTF file it's linked to. Plus, lowercase and inconsistent quotation marks
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +94,4 @@
background-color : #2cc38c;
}

.card{
adwaith comentado hace 4 años

Could have given a better name. Especially if there is more than one kind of card in the page. Use this rule of thumb - the class names should make sense even if you don’t have any concept of CSS. Here I’d have gone with .job-description-card

Also, space after the CSS selector, before the flower bracket. This is a running issue everywhere, I won’t point it out for the other selectors - I assume you can fix them all with this reminder.

Could have given a better name. Especially if there is more than one kind of card in the page. Use this rule of thumb - the class names should make sense even if you don't have any concept of CSS. Here I'd have gone with `.job-description-card` Also, space after the CSS selector, before the flower bracket. This is a running issue everywhere, I won't point it out for the other selectors - I assume you can fix them all with this reminder.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +95,4 @@
}

.card{
width: 350px;
adwaith comentado hace 4 años

This is something you want to scale with the screen size. Should be dealt with percentage width.

This is something you want to scale with the screen size. Should be dealt with percentage width.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +97,4 @@
.card{
width: 350px;
border-radius: 20px;
height: 320px;
adwaith comentado hace 4 años

There are very few situations when you’ll need to specify the height of an element containing text. This isn’t one of them. Keep the height variable. Otherwise this won’t be responsive AT ALL.

There are very few situations when you'll need to specify the height of an element containing text. This isn't one of them. Keep the height variable. Otherwise this won't be responsive AT ALL.
sushma comentado hace 4 años

I found mulitple ways to do this.

  1. Set height to auto/100%
  2. Set min-height to 100%
  3. Set parent element to display:block and overflow:auto
  4. setting parent element postion: relative, height: auto and min-height: 100% and I think none of these worked for me.

Also want to understand how setting parent element’s min height and height makes child height variable?

I found mulitple ways to do this. 1) Set height to auto/100% 2) Set min-height to 100% 3) Set parent element to display:block and overflow:auto 4) setting parent element postion: relative, height: auto and min-height: 100% and I think none of these worked for me. Also want to understand how setting parent element's min height and height makes child height variable?
css/style.css
@@ -71,0 +104,4 @@
box-shadow: 0 0 0.5rem #e1e1e1;
overflow: hidden;

padding: 28px 20px 28px 20px;
adwaith comentado hace 4 años

Can be converted to shorthand: padding: 28px 20px;

Can be converted to shorthand: `padding: 28px 20px;`
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +106,4 @@

padding: 28px 20px 28px 20px;
margin-left: auto;
margin-right: auto;
adwaith comentado hace 4 años

Can also be converted to shorthand: margin: 40px auto 0;

Can also be converted to shorthand: `margin: 40px auto 0;`
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +108,4 @@
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
adwaith comentado hace 4 años

Doesn’t make sense to specify the left and right properties for relative positioning. What are you trying to achieve with this?

Doesn't make sense to specify the `left` and `right` properties for relative positioning. What are you trying to achieve with this?
sushma comentado hace 4 años

yeah that’s right. I’m not sure why I added that. I was probably trying to justify it in the center.

yeah that's right. I'm not sure why I added that. I was probably trying to justify it in the center.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +109,4 @@
margin-right: auto;
left: 0;
right: 0;
margin-top:40px;
adwaith comentado hace 4 años

Group similar properties together. This should have been with margin-left and margin-right (ideally in a shorthand)

Group similar properties together. This should have been with `margin-left` and `margin-right` (ideally in a shorthand)
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +113,4 @@
text-align: center;
}

.card-header-grid{
adwaith comentado hace 4 años

Absolute no-no - do not specify stylistic properties in a class name! Your HTML shouldn’t care about style at all, it should only care about structure. This should have been a descendant of the class name above. I would have added these rules for .job-description-card header. Don’t rely too much on giving a class name to every element - some of them don’t need it.

Absolute no-no - do not specify stylistic properties in a class name! Your HTML shouldn't care about style at all, it should only care about structure. This should have been a descendant of the class name above. I would have added these rules for `.job-description-card header`. Don't rely too much on giving a class name to every element - some of them don't need it.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +115,4 @@

.card-header-grid{
display: grid;
grid-template-columns: 0.5fr auto 0.5fr;
adwaith comentado hace 4 años

This is the opposite of what you want - You know exactly how much space you want the designation image and share icon to have, and you want the job description title and subtitle to fill up the remaining space. That’s handled by 50px 1fr 30px (or it’s rem equivalents, if you want to use rem units)

This is the opposite of what you want - You know *exactly* how much space you want the designation image and share icon to have, and you want the job description title and subtitle to fill up the remaining space. That's handled by `50px 1fr 30px` (or it's rem equivalents, if you want to use rem units)
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +116,4 @@
.card-header-grid{
display: grid;
grid-template-columns: 0.5fr auto 0.5fr;
grid-template-rows: 50% 50%;
adwaith comentado hace 4 años

There’s no need to limit the no. of rows by defining grid-template-rows. Plus, you don’t even have two rows

There's no need to limit the no. of rows by defining `grid-template-rows`. Plus, you don't even have two rows
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +117,4 @@
display: grid;
grid-template-columns: 0.5fr auto 0.5fr;
grid-template-rows: 50% 50%;
place-items: center center;
adwaith comentado hace 4 años

You have no room for justify-items to even apply, if you’re using the fr units to populate the grid-template columns and it adds up to 1. All the free space has been distributed to your children, so there’s no room for alignment at all, it’ll be jam-packed. This should have been align-items: center at best.

Since it’s only the share icon that’s vertically centered, though, even that isn’t a good idea.

You have no room for `justify-items` to even apply, if you're using the fr units to populate the `grid-template columns` and it adds up to 1. All the free space has been distributed to your children, so there's no room for alignment at all, it'll be jam-packed. This should have been `align-items: center` *at best*. Since it's only the share icon that's vertically centered, though, even that isn't a good idea.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +118,4 @@
grid-template-columns: 0.5fr auto 0.5fr;
grid-template-rows: 50% 50%;
place-items: center center;
padding-bottom: 10px;
adwaith comentado hace 4 años

You’re using this to put space between the header and the separator. Use margin-bottom for this. But in this case, though, it’s better to remove this entirely. It’s the separator’s job to separate elements; add the margins to the separator.

You're using this to put space between the header and the separator. Use `margin-bottom` for this. But in this case, though, it's better to remove this entirely. It's the separator's job to separate elements; add the margins to the separator.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +121,4 @@
padding-bottom: 10px;
}

.grid-item1{
adwaith comentado hace 4 años

Again, no - this makes your HTML unreadable. If you want the first grid item, you should’ve used .job-description-card header > :first-child instead.

But this doesn’t even warrant that! Just give it a proper class name! .job-designation-avatar

Again, no - this makes your HTML unreadable. If you want the first grid item, you should've used `.job-description-card header > :first-child` instead. But this doesn't even warrant that! Just give it a proper class name! `.job-designation-avatar`
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +123,4 @@

.grid-item1{
grid-column: 1/1;
grid-row: 1/2;
adwaith comentado hace 4 años

Defining rows and columns is completely useless - the children of a grid element flow naturally, left to right, top to bottom. This is only used when you’re doing convoluted stuff with grids. Remove entirely.

Defining rows and columns is completely useless - the children of a grid element flow naturally, left to right, top to bottom. This is only used when you're doing convoluted stuff with grids. Remove entirely.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +124,4 @@
.grid-item1{
grid-column: 1/1;
grid-row: 1/2;
align-self: baseline;
adwaith comentado hace 4 años

Better to align the share icon to the center, than this to the baseline.

Better to align the share icon to the center, than this to the baseline.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +128,4 @@
background: #F2F2F2;

border-radius: 50%;
width: 50px;
adwaith comentado hace 4 años

Specifying a width to the child of a grid element is just weird. Just specify the grid to make this column 50px wide.

Specifying a width to the child of a grid element is just weird. Just specify the grid to make this column 50px wide.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +130,4 @@
border-radius: 50%;
width: 50px;
height: 50px;
padding: 8px 4px 6px 8px;
adwaith comentado hace 4 años

You’re specifying such weird padding because of the image being asymmetrical - not a bad choice, but it’s better to specify this in the image element, since it’s the image’s problem. Especially because we don’t know if every job description will have the same asymmetry - this specific set of “magic numbers” will only apply to this one job description card.

You're specifying such weird padding because of the image being asymmetrical - not a bad choice, but it's better to specify this in the image element, since it's the image's problem. Especially because we don't know if every job description will have the same asymmetry - this specific set of "magic numbers" will *only* apply to this one job description card.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +134,4 @@
}

.grid-item1 > img{
width: 30px;
adwaith comentado hace 4 años

Better to make it a percentage of the parent. Try to make the design as responsive as possible. Relative units first - if that doesn’t work, then try absolute units.

Better to make it a percentage of the parent. Try to make the design as responsive as possible. Relative units first - if that doesn't work, then try absolute units.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +137,4 @@
width: 30px;
}

.grid-item2{
adwaith comentado hace 4 años

Bad name again.

Bad name again.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +140,4 @@
.grid-item2{
color: #959595;
grid-column: 2/3;
grid-row: 1/2;
adwaith comentado hace 4 años

Again, useless properties unless you’re doing something fancy and non-standard with grids

Again, useless properties unless you're doing something fancy and non-standard with grids
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +141,4 @@
color: #959595;
grid-column: 2/3;
grid-row: 1/2;
padding: 10px 4px 0px 8px;
adwaith comentado hace 4 años

You’re trying to manage the gap between grid children with your padding here. That’s an anti-pattern. Use the grid-gap property. Padding should only be used if you want to put space between your border and content.

Not necessarily a CSS border; I’m speaking conceptually. If you want to create space between two things, use margin (or in cases like this, grid-gap). If you want to create space within something, use padding.

You're trying to manage the gap between grid children with your padding here. That's an anti-pattern. Use the `grid-gap` property. Padding should only be used if you want to put space between your border and content. Not necessarily a CSS border; I'm speaking conceptually. If you want to create space *between* two things, use margin (or in cases like this, grid-gap). If you want to create space *within* something, use padding.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +144,4 @@
padding: 10px 4px 0px 8px;
}

.grid-item2 > h2{
adwaith comentado hace 4 años

Usage of the direct descendant isn’t a bad idea. Use it with a better name next time, though.

Usage of the direct descendant isn't a bad idea. Use it with a better name next time, though.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +145,4 @@
}

.grid-item2 > h2{
margin:auto;
adwaith comentado hace 4 años

Not sure what you’re trying to accomplish with this - I thought this should just have a padding bottom, and use either a grid-gap, or padding within the grid itself to create space around the other sides of the job designation heading.

Not sure what you're trying to accomplish with this - I thought this should just have a padding bottom, and use either a grid-gap, or padding within the grid itself to create space around the other sides of the job designation heading.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +152,4 @@
}

.grid-item2 > p{
margin:auto;
adwaith comentado hace 4 años

Space after colon!

Space after colon!
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +157,4 @@
text-transform: uppercase;
font-weight: normal;
font-size: 0.75rem;
letter-spacing: 0.5px;
adwaith comentado hace 4 años

Letter spacing in px, while haveing a font size in rem doesn’t mix well. Keep it consistent. rem is a better idea.

Letter spacing in px, while haveing a font size in rem doesn't mix well. Keep it consistent. rem is a better idea.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +160,4 @@
letter-spacing: 0.5px;
padding-top: 10px;
font-family: "poppins";
color: #C7C7C7;
adwaith comentado hace 4 años

Consistent, please. Don’t use lowercase in some hex codes, and uppercase in others. In fact, don’t use hex codes at all, they don’t give any hint to what the color should look like. Use hsl() instead - that intuitively gives an idea of what color to expect just by looking at the numbers.

Consistent, please. Don't use lowercase in some hex codes, and uppercase in others. In fact, don't use hex codes at all, they don't give any hint to what the color should look like. Use `hsl()` instead - that intuitively gives an idea of what color to expect just by looking at the numbers.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +164,4 @@
}


.grid-item3{
adwaith comentado hace 4 años

This whole ruleset can be removed, all it’s properties are redundant.

This whole ruleset can be removed, all it's properties are redundant.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +177,4 @@
.separator{
display: block;
height: 1px;
border-top:2px solid #EFEFEF;
adwaith comentado hace 4 años

A bit misleading - there’s nothing special about the top border. You’ve given it a height anywa, give it a background color of hsl(0deg, 0%, 95%) or something

You can also have margins on the separator

A bit misleading - there's nothing special about the top border. You've given it a height anywa, give it a background color of `hsl(0deg, 0%, 95%)` or something You can also have margins on the separator
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +180,4 @@
border-top:2px solid #EFEFEF;
}

.card-body-grid{
adwaith comentado hace 4 años

Get rid of this entire ruleset. This shouldn’t be a grid at all. There are multiple line items, each with an image and a text. Style the line item - make it a grid or a flexbox. (with fixed width image and a free width text)

Get rid of this entire ruleset. This shouldn't be a grid at all. There are multiple line items, each with an image and a text. Style the line item - make it a grid or a flexbox. (with fixed width image and a free width text)
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +182,4 @@

.card-body-grid{
display: grid;
grid-template-rows: repeat(4,25px);
adwaith comentado hace 4 años

Not only do you have to change this every time you add a line item to a card, you’re also guaranteeing that each card will have the same number of line items. Stupendously bad idea. Props for using repeat(), though.

Not only do you have to change this every time you add a line item to a card, you're also guaranteeing that each card will have the same number of line items. Stupendously bad idea. Props for using `repeat()`, though.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +183,4 @@
.card-body-grid{
display: grid;
grid-template-rows: repeat(4,25px);
grid-template-columns: 20% auto;
adwaith comentado hace 4 años

Better. Fixed width image, and free width text. But it’s better to use grid terminology. grid-template-columns: 0.2fr 0.8fr should be fine. But don’t use this for the overall grid, use this (or something similar in flex) to each line item.

Better. Fixed width image, and free width text. But it's better to use grid terminology. `grid-template-columns: 0.2fr 0.8fr` should be fine. But don't use this for the overall grid, use this (or something similar in flex) to each line item.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +186,4 @@
grid-template-columns: 20% auto;
place-items: center;
grid-row-gap: 1rem;
padding-top: 18px;
adwaith comentado hace 4 años

Redundant if you provide margins on the separator.

Redundant if you provide margins on the separator.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +189,4 @@
padding-top: 18px;
}

.card-body-grid-item-1{
adwaith comentado hace 4 años

Everything from this point...

Everything from this point...
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +244,4 @@
justify-self: stretch;
padding: 40px 8px 0px 20px;
}
adwaith comentado hace 4 años

... upto this point needs to be re-written.

If you start repeating your code, it’s a sign that you’re doing something wrong. Rule of thumb - code can be repeated twice, but if you’re repeating the same code thrice, you’re doing something wrong.

Define a .job-description-bullet-point class which is a grid that has an image and text. Style those accordingly, and re-use those styles by applying the same class to multiple elements. You’re actually using these classes as though they’re IDs.

... upto this point needs to be re-written. If you start repeating your code, it's a sign that you're doing something wrong. Rule of thumb - code can be repeated twice, but if you're repeating the same code thrice, you're doing something wrong. Define a `.job-description-bullet-point` class which is a grid that has an image and text. Style those accordingly, and re-use those styles by applying the same class to multiple elements. You're actually using these classes as though they're IDs.
sushma ha marcado esta conversación como resuelta
css/style.css
@@ -71,0 +249,4 @@
.green-outline-button{
border-radius: 500px;
border:solid #2cc38c;
border-width: thin;
adwaith comentado hace 4 años

Unnecessarily convoluted. Just replace with border: 1px solid hsl(<some-value>);

Unnecessarily convoluted. Just replace with `border: 1px solid hsl(<some-value>);`
sushma ha marcado esta conversación como resuelta
image/Developer.svg
@@ -0,0 +1,23 @@
<svg id="Developer" xmlns="http://www.w3.org/2000/svg" width="26.562" height="26.585" viewBox="0 0 26.562 26.585">
adwaith comentado hace 4 años

SVGs usually have an ID. Get rid of it and replace it with a class name. Otherwise there’ll be trouble when you re-use the same SVG multiple times in the DOM. (Apply for all included SVGs)

SVGs usually have an ID. Get rid of it and replace it with a class name. Otherwise there'll be trouble when you re-use the same SVG multiple times in the DOM. (Apply for all included SVGs)
sushma ha marcado esta conversación como resuelta
image/Developer.svg
@@ -0,0 +1,23 @@
<svg id="Developer" xmlns="http://www.w3.org/2000/svg" width="26.562" height="26.585" viewBox="0 0 26.562 26.585">
<path id="Path_4" data-name="Path 4" d="M270.939,38.414H260.875a1.516,1.516,0,0,0-1.516,1.516v5.693a1.515,1.515,0,0,0,1.516,1.516h3.58l-.579,2.335a.331.331,0,0,0,.523.343l3.486-2.678h3.053a1.516,1.516,0,0,0,1.516-1.516V39.93A1.516,1.516,0,0,0,270.939,38.414Zm0,0" transform="translate(-245.892 -36.419)" fill="#88dbfd"/>
adwaith comentado hace 4 años

Same goes for these paths. Just get rid of the IDs. (Apply for all included SVGs)

Same goes for these paths. Just get rid of the IDs. (Apply for all included SVGs)
sushma ha marcado esta conversación como resuelta
index.html
@@ -15,14 +15,165 @@

<div class="foreground">
adwaith comentado hace 4 años

Better to make this a section, or even better, a <main> element

Better to make this a section, or even better, a `<main>` element
sushma ha marcado esta conversación como resuelta
index.html
@@ -24,2 +24,4 @@
<section class="tab">Internship</section>
</div>

<div class="card">
adwaith comentado hace 4 años

Use <section> when you think it’s something structural that the end user will think of as a separate element. Use <div> when you’re creating an element purely for style reasons, nothing to do with structure. This is somewhat subjective, but the idea is that <div> has less meaning than <section>

In this case, though, an <article> tag might be a better fit

Use `<section>` when you think it's something structural that the end user will think of as a separate element. Use `<div>` when you're creating an element purely for style reasons, nothing to do with structure. This is somewhat subjective, but the idea is that `<div>` has less meaning than `<section>` In this case, though, an `<article>` tag might be a better fit
sushma ha marcado esta conversación como resuelta
index.html
@@ -25,1 +25,4 @@
</div>

<div class="card">
<div class="card-header-grid">
adwaith comentado hace 4 años

I’ve harped enough about the names in the CSS section, I hope - I won’t mention it beyond this point, recall said comments when you see a class name.

I've harped enough about the names in the CSS section, I hope - I won't mention it beyond this point, recall said comments when you see a class name.
sushma ha marcado esta conversación como resuelta
index.html
@@ -26,0 +27,4 @@
<div class="card">
<div class="card-header-grid">
<div class="grid-item1">
<img srcset = "./image/Developer.svg 480w,
adwaith comentado hace 4 años

It’s a good idea to use srcset when you have multiple images, but there’s really no point to it when you have a single image. Especially when you’re using a vector based format like SVG rather than a raster one, you can just use the src attribute.

It's a good idea to use srcset when you have multiple images, but there's really no point to it when you have a single image. Especially when you're using a vector based format like SVG rather than a raster one, you can just use the `src` attribute.
adwaith comentado hace 4 años

It’s a good idea to use srcset when you have multiple images, but there’s really no point to it when you have a single image. Especially when you’re using a vector based format like SVG rather than a raster one, you can just use the src attribute.

It's a good idea to use srcset when you have multiple images, but there's really no point to it when you have a single image. Especially when you're using a vector based format like SVG rather than a raster one, you can just use the `src` attribute.
sushma ha marcado esta conversación como resuelta
index.html
@@ -26,0 +31,4 @@
./image/Developer.svg 800w"
sizes="(max-width : 750px) 480px,800px"
src = "./image/Developer.svg"
alt = "A perosn avatar"
adwaith comentado hace 4 años

Misspelling. Plus, You aren’t trying to describe the image - you’re trying to describe it’s meaning. In this case it should’ve been “Developer”

Misspelling. Plus, You aren't trying to describe the image - you're trying to describe it's *meaning*. In this case it should've been "Developer"
sushma ha marcado esta conversación como resuelta
index.html
@@ -26,0 +36,4 @@
</div>
<div class="grid-item2">
<h2>Software Developer</h2>
<p>developer</p>
adwaith comentado hace 4 años

Not sure if a <p> is justified here - this is a sub-heading. Use <h4> or below instead.

Not sure if a `<p>` is justified here - this is a sub-heading. Use `<h4>` or below instead.
sushma ha marcado esta conversación como resuelta
index.html
@@ -26,0 +40,4 @@
</div>
<div class="grid-item3">
<img
srcset="./image/share.svg,
adwaith comentado hace 4 años

Same comment as above - srcset is mostly wasted on SVGs which are independent of display size

Same comment as above - srcset is mostly wasted on SVGs which are independent of display size
sushma ha marcado esta conversación como resuelta
index.html
@@ -26,0 +44,4 @@
./image/share.svg 0.5x,
./image/share.svg 1x"
src="./image/share.svg"
alt = "share icon"
adwaith comentado hace 4 años

No need to specify things like “image” or “icon” in the alt tag of an <img> element. We know it’s an image, just describing the meaning behind it is fine. Remember, this is used when images don’t load, or by screen readers for the blind, etc. They won’t benefit from knowing it was an icon.

No need to specify things like "image" or "icon" in the alt tag of an `<img>` element. We know it's an image, just describing the meaning behind it is fine. Remember, this is used when images don't load, or by screen readers for the blind, etc. They won't benefit from knowing it was an icon.
sushma ha marcado esta conversación como resuelta
index.html
@@ -26,0 +49,4 @@
</div>
</div>
<div class="separator"></div>
<div class="card-body-grid">
adwaith comentado hace 4 años

All the problems with this layout is covered in the CSS file review. Please go through it and change all this below accordingly.

All the problems with this layout is covered in the CSS file review. Please go through it and change all this below accordingly.
sushma ha marcado esta conversación como resuelta

Revisores

adwaith cambios solicitados hace 4 años
Este Pull Request puede ser fusionado automáticamente.
No está autorizado para fusionar de este pull request.
Inicie sesión para unirse a esta conversación.
No hay revisores
Sin etiquetas
Sin Milestone
No asignados
2 participantes
Notificaciones
Fecha de vencimiento

Sin fecha de vencimiento.

Dependencias

Este pull request actualmente no tiene ninguna dependencia.

Cargando…
Aún no existe contenido.