Skip to content

Commit 052a19b

Browse files
committed
Webkit Support
1 parent c1f8889 commit 052a19b

File tree

6 files changed

+48
-10
lines changed

6 files changed

+48
-10
lines changed

src/Pages/AboutusPage/style.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import styled, { keyframes, css } from "styled-components";
2+
import { bodyText } from "../../Styles/commonStyles";
23
import AboutusTitleJpg from "../../Assets/images/jpg/aboutus-title.jpg";
34

45
const fadeIn = keyframes`
@@ -43,8 +44,8 @@ export const MainContainerTitle = styled.div`
4344
`;
4445

4546
export const MainContainerSubTitle = styled.div`
47+
${bodyText}
4648
font-size: 26px;
47-
font-weight: 500;
4849
color: #ededed;
4950
margin-top: 5px;
5051
text-align: center;
@@ -134,8 +135,8 @@ export const GreetingTitle = styled.div`
134135
`;
135136

136137
export const GreetingDesc = styled.div`
138+
${bodyText}
137139
font-size: 18px;
138-
font-weight: 400;
139140
color: #171717;
140141
line-height: 1.6;
141142
margin-top: 20px;

src/Pages/BlogPage/style.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import styled, { keyframes } from "styled-components";
2+
import { bodyText } from "../../Styles/commonStyles";
23

34
const fadeIn = keyframes`
45
from {
@@ -114,9 +115,9 @@ export const ButtonContainer = styled.div`
114115
`;
115116

116117
export const Button = styled.button`
118+
${bodyText}
117119
padding: 0.75rem 1.5rem;
118120
font-size: 1rem;
119-
font-weight: 500;
120121
border-radius: 6px;
121122
cursor: pointer;
122123
transition: all 0.2s ease;

src/Pages/MainPage/style.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import styled, { keyframes, css } from "styled-components";
2+
import { bodyText } from "../../Styles/commonStyles";
23
import Image1Jpg from "../../Assets/images/jpg/image1.jpg";
34
import Image2Jpg from "../../Assets/images/jpg/image2.jpg";
45

@@ -153,8 +154,8 @@ export const SubContainer1SectionDescription = styled.div`
153154
css`
154155
animation: ${fadeIn} 1s ease-out forwards;
155156
`}
157+
${bodyText}
156158
font-size: 22px;
157-
font-weight: 500;
158159
color: #171717;
159160
@media (max-width: 1920px) {
160161
font-size: 20px;
@@ -330,8 +331,8 @@ export const SubContainer2SectionDescription = styled.div`
330331
css`
331332
animation: ${fadeIn} 1s ease-out forwards;
332333
`}
334+
${bodyText}
333335
font-size: 22px;
334-
font-weight: 500;
335336
color: #fff;
336337
text-align: center;
337338
margin-top: 20px;
@@ -385,8 +386,8 @@ export const StatsItem = styled.div`
385386
`;
386387

387388
export const StatsItemDescription = styled.div`
389+
${bodyText}
388390
font-size: 24px;
389-
font-weight: 500;
390391
color: #171717;
391392
392393
@media (max-width: 1450px) {

src/Pages/StatusPage/style.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import styled, { keyframes } from "styled-components";
2+
import { bodyText } from "../../Styles/commonStyles";
23
import StatusTitleJpg from "../../Assets/images/jpg/status-title.jpg";
34

45
const fadeIn = keyframes`
@@ -39,8 +40,8 @@ export const MainContainerTitle = styled.div`
3940
`;
4041

4142
export const MainContainerSubTitle = styled.div`
43+
${bodyText}
4244
font-size: 26px;
43-
font-weight: 500;
4445
color: #fff;
4546
margin-top: 5px;
4647
text-align: center;

src/Styles/GlobalStyle.jsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,17 @@ const GlobalStyle = createGlobalStyle`
8686
margin: 0;
8787
list-style: none;
8888
text-decoration: none;
89-
font-family: 'Pretendard', sans-serif;
89+
font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
90+
-webkit-font-smoothing: antialiased;
91+
-moz-osx-font-smoothing: grayscale;
92+
font-synthesis: none;
93+
}
94+
95+
/* iOS에서의 폰트 렌더링 최적화 */
96+
@media screen and (-webkit-min-device-pixel-ratio: 2) {
97+
* {
98+
-webkit-font-smoothing: subpixel-antialiased;
99+
}
90100
}
91101
`;
92102

src/Styles/commonStyles.js

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import styled, { keyframes, css } from "styled-components";
1+
import { keyframes, css } from "styled-components";
22

33
// 공통 애니메이션
44
export const fadeIn = keyframes`
@@ -108,7 +108,7 @@ export const sectionTitle = css`
108108

109109
export const sectionSubtitle = css`
110110
font-size: 26px;
111-
font-weight: 500;
111+
font-weight: 400;
112112
color: #333;
113113
text-align: center;
114114
margin-bottom: 1rem;
@@ -120,3 +120,27 @@ export const sectionSubtitle = css`
120120
font-size: 18px;
121121
}
122122
`;
123+
124+
// iOS에서 본문 텍스트를 위한 가벼운 폰트 스타일
125+
export const lightText = css`
126+
font-weight: 300;
127+
-webkit-font-smoothing: antialiased;
128+
-moz-osx-font-smoothing: grayscale;
129+
130+
/* iOS Safari에서 폰트를 더 가볍게 보이도록 */
131+
@supports (-webkit-appearance: none) {
132+
font-weight: 200;
133+
}
134+
`;
135+
136+
// iOS에서 일반 본문 텍스트를 위한 스타일
137+
export const bodyText = css`
138+
font-weight: 400;
139+
-webkit-font-smoothing: antialiased;
140+
-moz-osx-font-smoothing: grayscale;
141+
142+
/* iOS Safari에서 폰트를 더 가볍게 보이도록 */
143+
@supports (-webkit-appearance: none) {
144+
font-weight: 300;
145+
}
146+
`;

0 commit comments

Comments
 (0)