|
| 1 | +/** @jsxImportSource @emotion/react */ |
| 2 | +import { css } from "@emotion/react"; |
| 3 | +import { BREAKPOINTS } from "@/constants/responsive"; |
| 4 | +import { COLORS } from "@/styles/colors"; |
| 5 | +import { FONT_SIZES } from "@/styles/fontSizes"; |
| 6 | + |
| 7 | +const BannerStyle = css` |
| 8 | + min-height: 540px; |
| 9 | + background: ${COLORS.background.blue}; |
| 10 | + color: ${COLORS.gray[700]}; |
| 11 | + text-align: center; |
| 12 | +
|
| 13 | + .banner-container { |
| 14 | + display: flex; |
| 15 | + flex-direction: column; |
| 16 | + justify-content: space-between; |
| 17 | + height: 100%; |
| 18 | + min-height: 540px; |
| 19 | + } |
| 20 | +
|
| 21 | + .banner-hero { |
| 22 | + background: ${COLORS.background.lightBlue}; |
| 23 | + } |
| 24 | +
|
| 25 | + .banner-title { |
| 26 | + margin-bottom: 18px; |
| 27 | + word-break: keep-all; |
| 28 | +
|
| 29 | + @media (min-width: ${BREAKPOINTS.tablet}px) { |
| 30 | + margin-bottom: 24px; |
| 31 | + } |
| 32 | +
|
| 33 | + @media (min-width: ${BREAKPOINTS.desktop}px) { |
| 34 | + margin-bottom: 32px; |
| 35 | + } |
| 36 | + } |
| 37 | +
|
| 38 | + .banner-info { |
| 39 | + padding-top: 120px; |
| 40 | + } |
| 41 | +
|
| 42 | + .banner-hero .banner-info { |
| 43 | + display: flex; |
| 44 | + flex-direction: column; |
| 45 | + align-items: center; |
| 46 | + margin: 0 auto; |
| 47 | + padding-top: 48px; |
| 48 | + max-width: 240px; |
| 49 | + } |
| 50 | +
|
| 51 | + .banner-info .btn-lg { |
| 52 | + display: block; |
| 53 | + width: 100%; |
| 54 | + font-size: ${FONT_SIZES[18]}; |
| 55 | + line-height: 24px; |
| 56 | + max-width: 356px; |
| 57 | + } |
| 58 | +
|
| 59 | + .banner-img { |
| 60 | + width: 100%; |
| 61 | + max-width: 744px; |
| 62 | + margin: 0 auto; |
| 63 | + } |
| 64 | +
|
| 65 | + @media (min-width: 640px) { |
| 66 | + .banner-hero .banner-info { |
| 67 | + padding: 84px 0 210px; |
| 68 | + max-width: none; |
| 69 | + } |
| 70 | + } |
| 71 | +
|
| 72 | + @media (min-width: ${BREAKPOINTS.tablet}px) { |
| 73 | + .banner { |
| 74 | + height: 926px; |
| 75 | + } |
| 76 | + .banner.banner-hero { |
| 77 | + height: 770px; |
| 78 | + } |
| 79 | +
|
| 80 | + .banner-info .btn-lg { |
| 81 | + line-height: 32px; |
| 82 | + font-size: ${FONT_SIZES[20]}; |
| 83 | + } |
| 84 | + } |
| 85 | +
|
| 86 | + @media (min-width: ${BREAKPOINTS.desktop}px) { |
| 87 | + .banner-container { |
| 88 | + width: var(--container-width); |
| 89 | + margin: 0 auto; |
| 90 | + } |
| 91 | +
|
| 92 | + .banner, |
| 93 | + .banner.banner-hero { |
| 94 | + height: 540px; |
| 95 | + } |
| 96 | +
|
| 97 | + .banner-hero .banner-info { |
| 98 | + align-items: flex-start; |
| 99 | + } |
| 100 | +
|
| 101 | + .banner-container { |
| 102 | + flex-direction: row; |
| 103 | + justify-content: center; |
| 104 | + align-items: flex-end; |
| 105 | + } |
| 106 | +
|
| 107 | + .banner-info { |
| 108 | + padding-bottom: 10.75rem; |
| 109 | + } |
| 110 | + .banner-hero .banner-info { |
| 111 | + padding-bottom: 6.25rem; |
| 112 | + } |
| 113 | +
|
| 114 | + .banner-title { |
| 115 | + text-align: left; |
| 116 | + } |
| 117 | + } |
| 118 | +
|
| 119 | + @supports (font-size: clamp(1rem, 2vw, 3rem)) { |
| 120 | + .banner-title { |
| 121 | + font-size: clamp(32px, 5vw, 40px); |
| 122 | + } |
| 123 | + } |
| 124 | +`; |
| 125 | + |
| 126 | +export default BannerStyle; |
0 commit comments