Skip to content

Instantly share code, notes, and snippets.

@igeligel
Created September 7, 2016 14:45
Show Gist options
  • Save igeligel/e60220184ae0d4ea95a0e7725101bf77 to your computer and use it in GitHub Desktop.
Save igeligel/e60220184ae0d4ea95a0e7725101bf77 to your computer and use it in GitHub Desktop.
<template>
<div class="container">
<div class="row">
<div class="col s12 m12 l6">
<game-card-view
:game="gameNorwayGermany">
</game-card-view>
</div>
<div class="col s12 m12 l6">
<game-card-view
:game="gameGeorgiaAustria">
</game-card-view>
</div>
</div>
<div class="row">
wdawdwadwad
</div>
</div>
</template>
<script>
import GameCardView from './game-cards/game-card-view.vue';
export default {
name: 'MatchesView',
components: {
'game-card-view': GameCardView
},
data () {
return {
gameNorwayGermany: {
gameId: 9,
homeTeamName: "Norway",
awayTeamName: "Germany",
homeTeamBadge: "http://cache.images.core.optasports.com/soccer/teams/150x150/1614.png",
awayTeamBadge: "http://cache.images.core.optasports.com/soccer/teams/150x150/1037.png",
matchstart: 1473014700,
stadium: "Ullevaal Stadion (Oslo)",
stadiumImageLink: "https://upload.wikimedia.org/wikipedia/commons/thumb/0/0f/Ullev%C3%A5l_Stadium_%288077753565%29.jpg/300px-Ullev%C3%A5l_Stadium_%288077753565%29.jpg",
score: {
isGiven: true,
homeTeam: 0,
awayTeam: 3,
fulltime: true,
overtime: false,
penalty: false
},
televisionProviders: ["RTL", "Sky"]
},
gameGeorgiaAustria: {
gameId: 12,
homeTeamName: "Georgia",
awayTeamName: "Austria",
homeTeamBadge: "http://cache.images.core.optasports.com/soccer/teams/150x150/959.png",
awayTeamBadge: "http://cache.images.core.optasports.com/soccer/teams/150x150/177.png",
matchstart: 1473091200,
stadium: "Boris Paichadze Dinamo Arena (Tbilisi)",
stadiumImageLink: "https://upload.wikimedia.org/wikipedia/commons/thumb/f/f6/2015_UEFA_Super_Cup_11.jpg/250px-2015_UEFA_Super_Cup_11.jpg",
score: {
isGiven: false,
homeTeam: null,
awayTeam: null,
fulltime: null,
overtime: null,
penalty: null
},
televisionProviders: ["DAZN"]
}
}
}
}
</script>
<style>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment