File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 1+ import BgItem from '@/assets/images/field-4.png' ;
2+
3+ const BackgroundBottom = ( ) => {
4+ return (
5+ < div
6+ className = "fixed bottom-[-40px] left-1/2 z-[-10] h-42 w-full -translate-x-1/2 bg-[image:var(--bg-image)] bg-[length:100%_100%] bg-center opacity-70"
7+ style = { { '--bg-image' : `url(${ BgItem } )` } as React . CSSProperties }
8+ />
9+ ) ;
10+ } ;
11+
12+ export default BackgroundBottom ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { MasonryInfiniteGrid } from '@egjs/react-infinitegrid';
22import { ChangeEvent , useState } from 'react' ;
33
44import EnvelopeImg from '@/assets/images/envelope.png' ;
5- import BgItem from '@/assets/images/field-4.png ' ;
5+ import BackgroundBottom from '@/components/BackgroundBottom ' ;
66import MessageModal from '@/components/MessageModal' ;
77import PageTitle from '@/components/PageTitle' ;
88import ReportModal from '@/components/ReportModal' ;
@@ -66,7 +66,7 @@ const RollingPaperPage = () => {
6666 </ MessageModal >
6767 ) }
6868 < Header />
69- < main className = "flex grow flex-col items-center px-5 pt-4 pb-12" >
69+ < main className = "flex grow flex-col items-center px-5 pt-20 pb-12" >
7070 < PageTitle className = "mb-18 max-w-73 text-center" > { DUMMY_TITLE } </ PageTitle >
7171 < p className = "body-sb text-gray-60 mb-2 w-full" > 등록된 편지 { DUMMY_MESSAGE_COUNT } </ p >
7272 < section className = "w-full" >
@@ -87,10 +87,7 @@ const RollingPaperPage = () => {
8787 </ p >
8888 </ button >
8989 </ main >
90- < div
91- className = "fixed bottom-[-40px] left-1/2 z-[-10] h-42 w-full -translate-x-1/2 bg-[image:var(--bg-image)] bg-[length:100%_100%] bg-center opacity-70"
92- style = { { '--bg-image' : `url(${ BgItem } )` } as React . CSSProperties }
93- />
90+ < BackgroundBottom />
9491 </ >
9592 ) ;
9693} ;
You can’t perform that action at this time.
0 commit comments