Web Template - Responsive Timeline Using VueJS

in #utopian-io6 years ago (edited)

Untitled 002.png

At this moment, I will share my recent timeline page as Single Page Application (SPA) Template. You will get many advantages when using this template, because of its capability that can be adapted to the screen size. And can be more flexible, because it's built using VueJS. Thus, there is a clear separation between template, style and data.
OK. Let us go to explore it!

Murez Nasution

Attention!
To be able using this template, you need several studies of the components related to perspective of VueJS. You can visit the official website directly here.

Prototype

As in general, this template consists of three main divisions, i.e.:

  1. Header, located at the most top of the document. It consists of navigation as icons link to some features or menu.
  2. Main, located on the main part of the document. It contains of three main sub-divisions, i.e.
    • Profile, located on the left side of the Main division. It shows attributes of the current user. Such as picture, name and others.
    • Publisher, the scrolled-vertical viewport. Just consists of two main divisions,
      • Submitter, located of the most top of the current division. It contains of a text input and a submit button to publish new post.
      • Posts, flows down as much as posts of current user. Each of post contains three main divisions, i.e.: header, article and responses (like and comments).
    • Extra, located on the right side of the Main division. It contains all of post of the users have created, which each note just consists of title and content.
  3. Footer, located at the most bottom of the document. It appears as additional information. For next time, the implementation varies according to your wishes.

As seen below,

Untitled 003.png


Requirements

Before rock 'n roll, please, make sure to do the following steps:

  1. Install NodeJS
  2. Install vue-cli - npm install -g vue-cli
  3. Install Text Editor (Sublime, or any others)
  4. Download template in my GitHub.

Rock 'n Roll

Here is a general description of the implementation and the results

Header

All of icon resources is here http://fontawesome.io/icons/.
Code

<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css'>
<div class='header fs-25'>
    <i class='fa fa-home' title='Home'></i>
    <i class='fa fa-gear' title='Settings'></i>
    <i class='fa fa-bell' title='Notification'></i>
    <i class='fa fa-envelope' title='Messages'></i>
</div>

Untitled 005.png

Result
Untitled 004.png


Profile

Code

<div class='profile'>
    <div class='cosmo'>
    <h2 class='sansita fs-25'>{{ profile.cosmo }}</h2>
    <img src='./../../../assets/avatar001.jpeg'>
</div>
    <p v-for='e of profile.wanda' class='wanda scada fs-15'>
        <i :class='[e.icon,"fs-18"]'></i>{{ e.text }}
    </p>
</div>

Untitled 006.png

Result
Untitled 007.png


Publisher

Code

<div class='major'>
  <div class='publisher'>
    <p class='salsa fs-18'>What's your idea?</p>
    <textarea class='scada fs-15' v-model='article' @keyup.enter='mark' placeholder="...."></textarea>
    <button @click='submit' class='btnBase sansita fs-20'>Publish</button>
  </div>
  <div class='articles' v-for='(e,i) of articles' :key='e.ID' :style='[i > 0? i < articles.length - 1? "" : {marginBottom:0} : {marginTop:0}]'>
    <div class='sansita fs-25'>
      <img src='./../../../assets/avatar001.jpeg'>
      <h3>{{ e.cosmo }}</h3>
    </div>
    <div class='contents' v-for='p of e.wanda'>
      <p class='scada fs-15' v-if='!p.startsWith("\r") && !p.startsWith("\n")'>{{ p }}</p>
      <pre v-else>{{ p }}</pre>
    </div>
    <div>
      <span class='mono fs-15'><i @click='count(e)' class='fa fa-thumbs-up fs-25' aria-hidden='true'></i>{{ show(e.n) }}</span>
      <span class='mono fs-15'><i @click='' class='fa fa-comments fs-25' aria-hidden='true'></i>{{ show(e.comments.length) }}</span>
    </div>
  </div>
</div>

Result
Untitled 008.png


Footer

Since the footer is still abstract and depends on the implementation of everyone who will use it, then in this section is skipped.


And finally, the result of full implementation, as seen below:
Web

Untitled 009.png

Mobile

Untitled 010.png

Thank you.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you very much.

I like the design and the shape of your post! Will inspire me for my next contributions :)
Thanks!

You're welcome. :-D

Hey @murez-nst I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Ngeriiii wak 140 haha

Karena kontribusinya di-vote Utopian. :-D

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.033
BTC 63016.70
ETH 3028.58
USDT 1.00
SBD 3.75