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

Feature/ode 67 content container for blog #32

Closed

Conversation

nguyenvl179
Copy link
Contributor

Content container review.

@nguyenvl179 nguyenvl179 added the enhancement New feature or request label Jun 13, 2020
@nguyenvl179 nguyenvl179 self-assigned this Jun 13, 2020
@ngvuthanhnhan ngvuthanhnhan linked an issue Jun 17, 2020 that may be closed by this pull request
2 tasks
@ngvuthanhnhan ngvuthanhnhan changed the base branch from master to integration June 17, 2020 14:50
@@ -97,7 +97,11 @@
}
}

<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

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

And these :(((((

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok

@@ -141,6 +193,7 @@

/* Footer */
#footer {
<<<<<<< HEAD
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix these conflicts :(((((

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I fixed.

text-align: center;
padding: 0vh 7vh;
padding: 1vh 7vh;
}
Copy link
Contributor

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

@ngvuthanhnhan
Copy link
Contributor

Screen Shot 2020-06-26 at 9 00 06 PM

When using phone to read this blog, the preview image is this smol? Leaving a blank space in the left like this I think is not a good idea. Any idea to improve this?

index.html Outdated
</ul>
<div class="posts-contain">
<div class="imgBox">
<img src="resources/images/dummyimage2.jpg" alt="">
Copy link
Contributor

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.

FYI: https://www.w3schools.com/tags/att_img_alt.asp

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I fixed.

@media screen and (max-width: 1024px){
=======
Copy link
Contributor

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.

.posts-contain {
display: flex;
padding: 20px;
box-shadow: 2px 2px 15px 0px #11111191;
Copy link
Contributor

@ngvuthanhnhan ngvuthanhnhan Jun 26, 2020

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.

FYI: https://caniuse.com/#search=%23

Copy link
Contributor Author

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>
Copy link
Contributor

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.

Copy link
Contributor Author

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">
Copy link
Contributor

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">
Copy link
Contributor

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">
Copy link
Contributor

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"

@ngvuthanhnhan
Copy link
Contributor

You really don't need to implement header, popular stories section, pagination and footer. Your part is stories (posts) container only.
Please read carefully issues and their description in blog-fe repo.

@ngvuthanhnhan
Copy link
Contributor

ngvuthanhnhan commented Aug 28, 2020

You are missing Hover properties for each post while hovering.
Its drop shadow should be: box-shadow: 0px 2px 30px rgba(0, 0, 0, 0.03) and have background-color of #FEFEFE.
The result should be like this:
Screen Shot 2020-08-28 at 10 22 15 PM

Remember do not need to implement hover in mobile.

@ngvuthanhnhan
Copy link
Contributor

ngvuthanhnhan commented Aug 28, 2020

.svg for the down arrow using near "All stories": https://drive.google.com/file/d/1bZSP8vI-NWGkS11AObsEG_fhSet6wL2_/view?usp=sharing
You can save it in sub-folder icon under image, right in the project tree, then attach it in HTML file in <img> tag like other image files.

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>
Copy link
Contributor

@ngvuthanhnhan ngvuthanhnhan Aug 28, 2020

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.

Copy link
Contributor

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>
Copy link
Contributor

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.

Copy link
Contributor

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">
Copy link
Contributor

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:
image, you should find a way to mask the image to the shape, like this:
Screen Shot 2020-08-28 at 10 50 34 PM

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>
Copy link
Contributor

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?

Copy link
Contributor

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">
Copy link
Contributor

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?

Copy link
Contributor

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>
Copy link
Contributor

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.

@ngvuthanhnhan
Copy link
Contributor

ngvuthanhnhan commented Aug 28, 2020

The thickness I am using in the description for each blog is 100, I see you are using 300. Consider to change to 100, make it a bit more elegant. :(((

300 in yours:
Screen Shot 2020-08-28 at 11 17 13 PM
And 100 in mine:
Screen Shot 2020-08-28 at 11 21 13 PM

Also, the share button should have 65% opacity on normal, and 100% when hovering.

@ngvuthanhnhan
Copy link
Contributor

ngvuthanhnhan commented Aug 28, 2020

Screen Shot 2020-08-28 at 11 23 39 PM

Remove the line in the left on mobile.
Decrease the thickness of "All stories" to 100, letter-spacing about 0.15 ~ 0.25rem is enough.
Decrease spacing between end of one post and begin of the next post.

@ngvuthanhnhan
Copy link
Contributor

ngvuthanhnhan commented Aug 28, 2020

Screen Shot 2020-08-28 at 11 32 10 PM

Notice on my design of mobile, the preview image of one post is square, not rectangle.

@nguyenvl179 nguyenvl179 force-pushed the feature/ODE-67-content-container-for-blog branch from d358cc5 to f3417f4 Compare August 28, 2020 16:41
index.html Outdated
<div class="postImg">
<img src="image/post_2.png" alt="postImg">
</div>
<div class="postMain">
Copy link
Contributor

@ngvuthanhnhan ngvuthanhnhan Aug 28, 2020

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 “ - “.

Copy link
Contributor

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.

Copy link
Contributor

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.

@ngvuthanhnhan
Copy link
Contributor

ngvuthanhnhan commented Aug 28, 2020

Đ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 :(((
Bao giờ xong ưng force-push mấy cũng được :(((

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">
Copy link
Contributor

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) {
Copy link
Contributor

@ngvuthanhnhan ngvuthanhnhan Aug 28, 2020

Choose a reason for hiding this comment

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

Screen Shot 2020-08-28 at 11 52 16 PM

Take Bootstrap responsive size for reference. Yours seems a little weird. :((

FYI: https://getbootstrap.com/docs/4.0/layout/grid/

Copy link
Contributor Author

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>
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Contributor

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 ;;-;;

Copy link
Contributor Author

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">
Copy link
Contributor

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">
Copy link
Contributor

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>
Copy link
Contributor

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>
Copy link
Contributor

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>
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the dot (".")

Copy link
Contributor Author

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.

@ngvuthanhnhan
Copy link
Contributor

image
*Sample of story on hovered only :((
The story only have box-shadow only when hovered, you make it all has box-shadow.
When nothing happens, the stories and site background have the same color, Share button have opacity of 65%.

@ngvuthanhnhan
Copy link
Contributor

Screen Shot 2020-09-09 at 11 08 26 PM

Remove color-background and box-shadow on mobile.

@ngvuthanhnhan
Copy link
Contributor

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">
Copy link
Contributor

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.

Copy link
Contributor Author

@nguyenvl179 nguyenvl179 Sep 28, 2020

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) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Screen Shot 2020-09-09 at 11 16 40 PM

Consider reduce size of your mobile responsive. This is what happens when any phone has any resolution of width = 753px, you only see a part of the picture.

I think 576px is enough. Feel free to discuss in this conversation. ;;-;;

Copy link
Contributor Author

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;
Copy link
Contributor

@ngvuthanhnhan ngvuthanhnhan Sep 9, 2020

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.

Copy link
Contributor Author

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">
Copy link
Contributor

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.

Copy link
Contributor Author

@nguyenvl179 nguyenvl179 Oct 19, 2020

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>
Copy link
Contributor

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? :((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content container for Blog
5 participants