프로그래밍/Html\Css

tailwind 연습 1

타코코딩 2023. 12. 20. 17:56
import Image from "next/image";
import { Inter } from "next/font/google";

const inter = Inter({ subsets: ["latin"] });

export default function Home() {
  return (
    <div className="bg-slate-400 py-20 px-20 grid gap-10">
      <div className="bg-white p-7 rounded-2xl shadow-sm ">
        <span className="font-semibold text-2xl">select item</span>
        <div className="flex justify-between my-2">
          <span className="text-gray-500"> gray chair</span>
          <span>18000원</span>
        </div>
        <div className="flex justify-between my-2">
          <span className="text-gray-500"> gray chair</span>
          <span>18000원</span>
        </div>
        <div className="mt-2 pt-2 border-t-2 border-dashed justify-between">
          <span>합계</span>
          <span>36000원</span>
        </div>
        <div className="mt-5 bg-blue-500 text-white p-3 text-center rounded-xl w-2/4 mx-auto">
          Checkout
        </div>
      </div>
      <div className="bg-white p-10 rounded-3xl shadow-sm ">
        <div className="bg-blue-500 p-6">
          <span className="rounded-3xl text-white text-2xl pb-14 relative -top-14">
            프로필
          </span>
        </div>
        <div className="flex justify-between">
          <div className="h-24 w-24 bg-red-400 rounded-full flex flex-col">
            <span className="text-sm text-gray-500">orders</span>
            <span className="font-medium">340</span>
          </div>
        </div>
        <div>
          <span className="text-sm text-gray-500">spent</span>
          <span className="font-medium">340</span>
        </div>
        <div className="relative flex flex-col items-center mt-5">
          <span className="text-lg font-medium">토니</span>
          <span>미국</span>
        </div>
      </div>
      <div className="bg-white p-10 rounded-3xl shadow-sm "></div>
      <div className="bg-white p-10 rounded-3xl shadow-sm "></div>
    </div>
  );
}