-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from CSE2102-Fall23/schedule_view
edited layout and added schedule view
- Loading branch information
Showing
7 changed files
with
453 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,31 @@ | ||
<template> | ||
<div id="app-wrapper"> | ||
<AppHeader title="My App" /> | ||
<RouterView /> | ||
<div id="app"> | ||
<Header :tabs="tabs" /> | ||
<router-view /> | ||
<Footer /> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { RouterView } from "vue-router"; | ||
import AppHeader from "./components/AppHeader.vue"; | ||
<script> | ||
import Header from './components/Header.vue'; | ||
import Footer from './components/Footer.vue'; | ||
export default { | ||
data() { | ||
return { | ||
tabs: [ | ||
{ path: '/', label: 'Home' }, | ||
{ path: '/fetch', label: 'Create an Account' }, | ||
{ path: { name: 'form' }, label: 'Form Example' }, | ||
{ path: '/schedule', label: 'Schedule View' }, | ||
{ path: '/admin/createcourse', label: 'Create Course' }, | ||
{ path: '/login', label: 'Login' }, | ||
] | ||
}; | ||
}, | ||
components: { | ||
Header, | ||
Footer | ||
} | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<footer class="site-footer"> | ||
<p>© 2023 Section 2 Group 3 University. All rights reserved.</p> | ||
</footer> | ||
</template> | ||
|
||
<style scoped> | ||
/* UConn website footer styles */ | ||
.site-footer { | ||
background-color: #003366; | ||
color: #fff; | ||
text-align: center; | ||
padding: 10px; | ||
position: fixed; | ||
bottom: 0; | ||
width: 100%; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<template> | ||
<header class="site-header"> | ||
<div class="header-content"> | ||
<h1 class="header-title">Section 2 Group 3 </h1> | ||
<nav> | ||
<ul class="tabs"> | ||
<li v-for="tab in tabs" :key="tab.path" :class="{ active: isActiveTab(tab.path) }"> | ||
<router-link :to="tab.path">{{ tab.label }}</router-link> | ||
</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</header> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
tabs: Array | ||
}, | ||
methods: { | ||
isActiveTab(path) { | ||
return this.$route.path === path; | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
/* UConn website header styles */ | ||
.site-header { | ||
background-color: #003366; | ||
color: #fff; | ||
padding: 20px; | ||
} | ||
/* Add UConn specific styling for header content */ | ||
.site-header .header-content { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
/* Define styles for navigation tabs */ | ||
.site-header nav ul { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
.site-header nav ul li { | ||
display: inline; | ||
margin-right: 20px; | ||
} | ||
.site-header nav ul li a { | ||
text-decoration: none; | ||
color: #fff; | ||
} | ||
.site-header nav ul li.active a { | ||
background-color: #fff; | ||
color: #003366; | ||
border-radius: 5px; | ||
padding: 5px 10px; | ||
} | ||
/* Style for the header title */ | ||
.header-title { | ||
font-size: 2.5rem; /* Adjust as needed for the desired size */ | ||
color: #fff; /* White color for better contrast */ | ||
font-weight: bold; /* Emphasize the font weight */ | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.