@daeryun/dr_components 0.1.92 → 0.1.93

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.
Files changed (53) hide show
  1. package/dist/asset/images/header/logo_b.webp +0 -0
  2. package/dist/asset/images/header/logo_w.webp +0 -0
  3. package/dist/asset/images/header/military.svg +38 -0
  4. package/dist/asset/images/header/military_w.svg +38 -0
  5. package/dist/components/Header/Header.d.ts +4 -0
  6. package/dist/components/Header/Header.jsx +189 -0
  7. package/dist/components/Header/Header.stories.d.ts +8 -0
  8. package/dist/components/Header/Header.stories.jsx +200 -0
  9. package/dist/components/Header/Header.stories.tsx +209 -0
  10. package/dist/components/Header/Header.tsx +280 -0
  11. package/dist/components/Header/Menu.d.ts +4 -0
  12. package/dist/components/Header/Menu.jsx +10 -0
  13. package/dist/components/Header/Menu.tsx +29 -0
  14. package/dist/components/Header/MobileMenu.d.ts +4 -0
  15. package/dist/components/Header/MobileMenu.jsx +209 -0
  16. package/dist/components/Header/MobileMenu.tsx +370 -0
  17. package/dist/components/Header/PCMenu.d.ts +4 -0
  18. package/dist/components/Header/PCMenu.jsx +130 -0
  19. package/dist/components/Header/PCMenu.tsx +243 -0
  20. package/dist/components/Header/main.module.css +150 -0
  21. package/dist/components/MapFix/AreaImage.jsx +10 -9
  22. package/dist/components/MapFix/AreaImage.tsx +21 -26
  23. package/dist/components/MapSection/MapSection.stories.jsx +16 -0
  24. package/dist/components/MapSection/MapSection.stories.tsx +34 -0
  25. package/dist/components/hook/useBrowser.d.ts +5 -0
  26. package/dist/components/hook/useBrowser.js +51 -0
  27. package/dist/components/hook/useBrowser.ts +58 -0
  28. package/dist/components/hook/useCountNum.d.ts +4 -0
  29. package/dist/components/hook/useCountNum.jsx +23 -0
  30. package/dist/components/hook/useCountNum.tsx +28 -0
  31. package/dist/components/hook/useElementObserve.d.ts +7 -0
  32. package/dist/components/hook/useElementObserve.js +39 -0
  33. package/dist/components/hook/useElementObserve.ts +46 -0
  34. package/dist/components/hook/useScrollRestoration.d.ts +5 -0
  35. package/dist/components/hook/useScrollRestoration.js +61 -0
  36. package/dist/components/hook/useScrollRestoration.ts +80 -0
  37. package/dist/components/hook/useScrollRestorationException.d.ts +2 -0
  38. package/dist/components/hook/useScrollRestorationException.js +24 -0
  39. package/dist/components/hook/useScrollRestorationException.ts +30 -0
  40. package/dist/components/index.js +1 -0
  41. package/dist/components/index.ts +1 -0
  42. package/dist/components/myCase/MyCase.d.ts +5 -0
  43. package/dist/components/myCase/MyCase.jsx +26 -0
  44. package/dist/components/myCase/MyCase.tsx +47 -0
  45. package/dist/components/routes/gnb.d.ts +11 -0
  46. package/dist/components/routes/gnb.jsx +165 -0
  47. package/dist/components/routes/gnb.tsx +172 -0
  48. package/dist/styles/globals.css +324 -0
  49. package/dist/tsconfig.tsbuildinfo +1 -1
  50. package/dist/types/header.d.ts +52 -0
  51. package/dist/types/header.js +1 -0
  52. package/dist/types/header.ts +54 -0
  53. package/package.json +1 -1
@@ -0,0 +1,38 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 207.563 44.631">
2
+ <defs>
3
+ <clipPath id="clip-path">
4
+ <rect id="사각형_3997" data-name="사각형 3997" width="207.563" height="44.631" transform="translate(0 0)" fill="none"/>
5
+ </clipPath>
6
+ </defs>
7
+ <g id="그룹_206247" data-name="그룹 206247" transform="translate(0 0)">
8
+ <path id="패스_10315" data-name="패스 10315" d="M31.22,9.37l2.606-4.606L36.432,9.37l-2.606,4.6ZM33.826,0,28.521,9.37l5.305,9.37,5.305-9.37Z" fill="#ab0634"/>
9
+ <path id="패스_10316" data-name="패스 10316" d="M13.25,19.936l11.47,20.9H13.25Zm41.184-.561V40.837H42.657ZM46.795,6.711h1.948l-18.7,34.126H28.1Zm4.862,0h1.979L34.908,40.837H32.93Zm4.863,0h1.953l-18.7,34.126h-1.98ZM45.077,4.58,26.409,38.641,8.907,6.711h1.947L26.5,35.286l.075.134,1.446-2.64L13.738,6.711h1.98L29.012,30.982l1.444-2.635L18.629,6.711h1.952l10.82,19.8.03.055,1.456-2.658L22.356,4.687,22.3,4.58H0V6.711H5.992l4.423,8.058v28.2H57.27V14.208l4.114-7.5h6.3V4.58Z" fill="#ab0634"/>
10
+ <g id="그룹_206246" data-name="그룹 206246">
11
+ <g id="그룹_206245" data-name="그룹 206245" clip-path="url(#clip-path)">
12
+ <path id="패스_10317" data-name="패스 10317" d="M78.21,35.845h6.27V32.294H75.417V29.626H90.069a16.431,16.431,0,0,0,.377-2.38q.1-1.2.1-2.077V24.062H78.21V21.367H93.72v3.626q0,.429-.037.982c-.026.37-.059.765-.1,1.183s-.092.84-.15,1.259-.123.823-.19,1.209h3.625v2.668H87.651v3.551h6.321V44.2H90.8V38.514H78.21Z" fill="#3c3d3d"/>
13
+ <path id="패스_10318" data-name="패스 10318" d="M109.555,33H98.477V21.594H101.6v3.348h4.834V21.594h3.121ZM101.6,30.355h4.834v-2.77H101.6Zm7.451,14.276a12.229,12.229,0,0,1-2.933-.328,7.754,7.754,0,0,1-2.266-.918,4.487,4.487,0,0,1-1.459-1.422,3.4,3.4,0,0,1-.517-1.838V39.117a3.4,3.4,0,0,1,.517-1.838,4.477,4.477,0,0,1,1.459-1.422,7.782,7.782,0,0,1,2.266-.919,13.282,13.282,0,0,1,5.867,0,7.759,7.759,0,0,1,2.266.919,4.484,4.484,0,0,1,1.461,1.422,3.424,3.424,0,0,1,.515,1.838v1.008a3.426,3.426,0,0,1-.515,1.838,4.494,4.494,0,0,1-1.461,1.422,7.731,7.731,0,0,1-2.266.918,12.219,12.219,0,0,1-2.934.328m0-7.427a7.079,7.079,0,0,0-1.711.188,4.83,4.83,0,0,0-1.271.492,2.538,2.538,0,0,0-.793.679,1.266,1.266,0,0,0-.277.756v.6a1.261,1.261,0,0,0,.277.755,2.54,2.54,0,0,0,.793.68,4.865,4.865,0,0,0,1.271.491,7.848,7.848,0,0,0,3.424,0,4.859,4.859,0,0,0,1.272-.491,2.586,2.586,0,0,0,.793-.68,1.281,1.281,0,0,0,.277-.755v-.6a1.286,1.286,0,0,0-.277-.756,2.584,2.584,0,0,0-.793-.679,4.824,4.824,0,0,0-1.272-.492,7.079,7.079,0,0,0-1.713-.188m7.1-11.506h3.072v2.77h-3.072V34.51h-3.172v-14h3.172Z" fill="#3c3d3d"/>
14
+ <path id="패스_10319" data-name="패스 10319" d="M138.032,21.494v3.852q0,.427-.039,1.032t-.1,1.285q-.064.679-.164,1.4t-.252,1.372h3.7V33.1h-8.787v5.162H129.22V33.1h-9.492V30.432h14.527c.1-.4.189-.827.264-1.271s.138-.886.189-1.323.088-.851.113-1.246.038-.751.038-1.07V24.188H122.523V21.494ZM125.921,40.981h12.715v2.694H122.749V36.3h3.172Z" fill="#3c3d3d"/>
15
+ <path id="패스_10320" data-name="패스 10320" d="M152.257,32.294q.806.882,1.762,1.827t1.939,1.825l-2.041,2.139q-.855-.805-1.66-1.6c-.539-.529-1.041-1.036-1.512-1.524s-.9-.926-1.234-1.321a3.687,3.687,0,0,1-.629-.919h-.051a3.908,3.908,0,0,1-.691,1.02c-.377.445-.778.885-1.2,1.321q-.705.73-1.486,1.5T143.6,38.337l-2.09-2.165a52.516,52.516,0,0,0,3.777-3.7,9.273,9.273,0,0,0,.918-1.158,5.99,5.99,0,0,0,.592-1.133,5.831,5.831,0,0,0,.328-1.209,8.971,8.971,0,0,0,.1-1.409V22.173h3.248v5.389a12.918,12.918,0,0,0,.064,1.359,4.581,4.581,0,0,0,.264,1.146,5.907,5.907,0,0,0,.541,1.082,7.245,7.245,0,0,0,.92,1.145m8.207-3.524h3.223v2.77h-3.223V43.927h-3.2V20.512h3.2Z" fill="#3c3d3d"/>
16
+ <path id="패스_10321" data-name="패스 10321" d="M185.41,40.729h-21.3V38.615h21.3Zm-3.271-17.924v3.424q0,1.686-.062,3.084t-.178,2.642c-.073.831-.168,1.633-.276,2.405s-.24,1.552-.39,2.341l-2.491-.3q.476-2.467.69-4.695t.215-4.594V24.97H166.733V22.805Z" fill="#3c3d3d"/>
17
+ <path id="패스_10322" data-name="패스 10322" d="M195.657,36.374V33.983h-9.391V31.918h21.3v2.065h-9.388v2.391Zm-6.318-5.941V24.844h12.586V23.308H189.212V21.269h15.156v5.539H191.78v1.586h13.041v2.039Zm15.179,5.11v8.308H189.313V35.543h2.467v2.014h10.272V35.543ZM202.052,39.6H191.781v2.14h10.271Z" fill="#3c3d3d"/>
18
+ <path id="패스_10323" data-name="패스 10323" d="M79.109,3.957a3.176,3.176,0,0,1,2.388.886A3.514,3.514,0,0,1,82.361,7.4V8.547A3.513,3.513,0,0,1,81.5,11.1a3.175,3.175,0,0,1-2.388.885H76.6V3.957ZM77.382,11.3H79.12a2.875,2.875,0,0,0,.991-.167,1.951,1.951,0,0,0,.779-.518,2.468,2.468,0,0,0,.508-.875,3.756,3.756,0,0,0,.183-1.247V7.455A3.779,3.779,0,0,0,81.4,6.213a2.474,2.474,0,0,0-.508-.88,1.962,1.962,0,0,0-.779-.518,2.852,2.852,0,0,0-.991-.167H77.382Z" fill="#3c3d3d"/>
19
+ <path id="패스_10324" data-name="패스 10324" d="M90.47,11.989h-.836l-.891-2.495h-3.4l-.914,2.495h-.8l2.986-8.031H87.5ZM85.591,8.814H88.5l-.781-2.172c-.051-.134-.1-.264-.145-.39s-.091-.265-.144-.417-.108-.324-.168-.513l-.211-.674c-.074.261-.141.485-.2.674s-.115.36-.166.513-.1.291-.145.417-.093.256-.144.39Z" fill="#3c3d3d"/>
20
+ <path id="패스_10325" data-name="패스 10325" d="M96.919,3.957v.69H92.864V7.521h3.823v.691H92.864V11.3H97v.69H92.085V3.957Z" fill="#3c3d3d"/>
21
+ <path id="패스_10326" data-name="패스 10326" d="M102.165,8.513a1.119,1.119,0,0,1-.151.011H99.86v3.464h-.779V3.957h2.773a3.254,3.254,0,0,1,1.069.162,2.284,2.284,0,0,1,.8.456,1.918,1.918,0,0,1,.5.7,2.227,2.227,0,0,1,.166.869v.167a2.069,2.069,0,0,1-.388,1.265,2.234,2.234,0,0,1-1.059.774l1.615,3.642h-.835ZM99.86,4.659V7.822h1.76a2.271,2.271,0,0,0,1.51-.406,1.448,1.448,0,0,0,.46-1.142V6.163a1.4,1.4,0,0,0-.451-1.1,2.061,2.061,0,0,0-1.4-.4Z" fill="#3c3d3d"/>
22
+ <path id="패스_10327" data-name="패스 10327" d="M109.161,8.7v3.286h-.779V8.7L105.62,3.957h.879l2.285,4.032,2.227-4.032h.869Z" fill="#3c3d3d"/>
23
+ <path id="패스_10328" data-name="패스 10328" d="M116.292,11.409a1.857,1.857,0,0,0,1.564-.668,3.574,3.574,0,0,0,.518-2.172V3.957h.77v4.9a3.476,3.476,0,0,1-.752,2.462,3.19,3.19,0,0,1-4.205,0,3.48,3.48,0,0,1-.747-2.462v-4.9h.768V8.569a3.574,3.574,0,0,0,.518,2.172,1.858,1.858,0,0,0,1.566.668" fill="#3c3d3d"/>
24
+ <path id="패스_10329" data-name="패스 10329" d="M121.4,3.957h.924l3.687,6.282c.069.113.127.222.18.329s.117.247.2.418V3.957h.746v8.031h-.924l-3.7-6.3q-.1-.178-.177-.324c-.051-.1-.116-.229-.19-.4v7.028H121.4Z" fill="#3c3d3d"/>
25
+ <path id="패스_10330" data-name="패스 10330" d="M133.444,3.957V11.3h4.021v.69h-4.8V3.957Z" fill="#3c3d3d"/>
26
+ <path id="패스_10331" data-name="패스 10331" d="M145.22,11.989h-.836l-.891-2.495h-3.4l-.914,2.495h-.8l2.984-8.031h.881Zm-4.881-3.175h2.908l-.779-2.172c-.053-.134-.1-.264-.145-.39s-.093-.265-.144-.417-.11-.324-.168-.513-.131-.413-.211-.674c-.074.261-.143.485-.2.674s-.115.36-.168.513-.1.291-.145.417-.092.256-.144.39Z" fill="#3c3d3d"/>
27
+ <path id="패스_10332" data-name="패스 10332" d="M145.632,3.957h.836l1.805,7.2h.009l1.916-7.2h.881l1.916,7.2H153l1.816-7.2h.813l-2.217,8.031h-.89l-1.9-7.129-1.9,7.129h-.893Z" fill="#3c3d3d"/>
28
+ <path id="패스_10333" data-name="패스 10333" d="M157.339,11.988V3.957h4.768v.69h-3.989V7.722h3.754v.691h-3.754v3.575Z" fill="#3c3d3d"/>
29
+ <rect id="사각형_3996" data-name="사각형 3996" width="0.779" height="8.031" transform="translate(164.034 3.957)" fill="#3c3d3d"/>
30
+ <path id="패스_10334" data-name="패스 10334" d="M170.193,8.513a1.118,1.118,0,0,1-.151.011h-2.154v3.464h-.779V3.957h2.773a3.254,3.254,0,0,1,1.069.162,2.284,2.284,0,0,1,.8.456,1.918,1.918,0,0,1,.5.7,2.227,2.227,0,0,1,.166.869v.167a2.069,2.069,0,0,1-.388,1.265,2.234,2.234,0,0,1-1.059.774l1.615,3.642h-.835Zm-2.3-3.854V7.822h1.76a2.271,2.271,0,0,0,1.51-.406,1.448,1.448,0,0,0,.46-1.142V6.163a1.4,1.4,0,0,0-.451-1.1,2.061,2.061,0,0,0-1.4-.4Z" fill="#3c3d3d"/>
31
+ <path id="패스_10335" data-name="패스 10335" d="M175.739,6.108c-.043-.1-.084-.181-.121-.251s-.07-.143-.1-.217-.058-.154-.088-.24-.06-.188-.089-.306v6.9h-.768V3.958h.957l2.719,5.881,2.728-5.881h.924v8.031h-.767v-6.9c-.024.118-.047.221-.073.306s-.054.166-.084.24a2.127,2.127,0,0,1-.1.217c-.037.07-.078.154-.123.251L178.6,10.653h-.734Z" fill="#3c3d3d"/>
32
+ <path id="패스_10336" data-name="패스 10336" d="M188.2,3.957V11.3h4.021v.69h-4.8V3.957Z" fill="#3c3d3d"/>
33
+ <path id="패스_10337" data-name="패스 10337" d="M194.6,3.957V11.3h4.021v.69h-4.8V3.957Z" fill="#3c3d3d"/>
34
+ <path id="패스_10338" data-name="패스 10338" d="M202.876,3.835a4.466,4.466,0,0,1,1.42.206,3.739,3.739,0,0,1,1.119.6l-.4.612a3.563,3.563,0,0,0-1.037-.534,3.87,3.87,0,0,0-1.1-.145,2.254,2.254,0,0,0-.986.206,1.979,1.979,0,0,0-.719.58,2.63,2.63,0,0,0-.44.89,4.182,4.182,0,0,0-.15,1.153V8.424a3.311,3.311,0,0,0,.629,2.217,2.187,2.187,0,0,0,1.744.724,3.093,3.093,0,0,0,1.285-.24,3.581,3.581,0,0,0,.92-.585l.457.613a3.742,3.742,0,0,1-2.674.958,2.871,2.871,0,0,1-2.355-.969,4.168,4.168,0,0,1-.8-2.718V7.433a3.965,3.965,0,0,1,.807-2.657,2.84,2.84,0,0,1,2.279-.941" fill="#3c3d3d"/>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </svg>
@@ -0,0 +1,38 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 207.563 44.631">
2
+ <defs>
3
+ <clipPath id="clip-path">
4
+ <rect id="사각형_3997" data-name="사각형 3997" width="207.563" height="44.631" transform="translate(0 0)" fill="#fff"/>
5
+ </clipPath>
6
+ </defs>
7
+ <g id="그룹_206248" data-name="그룹 206248" transform="translate(0 0)">
8
+ <path id="패스_10315" data-name="패스 10315" d="M31.22,9.37l2.606-4.606L36.432,9.37l-2.606,4.6ZM33.826,0,28.521,9.37l5.305,9.37,5.305-9.37Z" fill="#fff"/>
9
+ <path id="패스_10316" data-name="패스 10316" d="M13.25,19.936l11.47,20.9H13.25Zm41.184-.561V40.837H42.657ZM46.795,6.711h1.948l-18.7,34.126H28.1Zm4.862,0h1.979L34.908,40.837H32.93Zm4.863,0h1.953l-18.7,34.126h-1.98ZM45.077,4.58,26.409,38.641,8.907,6.711h1.947L26.5,35.286l.075.134,1.446-2.64L13.738,6.711h1.98L29.012,30.982l1.444-2.635L18.629,6.711h1.952l10.82,19.8.03.055,1.456-2.658L22.356,4.687,22.3,4.58H0V6.711H5.992l4.423,8.058v28.2H57.27V14.208l4.114-7.5h6.3V4.58Z" fill="#fff"/>
10
+ <g id="그룹_206246" data-name="그룹 206246">
11
+ <g id="그룹_206245" data-name="그룹 206245" clip-path="url(#clip-path)">
12
+ <path id="패스_10317" data-name="패스 10317" d="M78.21,35.845h6.27V32.294H75.417V29.626H90.069a16.431,16.431,0,0,0,.377-2.38q.1-1.2.1-2.077V24.062H78.21V21.367H93.72v3.626q0,.429-.037.982c-.026.37-.059.765-.1,1.183s-.092.84-.15,1.259-.123.823-.19,1.209h3.625v2.668H87.651v3.551h6.321V44.2H90.8V38.514H78.21Z" fill="#fff"/>
13
+ <path id="패스_10318" data-name="패스 10318" d="M109.555,33H98.477V21.594H101.6v3.348h4.834V21.594h3.121ZM101.6,30.355h4.834v-2.77H101.6Zm7.451,14.276a12.229,12.229,0,0,1-2.933-.328,7.754,7.754,0,0,1-2.266-.918,4.487,4.487,0,0,1-1.459-1.422,3.4,3.4,0,0,1-.517-1.838V39.117a3.4,3.4,0,0,1,.517-1.838,4.477,4.477,0,0,1,1.459-1.422,7.782,7.782,0,0,1,2.266-.919,13.282,13.282,0,0,1,5.867,0,7.759,7.759,0,0,1,2.266.919,4.484,4.484,0,0,1,1.461,1.422,3.424,3.424,0,0,1,.515,1.838v1.008a3.426,3.426,0,0,1-.515,1.838,4.494,4.494,0,0,1-1.461,1.422,7.731,7.731,0,0,1-2.266.918,12.219,12.219,0,0,1-2.934.328m0-7.427a7.079,7.079,0,0,0-1.711.188,4.83,4.83,0,0,0-1.271.492,2.538,2.538,0,0,0-.793.679,1.266,1.266,0,0,0-.277.756v.6a1.261,1.261,0,0,0,.277.755,2.54,2.54,0,0,0,.793.68,4.865,4.865,0,0,0,1.271.491,7.848,7.848,0,0,0,3.424,0,4.859,4.859,0,0,0,1.272-.491,2.586,2.586,0,0,0,.793-.68,1.281,1.281,0,0,0,.277-.755v-.6a1.286,1.286,0,0,0-.277-.756,2.584,2.584,0,0,0-.793-.679,4.824,4.824,0,0,0-1.272-.492,7.079,7.079,0,0,0-1.713-.188m7.1-11.506h3.072v2.77h-3.072V34.51h-3.172v-14h3.172Z" fill="#fff"/>
14
+ <path id="패스_10319" data-name="패스 10319" d="M138.032,21.494v3.852q0,.427-.039,1.032t-.1,1.285q-.064.679-.164,1.4t-.252,1.372h3.7V33.1h-8.787v5.162H129.22V33.1h-9.492V30.432h14.527c.1-.4.189-.827.264-1.271s.138-.886.189-1.323.088-.851.113-1.246.038-.751.038-1.07V24.188H122.523V21.494ZM125.921,40.981h12.715v2.694H122.749V36.3h3.172Z" fill="#fff"/>
15
+ <path id="패스_10320" data-name="패스 10320" d="M152.257,32.294q.806.882,1.762,1.827t1.939,1.825l-2.041,2.139q-.855-.805-1.66-1.6c-.539-.529-1.041-1.036-1.512-1.524s-.9-.926-1.234-1.321a3.687,3.687,0,0,1-.629-.919h-.051a3.908,3.908,0,0,1-.691,1.02c-.377.445-.778.885-1.2,1.321q-.705.73-1.486,1.5T143.6,38.337l-2.09-2.165a52.516,52.516,0,0,0,3.777-3.7,9.273,9.273,0,0,0,.918-1.158,5.99,5.99,0,0,0,.592-1.133,5.831,5.831,0,0,0,.328-1.209,8.971,8.971,0,0,0,.1-1.409V22.173h3.248v5.389a12.918,12.918,0,0,0,.064,1.359,4.581,4.581,0,0,0,.264,1.146,5.907,5.907,0,0,0,.541,1.082,7.245,7.245,0,0,0,.92,1.145m8.207-3.524h3.223v2.77h-3.223V43.927h-3.2V20.512h3.2Z" fill="#fff"/>
16
+ <path id="패스_10321" data-name="패스 10321" d="M185.41,40.729h-21.3V38.615h21.3Zm-3.271-17.924v3.424q0,1.686-.062,3.084t-.178,2.642c-.073.831-.168,1.633-.276,2.405s-.24,1.552-.39,2.341l-2.491-.3q.476-2.467.69-4.695t.215-4.594V24.97H166.733V22.805Z" fill="#fff"/>
17
+ <path id="패스_10322" data-name="패스 10322" d="M195.657,36.374V33.983h-9.391V31.918h21.3v2.065h-9.388v2.391Zm-6.318-5.941V24.844h12.586V23.308H189.212V21.269h15.156v5.539H191.78v1.586h13.041v2.039Zm15.179,5.11v8.308H189.313V35.543h2.467v2.014h10.272V35.543ZM202.052,39.6H191.781v2.14h10.271Z" fill="#fff"/>
18
+ <path id="패스_10323" data-name="패스 10323" d="M79.109,3.957a3.176,3.176,0,0,1,2.388.886A3.514,3.514,0,0,1,82.361,7.4V8.547A3.513,3.513,0,0,1,81.5,11.1a3.175,3.175,0,0,1-2.388.885H76.6V3.957ZM77.382,11.3H79.12a2.875,2.875,0,0,0,.991-.167,1.951,1.951,0,0,0,.779-.518,2.468,2.468,0,0,0,.508-.875,3.756,3.756,0,0,0,.183-1.247V7.455A3.779,3.779,0,0,0,81.4,6.213a2.474,2.474,0,0,0-.508-.88,1.962,1.962,0,0,0-.779-.518,2.852,2.852,0,0,0-.991-.167H77.382Z" fill="#fff"/>
19
+ <path id="패스_10324" data-name="패스 10324" d="M90.47,11.989h-.836l-.891-2.495h-3.4l-.914,2.495h-.8l2.986-8.031H87.5ZM85.591,8.814H88.5l-.781-2.172c-.051-.134-.1-.264-.145-.39s-.091-.265-.144-.417-.108-.324-.168-.513l-.211-.674c-.074.261-.141.485-.2.674s-.115.36-.166.513-.1.291-.145.417-.093.256-.144.39Z" fill="#fff"/>
20
+ <path id="패스_10325" data-name="패스 10325" d="M96.919,3.957v.69H92.864V7.521h3.823v.691H92.864V11.3H97v.69H92.085V3.957Z" fill="#fff"/>
21
+ <path id="패스_10326" data-name="패스 10326" d="M102.165,8.513a1.119,1.119,0,0,1-.151.011H99.86v3.464h-.779V3.957h2.773a3.254,3.254,0,0,1,1.069.162,2.284,2.284,0,0,1,.8.456,1.918,1.918,0,0,1,.5.7,2.227,2.227,0,0,1,.166.869v.167a2.069,2.069,0,0,1-.388,1.265,2.234,2.234,0,0,1-1.059.774l1.615,3.642h-.835ZM99.86,4.659V7.822h1.76a2.271,2.271,0,0,0,1.51-.406,1.448,1.448,0,0,0,.46-1.142V6.163a1.4,1.4,0,0,0-.451-1.1,2.061,2.061,0,0,0-1.4-.4Z" fill="#fff"/>
22
+ <path id="패스_10327" data-name="패스 10327" d="M109.161,8.7v3.286h-.779V8.7L105.62,3.957h.879l2.285,4.032,2.227-4.032h.869Z" fill="#fff"/>
23
+ <path id="패스_10328" data-name="패스 10328" d="M116.292,11.409a1.857,1.857,0,0,0,1.564-.668,3.574,3.574,0,0,0,.518-2.172V3.957h.77v4.9a3.476,3.476,0,0,1-.752,2.462,3.19,3.19,0,0,1-4.205,0,3.48,3.48,0,0,1-.747-2.462v-4.9h.768V8.569a3.574,3.574,0,0,0,.518,2.172,1.858,1.858,0,0,0,1.566.668" fill="#fff"/>
24
+ <path id="패스_10329" data-name="패스 10329" d="M121.4,3.957h.924l3.687,6.282c.069.113.127.222.18.329s.117.247.2.418V3.957h.746v8.031h-.924l-3.7-6.3q-.1-.178-.177-.324c-.051-.1-.116-.229-.19-.4v7.028H121.4Z" fill="#fff"/>
25
+ <path id="패스_10330" data-name="패스 10330" d="M133.444,3.957V11.3h4.021v.69h-4.8V3.957Z" fill="#fff"/>
26
+ <path id="패스_10331" data-name="패스 10331" d="M145.22,11.989h-.836l-.891-2.495h-3.4l-.914,2.495h-.8l2.984-8.031h.881Zm-4.881-3.175h2.908l-.779-2.172c-.053-.134-.1-.264-.145-.39s-.093-.265-.144-.417-.11-.324-.168-.513-.131-.413-.211-.674c-.074.261-.143.485-.2.674s-.115.36-.168.513-.1.291-.145.417-.092.256-.144.39Z" fill="#fff"/>
27
+ <path id="패스_10332" data-name="패스 10332" d="M145.632,3.957h.836l1.805,7.2h.009l1.916-7.2h.881l1.916,7.2H153l1.816-7.2h.813l-2.217,8.031h-.89l-1.9-7.129-1.9,7.129h-.893Z" fill="#fff"/>
28
+ <path id="패스_10333" data-name="패스 10333" d="M157.339,11.988V3.957h4.768v.69h-3.989V7.722h3.754v.691h-3.754v3.575Z" fill="#fff"/>
29
+ <rect id="사각형_3996" data-name="사각형 3996" width="0.779" height="8.031" transform="translate(164.034 3.957)" fill="#fff"/>
30
+ <path id="패스_10334" data-name="패스 10334" d="M170.193,8.513a1.118,1.118,0,0,1-.151.011h-2.154v3.464h-.779V3.957h2.773a3.254,3.254,0,0,1,1.069.162,2.284,2.284,0,0,1,.8.456,1.918,1.918,0,0,1,.5.7,2.227,2.227,0,0,1,.166.869v.167a2.069,2.069,0,0,1-.388,1.265,2.234,2.234,0,0,1-1.059.774l1.615,3.642h-.835Zm-2.3-3.854V7.822h1.76a2.271,2.271,0,0,0,1.51-.406,1.448,1.448,0,0,0,.46-1.142V6.163a1.4,1.4,0,0,0-.451-1.1,2.061,2.061,0,0,0-1.4-.4Z" fill="#fff"/>
31
+ <path id="패스_10335" data-name="패스 10335" d="M175.739,6.108c-.043-.1-.084-.181-.121-.251s-.07-.143-.1-.217-.058-.154-.088-.24-.06-.188-.089-.306v6.9h-.768V3.958h.957l2.719,5.881,2.728-5.881h.924v8.031h-.767v-6.9c-.024.118-.047.221-.073.306s-.054.166-.084.24a2.127,2.127,0,0,1-.1.217c-.037.07-.078.154-.123.251L178.6,10.653h-.734Z" fill="#fff"/>
32
+ <path id="패스_10336" data-name="패스 10336" d="M188.2,3.957V11.3h4.021v.69h-4.8V3.957Z" fill="#fff"/>
33
+ <path id="패스_10337" data-name="패스 10337" d="M194.6,3.957V11.3h4.021v.69h-4.8V3.957Z" fill="#fff"/>
34
+ <path id="패스_10338" data-name="패스 10338" d="M202.876,3.835a4.466,4.466,0,0,1,1.42.206,3.739,3.739,0,0,1,1.119.6l-.4.612a3.563,3.563,0,0,0-1.037-.534,3.87,3.87,0,0,0-1.1-.145,2.254,2.254,0,0,0-.986.206,1.979,1.979,0,0,0-.719.58,2.63,2.63,0,0,0-.44.89,4.182,4.182,0,0,0-.15,1.153V8.424a3.311,3.311,0,0,0,.629,2.217,2.187,2.187,0,0,0,1.744.724,3.093,3.093,0,0,0,1.285-.24,3.581,3.581,0,0,0,.92-.585l.457.613a3.742,3.742,0,0,1-2.674.958,2.871,2.871,0,0,1-2.355-.969,4.168,4.168,0,0,1-.8-2.718V7.433a3.965,3.965,0,0,1,.807-2.657,2.84,2.84,0,0,1,2.279-.941" fill="#fff"/>
35
+ </g>
36
+ </g>
37
+ </g>
38
+ </svg>
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { IHeaderType } from '../../types/header';
3
+ declare const Header: ({ tel, setTel, setFooterTel, logo, logo_w, routes, keywordArr, categoryType, doNotWrite, name }: IHeaderType) => React.JSX.Element;
4
+ export default Header;
@@ -0,0 +1,189 @@
1
+ import React, { useEffect, useState, useRef, useCallback } from 'react';
2
+ import Image from 'next/image';
3
+ import { useRouter } from 'next/router';
4
+ import Menu from './Menu';
5
+ import { insert } from '../../lib';
6
+ import { savePowerLinkConversion, saveTelNumber } from '../../lib';
7
+ import Link from 'next/link';
8
+ import * as gtag from '../../lib/gtag';
9
+ import { removeScrollPos } from '../hook/useScrollRestoration';
10
+ import Wrapper from '../Layout/Wrapper';
11
+ import Call from '../../asset/images/header/h_call_line.webp';
12
+ import Call_b from '../../asset/images/header/h_call_line_b.webp';
13
+ import H_menu from '../../asset/images/header/h_menu.webp';
14
+ import H_menu_b from '../../asset/images/header/h_menu_b.webp';
15
+ const Header = ({ tel, setTel, setFooterTel, logo, logo_w, routes, keywordArr, categoryType, doNotWrite, name }) => {
16
+ const router = useRouter();
17
+ const mobile = require('is-mobile');
18
+ const [isTop, setIsTop] = useState(true);
19
+ const [isMain, setIsMain] = useState(true);
20
+ const [isMobile, setIsMobile] = useState(false);
21
+ const [opacity, setOpacity] = useState(0);
22
+ const [menuToggle, setMenuToggle] = useState(false);
23
+ const timeoutRef = useRef();
24
+ const headerRef = useRef(null);
25
+ const setNaverLinkTel = () => {
26
+ setTel('1660-1043');
27
+ setFooterTel('1660 - 1043');
28
+ };
29
+ const setGoogleLinkTel = () => {
30
+ setTel('1660-1028');
31
+ setFooterTel('1660 - 1028');
32
+ };
33
+ const setResetTel = () => {
34
+ setTel(tel);
35
+ setFooterTel(tel);
36
+ };
37
+ const setYoutubeTel = () => {
38
+ setTel('02-6958-6578');
39
+ setFooterTel('02 - 6958 - 6578');
40
+ };
41
+ useEffect(() => {
42
+ const is_mobile = mobile();
43
+ saveTelNumber(is_mobile, setNaverLinkTel, setGoogleLinkTel, setYoutubeTel, setResetTel);
44
+ }, []);
45
+ const handleScroll = useCallback(() => {
46
+ const scrollElm = document.scrollingElement;
47
+ if (scrollElm !== null) {
48
+ const scrollTop = Math.max(scrollElm.scrollTop, document.body.scrollTop);
49
+ if (scrollTop > 0) {
50
+ setIsTop(false);
51
+ }
52
+ else {
53
+ setIsTop(true);
54
+ }
55
+ }
56
+ }, []);
57
+ const topTelClick = () => {
58
+ gtag.event({
59
+ action: 'mobile_toptel',
60
+ category: 'toptel',
61
+ label: '모바일상단전화버튼',
62
+ value: '1'
63
+ });
64
+ };
65
+ const ace_ToptelClick = () => {
66
+ try {
67
+ // @ts-ignore
68
+ AM_PL('/m_Toptel');
69
+ }
70
+ catch (e) { }
71
+ };
72
+ const handleMenuToggle = useCallback((url) => {
73
+ if (!menuToggle) {
74
+ timeoutRef.current = setInterval(() => {
75
+ setOpacity(prev => prev + 0.2);
76
+ }, 40);
77
+ }
78
+ else {
79
+ setOpacity(0);
80
+ clearInterval(timeoutRef.current);
81
+ }
82
+ setMenuToggle(prev => !prev);
83
+ if (url) {
84
+ removeScrollPos(url);
85
+ }
86
+ }, [menuToggle]);
87
+ const handleKeyPress = (e) => {
88
+ if (e.key === 'Enter') {
89
+ handleMenuToggle();
90
+ }
91
+ };
92
+ useEffect(() => {
93
+ const isRootPath = router.pathname === '/';
94
+ const isStrengthPath = router.pathname === '/strength';
95
+ const isIntroPath = router.pathname === '/intro';
96
+ const conditionMap = {
97
+ main: [isRootPath, isStrengthPath],
98
+ divorce: [(isRootPath || isStrengthPath) && !doNotWrite],
99
+ assault: [(isRootPath || isStrengthPath) && !doNotWrite],
100
+ medical: [(isRootPath || isStrengthPath) && !doNotWrite],
101
+ detective: [isRootPath, isIntroPath],
102
+ labor: [isRootPath, isIntroPath],
103
+ trade: [isRootPath, isIntroPath],
104
+ comp: [isRootPath, isStrengthPath, router.pathname === '/advice', router.pathname === '/management'],
105
+ school: [isRootPath],
106
+ discovery: [isRootPath],
107
+ tax: [isRootPath],
108
+ inherit: [isRootPath],
109
+ estate: [isStrengthPath],
110
+ military: [isStrengthPath],
111
+ accounting: [isRootPath && !doNotWrite],
112
+ traffic: [isRootPath, isStrengthPath, isIntroPath],
113
+ consulting: [isStrengthPath],
114
+ entertainment: [isRootPath && !doNotWrite]
115
+ };
116
+ const checkCondition = () => {
117
+ const conditions = conditionMap[name];
118
+ return conditions ? conditions.some(Boolean) : false;
119
+ };
120
+ if (checkCondition()) {
121
+ setIsTop(true);
122
+ setIsMain(true);
123
+ document.addEventListener('scroll', handleScroll);
124
+ return () => {
125
+ document.removeEventListener('scroll', handleScroll);
126
+ };
127
+ }
128
+ else {
129
+ setIsMain(true);
130
+ setIsTop(false);
131
+ }
132
+ }, [handleScroll, router.pathname]);
133
+ useEffect(() => {
134
+ setIsMobile(mobile());
135
+ }, []);
136
+ useEffect(() => {
137
+ const pathsToExclude = {
138
+ mainStrength: ['/', '/strength'],
139
+ strength: ['/strength'],
140
+ mainIntro: ['/', '/intro'],
141
+ introStrength: ['/', '/strength', '/intro'],
142
+ main: ['/']
143
+ };
144
+ const shouldSetStates =
145
+ //@ts-ignore
146
+ categoryType in pathsToExclude && !pathsToExclude[categoryType].includes(router.pathname);
147
+ if (shouldSetStates) {
148
+ setIsTop(false);
149
+ setIsMain(false);
150
+ }
151
+ }, [router.pathname, categoryType]);
152
+ useEffect(() => {
153
+ if (opacity > 1) {
154
+ clearInterval(timeoutRef.current);
155
+ }
156
+ }, [opacity]);
157
+ return (<>
158
+ <header ref={headerRef} className={'fixed top-0 z-[3000] h-[90px] w-full bg-white font-[SUIT] max-md2:h-[80px] max-md:h-[70px] ' +
159
+ (isMain
160
+ ? isTop
161
+ ? ' bg-opacity-0 '
162
+ : ' bg-opacity-90 shadow-sm'
163
+ : 'border-b-[2px] border-solid border-[#e5e7eb] bg-opacity-100')}>
164
+ <Wrapper className={'flex h-full items-center justify-between'}>
165
+ <Link href={`/`} className={'block'}>
166
+ <Image src={isTop ? logo_w : logo} alt={`${process.env.NEXT_PUBLIC_KEYWORD}전문변호사 로고`} width={348} height={70} priority property={'eager'} className={'h-[36px] w-auto max-md2:h-[32px] max-md:h-[28px]'}/>
167
+ </Link>
168
+
169
+ <div className={'flex h-full items-center'}>
170
+ <Link href={`tel:${tel}`} onClick={() => {
171
+ insert('call', isMobile);
172
+ savePowerLinkConversion('call', isMobile);
173
+ topTelClick();
174
+ ace_ToptelClick();
175
+ }} aria-label={'tel'} className={'flex items-center gap-[18px] text-[20px] font-[800] leading-none tracking-[-0.4px] max-md2:gap-[10px] max-md2:text-[18px] max-md:text-[16px] max-xs:hidden ' +
176
+ (isTop ? 'text-white' : '')}>
177
+ <Image src={isTop ? Call : Call_b} alt={'tel'} width={76} height={76} className={'h-[38px] w-[38px] max-md2:h-[36px] max-md2:w-[36px] max-md:h-[32px] max-md:w-[32px] '}/>
178
+ {tel}
179
+ </Link>
180
+
181
+ <Menu menuToggle={menuToggle} handleMenuToggle={handleMenuToggle} opacity={opacity} routes={routes} tel={tel} logo={logo} keywordArr={keywordArr}/>
182
+
183
+ {!menuToggle && (<Image onKeyDown={handleKeyPress} tabIndex={0} src={isTop ? H_menu : H_menu_b} alt="메뉴바" width={38} height={17} className={'z-10 ml-[40px] h-auto w-[28px] cursor-pointer max-md2:w-[25px] max-md:ml-[30px] max-md:w-[22px]'} onClick={() => handleMenuToggle()}/>)}
184
+ </div>
185
+ </Wrapper>
186
+ </header>
187
+ </>);
188
+ };
189
+ export default Header;
@@ -0,0 +1,8 @@
1
+ import Header from './Header';
2
+ import type { Meta, StoryObj } from '@storybook/react';
3
+ import '../../styles/globals.css';
4
+ import '../../styles/font_style.css';
5
+ declare const meta: Meta<typeof Header>;
6
+ export default meta;
7
+ type Story = StoryObj<typeof meta>;
8
+ export declare const Default: Story;
@@ -0,0 +1,200 @@
1
+ import Header from './Header';
2
+ import '../../styles/globals.css';
3
+ import '../../styles/font_style.css';
4
+ import { atom } from 'recoil';
5
+ import Logo from '../../asset/images/header/logo_b.webp';
6
+ import Logo_w from '../../asset/images/header/logo_w.webp';
7
+ import { useState } from 'react';
8
+ const meta = {
9
+ component: Header,
10
+ title: 'Header'
11
+ };
12
+ export default meta;
13
+ const footerTelAtom = atom({
14
+ key: 'footer-tel',
15
+ default: '1660 - 1807'
16
+ });
17
+ export const Default = {
18
+ render: args => {
19
+ const [footerTel, setFooterTel] = useState('');
20
+ return (<div className={'h-[800px] w-full bg-gray-200'}>
21
+ <Header {...args} setFooterTel={setFooterTel}/>
22
+ <span className={'block pt-40'}> {footerTel}</span>
23
+ </div>);
24
+ },
25
+ args: {
26
+ setTel: () => { },
27
+ setFooterTel: () => { },
28
+ tel: '1800-7905',
29
+ logo: Logo,
30
+ logo_w: Logo_w,
31
+ categoryType: 'mainStrength',
32
+ keywordArr: ['보이스피싱', '성범죄', '교통사고', '음주운전', '학교폭력', '마약', '명예훼손', '중대재해'],
33
+ name: 'detective',
34
+ routes: [
35
+ {
36
+ path: '/greeting',
37
+ name: '그룹소개',
38
+ routes: [
39
+ {
40
+ path: '/greeting',
41
+ name: '비전',
42
+ ename: 'VISION'
43
+ },
44
+ {
45
+ path: '/strength',
46
+ name: '대륜의 강점',
47
+ ename: 'String point'
48
+ },
49
+ {
50
+ path: '/map',
51
+ name: '오시는 길',
52
+ ename: 'Locations'
53
+ },
54
+ {
55
+ path: 'https://www.daeryunlaw.com/integrate?search=&tab=전체',
56
+ name: '통합검색',
57
+ ename: 'Search entire site'
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ path: '/success?page=1',
63
+ name: '업무사례',
64
+ routes: [
65
+ {
66
+ path: '/success?page=1&search=',
67
+ name: '업무사례',
68
+ ename: 'Deals & Cases'
69
+ },
70
+ {
71
+ path: 'https://www.daeryunlaw.com/trend',
72
+ name: '판결분석',
73
+ ename: 'Class action'
74
+ },
75
+ {
76
+ path: '/info',
77
+ name: '법률정보',
78
+ ename: 'LawInfo'
79
+ },
80
+ {
81
+ path: 'https://www.daeryunlaw.com/webtoon',
82
+ name: '만화로 보는 사례',
83
+ ename: 'Cartoon cases'
84
+ },
85
+ {
86
+ path: '/reply',
87
+ name: '고객후기',
88
+ ename: "Client's reviews"
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ path: '/field/area',
94
+ name: '업무분야',
95
+ routes: [
96
+ {
97
+ path: '/field/area',
98
+ name: '형사그룹 업무',
99
+ ename: 'Practices'
100
+ },
101
+ {
102
+ path: '/field/areaAll',
103
+ name: '전체',
104
+ ename: 'All'
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ path: '/lawyer?pro=false&page=1&search=',
110
+ name: '구성원 소개',
111
+ routes: [
112
+ {
113
+ path: '/lawyer?pro=false&page=1&search=',
114
+ name: '형사그룹 전문변호사',
115
+ ename: 'Attorneys'
116
+ },
117
+ {
118
+ path: '/lawyer?pro=true&page=1&search=',
119
+ name: '특수분야전문가',
120
+ ename: 'Specialists'
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ path: '/broadcast',
126
+ name: '소식/자료',
127
+ routes: [
128
+ {
129
+ path: 'https://www.daeryunlaw.com/broadcast',
130
+ name: '언론보도',
131
+ ename: 'News'
132
+ },
133
+ {
134
+ path: '/notice',
135
+ name: '공지사항',
136
+ ename: 'Notices'
137
+ },
138
+ {
139
+ path: '/archive',
140
+ name: '법률서식',
141
+ ename: 'Archive'
142
+ },
143
+ {
144
+ path: 'https://career.daeryunlaw.com',
145
+ name: '인재채용',
146
+ ename: 'Career'
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ path: '/youtube?search=&page=1',
152
+ name: 'SNS',
153
+ routes: [
154
+ {
155
+ path: '/youtube?search=&page=1',
156
+ name: '유튜브',
157
+ ename: 'Youtube'
158
+ },
159
+ {
160
+ path: '/blog',
161
+ name: '블로그',
162
+ ename: 'Blog'
163
+ },
164
+ {
165
+ path: '/instagram?page=1',
166
+ name: '인스타그램',
167
+ ename: 'Instagram'
168
+ },
169
+ {
170
+ path: '/kin?page=1',
171
+ name: '법률지식인',
172
+ ename: 'Legal Expert'
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ path: 'https://www.scourt.go.kr/portal/information/events/search/search.jsp',
178
+ name: '나의 사건검색',
179
+ routes: [
180
+ {
181
+ path: 'https://www.scourt.go.kr/portal/information/events/search/search.jsp',
182
+ name: '나의 사건검색',
183
+ ename: 'Find my cases'
184
+ }
185
+ ]
186
+ },
187
+ {
188
+ path: '/choice',
189
+ name: '대륜법률상담예약',
190
+ routes: [
191
+ {
192
+ path: '/choice',
193
+ name: '대륜법률상담예약',
194
+ ename: 'Request a counseling'
195
+ }
196
+ ]
197
+ }
198
+ ]
199
+ }
200
+ };