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 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 >
Original file line number Diff line number Diff line change 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>
99import { onMounted , ref } from ' vue' ;
1010import { remult } from ' remult' ;
1111import { Information } from " ../../db/entities.js" ;
12- import InformationCard from " ../components/InformationCard.vue"
12+ import InformationCard from " ../components/InformationCard.vue" ;
1313
1414const informations = ref ([]);
1515const 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 ;
You can’t perform that action at this time.
0 commit comments