diff --git a/heymans/static/login.md b/heymans/static/login.md index 2ff5142..f4632bb 100644 --- a/heymans/static/login.md +++ b/heymans/static/login.md @@ -1,5 +1,8 @@ ## Sigmund: your friendly, privacy-minded AI assistant! +💖 Your subscription
supports open source +{: .pretty-text } + - Better at answering questions about [OpenSesame](https://osdoc.cogsci.nl/) and [DataMatrix](https://pydatamatrix.eu) than other chatbots - Built on state-of-the-art language models (OpenAI's GPT4 and Mistral Large), and therefore also an excellent general-purpose chatbot - Messages and attachments are encrypted so that no-one can listen in on your conversation diff --git a/heymans/templates/stylesheet.css.jinja b/heymans/templates/stylesheet.css.jinja index 3590ffd..a9cea60 100644 --- a/heymans/templates/stylesheet.css.jinja +++ b/heymans/templates/stylesheet.css.jinja @@ -1,4 +1,4 @@ -@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto+Condensed&family=Roboto+Flex&display=swap'); +@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto+Condensed&family=Roboto+Flex&family=Lobster+Two&family=Madimi+One&display=swap'); body { background-color: #ECEFF1; @@ -7,27 +7,27 @@ body { h1 { font-size: 1.4em; - font-family: "Roboto Slab", serif; } h2 { font-size: 1.2em; - font-family: "Roboto Slab", serif; } h3 { font-size: 1em; - font-family: "Roboto Slab", serif; +} + +h1, h2, h3 { + font-family: "Madimi One", serif; + font-weight: normal; + color: #bf360c; } blockquote { font-style: italic; } -a { - color: #0288d1; -} - +a, a:visited { color: #0288d1; } @@ -244,6 +244,10 @@ button#start { margin-block-end: 10px; } +#start-text ul { + padding-left: 18px; +} + #loading { margin-bottom: 10px; } @@ -279,7 +283,7 @@ button#start { #start-text { margin-top: 0px; margin-bottom: 20px; - padding: 10px; + padding: 10px 20px 10px 20px; border: 1px solid #ccc; border-radius: 4px; background-color: white; @@ -364,3 +368,12 @@ button#start { .message-ai:hover .message-delete { display: block; } + +.pretty-text { + font-family: "Lobster Two"; + background-color: #ffd600; + border-radius: 4px; + padding: 8px; + float: right; + margin: 0px 0px 20px 20px!important; +} diff --git a/heymans/utils.py b/heymans/utils.py index 2033e68..adee650 100644 --- a/heymans/utils.py +++ b/heymans/utils.py @@ -7,6 +7,7 @@ from markdown.extensions.fenced_code import FencedCodeExtension from markdown.extensions.codehilite import CodeHiliteExtension from markdown.extensions.toc import TocExtension +from markdown.extensions.attr_list import AttrListExtension from langchain.schema import HumanMessage from . import config from . import __version__ @@ -19,7 +20,8 @@ def md(text): return markdown.markdown(text, extensions=[FencedCodeExtension(), CodeHiliteExtension(), - TocExtension()]) + TocExtension(), + AttrListExtension()]) def clean(text, escape_html=True, render=True):