|
| 1 | +import { themeVars } from "@/shared/styles/base/theme.css"; |
| 2 | +import { colorTheme } from "@/shared/styles/tokens/color"; |
| 3 | +import { screen } from "@/shared/styles/tokens/screen"; |
| 4 | +import { style } from "@vanilla-extract/css"; |
| 5 | + |
| 6 | +export const cardBase = style({ |
| 7 | + position: "relative", |
| 8 | + border: "1.5px solid #4d4d4d", |
| 9 | + zIndex: 2, |
| 10 | + width: "100%", |
| 11 | + height: "24.5rem", |
| 12 | + borderRadius: "16px", |
| 13 | + display: "flex", |
| 14 | + flexDirection: "column", |
| 15 | + overflow: "hidden", |
| 16 | + cursor: "pointer", |
| 17 | + backgroundColor: themeVars.color.white[5], |
| 18 | + background: "linear-gradient(180deg, #202025 50%, #5B5D8E 100%)", |
| 19 | + ...screen.md({ |
| 20 | + height: "30rem", |
| 21 | + }), |
| 22 | +}); |
| 23 | + |
| 24 | +export const chipClass = style({ |
| 25 | + ...themeVars.text.F12, |
| 26 | + height: "1.9rem", |
| 27 | + ...screen.md({ |
| 28 | + ...themeVars.text.F14, |
| 29 | + height: "2.25rem", |
| 30 | + }), |
| 31 | +}); |
| 32 | + |
| 33 | +export const cardGradientOverlay = style({ |
| 34 | + position: "absolute", |
| 35 | + top: 0, |
| 36 | + left: 0, |
| 37 | + width: "100%", |
| 38 | + height: "100%", |
| 39 | + pointerEvents: "none", |
| 40 | + zIndex: 1, |
| 41 | +}); |
| 42 | + |
| 43 | +export const cardContentWrapper = style({ |
| 44 | + height: "50%", |
| 45 | + width: "100%", |
| 46 | + display: "flex", |
| 47 | + flexDirection: "column", |
| 48 | + padding: "1.4rem", |
| 49 | + gap: "0.7rem", |
| 50 | + |
| 51 | + ...screen.md({ |
| 52 | + padding: "2rem", |
| 53 | + gap: "0.8rem", |
| 54 | + }), |
| 55 | +}); |
| 56 | + |
| 57 | +export const cardTopWrapper = style({ |
| 58 | + display: "flex", |
| 59 | + flexDirection: "row", |
| 60 | + gap: "1.4rem", |
| 61 | + alignItems: "center", |
| 62 | + background: "linear-gradient(90deg, #8CA8FA 0%, #886DF4 100%)", |
| 63 | + backgroundClip: "text", |
| 64 | + WebkitBackgroundClip: "text", |
| 65 | + color: "transparent", |
| 66 | + fontFamily: "Pretendard", |
| 67 | + fontSize: "1.4rem", |
| 68 | + fontStyle: "normal", |
| 69 | + fontWeight: "800", |
| 70 | + lineHeight: "140%", |
| 71 | + ...screen.md({ |
| 72 | + fontSize: "1.6rem", |
| 73 | + }), |
| 74 | +}); |
| 75 | + |
| 76 | +export const cardIcon = style({ |
| 77 | + width: "12.6rem", |
| 78 | + height: "9.7rem", |
| 79 | +}); |
| 80 | + |
| 81 | +export const cardIconWrapper = style({ |
| 82 | + position: "relative", |
| 83 | + zIndex: 2, |
| 84 | + width: "100%", |
| 85 | + height: "50%", |
| 86 | + padding: "2rem", |
| 87 | + display: "flex", |
| 88 | + justifyContent: "flex-end", |
| 89 | + alignItems: "flex-end", |
| 90 | +}); |
| 91 | + |
| 92 | +export const cardTitle = style({ |
| 93 | + whiteSpace: "pre-wrap", |
| 94 | + wordWrap: "break-word", |
| 95 | + wordBreak: "break-word", |
| 96 | + ...themeVars.text.F17, |
| 97 | + color: colorTheme.white[85], |
| 98 | + |
| 99 | + ...screen.md({ |
| 100 | + ...themeVars.text.F22, |
| 101 | + }), |
| 102 | +}); |
| 103 | + |
| 104 | +export const cardDescription = style({ |
| 105 | + whiteSpace: "pre-wrap", |
| 106 | + ...themeVars.text.F14, |
| 107 | + color: colorTheme.white[60], |
| 108 | + gap: "0.4rem", |
| 109 | + display: "flex", |
| 110 | + flexDirection: "row", |
| 111 | + |
| 112 | + ...screen.md({ |
| 113 | + ...themeVars.text.F15, |
| 114 | + color: colorTheme.white[50], |
| 115 | + }), |
| 116 | +}); |
0 commit comments