Skip to content

Commit 77e2115

Browse files
feat: make tours glassmorphic
1 parent f311835 commit 77e2115

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

src/contexts/TourContext.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,27 +140,26 @@ export const TourProvider: React.FC<TourProviderProps> = ({ children }) => {
140140
return (
141141
<div
142142
{...tooltipProps}
143-
className="rounded-lg border border-white/10 bg-background-1 shadow-xl"
143+
className="from-white/12/80 to-white/5/80 w-[320px] overflow-hidden rounded-xl border-2 border-white/10 bg-gradient-to-br backdrop-blur-xl"
144144
style={{
145-
width: '320px',
146145
fontFamily: 'inherit',
147146
}}
148147
>
149148
{/* Header */}
150-
<div className="flex items-center justify-between border-b border-white/10 p-3 sm:p-4">
149+
<div className="bg-white/5/60 flex items-center justify-between border-b border-white/10 p-3 backdrop-blur sm:p-4">
151150
<div className="flex items-center gap-2 sm:gap-3">
152-
<div className="flex h-6 w-6 items-center justify-center rounded-full bg-human-4 sm:h-8 sm:w-8">
151+
<div className="flex h-6 w-6 items-center justify-center rounded-full border border-white/20 bg-human-4 sm:h-8 sm:w-8">
153152
<span className="text-xs font-bold text-white sm:text-sm">
154153
{index + 1}
155154
</span>
156155
</div>
157-
<h3 className="text-base font-semibold text-primary sm:text-lg">
156+
<h3 className="text-base font-semibold text-white sm:text-lg">
158157
{tourStep.title}
159158
</h3>
160159
</div>
161160
<button
162161
onClick={() => skipTour()}
163-
className="text-secondary hover:text-primary"
162+
className="bg-white/5/70 flex h-8 w-8 items-center justify-center rounded-full border border-white/10 p-1 text-white/70 transition-colors hover:border-white/20 hover:bg-white/10 hover:text-white"
164163
title="Skip tour"
165164
>
166165
<span className="material-symbols-outlined text-lg sm:text-xl">
@@ -170,14 +169,14 @@ export const TourProvider: React.FC<TourProviderProps> = ({ children }) => {
170169
</div>
171170

172171
{/* Content */}
173-
<div className="p-3 sm:p-4">
174-
<p className="text-xs leading-relaxed text-secondary sm:text-sm">
172+
<div className="bg-white/5/40 p-3 sm:p-4">
173+
<p className="text-xs leading-relaxed text-white/80 sm:text-sm">
175174
{tourStep.description}
176175
</p>
177176
</div>
178177

179178
{/* Footer */}
180-
<div className="flex items-center justify-between border-t border-white/10 p-3 sm:p-4">
179+
<div className="bg-white/5/60 flex items-center justify-between border-t border-white/10 p-3 backdrop-blur sm:p-4">
181180
<div className="flex items-center gap-1">
182181
{Array.from({ length: size }).map((_, idx) => (
183182
<div
@@ -197,7 +196,7 @@ export const TourProvider: React.FC<TourProviderProps> = ({ children }) => {
197196
<button
198197
onClick={handlePrevious}
199198
disabled={tourState.currentStep === 0}
200-
className="flex items-center gap-1 rounded bg-background-2 px-2 py-1 text-xs text-secondary transition-colors hover:bg-background-3 disabled:cursor-not-allowed disabled:opacity-50 sm:px-3 sm:text-sm"
199+
className="bg-white/5/60 flex items-center gap-1 rounded border border-white/10 px-2 py-1 text-xs text-white/75 backdrop-blur transition-colors hover:border-white/20 hover:bg-white/10 hover:text-white disabled:cursor-not-allowed disabled:border-white/5 disabled:bg-white/5 disabled:text-white/40 sm:px-3 sm:text-sm"
201200
>
202201
<span className="material-symbols-outlined text-xs sm:text-sm">
203202
arrow_back

0 commit comments

Comments
 (0)