Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Info Page UI #1154

Merged
merged 1 commit into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions web/assets/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -380,3 +380,26 @@ label:has(~ .tum-live-input) {
.tum-live-footer a {
@apply text-sm font-light text-5 md:py-0 py-1
}

.tum-live-markdown h1, .tum-live-markdown h2, .tum-live-markdown h3, .tum-live-markdown h4, .tum-live-markdown h5, .tum-live-markdown h6 {
font-weight: bold;
}

.tum-live-markdown h1 {
margin-bottom: 16px;
}

.tum-live-markdown h2, .tum-live-markdown h3, .tum-live-markdown h4, .tum-live-markdown h5, .tum-live-markdown h6 {
margin-top: 16px;
}

.tum-live-markdown ul {
list-style-type: disc;
padding-left: 16px;
padding-bottom: 8px;
padding-top: 8px;
}

.tum-live-markdown a {
border-bottom: 1px solid black;
}
17 changes: 14 additions & 3 deletions web/template/info-page.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@
<meta charset="UTF-8">
<title>{{.Branding.Title}}</title>
<link rel="canonical" href="{{.IndexData.CanonicalURL.Info .Name}}" />
{{template "headImports" .VersionTag}}
<script src="static/assets/init.js"></script>
<link href="/static/assets/css-dist/home.css?v={{if .VersionTag}}{{.VersionTag}}{{else}}development{{end}}"
rel="stylesheet">
<style>[x-cloak] {
display: none !important;
}</style>
</head>
<body>
{{- /*gotype: github.com/TUM-Dev/gocast/web.IndexData*/ -}}
{{template "header" .TUMLiveContext}}
<body class="h-screen flex flex-col items-stretch tum-live-bg">
<header class="text-3 flex z-50 w-full items-center px-3 py-2 h-16 justify-between shrink-0 grow-0">
<div class="flex items-center">
<a href="/" class="mx-3" type="button" id="logo" title="Start">
<img src="/logo.svg" width="42" alt="TUM-Live Logo">
</a>
</div>
</header>
<div class="w-full md:w-1/2 2xl:max-w-screen-xl mx-auto p-6 text-3">
<div class = "tum-live-markdown pb-10">
{{.Text}}
Expand Down