Skip to content

Commit 20503d7

Browse files
Merge pull request #40 from hacksu/ibm-fall-fest
Fix navbar
2 parents db532b2 + 996585b commit 20503d7

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

src/assets/images/external-link.svg

Lines changed: 1 addition & 0 deletions
Loading

src/components/InformationCard.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</div>
66
<div class="information">
77
<component class="information-title" :is="information.link ? 'a' : 'span'" :href="information.link" target="_blank" style="color:white">
8-
<img class="external-link" v-if="information.link.startsWith('https://github.com')"
9-
style="height: 30px" src="@/assets/images/github-white.svg" />
8+
<img class="external-link" v-if="false"
9+
style="height: 30px" src="@/assets/images/external-link.svg" />
1010
<img v-else-if="information.link" style="height: 26px;margin-right:10px" src="@/assets/external-link.svg" />
1111
<h2>{{ information.title }}</h2>
1212
</component>

src/views/FallFest.vue

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
<template>
2-
<div class="container">
2+
<div class="fall-fest-container">
33
<h1 style="margin: auto; text-align: center;">IBM Fall Fest!</h1>
4-
<InformationCard v-for="information, j in informations" :key="information.id" ref="informations"
4+
<InformationCard v-for="information, j in informations" :key="information" ref=""
55
:information="information"/>
66
</div>
77
</template>
88
<script setup>
99
import { onMounted, ref } from 'vue';
1010
import { remult } from 'remult';
1111
import { Information } from "../../db/entities.js";
12-
import InformationCard from "../components/InformationCard.vue"
12+
import InformationCard from "../components/InformationCard.vue";
1313
1414
const informations = ref([]);
1515
const repo = remult.repo(Information);
16-
onMounted(() => {
17-
repo.find().then(e => (informations.value = e));
16+
onMounted(async () => {
17+
repo.find()
18+
.then(e => {
19+
informations.value = e;
20+
});
1821
});
1922
</script>
2023
<style scoped lang="scss">
@@ -39,7 +42,7 @@ onMounted(() => {
3942
}
4043
}
4144
42-
.container{
45+
.fall-fest-container{
4346
background: linear-gradient(to top left, #35c982, #4683FF);
4447
max-width: 1600px;
4548
background-repeat: repeat;

0 commit comments

Comments
 (0)