Skip to content

Commit 3746495

Browse files
committed
might have finalized useful info page, need to add to main for database stuff
1 parent 20503d7 commit 3746495

File tree

4 files changed

+69
-2
lines changed

4 files changed

+69
-2
lines changed

src/components/Navigation.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
['Meetings', '/meetings'],
3232
['Leadership', '/leadership'],
3333
['Contact', '/contact'],
34-
['IBM Fall Fest!','/ibm']
34+
['Useful Information & Links','/helpful_info']
3535
];
3636
if (loggedIn.value){
3737
buttons.push(

src/router/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import EditEvents from "../views/EditEvents.vue";
1111
import EditNotes from "../views/EditNotes.vue";
1212
import AdminMeetings from "../views/AdminMeetings.vue";
1313
import FallFest from "../views/FallFest.vue";
14+
import HelpPage from "../views/HelpPage.vue";
1415
import AdminInformation from "../views/AdminInformation.vue";
1516

1617
export const routes = [
@@ -77,6 +78,15 @@ export const routes = [
7778
},
7879
component: FallFest,
7980
},
81+
{
82+
path: '/helpful_info',
83+
name: "Useful Links and Information",
84+
meta: {
85+
title: "Links and Resources!",
86+
description: "A collection of useful links and information for students."
87+
},
88+
component: HelpPage,
89+
},
8090
{
8191
path: "/admin",
8292
name: "Admin Stuff",

src/views/FallFest.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ onMounted(async () => {
4444
4545
.fall-fest-container{
4646
background: linear-gradient(to top left, #35c982, #4683FF);
47-
max-width: 1600px;
47+
width: 100%;
4848
background-repeat: repeat;
4949
min-height: 50vh;
5050
padding: 100px;

src/views/HelpPage.vue

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<template>
2+
<div class="fall-fest-container">
3+
<h1 style="margin: auto; text-align: center;">Helpful Resources</h1>
4+
<InformationCard v-for="information, j in informations" :key="information" ref=""
5+
:information="information"/>
6+
</div>
7+
</template>
8+
<script setup>
9+
import { onMounted, ref } from 'vue';
10+
import { remult } from 'remult';
11+
import { Information } from "../../db/entities.js";
12+
import InformationCard from "../components/InformationCard.vue";
13+
14+
const informations = ref([]);
15+
const repo = remult.repo(Information);
16+
onMounted(async () => {
17+
repo.find()
18+
.then(e => {
19+
informations.value = e;
20+
});
21+
});
22+
</script>
23+
<style scoped lang="scss">
24+
* {
25+
box-sizing: border-box;
26+
}
27+
28+
.information{
29+
background-color: lightgrey;
30+
color: darkslategrey;
31+
width: 100%;
32+
padding: 15px 15px 15px 15px;
33+
display: flex;
34+
align-items: center;
35+
margin-bottom: 30px;
36+
max-width: 850px;
37+
h2 {
38+
margin: 5px 0;
39+
}
40+
&:deep(p) {
41+
margin: 5px 0;
42+
}
43+
}
44+
45+
.fall-fest-container{
46+
background: linear-gradient(to top left, #35c982, #4683FF);
47+
width: 100%;
48+
background-repeat: repeat;
49+
min-height: 50vh;
50+
padding: 100px;
51+
@media (max-width: 1000px){
52+
padding: 100px 10px;
53+
}
54+
overflow: auto;
55+
}
56+
57+
</style>

0 commit comments

Comments
 (0)