Skip to content

Commit

Permalink
Update notebook layout in navbar (#40)
Browse files Browse the repository at this point in the history
* Update notebook layout

* Fix navbar submenu positioning

* Update routes

* Add spacing for title
  • Loading branch information
daniel-panhead authored Oct 12, 2023
1 parent ed20065 commit f39d7aa
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 101 deletions.
82 changes: 0 additions & 82 deletions src/components/NavBar.vue

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/lab-notebook/Notebook.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import NotebookBody from '@/components/lab-notebook/NotebookBody.vue'
<template>
<div>
<div class="m-auto">
<h1 class="font-title text-center text-title-sm lg:text-title text-gold">
<h1 class="font-title text-center text-title-sm lg:text-title text-gold mt-4">
<slot name="title"></slot>
</h1>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/navbar/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const dropdown = ref(false)
</svg>
</RouterLink>

<div v-if="dropdown" class="fixed pt-14">
<div v-if="dropdown" class="fixed pt-12">
<div class="bg-slate py-4 shadow-[0_25px_25px_rgba(0,0,0,0.4)] rounded-b-3xl">
<slot name="content"></slot>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/navbar/Dropside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const dropdown = ref(false)
</svg>
</div>

<div v-if="dropdown" class="fixed ml-[12.25rem] mt-8">
<div v-if="dropdown" class="fixed ml-[18.8rem] mt-8">
<div class="bg-slate p-4 shadow-[5px_0_35px_rgba(0,0,0,0.4)] rounded-3xl">
<slot name="content"></slot>
</div>
Expand Down
30 changes: 17 additions & 13 deletions src/components/navbar/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,40 @@ const tree: Tree[] = [
name: 'Notebook',
children: [
{
name: 'Enzymosome',
name: 'Computational Simulation',
children: [
{
name: 'Enzyme Activity Assays',
url: '/enzymosome/enzyme-activity-assays'
},
{
name: 'Liposome Formation',
name: 'Structure Design',
url: '#'
},
{
name: 'Enzyme Conjugation',
url: '/enzymosome/enzyme-conjugation'
name: 'Docking of Dnase I',
url: '#'
}
]
},
{
name: 'CADnano',
name: 'Lab Validation',
children: [
{
name: 'Octahedron',
url: '/octahedron/octahedron-formation'
name: 'Enzyme Activity Assays',
url: '/lab-validation/enzyme-activity-assays'
},
{
name: 'Trigon',
name: 'Liposome Formation',
url: '#'
},
{
name: 'Pentahedron',
name: 'Octahedron Formation',
url: '/lab-validation/octahedron-formation'
},
{
name: 'Octahedron Liposome Formation',
url: '#'
},
{
name: 'Thiolation and Conjugation',
url: '/lab-validation/enzyme-conjugation'
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ const router = createRouter({
component: TeamView
},
{
path: '/enzymosome/enzyme-activity-assays',
path: '/lab-validation/enzyme-activity-assays',
name: 'enzyme-activity-assays',
component: GroupAView
},
{
path: '/enzymosome/enzyme-conjugation',
path: '/lab-validation/enzyme-conjugation',
name: 'enzyme-conjugation',
component: GroupCView
},
{
path: '/octahedron/octahedron-formation',
path: '/lab-validation/octahedron-formation',
name: 'octahedron-formation',
component: OctadedronFormation
}
Expand Down

0 comments on commit f39d7aa

Please sign in to comment.