nextjs-tailwindcss-headless.../app/components/bigImg/page.tsx

39 lines
1.4 KiB
TypeScript
Raw Normal View History

2023-09-14 09:21:45 +08:00
"use client";
2023-09-14 09:21:45 +08:00
import Image from "next/image";
2023-08-25 21:53:07 +08:00
export default function Component() {
2023-09-14 09:21:45 +08:00
return (
<div className="w-full bg-linear-gradient">
<div
className="flex justify-between items-end m-auto max-w-7xl h-20 px-3 /* small */
2023-08-25 21:53:07 +08:00
md:px-3 md:h-calc-2 /* middle */
xl:max-w-7xl xl:h-96 /* xlarge */
2023-09-14 09:21:45 +08:00
"
>
<h1
className="self-center text-center text-lg leading-normal font-bold w-full /* small */
2023-08-25 21:53:07 +08:00
md:text-left md:text-calc-1 md:w-2/5 /* middle */
xl:text-left xl:text-4xl xl:leading-normal xl:w-2/5 /* xlarge */
2023-09-14 09:21:45 +08:00
"
// style={{ fontSize: 'calc((100vw - 8px) / 1024 * 36)' }}
>
Free, official online office tutorials by WPS Academy
</h1>
<div
className="hidden
2023-08-25 21:53:07 +08:00
md:flex md:h-calc-1 /* midle */
xl:h-80 xl:w-3/5 /* xlarge */
2023-09-14 09:21:45 +08:00
"
>
<Image
className="w-full h-full"
src="https://res-academy.cache.wpscdn.com/images/57a4a45ff9748ff9cdef334582053ed9.png"
alt={"big img"}
/>
2023-08-25 21:53:07 +08:00
</div>
2023-09-14 09:21:45 +08:00
</div>
</div>
);
}