-
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 #65 from ssciwr/fix_55_add_about_page
Add separate about page, editable in admin interface
- Loading branch information
Showing
16 changed files
with
315 additions
and
160 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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,46 @@ | ||
@import "../../node_modules/flowbite-vue/dist/index.css"; | ||
@import "github-markdown-css"; | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.markdown-body { | ||
box-sizing: border-box; | ||
min-width: 200px; | ||
max-width: 980px; | ||
margin: 0 auto; | ||
padding: 45px; | ||
} | ||
|
||
@media (max-width: 767px) { | ||
.markdown-body { | ||
padding: 15px; | ||
} | ||
} | ||
|
||
/* additional css for markdown rendering to restore ul/ol removed by tailwind */ | ||
|
||
.markdown-body ul { | ||
list-style-type: disc; | ||
list-style-position: inside; | ||
} | ||
|
||
.markdown-body ol { | ||
list-style-type: decimal; | ||
list-style-position: inside; | ||
} | ||
|
||
.markdown-body ul ul, | ||
ol ul { | ||
list-style-type: circle; | ||
list-style-position: inside; | ||
margin-left: 15px; | ||
} | ||
|
||
.markdown-body ol ol, | ||
ul ol { | ||
list-style-type: lower-latin; | ||
list-style-position: inside; | ||
margin-left: 15px; | ||
} |
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,15 @@ | ||
<script setup lang="ts"> | ||
import { FwbJumbotron } from "flowbite-vue"; | ||
</script> | ||
|
||
<template> | ||
<fwb-jumbotron | ||
header-text="predicTCR v2" | ||
header-classes="text-slate-100" | ||
sub-text="Prediction of tumor-reactive T cells and TCRs from scRNA-seq data." | ||
sub-text-classes="text-slate-300" | ||
class="mb-4 bg-slate-800 bg-splash bg-no-repeat bg-center bg-cover md:rounded-lg py-0 lg:py-0 pt-8 lg:pt-8" | ||
> | ||
<slot></slot> | ||
</fwb-jumbotron> | ||
</template> |
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 @@ | ||
<script setup lang="ts"> | ||
import showdown from "showdown"; | ||
const props = defineProps({ | ||
markdown: { | ||
type: String, | ||
required: true, | ||
}, | ||
}); | ||
const markdownConverter = new showdown.Converter(); | ||
const convertedHtml = markdownConverter.makeHtml(props.markdown); | ||
</script> | ||
|
||
<template> | ||
<article class="markdown-body"> | ||
<div v-html="convertedHtml"></div> | ||
</article> | ||
</template> |
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.