Comments (4)
here is the demo of my Instagram's feed https://kevinongko.github.io/vue-instagram/
from vue-instagram.
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.
@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.
Awesome. Thanks @kevinongko!
from vue-instagram.
Related Issues (20)
- Add filtering by String HOT 2
- How do I use vue-instagram with waterfall? HOT 2
- Only 6 posts returned HOT 3
- Cannot read property 'text' of null HOT 1
- Tutorial: How to fix "This client has not been approved to access this resource." HOT 1
- API Down? HOT 11
- Realtime HOT 1
- Your demo shows no instragram feed? HOT 2
- Unable to use with Vuepress / SSR (browser-jsonp?) HOT 1
- Issue with Content Security Policy (CSP) HOT 1
- Please document the "feed" object HOT 1
- Loading slot? HOT 1
- Vue 3 will deprecate scoped slots HOT 1
- Does this work with new 2019 Instagram Graph API? HOT 3
- Call method on load images HOT 3
- Using carousel with vue instagram HOT 1
- Making it work with the 2020 API change HOT 26
- The access_token provided is invalid.
- 'window is not defined' in 'node_modules\vue-instagram\dist\vue-instagram.min.js'
- No 'Access-Control-Allow-Origin' header is present on the requested resource.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-instagram.