-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/ode 67 content container for blog #32
Feature/ode 67 content container for blog #32
Conversation
resources/css/responsive.css
Outdated
@@ -97,7 +97,11 @@ | |||
} | |||
} | |||
|
|||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And these :(((((
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
resources/css/index.css
Outdated
@@ -141,6 +193,7 @@ | |||
|
|||
/* Footer */ | |||
#footer { | |||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix these conflicts :(((((
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I fixed.
resources/css/index.css
Outdated
text-align: center; | ||
padding: 0vh 7vh; | ||
padding: 1vh 7vh; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should leave an empty line between elements
index.html
Outdated
</ul> | ||
<div class="posts-contain"> | ||
<div class="imgBox"> | ||
<img src="resources/images/dummyimage2.jpg" alt=""> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you not going to use "alt" attribute, remove it.
The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I fixed.
resources/css/responsive.css
Outdated
@media screen and (max-width: 1024px){ | ||
======= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as Ngoc's comment about these remaining traces of fixing conflicts.
Re-read your entire code and fix similar error as this.
resources/css/index.css
Outdated
.posts-contain { | ||
display: flex; | ||
padding: 20px; | ||
box-shadow: 2px 2px 15px 0px #11111191; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hex code is not going to work if we use Microsoft Edge to open the website.
If you want to use opacity on color, using rgba(). Find similar error and fix.
If you are not using anything related to opacity, using hex code is fine, no need to fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I fixed.
index.html
Outdated
</div> | ||
<div class="posts-content"> | ||
<p class="category"><b>Lam Dev</b></p> | ||
<a href=""><h2 class="title">Title Name</h2></a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bữa nào đẹp trời, Title Name, toàn bộ nội dung của posts-info và main-content sẽ được thay thế bằng nội dung thật nên Nguyên xem cách sử dụng dummy data thay cho việc viết code cứng trên HTML thế này nha.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok ok, @nganvn .
index.html
Outdated
<input type="submit" value="Subscribe"> | ||
</form> | ||
<div class="posts-contain"> | ||
<div class="imgBox"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
index.html
Outdated
<a href="#" class="box">Custom</a> | ||
<a href="#" class="box">Me</a> | ||
<a href="#" class="box">Contact</a> | ||
<div class="posts-contain"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Class and Id name should be noun.
In this case, consider its name be "post".
index.html
Outdated
@@ -40,44 +40,57 @@ <h1>Featured Posts</h1> | |||
Should we feature some popular posts here, make it a slider? | |||
</div> | |||
<div id="posts"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should name the id for this div "posts-container"
You really don't need to implement header, popular stories section, pagination and footer. Your part is stories (posts) container only. |
.svg for the down arrow using near "All stories": https://drive.google.com/file/d/1bZSP8vI-NWGkS11AObsEG_fhSet6wL2_/view?usp=sharing |
index.html
Outdated
<img src="image/slider_1.png" alt="sliderPostImg"> | ||
</div> | ||
<div class="sliderPostMain"> | ||
<a href="" class="sliderPostTitle">Lorem ipsum dolor sit amet consectetur</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we have nothing to redirect, use href="#". If you leave href="" like this, when click it, it refresh the whole same page for nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix similar errors in your HTML files.
index.html
Outdated
<a href="" class="postTitle">Click this card for redirect to full story</a> | ||
<div class="postDescription">Lorem ipsum dolor sit amet consectetur adipiscing elit Lorem ipsum dolor sit amet consectetur adipiscing elit. ipsum dolor sit amet consectetur adipiscing elit.</div> | ||
<div class="postInfoShare"> | ||
<p class="postInfo">bởi <a href="" style="font-weight: 700;">Pikachu</a>, 07/07/2011</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hạn chế để CSS style inline như thế này nha.
Theo mình, style thì nên để trong .css hơn là .html thế này.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cố gắng sửa mấy lỗi tương tự như thế này trong file .html luôn nghe :((
index.html
Outdated
</div> | ||
<div class="post"> | ||
<div class="postImg"> | ||
<img src="image/post_1.png" alt="postImg"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pictures send us to render don't in-shape like this. For example, heres the original picture:
, you should find a way to mask the image to the shape, like this:
My recommendation solution: https://clipping-masking.webflow.io/, read Constraint an image inside of an element using CSS object-fit (the last part)
index.html
Outdated
</body> | ||
</header> | ||
|
||
<main> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get the point of using <main> and <section> tags for? :((
Is it simpler if we use <div> and assign it with an id?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, whats <main> tag for? :((
index.html
Outdated
</div> | ||
<div class="post"> | ||
<div class="postImg"> | ||
<img src="image/post_2.png" alt="postImg"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's alt attribute for? alt means if the image loads failed, it will note the image as "postImg", right?
Don't you think it's a little vague to the user?
Any idea to change this alt to better description for the story (post) image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nguyenvl179 You haven't resolved this. If you have questions about anything, feel free to discuss in this conversation.
index.html
Outdated
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit the title for the site. It should be Ông Dev Blog.
d358cc5
to
f3417f4
Compare
index.html
Outdated
<div class="postImg"> | ||
<img src="image/post_2.png" alt="postImg"> | ||
</div> | ||
<div class="postMain"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Read carefully our naming convention for HTML, CSS vs. JavaScript files: https://www.dropbox.com/scl/fi/k4a5rv4kcgt234z6no0ih/-Coding-Convention.paper?dl=0&rlkey=ka3xx7whfsjq61scx8smcesya
In this case, name of id and class in HTML and CSS file must be write lowercase and when it have more than 1 word must separate each other by using “ - “.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix other naming convention errors in all of your files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nguyenvl179 You haven't resolved this review.
…ithub.com/OngDev/blog-fe into feature/ODE-67-content-container-for-blog
Đang trong quá trình rì viu thì hạn chế force-push nghe @nguyenvl179, nó merge commit khó đọc lại co de lắm :((( Trong lúc này, commit và push liên tục là được rồi. :D |
index.html
Outdated
<div class="postImg"> | ||
<img src="image/post_2.png" alt="postImg"> | ||
</div> | ||
<div class="postMain"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix other naming convention errors in all of your files.
css/style.css
Outdated
transform: rotate(-90deg); | ||
} | ||
|
||
@media only screen and (max-width: 757px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ohhhh. Thank you.
index.html
Outdated
<img src="image/post_2.png" alt="postImg"> | ||
</div> | ||
<div class="postMain"> | ||
<a href="#" class="postCategory">Chuyện của tôi</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using dummy data, don't write content directly in .html file like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can take example about how to create dummy data as in Youtube, Blog, Github in landing-page repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already requested changes about this problem more than 3 times, please notice this review ;;-;;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok ok. I used Javascript for showing data on website. You can check again.
index.html
Outdated
<div class="postImg"> | ||
<img src="image/post_2.png" alt="postImg"> | ||
</div> | ||
<div class="postMain"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nguyenvl179 You haven't resolved this review.
index.html
Outdated
</div> | ||
<div class="post"> | ||
<div class="postImg"> | ||
<img src="image/post_2.png" alt="postImg"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nguyenvl179 You haven't resolved this. If you have questions about anything, feel free to discuss in this conversation.
index.html
Outdated
<li><a href="">...</a></li> | ||
<li><a href="">5</a></li> | ||
<li><a href="">6</a></li> | ||
<li><a href="#">1</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pagination part is in different task, consider split it to another branch.
index.html
Outdated
<img src="image/post_2.png" alt="postImg"> | ||
</div> | ||
<div class="postMain"> | ||
<a href="#" class="postCategory">Chuyện của tôi</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already requested changes about this problem more than 3 times, please notice this review ;;-;;
index.html
Outdated
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Ông Dev Blog.</title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the dot (".")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok ok. I fixed. You can check again.
Còn ít rì quét nữa là xong tát rồi, cố lên nghe Nguyên :(( |
index.html
Outdated
<section class="pagination"> | ||
<div class="container paginateContain"> | ||
<a href="#" class="arrowPaginate arrowPrev"><i class="fa fa-chevron-left"></i></a> | ||
<ul class="paginate"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name of class/id should be noun. "Paginate" is a verb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I deleted it. Because it is a part of new task.
css/style.css
Outdated
transform: rotate(-90deg); | ||
} | ||
|
||
@media only screen and (max-width: 767px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok ok, I fixed.
css/style.css
Outdated
position: absolute; | ||
left: 0; | ||
top: 0; | ||
background: #6A6A6A; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In our coding convention, hex code for color using lower-case characters and numbers. Fix this to #6a6a6a.
Find and edit similar errors in your files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok ok. I fixed.
</head> | ||
<body> | ||
<main> | ||
<section class="postSection"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name convention violated. Its name should be post-section.
Plase fix similar errors as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok ok. I will check and fix later.
index.html
Outdated
</body> | ||
</header> | ||
|
||
<main> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, whats <main> tag for? :((
Content container review.