File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 5
5
</div >
6
6
<div class =" information" >
7
7
<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" />
10
10
<img v-else-if =" information.link" style =" height : 26px ;margin-right :10px " src =" @/assets/external-link.svg" />
11
11
<h2 >{{ information.title }}</h2 >
12
12
</component >
Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" container" >
2
+ <div class =" fall-fest- container" >
3
3
<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 =" "
5
5
:information =" information" />
6
6
</div >
7
7
</template >
8
8
<script setup>
9
9
import { onMounted , ref } from ' vue' ;
10
10
import { remult } from ' remult' ;
11
11
import { Information } from " ../../db/entities.js" ;
12
- import InformationCard from " ../components/InformationCard.vue"
12
+ import InformationCard from " ../components/InformationCard.vue" ;
13
13
14
14
const informations = ref ([]);
15
15
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
+ });
18
21
});
19
22
</script >
20
23
<style scoped lang="scss">
@@ -39,7 +42,7 @@ onMounted(() => {
39
42
}
40
43
}
41
44
42
- .container {
45
+ .fall-fest- container {
43
46
background : linear-gradient (to top left , #35c982 , #4683FF );
44
47
max-width : 1600px ;
45
48
background-repeat : repeat ;
You can’t perform that action at this time.
0 commit comments