Skip to content

Instantly share code, notes, and snippets.

@gexplorer
Created August 19, 2018 14:30
Show Gist options
  • Save gexplorer/00beb8bef7967261d145a9bc1a610ea0 to your computer and use it in GitHub Desktop.
Save gexplorer/00beb8bef7967261d145a9bc1a610ea0 to your computer and use it in GitHub Desktop.
Improving TweetFeed legibility
$font-size-base: 1.2rem;
$line-height-base: 1.2;
<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