Skip to content

Commit

Permalink
✨ feat: 마이페이지 반응형 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
baegyeong committed Dec 4, 2024
1 parent 0f19a3b commit 2594867
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/my-page/MyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const MyPage = () => {
return (
<div>
<h1 className="display-bold24 mb-16">마이페이지</h1>
<article className="grid h-[40rem] grid-cols-[1.5fr_2.5fr] gap-5">
<article className="grid gap-5 lg:h-[40rem] lg:grid-cols-[1.5fr_2.5fr]">
<section className="grid grid-rows-[1fr_2fr] gap-5">
<section className="rounded-md bg-white p-7">
{loginStatus?.message === 'Authenticated' ? (
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/my-page/StockInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export const StockInfo = ({ loginStatus }: StockInfoProps) => {
소유한 주식이 없습니다.
</p>
) : (
<article className="grid grid-cols-2 gap-5">
<article className="grid gap-5 xl:grid-cols-2">
{data?.userStocks.map((stock) => (
<section
className="display-bold14 text-dark-gray bg-extra-light-gray flex cursor-pointer justify-between rounded p-10 transition-all duration-300 hover:scale-105"
className="display-bold14 text-dark-gray bg-extra-light-gray flex cursor-pointer items-center justify-between rounded px-4 py-2 transition-all duration-300 hover:scale-105 xl:p-8"
onClick={() => navigate(`/stocks/${stock.stockId}`)}
>
<p>{stock.name}</p>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/pages/my-page/UserInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const UserInfo = () => {

return (
<div className="flex flex-col gap-5">
<section className="flex justify-between">
<section className="flex flex-col md:flex-row md:justify-between">
<div className="display-medium14 text-gray flex gap-3">
<h2 className="display-bold20 text-black">내정보</h2>
{isEdit ? (
Expand Down

0 comments on commit 2594867

Please sign in to comment.