Skip to content

Commit

Permalink
refactor: .bottom-fixed 유틸 스타일을 제거한다
Browse files Browse the repository at this point in the history
  • Loading branch information
guesung committed Aug 13, 2024
1 parent 300c235 commit c5b5b75
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/app/(Main)/talk/TalkSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export default function TalkWordSection() {

return (
<section className="flex flex-col items-center">
<h1 className="h-100 max-w-310 items-center break-keep text-center">{talkWord}</h1>
<h1 className="items-center text-center h-100 max-w-310 break-keep">{talkWord}</h1>

<Spacing size={10} />

<div className="flex h-300 justify-center">
<div className="flex justify-center h-300">
{!isWordLoaded && isLoading && <Lottie loop animationData={lottieTalkBeforeClick} play />}
{isWordLoaded && isLoading && (
<Lottie loop animationData={lottieTalkAfterClick} play speed={1.2} className="w-500" />
Expand All @@ -47,7 +47,7 @@ export default function TalkWordSection() {
</div>

<BottomFixedDiv>
<PrimaryButton onClick={handleTalkClick} text="제시어 뽑기" />
<PrimaryButton className="w-full" onClick={handleTalkClick} text="제시어 뽑기" />
</BottomFixedDiv>
</section>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/(Main)/talk/TitleSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useState } from 'react';
import TalkToolTip from './TalkToolTip';
import { Icon } from '@/components/Button/Icon';
import { Spacing } from '@/components/Spacing';
import { ICON, COOKIE_IS_TOOLTIP_OPEN } from '@/constants';
import { COOKIE_IS_TOOLTIP_OPEN, ICON } from '@/constants';
import { setClientCookie } from '@/utils';

interface TitleSectionProps {
Expand Down
5 changes: 3 additions & 2 deletions src/app/(Main)/talk/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import TalkWordSection from './TalkSection';
import TalkTitleSection from './TitleSection';
import { COOKIE_IS_TOOLTIP_OPEN } from '@/constants';
import { getServerCookie } from '@/utils';

export default async function Talk() {
const isToolTipOpen = (await getServerCookie('tooltipIsOpen')) === 'true';
const isToolTipOpen = (await getServerCookie(COOKIE_IS_TOOLTIP_OPEN)) === 'true';

return (
<div className="flex flex-col items-center justify-center flex-1">
<div className="flex flex-1 flex-col items-center justify-center">
<TalkTitleSection isInitialToolTipOpen={isToolTipOpen} />
<TalkWordSection />
</div>
Expand Down
6 changes: 0 additions & 6 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ body {
}
}

@layer base {
.bottom-fixed {
@apply fixed inset-x-0 bottom-0 z-30;
}
}

/*PWA*/
@media all and (display-mode: standalone) {
#ios-banner {
Expand Down

0 comments on commit c5b5b75

Please sign in to comment.