Skip to content

Commit

Permalink
Merge pull request #40 from hacksu/ibm-fall-fest
Browse files Browse the repository at this point in the history
Fix navbar
  • Loading branch information
brandonscholten authored Sep 17, 2024
2 parents db532b2 + 996585b commit 20503d7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/assets/images/external-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/InformationCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
</div>
<div class="information">
<component class="information-title" :is="information.link ? 'a' : 'span'" :href="information.link" target="_blank" style="color:white">
<img class="external-link" v-if="information.link.startsWith('https://github.com')"
style="height: 30px" src="@/assets/images/github-white.svg" />
<img class="external-link" v-if="false"
style="height: 30px" src="@/assets/images/external-link.svg" />
<img v-else-if="information.link" style="height: 26px;margin-right:10px" src="@/assets/external-link.svg" />
<h2>{{ information.title }}</h2>
</component>
Expand Down
15 changes: 9 additions & 6 deletions src/views/FallFest.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
<template>
<div class="container">
<div class="fall-fest-container">
<h1 style="margin: auto; text-align: center;">IBM Fall Fest!</h1>
<InformationCard v-for="information, j in informations" :key="information.id" ref="informations"
<InformationCard v-for="information, j in informations" :key="information" ref=""
:information="information"/>
</div>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import { remult } from 'remult';
import { Information } from "../../db/entities.js";
import InformationCard from "../components/InformationCard.vue"
import InformationCard from "../components/InformationCard.vue";
const informations = ref([]);
const repo = remult.repo(Information);
onMounted(() => {
repo.find().then(e => (informations.value = e));
onMounted(async () => {
repo.find()
.then(e => {
informations.value = e;
});
});
</script>
<style scoped lang="scss">
Expand All @@ -39,7 +42,7 @@ onMounted(() => {
}
}
.container{
.fall-fest-container{
background: linear-gradient(to top left, #35c982, #4683FF);
max-width: 1600px;
background-repeat: repeat;
Expand Down

0 comments on commit 20503d7

Please sign in to comment.