Skip to content

Commit 764de4e

Browse files
authored
Merge pull request #126 from Yangjaecheon-Otter-Guardians/develop
develop to main merge
2 parents 30a0d43 + 6ded3dc commit 764de4e

5 files changed

Lines changed: 24 additions & 21 deletions

File tree

โ€Žfrontend/src/atom/textAtom.tsโ€Ž

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@ import { atom, atomFamily } from 'recoil';
44
export const TEXT_WHITE: RGBColor = { r: 251, g: 251, b: 251, a: 1 };
55
export const TEXT_BLACK: RGBColor = { r: 10, g: 10, b: 10, a: 1 };
66

7-
export const TEXT_LG = 'text-lg';
8-
export const TEXT_MD = 'text-md2';
9-
export const TEXT_SM = 'text-sm';
10-
export type TextSizeType = 'text-lg' | 'text-md1' | 'text-md2' | 'text-sm' | 'text-xsm';
7+
export const TEXT_LG = 'tablet:text-[34px] text-[21px]';
8+
export const TEXT_MD = 'tablet:text-[26px] text-[16px]';
9+
export const TEXT_SM = 'tablet:text-[22px] text-[14px]';
10+
export type TextSizeType =
11+
| 'tablet:text-[34px] text-[21px]'
12+
| 'tablet:text-[26px] text-[16px]'
13+
| 'tablet:text-[22px] text-[14px]';
1114

1215
export type TextType = {
1316
id: number;
1417
content: string;
15-
fontSize: TextSizeType;
18+
fontSize: string;
1619
fontColor: RGBColor;
1720
};
1821

@@ -32,19 +35,19 @@ const texts: TextType[] = [
3235
{
3336
id: 0,
3437
content: '์ œ๋ชฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”.',
35-
fontSize: 'text-lg',
38+
fontSize: 'tablet:text-[34px] text-[21px]',
3639
fontColor: TEXT_WHITE,
3740
},
3841
{
3942
id: 1,
4043
content: '๋‚ด์šฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”.',
41-
fontSize: 'text-md2',
44+
fontSize: 'tablet:text-[26px] text-[16px]',
4245
fontColor: TEXT_WHITE,
4346
},
4447
{
4548
id: 2,
4649
content: '๋‚ด์šฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”.',
47-
fontSize: 'text-sm',
50+
fontSize: 'tablet:text-[22px] text-[14px]',
4851
fontColor: TEXT_WHITE,
4952
},
5053
];

โ€Žfrontend/src/components/TextPreview.tsxโ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ const TextPreview = () => {
1212
const third = useRecoilValue(textsAll(2));
1313

1414
const styles = {
15-
container: `w-full h-full grid grid-cols-1 place-content-cneter p-5 overflow-hidden font-bold`,
15+
container: `w-full h-full grid grid-cols-1 place-content-cneter p-5 overflow-hidden tracking-[0.8px] leading-normal`,
1616
pos: `flex flex-col ${pos.justifyContent} ${pos.alignItems}`,
1717
sub: `flex flex-col w-full ${pos.justifyContent} ${pos.subAlignItems} `,
18-
first: `break-all ${first.fontSize}`,
19-
second: `break-all ${second.fontSize}`,
20-
third: `break-all ${third.fontSize}`,
18+
first: `break-all ${first.fontSize} font-bold`,
19+
second: `break-all ${second.fontSize} font-semibold`,
20+
third: `break-all ${third.fontSize} font-medium`,
2121
};
2222

2323
return (

โ€Žfrontend/src/styles/TextItem.module.cssโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
background-color: var(--bg-on-surface);
44
padding: 12px 16px;
55
border-radius: 6px;
6-
font-size: 14px;
6+
font-size: 0.875rem;
77
font-weight: 500;
88
box-sizing: border-box;
99
margin: 12px 0;

โ€Žfrontend/src/styles/TextTool.module.cssโ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
flex-direction: column;
66
}
77
.title {
8-
font-size: 16px;
8+
font-size: 1rem;
99
font-weight: 700;
1010
margin-bottom: 10px;
1111
}
1212
.subtitle {
13-
font-size: 14px;
13+
font-size: 0.875rem;
1414
font-weight: 500;
1515
margin-bottom: 12px;
1616
}
@@ -53,7 +53,7 @@
5353
background-color: var(--bg-on-surface);
5454
color: var(--text-active);
5555
margin-bottom: 16px;
56-
font-size: 14px;
56+
font-size: 0.875rem;
5757
}
5858
.selectedCountButton {
5959
background-color: var(--bg-input-border-focus);

โ€Žfrontend/tailwind.config.jsโ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ module.exports = {
5858
'always-red': '#FF3040',
5959
},
6060
fontSize: {
61-
lg: '21px',
62-
md1: '18px',
63-
md2: '16px',
64-
sm: '14px',
65-
xsm: '12px',
61+
lg: '1.3125rem',
62+
md1: '1.125rem',
63+
md2: '1rem',
64+
sm: '0.875rem',
65+
xsm: '0.75rem',
6666
},
6767
borderWidth: {
6868
1: '1px',

0 commit comments

Comments
ย (0)