Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
f6657d0
Update mainPage layout
frorong Oct 18, 2023
b136f9f
Update responsive banner
frorong Oct 18, 2023
3a9e599
Update banner responsive
frorong Oct 18, 2023
4d23f90
Update banner responsive
frorong Oct 18, 2023
656dab0
Delete react strict mode
frorong Oct 19, 2023
ab3085c
Update banner width
frorong Oct 19, 2023
dc14f31
Update banner1
frorong Oct 19, 2023
cc83e40
Update banner2
frorong Oct 19, 2023
b43fb47
Update banner3
frorong Oct 19, 2023
487011d
Update 600px
frorong Oct 19, 2023
4bb3d84
Update banner1
frorong Oct 19, 2023
940ec8a
Update mission text responsive
frorong Oct 20, 2023
0bcbc1b
Rollback annotate
frorong Oct 20, 2023
86956ef
Update redirect
frorong Oct 20, 2023
8a9aeb7
Merge pull request #75 from Stack-Knowledge/feature/redirect
frorong Oct 21, 2023
328faf2
Update banner1 style
frorong Oct 21, 2023
0d5ca54
Update banner2 style
frorong Oct 21, 2023
d26ef53
Rollback annotate
frorong Oct 21, 2023
df46de3
Merge pull request #74 from Stack-Knowledge/feature/responsive/banner
frorong Oct 25, 2023
98d6f81
Update header redirect error conflict
TaerangLee Oct 25, 2023
03415fd
Update width, height unit change rem
TaerangLee Oct 26, 2023
50cab57
Delete redirect branch crash
TaerangLee Oct 26, 2023
ce985cf
Update tsx workspcae
TaerangLee Oct 26, 2023
a8e66ac
Update scroll
frorong Oct 27, 2023
653a35e
Update filtering vector
frorong Oct 27, 2023
d864787
Update timer
frorong Oct 27, 2023
2364468
Delete useless code
frorong Oct 27, 2023
9b62996
Update shop
frorong Oct 27, 2023
c2283f8
Merge pull request #78 from Stack-Knowledge/qa/1
frorong Oct 27, 2023
9b4c7e1
Update resolve exception handling
frorong Oct 27, 2023
60e0f31
Merge pull request #77 from Stack-Knowledge/feature/redirectHeader
TaerangLee Oct 27, 2023
21e5238
Merge pull request #79 from Stack-Knowledge/qa/2
frorong Oct 28, 2023
d2aa2ad
Add solving alert
TaerangLee Oct 29, 2023
cc0fd08
Update toastify success -> error
TaerangLee Oct 29, 2023
6a836f2
Merge branch 'develop' into feature/responsive/login
TaerangLee Oct 29, 2023
cf4b154
Merge pull request #80 from Stack-Knowledge/feature/solvingAlert
TaerangLee Oct 29, 2023
dd387f8
Update domain
frorong Oct 29, 2023
b6b2633
Merge pull request #76 from Stack-Knowledge/feature/responsive/login
TaerangLee Oct 29, 2023
2af475c
Merge pull request #81 from Stack-Knowledge/feature/domain
frorong Oct 29, 2023
a52e99b
Add setting gtag
TaerangLee Oct 29, 2023
19add74
Update googleAnalytics logic
TaerangLee Oct 30, 2023
8c62b6f
Update absolute root
TaerangLee Oct 30, 2023
7a1d946
Merge pull request #82 from Stack-Knowledge/feature/googleAnalytics
frorong Oct 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,8 @@
"license": "ISC",
"resolutions": {
"@types/react": "^18.2.0"
},
"devDependencies": {
"@types/gtag.js": "^0.0.17"
}
}
4 changes: 2 additions & 2 deletions packages/common/src/PageContainer/LoginPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const LoginPage = () => {
const { mutate, isSuccess } = usePostLoginCode();

const handleLogin = () => {
window.location.href = `https://gauth.co.kr/login?client_id=e6e8ac7857c94ca7a24db504d33369078ab562d7a29a4c9db353204ae8080be9&redirect_uri=${window.location.href}`;
window.location.href = `${process.env.NEXT_PUBLIC_GAUTH_URL}${window.location.href}`;
};

useEffect(() => {
Expand All @@ -37,7 +37,7 @@ const LoginPage = () => {
</S.BottomIconWrapper>
<LoginLogoIcon />
<S.StackKnowledge>Stack Knowledge</S.StackKnowledge>
<LoginButton onClick={handleLogin} />
<LoginButton disabled={get('code')} onClick={handleLogin} />
</S.MainWrapper>
);
};
Expand Down
8 changes: 8 additions & 0 deletions packages/common/src/PageContainer/MainPage/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,12 @@ export const MissionAlertText = styled.p`
font-weight: 400;
margin-top: 1rem;
width: 80rem;

@media (max-width: 1240px) {
width: calc(100vw - 12.5rem);
}

@media ${({ theme }) => theme.breakPoint[600]} {
width: calc(100vw - 3rem);
}
`;
4 changes: 2 additions & 2 deletions packages/common/src/assets/Login/BottomIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const BottomIcon = () => (
<svg
width='26.625rem'
height='27.9375rem'
xmlns='http://www.w3.org/2000/svg'
width='426'
height='447'
viewBox='0 0 426 447'
fill='none'
>
Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/assets/Login/TopIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const TopIcon = () => (
<svg
width='32.875rem'
height='22.5625rem'
xmlns='http://www.w3.org/2000/svg'
width='526'
height='361'
viewBox='0 0 526 361'
fill='none'
>
Expand Down
48 changes: 46 additions & 2 deletions packages/common/src/components/Banner/Banner1/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,35 @@ export const BannerWrapper = styled.div`
height: 18.75rem;
border-radius: 1.25rem;
display: flex;

@media (max-width: 1240px) {
width: calc(100vw - 12.5rem);
}

@media ${({ theme }) => theme.breakPoint[600]} {
width: calc(100vw - 3rem);
}
`;

export const BannerTitleContainer = styled.div`
width: 40rem;
height: 18.75rem;
padding: 4.375rem 0 0 3.75rem;

@media (max-width: 1240px) {
width: 80vw;
}
`;

export const BannerTitle = styled.span`
color: ${({ theme }) => theme.color.white};
${({ theme }) => theme.typo.h1};
font-weight: 700;
word-break: keep-all;

@media (max-width: 1240px) {
${({ theme }) => theme.typo.h2};
}
`;

export const SunIconWrapper = styled.div`
Expand All @@ -26,16 +43,43 @@ export const SunIconWrapper = styled.div`
right: 1.25rem;
width: 18.1875rem;
height: 12rem;

@media (max-width: 1240px) {
width: 20vw;
height: 13vw;
}

@media ${({ theme }) => theme.breakPoint[600]} {
width: 30vw;
height: 18vw;
}
`;

export const LetgoIconContainer = styled.div`
width: 40rem;
height: 18.75rem;
padding: 1.5rem 3.75rem 1rem 11.25rem;
padding: 2.5rem 3.75rem 1rem 11.25rem;

@media (max-width: 1240px) {
padding: 3.8rem 0 1rem 0;
}

@media ${({ theme }) => theme.breakPoint[600]} {
padding-top: 5rem;
}
`;

export const LetgoIconWrapper = styled.div`
position: relative;
width: 25rem;
height: 16.25rem;

@media (max-width: 1240px) {
width: 22vw;
height: 16vw;
}

@media ${({ theme }) => theme.breakPoint[600]} {
width: 27vw;
height: 18vw;
}
`;
26 changes: 26 additions & 0 deletions packages/common/src/components/Banner/Banner2/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ export const BannerWrapper = styled.div`
height: 18.75rem;
border-radius: 1.25rem;
display: flex;

@media (max-width: 1240px) {
width: calc(100vw - 12.5rem);
}

@media ${({ theme }) => theme.breakPoint[600]} {
width: calc(100vw - 3rem);
}
`;

export const BannerTitleContainer = styled.div`
Expand All @@ -21,18 +29,32 @@ export const BannerTitleContainer = styled.div`
display: flex;
flex-direction: column;
gap: 1.25rem;

@media (max-width: 1240px) {
width: 80vw;
}
`;

export const BannerTitle = styled.span`
color: ${({ theme }) => theme.color.white};
${({ theme }) => theme.typo.h1};
font-weight: 700;
word-break: keep-all;

@media (max-width: 1240px) {
${({ theme }) => theme.typo.h2};
}
`;

export const DocumentIconWrapper = styled.div`
width: 18.75rem;
height: 15.625rem;
position: relative;

@media (max-width: 1240px) {
width: 25vw;
height: 18vw;
}
`;

export const DocumentContainer = styled.div`
Expand All @@ -41,4 +63,8 @@ export const DocumentContainer = styled.div`
justify-content: flex-end;
width: 100%;
padding-right: 6.25rem;

@media (max-width: 1240px) {
padding-right: 2vw;
}
`;
26 changes: 26 additions & 0 deletions packages/common/src/components/Banner/Banner3/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ export const BannerWrapper = styled.div`
height: 18.75rem;
border-radius: 1.25rem;
display: flex;

@media (max-width: 1240px) {
width: calc(100vw - 12.5rem);
}

@media ${({ theme }) => theme.breakPoint[600]} {
width: calc(100vw - 3rem);
}
`;

export const BannerTitleContainer = styled.div`
Expand All @@ -15,18 +23,32 @@ export const BannerTitleContainer = styled.div`
display: flex;
flex-direction: column;
gap: 1.25rem;

@media (max-width: 1240px) {
width: 50vw;
}
`;

export const BannerTitle = styled.span`
color: ${({ theme }) => theme.color.white};
${({ theme }) => theme.typo.h1};
font-weight: 700;
word-break: keep-all;

@media (max-width: 1240px) {
${({ theme }) => theme.typo.h2};
}
`;

export const GiftIconWrapper = styled.div`
width: 18.75rem;
height: 18.75rem;
position: relative;

@media (max-width: 1240px) {
width: 25vw;
height: 25vw;
}
`;

export const GiftContainer = styled.div`
Expand All @@ -35,4 +57,8 @@ export const GiftContainer = styled.div`
justify-content: flex-end;
width: 100%;
padding-right: 6.25rem;

@media (max-width: 1240px) {
padding-right: 2vw;
}
`;
29 changes: 24 additions & 5 deletions packages/common/src/components/Banner/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,45 @@ export const BannerWrapper = styled.div`
display: flex;
position: relative;
overflow: hidden;

@media (max-width: 1240px) {
width: calc(100vw - 12.5rem);
}

@media ${({ theme }) => theme.breakPoint[600]} {
width: calc(100vw - 3rem);
}
`;

export const BannerContainer = styled.div<{
currentBanner: number;
bannerCount: number;
}>`
width: 80rem;
display: flex;
transition: transform 0.5s ease-in-out;
transform: translateX(
${({ currentBanner, bannerCount }) =>
-currentBanner * ((bannerCount * 80) / bannerCount)}rem
);
transform: translateX(${({ currentBanner }) => -currentBanner * 80}rem);

@media (max-width: 1240px) {
transform: translateX(
calc(${({ currentBanner }) => -currentBanner} * (100vw - 12.5rem))
);
}

@media ${({ theme }) => theme.breakPoint[600]} {
transform: translateX(
calc(${({ currentBanner }) => -currentBanner} * (100vw - 3rem))
);
}
`;

export const BannerItem = styled.div`
width: 80rem;
`;

export const DotWrapper = styled.div`
width: 80rem;
max-width: 80rem;
width: 100%;
height: 18.75rem;
position: absolute;
display: flex;
Expand Down
15 changes: 13 additions & 2 deletions packages/common/src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ const Header: React.FC<HeaderProps> = ({ role }) => {
<S.Title>Stack Knowledge</S.Title>
</S.LogoContainer>
<S.MenuNav role={role}>
<S.MenuStrokeItemWrapper href='/' isActive={getIsActive('/')}>

<S.MenuStrokeItemWrapper
href='/'
isActive={getIsActive('/')}
onClick={handleLinkClick}
>

<HomeIcon />
<S.ItemTitle>홈</S.ItemTitle>
</S.MenuStrokeItemWrapper>
Expand Down Expand Up @@ -72,7 +78,12 @@ const Header: React.FC<HeaderProps> = ({ role }) => {
</>
)}

<S.MenuFillItemWrapper href='/shop' isActive={getIsActive('/shop')}>

<S.MenuFillItemWrapper
href='/shop'
isActive={getIsActive('/shop')}
onClick={handleLinkClick}
>
<ShopIcon />
<S.ItemTitle>상점</S.ItemTitle>
</S.MenuFillItemWrapper>
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/components/MainContents/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const Contents = styled.div`
padding: 2.375rem 2.5rem;
gap: 3rem;
overflow-x: scroll;
overflow-y: hidden;

.medalWrapper:nth-of-type(1n) .medal {
background-color: #ffd79b;
Expand Down
1 change: 0 additions & 1 deletion packages/tsconfig/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion projects/admin/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
transpilePackages: ['common', 'api'],

Expand Down
Loading