Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
earth-in-flux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Water Mission Area
VizLab
earth-in-flux
Commits
24bd5ae1
Commit
24bd5ae1
authored
9 months ago
by
Maggie Jaenicke
Browse files
Options
Downloads
Patches
Plain Diff
#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
!3
Fixes #1: Create Responsive Grid On Landing Page
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/assets/content/ChartGrid.js
+54
-0
54 additions, 0 deletions
src/assets/content/ChartGrid.js
src/components/ChartGrid.vue
+12
-48
12 additions, 48 deletions
src/components/ChartGrid.vue
with
66 additions
and
48 deletions
src/assets/content/ChartGrid.js
0 → 100644
+
54
−
0
View file @
24bd5ae1
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
This diff is collapsed.
Click to expand it.
src/components/ChartGrid.vue
+
12
−
48
View file @
24bd5ae1
<
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
sample
Chart
from
'
@/assets/
images/sampleChart.PNG
'
;
import
Chart
Grid
from
'
@/assets/
content/ChartGrid.js
'
;
export
default
{
data
()
{
return
{
sampleChart
};
}
data
()
{
return
{
chartContent
:
ChartGrid
.
chartGridItems
};
}
};
</
script
>
<
style
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment