DEV Community

anderu
anderu

Posted on • Edited on

1

Today I build 'Oldagram' page from Scrimba

Feel free to take a look on my work!
Oldagram Page
Source Code

This project is part of the task in 'Essential CSS Concept' chapter from Scrimba. So far the experience is good in this platform.

Image description
For this task I create the layout which similar to instagram. Basically have to use Javascript to go thru the list of object and then render out all post.

<div class="posting">
    <div class="account">
        <img src="images/avatar-vangogh.jpg" class="img-avatar" />
        <div class="account-info">
            <p class="account-name">Vincent van Gogh</p>
            <p class="account-location">Zudert, Netherlands</p>
        </div>
    </div>
    <img src="images/post-vangogh.jpg" alt="" class="post" />
    <div class="btn">
        <img src="images/icon-heart.png" alt="" class="btn-like button" />
        <img src="images/icon-comment.png" alt="" class="btn-comment button"/>
        <img src="images/icon-dm.png" alt="" class="btn-share button" />
    </div>
    <p class="num-like">21 likes</p>
    <div class="comment-section">
        <p class="username">vincey1853</p>
        <p class="comment">just took a few mushrooms lol</p>
    </div>
</div> 
Enter fullscreen mode Exit fullscreen mode

This is the code format that have to create and appendChild to 'main' element after loop thru the array of posts item.

Overall flexbox is use to arrange every post arrange like the 'img-avatar' and 'account-name' with 'account-location' on side.

I did add-on the hover effect on the icon button - like, comment and share but then try to do 'likes count' when press the like button and found that it take time to do as i did not setup the firebase at first so i did not proceed it as the task main propose is to learn and apply css skill.

Tomorrow will be continue on 'Essential CSS Concept' last chapter and then continue to learn 'Essential Javascript Concept'.

Eat, sleep, code, repeat!
Andrew Tan

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay