Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #5 from fabnumdef/bug/anomalies-website
Browse files Browse the repository at this point in the history
Fix and improve title tab, image, display on mobile
  • Loading branch information
Dixeet authored Apr 4, 2019
2 parents 270f48f + 545b210 commit e50a208
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 14 additions & 5 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<img
src="smart_tab.png"
alt="E-chauffeur sur smartphone et tablette"
class="is-hidden-mobile"
class="is-hidden-touch"
>
</div>
</div>
Expand All @@ -49,7 +49,7 @@
}"
@click="setInformation(campuse.id)"
>
{{ campuse.id }}
{{ campuse.name }}
</a>
</div>

Expand All @@ -63,6 +63,7 @@

<div class="column">
<img
v-show="image"
:src="image"
width="770px"
height="540px"
Expand Down Expand Up @@ -100,7 +101,7 @@ export default {
methods: {
async getCampuses() {
const response = await this.$api.campuses.getCampuses('id,information');
const response = await this.$api.campuses.getCampuses('id,information,name');
const campuses = response.data;
return campuses;
},
Expand All @@ -112,7 +113,12 @@ export default {
this.btnActive[id] = true;
this.information = this.campuses[this.campuses.findIndex(campuse => campuse.id === id)].information;
this.image = `${id}.png`;
// @todo: Refactor this when decision on how to handle image is taken
if (id.indexOf('BSL') > -1) {
this.image = `${id}.png`;
} else {
this.image = '';
}
},
},
};
Expand Down Expand Up @@ -219,7 +225,7 @@ export default {
}
}
@media screen and (max-width: $widescreen) {
@media screen and (min-width: $tablet) {
#ec-bn {
margin-top: 200px;
}
Expand All @@ -236,6 +242,9 @@ export default {
#shape-top {
height: 525px;
}
#ec-pres {
background-image: linear-gradient(to right, #5534ff, #288eff 51%, #9df8cf);
}
}
</style>

0 comments on commit e50a208

Please sign in to comment.