Giter VIP home page Giter VIP logo

Comments (4)

kevinongko avatar kevinongko commented on July 20, 2024 1

here is the demo of my Instagram's feed https://kevinongko.github.io/vue-instagram/

from vue-instagram.

kevinongko avatar kevinongko commented on July 20, 2024 1

Hi @andrerfneves,
I use bulma for the theme

<template>
  <div id="app">
    <vue-instagram token="yourtokenhere" username="yourusername" :count="5">
      <template slot="feeds" scope="props">
        <div class="card">
          <div class="card-image">
            <figure class="image is-4by3">
              <img :src="props.feed.images.low_resolution.url" alt="Image">
            </figure>
          </div>
          <div class="card-content">
            <div class="media">
              <div class="media-left">
                <figure class="image" style="height: 40px; width: 40px;">
                  <img :src="props.feed.user.profile_picture" alt="Image">
                </figure>
              </div>
              <div class="media-content">
                <p class="title is-4">{{ props.feed.user.full_name }}</p>
                <p class="subtitle is-6">@ {{ props.feed.user.username }}</p>
              </div>
            </div>

            <div class="content">
              {{ props.feed.caption.text }}
              <br>
              <small>likes: {{ props.feed.likes.count }}</small>
              <small>comments: {{ props.feed.comments.count }}</small>
              <strong style="float: right"><a :href="props.feed.link" target="_blank">link</a></strong>
            </div>
          </div>
        </div>
      </template>
    </vue-instagram>
  </div>
</template>

<script>
import VueInstagram from 'vue-instagram'

export default {
  name: 'app',

  components: {
    VueInstagram
  }
}
</script>

<style lang="sass">
@import "node_modules/bulma/bulma.sass"
#app
  max-width: 320px
  margin: auto

.card
  margin-top: 2rem
  margin-bottom: 2rem
</style>

from vue-instagram.

andrerfneves avatar andrerfneves commented on July 20, 2024

@kevinongko any chance we can look at the source code for the online demo? Ofc, stripped of API keys and so on. Just trying to get a sense of how you set up your scoped slots. Cheers!

from vue-instagram.

andrerfneves avatar andrerfneves commented on July 20, 2024

Awesome. Thanks @kevinongko!

from vue-instagram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.