Created
August 19, 2018 14:30
-
-
Save gexplorer/00beb8bef7967261d145a9bc1a610ea0 to your computer and use it in GitHub Desktop.
Improving TweetFeed legibility
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$font-size-base: 1.2rem; | |
$line-height-base: 1.2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div :class="hasImageClass" | |
v-if="tweet" | |
class="tweet-slideshow-item position-absolute w-100 p-3"> | |
<div class="card h-100 rounded-5"> | |
<div class="card-body"> | |
<img :src="tweet.avatar" | |
alt="Avatar" | |
class="rounded-circle float-left mr-3"> | |
<h5 class="card-title mb-0">@{{tweet.username}}</h5> | |
<h6 class="card-subtitle mb-2 text-muted">{{tweet.date | formatDate}}</h6> | |
<p :class="textClass" class="card-text">{{tweet.text}}</p> | |
</div> | |
<div class="h-100 tweet-media" | |
:style="imageStyle"></div> | |
</div> | |
</div> | |
</template> | |
<script lang="ts" src="./TweetFeedSlideShowItem.ts"> | |
</script> | |
<style lang="scss" src="./TweetFeedSlideShowItem.scss"> | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment