From 9f8807ed8faaf0a82b7b631729d9461359d85af5 Mon Sep 17 00:00:00 2001 From: timcheng78 Date: Sat, 25 Jan 2025 15:00:41 +0800 Subject: [PATCH] update city html page --- src/view/City.tsx | 58 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 57 insertions(+), 1 deletion(-) diff --git a/src/view/City.tsx b/src/view/City.tsx index e253629..0c1e858 100644 --- a/src/view/City.tsx +++ b/src/view/City.tsx @@ -4,11 +4,67 @@ import { FC } from "hono/jsx"; import { type CitySnapshot } from "@usecase/CitySnapshotUsecase"; import { Layout } from "./Layout"; +import { css, cx } from 'hono/css' + +const pRelative = css` + position: relative; +` + +const pAbsolute = css` + position: absolute; +` + +const container = css` + display: flex; + width: 768px; +` + +const shell = css` + bottom: 33%; + left: 40%; +` + +const factory = css` + bottom: 46%; + left: 7%; +` + +const hospital = css` + bottom: 46%; + right: 5%; +` + +const office = css` + bottom: 35%; + left: 0%; +` + +const people = css` + bottom: 34%; + right: 0%; +` export const City: FC = ({ id }) => { return ( -
City - {id}
+
+ mainCity +
+ shell +
+
+ factory +
+
+ hospital +
+
+ office +
+
+ people +
+
); };