Skip to content
Snippets Groups Projects
Commit 24bd5ae1 authored by Maggie Jaenicke's avatar Maggie Jaenicke
Browse files

#1 Adds ChartGrid.js file to dynamically pull in images, routes, text

parent 6cff5c69
No related branches found
No related tags found
1 merge request!3Fixes #1: Create Responsive Grid On Landing Page
export default {
chartGridItems: [
//we'll be replacing these img_src with paths to location on s3
//routes will direct to appropriate subpage
{
title: '',
route: '/',
img_src: 'src/assets/images/sampleChart.PNG',
alt: ''
},
{
title: '',
route: '/',
img_src: 'src/assets/images/sampleChart.PNG',
alt: ''
},
{
title: '',
route: '/',
img_src: 'src/assets/images/sampleChart.PNG',
alt: ''
},
{
title: '',
route: '/',
img_src: 'src/assets/images/sampleChart.PNG',
alt: ''
},
{
title: '',
route: '/',
img_src: 'src/assets/images/sampleChart.PNG',
alt: ''
},
{
title: '',
route: '/',
img_src: 'src/assets/images/sampleChart.PNG',
alt: ''
},
{
title: '',
route: '/',
img_src: 'src/assets/images/sampleChart.PNG',
alt: ''
},
{
title: '',
route: '/',
img_src: 'src/assets/images/sampleChart.PNG',
alt: ''
},
]
};
\ No newline at end of file
<template>
<div id="chartGrid" class="padded">
<!-- When we get actual charts, we can pull all the info and urls in from a js file and loop through
like in the VizLab home site -->
<a href="/"> <!-- Populate hrefs with relative routes -->
<div class="chart">
<img :src="sampleChart" alt=""/>
</div>
</a>
<a href="/">
<div class="chart">
<img :src="sampleChart" alt=""/>
</div>
</a>
<a href="/">
<div class="chart">
<img :src="sampleChart" alt=""/>
</div>
</a>
<a href="/">
<div class="chart">
<img :src="sampleChart" alt=""/>
</div>
</a>
<a href="/">
<div class="chart">
<img :src="sampleChart" alt=""/>
</div>
</a>
<a href="/">
<div class="chart">
<img :src="sampleChart" alt=""/>
</div>
</a>
<a href="/">
<div class="chart">
<img :src="sampleChart" alt=""/>
</div>
</a>
<a href="/">
<div class="chart">
<img :src="sampleChart" alt=""/>
</div>
</a>
<a v-for="(item, index) in chartContent" :key="index" :href="item.route">
<div class="chart">
<img :src="item.img_src" alt=""/>
</div>
</a>
</div>
</template>
<script>
import sampleChart from '@/assets/images/sampleChart.PNG';
import ChartGrid from '@/assets/content/ChartGrid.js';
export default {
data() {
return {
sampleChart
};
}
data() {
return {
chartContent: ChartGrid.chartGridItems
};
}
};
</script>
<style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment