From e5395906721238900b5dd8a3e5a2aabd6a03edf6 Mon Sep 17 00:00:00 2001
From: asewilhelmsen <101637785+asewilhelmsen@users.noreply.github.com>
Date: Tue, 3 Sep 2024 09:40:07 +0200
Subject: [PATCH] style(demo): modify headings to align with hierarchical
structure (#1629)
* style(demo): change header sizes
* style(demo): change h3 to h2 (but looks like h3)
* style(demo): remove lag demo-tavle heading and change h3 to h2
---
tavla/app/demo/components/CreateUserButton.tsx | 6 ++++--
tavla/app/demo/components/DemoBoard.tsx | 6 ++++--
tavla/app/demo/page.tsx | 3 +--
3 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/tavla/app/demo/components/CreateUserButton.tsx b/tavla/app/demo/components/CreateUserButton.tsx
index fb0644bf6..59cb10a97 100644
--- a/tavla/app/demo/components/CreateUserButton.tsx
+++ b/tavla/app/demo/components/CreateUserButton.tsx
@@ -10,7 +10,9 @@ export const CreateUserButton = () => {
return (
-
Opprett bruker
+
+ Opprett bruker
+
Det er helt gratis å bruke Tavla!
@@ -23,7 +25,7 @@ export const CreateUserButton = () => {
posthog.capture('LOGIN_BTN_DEMO_PAGE')
}}
>
- Opprett bruker / Logg inn
+ Opprett bruker
)
diff --git a/tavla/app/demo/components/DemoBoard.tsx b/tavla/app/demo/components/DemoBoard.tsx
index 81616ce9f..15a7cbb6c 100644
--- a/tavla/app/demo/components/DemoBoard.tsx
+++ b/tavla/app/demo/components/DemoBoard.tsx
@@ -1,5 +1,5 @@
'use client'
-import { Heading2 } from '@entur/typography'
+import { Heading2, Heading3 } from '@entur/typography'
import { TileSelector } from 'app/(admin)/components/TileSelector'
import { formDataToTile } from 'app/(admin)/components/TileSelector/utils'
import { Preview } from 'app/(admin)/edit/[id]/components/Preview'
@@ -22,7 +22,9 @@ function DemoBoard() {
return (
<>
-
Hvilke stoppesteder vil du vise i tavlen?
+
+ Hvilke stoppesteder vil du vise i tavlen?
+
{
const tile = formDataToTile(data)
diff --git a/tavla/app/demo/page.tsx b/tavla/app/demo/page.tsx
index 4c4424b57..ac5bec7ba 100644
--- a/tavla/app/demo/page.tsx
+++ b/tavla/app/demo/page.tsx
@@ -18,7 +18,7 @@ async function Demo() {
return (
-
Prøv og lag din egen avgangstavle!
+
Test ut Tavla!
Dette er en demo-løsning hvor du kan prøve å opprette din
egen tavle. Du må logge inn for å lagre tavlen og få tilgang
@@ -29,7 +29,6 @@ async function Demo() {
{!loggedIn && }
- Lag en demo-tavle