fix responsive

This commit is contained in:
ClasWen 2024-06-05 23:01:46 +08:00
parent 32d66d584b
commit 07eb277419

View file

@ -1,13 +1,19 @@
--- ---
import GenerateQR from "./GenerateQR.vue" import GenerateQR from "./GenerateQR.vue"
import { SITE_TITLE, SITE_DESCRIPTION } from "../../consts"
import BaseHead from "../../components/BaseHead.astro"
const { primaryTitle } = Astro.props
const title = primaryTitle ? `${primaryTitle} - ${SITE_TITLE}` : SITE_TITLE;
--- ---
<html class="" lang="zh-CN" dir="ltr"> <html class="js no-touch progressive-image no-reduced-motion progressive" lang="zh-CN" dir="ltr">
<head> <head>
<meta charset="utf-8" /> <BaseHead title={title} description={SITE_DESCRIPTION} />
</head> </head>
<body> <body>
<div class="bg-[#f5f5f7] flex flex-col sm:flex-row items-center h-screen justify-center gap-8 p-8"> <div class="bg-[#f5f5f7] w-full h-screen flex flex-col justify-between items-center">
<div class=" flex flex-col sm:flex-row items-center h-full max-w-[1280px] justify-center gap-8 p-8">
<div <div
class=" sm:w-auto" class=" sm:w-auto"
> >
@ -35,5 +41,6 @@ import GenerateQR from "./GenerateQR.vue"
</div> </div>
<GenerateQR client:load class="min-w-[50%]"></GenerateQR> <GenerateQR client:load class="min-w-[50%]"></GenerateQR>
</div> </div>
</div>
</body> </body>
</html> </html>