@daeryun/dr_components 0.8.70 → 0.8.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,13 +5,14 @@ import PrevIcon from '../../asset/images/daeryuntalk/prev.svg';
5
5
 
6
6
  type NoticeMessageProps = {
7
7
  content: string;
8
+ isMobile: boolean;
8
9
  };
9
10
 
10
- const NoticeMessage: React.FC<NoticeMessageProps> = ({ content }) => {
11
+ const NoticeMessage: React.FC<NoticeMessageProps> = ({ content, isMobile }) => {
11
12
  const [isExpanded, setIsExpanded] = useState(false);
12
13
 
13
14
  return (
14
- <div className="bg-[#F7F7F7]/90 px-[20px] pb-[12px] pt-[8px] backdrop-blur-[4px]">
15
+ <div className={`bg-[#F7F7F7]/90 px-[20px] pb-[12px] pt-[8px] backdrop-blur-[4px]`}>
15
16
  <div className="flex items-start gap-[8px]">
16
17
  <div className="flex-shrink-0">
17
18
  <NoticeIcon width={24} height={24} />
@@ -0,0 +1,6 @@
1
+ type WindowSize = {
2
+ width: number;
3
+ height: number;
4
+ };
5
+ export declare const useWindowSize: () => WindowSize;
6
+ export {};
@@ -0,0 +1,20 @@
1
+ import { useEffect, useState } from 'react';
2
+ export const useWindowSize = () => {
3
+ const [windowSize, setWindowSize] = useState({
4
+ width: typeof window !== 'undefined' ? window.innerWidth : 0,
5
+ height: typeof window !== 'undefined' ? window.innerHeight : 0
6
+ });
7
+ useEffect(() => {
8
+ const handleResize = () => {
9
+ setWindowSize({
10
+ width: window.innerWidth,
11
+ height: window.innerHeight
12
+ });
13
+ };
14
+ // 초기 실행
15
+ handleResize();
16
+ window.addEventListener('resize', handleResize);
17
+ return () => window.removeEventListener('resize', handleResize);
18
+ }, []);
19
+ return windowSize;
20
+ };
@@ -0,0 +1,30 @@
1
+ import { useEffect, useState } from 'react';
2
+
3
+ type WindowSize = {
4
+ width: number;
5
+ height: number;
6
+ };
7
+
8
+ export const useWindowSize = (): WindowSize => {
9
+ const [windowSize, setWindowSize] = useState<WindowSize>({
10
+ width: typeof window !== 'undefined' ? window.innerWidth : 0,
11
+ height: typeof window !== 'undefined' ? window.innerHeight : 0
12
+ });
13
+
14
+ useEffect(() => {
15
+ const handleResize = () => {
16
+ setWindowSize({
17
+ width: window.innerWidth,
18
+ height: window.innerHeight
19
+ });
20
+ };
21
+
22
+ // 초기 실행
23
+ handleResize();
24
+
25
+ window.addEventListener('resize', handleResize);
26
+ return () => window.removeEventListener('resize', handleResize);
27
+ }, []);
28
+
29
+ return windowSize;
30
+ };
@@ -4689,6 +4689,10 @@ video {
4689
4689
  border-width: 4px;
4690
4690
  }
4691
4691
 
4692
+ .border-\[0px\] {
4693
+ border-width: 0px;
4694
+ }
4695
+
4692
4696
  .border-\[1px\] {
4693
4697
  border-width: 1px;
4694
4698
  }
@@ -6286,6 +6290,14 @@ video {
6286
6290
  padding-bottom: 9px;
6287
6291
  }
6288
6292
 
6293
+ .\!pl-\[4px\] {
6294
+ padding-left: 4px !important;
6295
+ }
6296
+
6297
+ .\!pt-\[4px\] {
6298
+ padding-top: 4px !important;
6299
+ }
6300
+
6289
6301
  .pb-1 {
6290
6302
  padding-bottom: 0.25rem;
6291
6303
  }
@@ -15918,6 +15930,10 @@ body {
15918
15930
  padding-right: 26px;
15919
15931
  }
15920
15932
 
15933
+ .xs\:pb-\[100px\] {
15934
+ padding-bottom: 100px;
15935
+ }
15936
+
15921
15937
  .xs\:pl-\[11px\] {
15922
15938
  padding-left: 11px;
15923
15939
  }