Skip to content

Commit d3e07ce

Browse files
authored
Merge pull request #96 from Stack-Knowledge/develop
Release 1.0.3
2 parents fb65b75 + a28ccf6 commit d3e07ce

File tree

31 files changed

+220
-46
lines changed

31 files changed

+220
-46
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"@types/react": "^18.2.0",
2222
"next": "13.4.2",
2323
"react": "^18.2.0",
24-
"react-toastify": "^9.1.3"
24+
"react-toastify": "^9.1.3",
25+
"zustand": "^4.4.6"
2526
},
2627
"keywords": [],
2728
"author": "",

packages/common/src/assets/svg/DefaultProfile.svg

Lines changed: 2 additions & 2 deletions
Loading

packages/common/src/assets/svg/HomeIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const HomeIcon = () => (
22
<svg
3-
width='26'
4-
height='22'
3+
width='1.625rem'
4+
height='1.375rem'
55
viewBox='0 0 26 22'
66
fill='none'
77
xmlns='http://www.w3.org/2000/svg'

packages/common/src/assets/svg/LogoIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const LogoIcon = () => (
22
<svg
3-
width='40'
4-
height='40'
3+
width='2.5rem'
4+
height='2.5rem'
55
viewBox='0 0 40 40'
66
fill='none'
77
xmlns='http://www.w3.org/2000/svg'

packages/common/src/assets/svg/QuestionIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const QuestionIcon = () => (
22
<svg
3-
width='20'
4-
height='22'
3+
width='1.25rem'
4+
height='1.375rem'
55
viewBox='0 0 20 22'
66
fill='none'
77
xmlns='http://www.w3.org/2000/svg'

packages/common/src/assets/svg/RankingIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const RankingIcon = () => (
22
<svg
3-
width='18'
4-
height='18'
3+
width='1.125rem'
4+
height='1.125rem'
55
viewBox='0 0 18 18'
66
fill='none'
77
xmlns='http://www.w3.org/2000/svg'

packages/common/src/assets/svg/ShopIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const ShopIcon = () => (
22
<svg
3-
width='20'
4-
height='20'
3+
width='1.25rem'
4+
height='1.25rem'
55
viewBox='0 0 20 20'
66
fill='none'
77
xmlns='http://www.w3.org/2000/svg'

packages/common/src/assets/svg/VectorIcon.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ interface VectorIconProps {
55
const VectorIcon: React.FC<VectorIconProps> = ({ direction }) => (
66
<svg
77
xmlns='http://www.w3.org/2000/svg'
8-
width='80'
9-
height='80'
8+
width='5rem'
9+
height='5rem'
1010
viewBox='0 0 80 80'
1111
fill='none'
1212
transform={`${direction === 'right' ? 'rotate(-180)' : ''}`}

packages/common/src/components/Banner/style.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ export const BannerContainer = styled.div<{
4141

4242
export const BannerItem = styled.div`
4343
width: 80rem;
44+
45+
@media (max-width: 1240px) {
46+
width: calc(100vw - 12.5rem);
47+
}
48+
49+
@media ${({ theme }) => theme.breakPoint[600]} {
50+
width: calc(100vw - 3rem);
51+
}
4452
`;
4553

4654
export const DotWrapper = styled.div`

packages/common/src/components/Header/style.ts

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ export const HeaderContainer = styled.div`
1414
display: flex;
1515
align-items: center;
1616
justify-content: space-between;
17+
18+
@media (max-width: 1240px) {
19+
width: calc(100vw - 12.5rem);
20+
}
21+
@media ${({ theme }) => theme.breakPoint[600]} {
22+
width: calc(100vw - 3rem);
23+
}
1724
`;
1825

1926
export const LogoContainer = styled(Link)`
@@ -34,9 +41,12 @@ export const MenuNav = styled.div`
3441
gap: ${({ role }) => (role === 'admin' ? '1.5rem' : '2.25rem')};
3542
`;
3643

37-
export const MenuStrokeItemWrapper = styled(Link)<{ $isActive?: boolean }>`
38-
${({ $isActive, theme }) => {
39-
const activeColor = $isActive ? theme.color.primary : theme.color.black;
44+
export const MenuStrokeItemWrapper = styled(Link)<{ isActive?: boolean }>`
45+
@media (max-width: 300px) {
46+
width: 30px;
47+
}
48+
${({ isActive, theme }) => {
49+
const activeColor = isActive ? theme.color.primary : theme.color.black;
4050
const hoverColor = theme.color.primary;
4151
return `
4252
display: flex;
@@ -63,9 +73,12 @@ export const MenuStrokeItemWrapper = styled(Link)<{ $isActive?: boolean }>`
6373
}}
6474
`;
6575

66-
export const MenuFillItemWrapper = styled(Link)<{ $isActive?: boolean }>`
67-
${({ $isActive, theme }) => {
68-
const activeColor = $isActive ? theme.color.primary : theme.color.black;
76+
export const MenuFillItemWrapper = styled(Link)<{ isActive?: boolean }>`
77+
@media (max-width: 300px) {
78+
width: 30px;
79+
}
80+
${({ isActive, theme }) => {
81+
const activeColor = isActive ? theme.color.primary : theme.color.black;
6982
const hoverColor = theme.color.primary;
7083
return `
7184
display: flex;
@@ -78,7 +91,7 @@ export const MenuFillItemWrapper = styled(Link)<{ $isActive?: boolean }>`
7891
rect, path {fill:${activeColor};}
7992
}
8093
81-
&:hover{
94+
&:hover{
8295
span,
8396
& svg{
8497
color:${hoverColor};

0 commit comments

Comments
 (0)