-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
213 lines (197 loc) · 6.75 KB
/
tailwind.config.ts
File metadata and controls
213 lines (197 loc) · 6.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
import type { Config } from 'tailwindcss';
import plugin from 'tailwindcss/plugin';
const DURATION = '3s';
export default {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
fontFamily: {
inter: ['var(--font-inter)', 'arial'],
montserrat: ['var(--font-montserrat)', 'arial'],
jakarta: ['var(--font-jakarta)', 'arial'],
},
colors: {
background: 'var(--background)',
foreground: 'var(--foreground)',
secondary: '#E5EEF1',
shadow: '#A6BFC7',
},
boxShadow: {
card: '4px 4px 0 0 #A6BFC7',
background: 'var(--background)',
foreground: 'var(--foreground)',
darkpurple: 'var(--background-dark-purple)',
},
keyframes: {
// existing
'float-bob': {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-20px)' },
},
'slide-right': {
'0%': { left: '0%' },
'75%': { left: '70%' },
'100%': { left: 'unset', right: '0%' },
},
// =========================
// ✅ Infinite sponsor marquee
// Track must contain TWO identical copies of content
// and we animate by -50% for seamless looping.
// =========================
'sponsor-marquee-left': {
'0%': { transform: 'translateX(0)' },
'100%': { transform: 'translateX(-50%)' },
},
'sponsor-marquee-right': {
'0%': { transform: 'translateX(-50%)' },
'100%': { transform: 'translateX(0)' },
},
// existing picture stack
picture1: {
'0%, 40%, 100%': {
transform:
'translate(-50%, -50%) translate(0%, 0%) rotate(0deg) scale(1)',
zIndex: '50',
},
'52%': {
transform:
'translate(-50%, -50%) translate(0%, 105%) rotate(0deg) scale(0.98)',
zIndex: '50',
},
'58%': {
transform:
'translate(-50%, -50%) translate(0%, 105%) rotate(0deg) scale(0.98)',
zIndex: '5',
},
'72%': {
transform:
'translate(-50%, -50%) translate(18%, -10%) rotate(8deg) scale(0.92)',
zIndex: '5',
},
'86%': {
transform:
'translate(-50%, -50%) translate(0%, 0%) rotate(0deg) scale(1)',
zIndex: '5',
},
'92%': {
transform:
'translate(-50%, -50%) translate(0%, 0%) rotate(0deg) scale(1)',
zIndex: '50',
},
},
picture2: {
'0%, 55%': {
transform:
'translate(-50%, -50%) translate(-32%, 6%) rotate(-14deg) scale(0.95)',
zIndex: '30',
},
'100%': {
transform:
'translate(-50%, -50%) translate(0%, 0%) rotate(0deg) scale(1)',
zIndex: '50',
},
},
picture3: {
'0%, 55%': {
transform:
'translate(-50%, -50%) translate(32%, 6%) rotate(14deg) scale(0.95)',
zIndex: '20',
},
'100%': {
transform:
'translate(-50%, -50%) translate(-32%, 6%) rotate(-14deg) scale(0.95)',
zIndex: '30',
},
},
picture4: {
'0%, 55%': {
transform:
'translate(-50%, -50%) translate(-18%, -10%) rotate(-8deg) scale(0.92)',
zIndex: '10',
},
'100%': {
transform:
'translate(-50%, -50%) translate(32%, 6%) rotate(14deg) scale(0.95)',
zIndex: '20',
},
},
picture5: {
'0%, 55%': {
transform:
'translate(-50%, -50%) translate(18%, -10%) rotate(8deg) scale(0.92)',
zIndex: '5',
},
'100%': {
transform:
'translate(-50%, -50%) translate(-18%, -10%) rotate(-8deg) scale(0.92)',
zIndex: '10',
},
},
},
animation: {
// existing
'float-bob': 'float-bob 3s ease-in-out infinite',
'slide-right': 'slide-right 300ms linear forwards',
picture1: `picture1 ${DURATION} ease-in-out infinite`,
picture2: `picture2 ${DURATION} ease-in-out infinite`,
picture3: `picture3 ${DURATION} ease-in-out infinite`,
picture4: `picture4 ${DURATION} ease-in-out infinite`,
picture5: `picture5 ${DURATION} ease-in-out infinite`,
// ✅ New marquee utilities
// adjust durations to change speed
'sponsor-left': 'sponsor-marquee-left 150s linear infinite',
'sponsor-right': 'sponsor-marquee-right 120s linear infinite',
},
},
},
plugins: [
plugin(({ addUtilities }) => {
addUtilities({
'.glass-pill': {
display: 'inline-flex',
alignItems: 'center',
gap: '2%',
height: '10%',
padding: '2% 3.5%',
borderRadius: '99em',
backgroundColor: 'rgba(255, 255, 255, 0.2)',
backdropFilter: 'blur(10px)',
WebkitBackdropFilter: 'blur(10px)',
boxShadow:
'inset 0 0 0 1px color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 6%), transparent 75%), inset 1.4px 2.2px 2px -2px color-mix(in srgb, var(--glass-light) calc(var(--glass-reflex-light) * 60%), transparent 75%), inset -1px 1.6px 2px -2px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 10%), transparent 80%), inset 0px 2px 4px -2px color-mix(in srgb, var(--glass-dark) calc(var(--glass-reflex-dark) * 10%), transparent 80%)',
},
'.header-navbar': {
display: 'inline-flex',
alignItems: 'center',
gap: '2%',
height: '10%',
padding: '2% 3.5%',
borderRadius: '99em',
backgroundColor: 'rgba(255, 255, 255, 0.18)',
backdropFilter: 'blur(12px) saturate(140%)',
WebkitBackdropFilter: 'blur(12px) saturate(140%)',
},
'.glass-bubble': {
display: 'inline-flex',
alignItems: 'center',
gap: '2%',
height: '10%',
padding: '2% 3.5%',
borderRadius: '99em',
'--bubble-x': '50%',
'--bubble-y': '50%',
'--bubble-c1': 'rgba(255, 255, 255, 0.35)',
'--bubble-c2': 'rgba(255, 255, 255, 0.12)',
background:
'radial-gradient(circle at var(--bubble-x) var(--bubble-y), var(--bubble-c1) 0%, var(--bubble-c2) 70%)',
backdropFilter: 'blur(10px)',
WebkitBackdropFilter: 'blur(10px)',
},
});
}),
],
} satisfies Config;