Verified Commit e7205e74 authored by Jakob Moser's avatar Jakob Moser
Browse files

Rename "Portal" page to "Start", change page titles

parent a6301d2a
Loading
Loading
Loading
Loading
+1 −1
Changes for index.html: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Portal · Fachschaft Computerlinguistik</title>
        <title>Start · FS Coli Portal</title>
        <link rel="stylesheet" href="/css/main.css" />
        <link rel="icon" href="/img/portal.svg" />
    </head>
+2 −2
Changes for js/components/pages/Start.mjs: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
import { Service } from "../pieces/Service.mjs"
import { Base } from "./Base.mjs"

export const Portal = {
export const Start = {
    oncreate() {
        document.title = "Portal · Fachschaft Computerlinguistik"
        document.title = "Start · FS Coli Portal"
    },
    view() {
        return m(
+1 −2
Changes for js/components/pages/Unlock.mjs: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -2,8 +2,7 @@ import { Base } from "./Base.mjs"

export const Unlock = {
    oncreate() {
        document.title =
            "Freischaltung · Portal · Fachschaft Computerlinguistik"
        document.title = "Freischaltung · FS Coli Portal"
    },
    view() {
        return m(
+2 −2
Changes for js/portal.mjs: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
import { Portal } from "./components/pages/Portal.mjs"
import { Start } from "./components/pages/Start.mjs"
import { Unlock } from "./components/pages/Unlock.mjs"
import "/lib/mithril/mithril.min.js"

m.route(document.body, "/", {
    "/": Portal,
    "/": Start,
    "/unlock": Unlock,
})