Skip to content

Commit

Permalink
Merge branch 'main' of github.com:biomod2023/biomod2023 into ci-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-panhead committed Oct 19, 2023
2 parents eb5132e + f39d7aa commit 4e59670
Show file tree
Hide file tree
Showing 35 changed files with 627 additions and 237 deletions.
6 changes: 6 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<meta charset="UTF-8">
<link rel="icon" href="/favicon.svg">
<link href="/dist/output.css" rel="stylesheet">
<!-- Katex Configuration -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous"
onload="renderMathInElement(document.body);"></script>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Biomod 2023</title>
</head>
Expand Down
37 changes: 34 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"format": "prettier --write src/"
},
"dependencies": {
"katex": "^0.16.9",
"oh-vue-icons": "^1.0.0-rc3",
"vue": "^3.3.4",
"vue-router": "^4.2.2",
Expand All @@ -20,6 +21,7 @@
"devDependencies": {
"@rushstack/eslint-patch": "^1.2.0",
"@tsconfig/node18": "^2.0.1",
"@types/katex": "^0.16.3",
"@types/node": "^18.16.17",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue-jsx": "^3.0.1",
Expand Down
37 changes: 29 additions & 8 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions public/favicon_old.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/biomod_footer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/homepage/abstract_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/homepage/abstract_image_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/homepage/abstract_title_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added src/assets/homepage/bg_rot_fade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added src/assets/homepage/bg_rot_mobile_fade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/homepage/bg_top_fade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added src/assets/homepage/bg_top_mobile_fade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/homepage/video_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions src/assets/homepage_bg.svg

This file was deleted.

Binary file removed src/assets/homepage_bg_top.png
Binary file not shown.
37 changes: 29 additions & 8 deletions src/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/components/CaptionedGraphics.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<script setup lang="ts">
defineProps<{
modifier?: string
}>()
</script>

<template>
<div :class="'text-center flex flex-col items-center gap-2 text-notebookText ' + modifier">
<div class="flex flex-col items-center gap-2">
<slot name="graphics">
<div class="w-48 h-48 bg-gray-300"></div>
<!-- empty image -->
</slot>
<slot name="caption"></slot>
</div>
</div>
</template>
4 changes: 2 additions & 2 deletions src/components/CustomTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ defineProps<{
headers: string[]
rowHeaders: string[]
rowsPerRowHeader: number
data: number[][]
data: any[][]
}
}>()
const border = 'border-notebookText'
</script>

<template>
<table class="table-fixed border-collapse">
<table class="table-fixed border-collapse lg:w-full">
<tr class="bg-slate">
<th
v-for="(header, i) in tableData.headers"
Expand Down
31 changes: 31 additions & 0 deletions src/components/Equation.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<script setup lang="ts">
import katex from 'katex'
import { type Ref, ref, onMounted } from 'vue'
const props = defineProps<{
formula: string
}>()
const containerRef = ref(null) as unknown as Ref<HTMLElement>
onMounted(() => {
katex.render(props.formula, containerRef.value, { throwOnError: false })
})
</script>
<template>
<div
class="w-full overflow-x-scroll whitespace-nowrap bg-transparent invisible-scroller text-center"
ref="containerRef"
></div>
</template>
<!--
<template>
hello
<vue-mathjax :formula="formula"></vue-mathjax>
</template>

<script lang="ts">
import { VueMathjax } from 'vue-mathjax'
export default {
components: {
'vue-mathjax': VueMathjax
}}
</script> -->
2 changes: 1 addition & 1 deletion src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { RouterLink } from 'vue-router'
</a>

<RouterLink to="/" class="hidden lg:block">
<img src="../assets/biomod_footer.svg" alt="Biomod Logo" />
<img src="../assets/biomod_footer.png" alt="Biomod Logo" />
</RouterLink>
</div>
</template>
107 changes: 0 additions & 107 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
38 changes: 21 additions & 17 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',
name: 'Docking of Dnase I',
url: '#'
}
]
},
{
name: 'CADnano',
name: 'Lab Validation',
children: [
{
name: 'Octahedron',
url: '#'
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 All @@ -81,7 +85,7 @@ const tree: Tree[] = [
<!-- Desktop Navbar -->
<template v-if="$windowWidth >= 1024">
<div
class="flex justify-center items-center bg-slate font-semibold text-gold py-3 gap-44 drop-shadow-lg"
class="flex justify-center items-center bg-slate font-semibold text-gold py-4 gap-44 drop-shadow-lg"
>
<div class="flex justify-center gap-16">
<template v-for="(entry, i) in tree.slice(0, tree.length / 2)" :key="i">
Expand Down Expand Up @@ -112,7 +116,7 @@ const tree: Tree[] = [
</template>
</div>
<a href="/">
<img src="../../assets/logo.svg" alt="Biomod Logo" />
<img src="../../assets/logo.svg" alt="Biomod Logo" class="w-14" />
</a>
<div class="flex justify-center gap-16">
<RouterLink
Expand All @@ -129,11 +133,11 @@ const tree: Tree[] = [
<!-- Mobile Navbar -->
<template v-else>
<div
class="fixed z-20 top-0 w-full flex justify-between items-center bg-slate py-3 drop-shadow-lg"
class="fixed z-20 top-0 w-full flex justify-between items-center bg-slate py-7 drop-shadow-lg"
>
<RouterLink to="/" class="flex items-center">
<img class="-mr-1" src="../../assets/logo.svg" alt="Biomod Logo" />
<span class="text-[#FFC000] font-bold text-xl">UBC Biomod</span>
<img class="ml-4 mr-4 w-12" src="../../assets/logo.svg" alt="Biomod Logo" />
<span class="text-gold font-bold text-xl">UBC Biomod</span>
</RouterLink>
<button class="mr-10" @click="sidebar = !sidebar">
<svg
Expand Down
Loading

0 comments on commit 4e59670

Please sign in to comment.