您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

layout.tsx 807B

12345678910111213141516171819202122232425262728293031
  1. 'use client'
  2. import React from 'react'
  3. import { Layout, Flex } from 'antd'
  4. const AppLayout = ({ children }: { children: React.ReactNode }) => {
  5. return (
  6. <Layout className="!w-full !max-w-[430px] !mx-auto !relative overflow-hidden">
  7. {/* Background Image Layer */}
  8. <div
  9. className="absolute inset-0 z-0 bg-cover bg-center blur-sm scale-105"
  10. style={{
  11. backgroundImage: "url('/ruccan_bg.jpg')", // Change this to your image path
  12. }}
  13. />
  14. {/* Foreground Content */}
  15. <Flex
  16. vertical
  17. style={{ minHeight: "100vh" }}
  18. align="center"
  19. justify="center"
  20. className="relative z-10 !bg-gray-50/60 backdrop-blur-md !px-2 !py-10"
  21. >
  22. {children}
  23. </Flex>
  24. </Layout>
  25. );
  26. }
  27. export default AppLayout;