Skip to content
Snippets Groups Projects
Commit 3af75154 authored by Alexander Schoch's avatar Alexander Schoch
Browse files

only show future events, fix styles for guides

parent d76e1ad2
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,8 @@ import { ...@@ -11,6 +11,8 @@ import {
import { Icon, ICONS } from "vseth-canine-ui"; import { Icon, ICONS } from "vseth-canine-ui";
import { getAccentColor } from "../utilities/colors";
const useStyles = createStyles((theme) => ({ const useStyles = createStyles((theme) => ({
link: { link: {
...theme.fn.focusStyles(), ...theme.fn.focusStyles(),
...@@ -119,7 +121,7 @@ export default function TOC() { ...@@ -119,7 +121,7 @@ export default function TOC() {
}} }}
> >
<Group mb="md"> <Group mb="md">
<Icon icon={ICONS.LIST} /> <Icon icon={ICONS.LIST} color={getAccentColor(theme)} />
<Text>Table of contents</Text> <Text>Table of contents</Text>
</Group> </Group>
{entries} {entries}
......
...@@ -21,8 +21,9 @@ export const resolvers = { ...@@ -21,8 +21,9 @@ export const resolvers = {
lastName: hasAccess(session, true), lastName: hasAccess(session, true),
email: hasAccess(session, true) email: hasAccess(session, true)
} }
}, }
} },
orderBy: [{date: 'asc'}, {startTime: 'asc'}]
}); });
const futureEvents = events.filter((event) => isInFuture(event)); const futureEvents = events.filter((event) => isInFuture(event));
return futureEvents; return futureEvents;
......
...@@ -4,6 +4,7 @@ p { ...@@ -4,6 +4,7 @@ p {
h1 { h1 {
font-size: 4rem !important; font-size: 4rem !important;
overflow-x: auto;
} }
h2 { h2 {
...@@ -142,12 +143,13 @@ p { ...@@ -142,12 +143,13 @@ p {
} }
.bash-guide pre { .bash-guide pre {
background-color: #eeeeee;
padding: 0.5rem; padding: 0.5rem;
background-color: rgba(125,125,125,0.1);
overflow-x: auto;
} }
.bash-guide p>code { .bash-guide p>code {
color: #888888; color: #f28a20;
} }
.vseth-footer-dark { .vseth-footer-dark {
......
...@@ -19,6 +19,6 @@ export function formatTimeFromDB(startTime, endTime) { ...@@ -19,6 +19,6 @@ export function formatTimeFromDB(startTime, endTime) {
} }
export function isInFuture(event) { export function isInFuture(event) {
// TODO: implement logic const now = new Date();
return true; return event.date > now.toISOString();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment