Skip to content

Commit

Permalink
feat: linkTooltip 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
ljh0608 committed Aug 7, 2024
1 parent e37d2d2 commit 81a5b71
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 21 deletions.
5 changes: 5 additions & 0 deletions src/assets/svgs/linkTooltip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 21 additions & 19 deletions src/components/Icon/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { ReactComponent as HambergerIc } from 'assets/svgs/hambergerIcon.svg';
import { ReactComponent as InputCancelIc } from 'assets/svgs/inputCancelBtn.svg';
import { ReactComponent as InputErrorIc } from 'assets/svgs/inputErrorBtn.svg';
import { ReactComponent as LinkIc } from 'assets/svgs/linkIcon.svg';
import { ReactComponent as LinkTooltipIc } from 'assets/svgs/linkTooltip.svg';
import { ReactComponent as MainLogoIc } from 'assets/svgs/mainLogo.svg';
import { ReactComponent as OfflinePlaceIc } from 'assets/svgs/offlinePlace.svg';
import { ReactComponent as OnlinePlaceIc } from 'assets/svgs/onlinePlace.svg';
Expand All @@ -26,30 +27,31 @@ import { ReactComponent as TimeIc } from 'assets/svgs/time.svg';
import { ReactComponent as Wave } from 'assets/svgs/wave.svg';

export {
MainLogoIc,
HambergerIc,
ExitIc,
InputCancelIc,
RadioCheckIc,
RadioCheckedIc,
BackIc,
PlusIc,
InputErrorIc,
Circle1Ic,
Circle2Ic,
Circle3Ic,
ClockIc,
DropDownIc,
DropdownWhite,
DropUpIc,
PasswordOpenEyeIc,
PasswordEyeIc,
DropupWhite,
ExitIc,
HambergerIc,
InputCancelIc,
InputErrorIc,
LinkIc,
PlaceIc,
ClockIc,
OnlinePlaceIc,
LinkTooltipIc,
MainLogoIc,
OfflinePlaceIc,
TimeIc,
DropdownWhite,
DropupWhite,
OnlinePlaceIc,
PasswordEyeIc,
PasswordOpenEyeIc,
PlaceIc,
PlusIc,
RadioCheckedIc,
RadioCheckIc,
SpeechBubbleIc,
TimeIc,
Wave,
Circle1Ic,
Circle2Ic,
Circle3Ic,
};
11 changes: 11 additions & 0 deletions src/components/moleculesComponents/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,15 @@ function Header({ position, setFunnelStep }: HeaderProps) {
) : (
<EmptyBox />
)}
<IconWrapper>
{position==="stepping"&& <IconSection onClick={notify}>
<LinkIc/>
</IconSection>}

<IconSection onClick={() => setIsNaviOpen((prev) => !prev)}>
<HambergerIc />
</IconSection>
</IconWrapper>
</HeaderSection>
{isNaviOpen ? (
<NavigationSection>
Expand All @@ -128,6 +134,10 @@ function Header({ position, setFunnelStep }: HeaderProps) {

export default Header;

const IconWrapper= styled.div`
display:flex;
align-items: center;
`
const HeaderWrapper = styled.div`
width: 100%;
`;
Expand All @@ -153,6 +163,7 @@ const IconSection = styled.button`
display: flex;
align-items: center;
justify-content: center;
width:4.2rem;
height: 4.2rem;
`;

Expand Down
10 changes: 8 additions & 2 deletions src/pages/steppingStone/SteppingLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { useEffect, useState } from 'react';

import { LinkTooltipIc } from 'components/Icon/icon';
import Header from 'components/moleculesComponents/Header';
import { useNavigate, useParams } from 'react-router-dom';
import styled from 'styled-components/macro';
import { client } from 'utils/apis/axios';
import { notify } from 'utils/toast/copyLink';

import SteppingBody from './components/SteppingBody';
import SteppingBtnSection from './components/SteppingBtnSection';
Expand Down Expand Up @@ -51,16 +53,20 @@ function SteppingLayout({ steppingType }: SteppingProps) {
<>
<SteppingWrapper>
<Header position={'stepping'} />
<LinkToolTipIcon onClick={notify} />
<SteppingBody steppingType={steppingType} meetingTitle={meetingTitle} />
<SteppingBtnSection steppingType={steppingType} />
<div />
</SteppingWrapper>
</>
);
}

export default SteppingLayout;

const LinkToolTipIcon = styled(LinkTooltipIc)`
position: relative;
left: 10.3rem;
cursor: pointer;
`;
const SteppingWrapper = styled.div`
display: flex;
flex-direction: column;
Expand Down

0 comments on commit 81a5b71

Please sign in to comment.