Skip to content

Commit c75f1b0

Browse files
author
wkylin
committed
feat: tailwind
1 parent e1ad53e commit c75f1b0

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/components/stateless/MusicPlayer/index.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ const MusicPlayer = () => {
169169
const remainingTime = duration - currentTime
170170

171171
return (
172-
<div className="mx-auto flex h-[700px] max-w-md flex-col overflow-hidden rounded-2xl bg-gray-900 font-sans text-white shadow-2xl">
172+
<div className="mx-auto flex h-175 max-w-md flex-col overflow-hidden rounded-2xl bg-gray-900 font-sans text-white shadow-2xl">
173173
{/* === 上半部分:播放器控制 === */}
174-
<div className="z-10 flex flex-col items-center bg-gradient-to-br from-gray-800 to-gray-900 p-6 shadow-lg">
174+
<div className="z-10 flex flex-col items-center bg-linear-to-br from-gray-800 to-gray-900 p-6 shadow-lg">
175175
{/* 封面 & 旋转动画 */}
176176
<div
177177
className={`relative mb-6 h-56 w-56 overflow-hidden rounded-full border-8 border-gray-800 shadow-2xl ${isPlaying ? 'animate-[spin_12s_linear_infinite]' : ''}`}
@@ -282,9 +282,9 @@ const MusicPlayer = () => {
282282
<div className="mr-2 flex w-10 items-center justify-center">
283283
{isCurrent && isPlaying ? (
284284
<div className="flex h-3 items-end gap-1">
285-
<span className="h-full w-0.5 animate-[bounce_1s_infinite] bg-green-500"></span>
286-
<span className="h-2/3 w-0.5 animate-[bounce_1.2s_infinite] bg-green-500"></span>
287-
<span className="h-1/2 w-0.5 animate-[bounce_0.8s_infinite] bg-green-500"></span>
285+
<span className="h-full w-0.5 animate-bounce bg-green-500"></span>
286+
<span className="h-2/3 w-0.5 animate-bounce bg-green-500" style={{ animationDelay: '0.2s' }}></span>
287+
<span className="h-1/2 w-0.5 animate-bounce bg-green-500" style={{ animationDelay: '0.4s' }}></span>
288288
</div>
289289
) : (
290290
<span className={`font-mono text-sm ${isCurrent ? 'text-green-500' : 'text-gray-600'}`}>

src/pages/contact/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const Contact = () => {
122122
color: colorText,
123123
}}
124124
>
125-
<h2 className="mb-4 bg-gradient-to-r from-blue-400 to-purple-600 bg-clip-text text-center text-3xl font-bold text-transparent md:text-5xl">
125+
<h2 className="mb-4 bg-linear-to-r from-blue-400 to-purple-600 bg-clip-text text-center text-3xl font-bold text-transparent md:text-5xl">
126126
Get in Touch
127127
</h2>
128128
<form onSubmit={handleSubmit} className="space-y-6">
@@ -186,7 +186,7 @@ const Contact = () => {
186186

187187
<button
188188
type="submit"
189-
className="flex w-full items-center justify-center space-x-2 rounded-xl bg-gradient-to-r from-blue-500 to-purple-600 px-6 py-3 font-semibold text-white backdrop-blur-sm transition-all duration-300 hover:from-blue-600 hover:to-purple-700 hover:shadow-lg"
189+
className="flex w-full items-center justify-center space-x-2 rounded-xl bg-linear-to-r from-blue-500 to-purple-600 px-6 py-3 font-semibold text-white backdrop-blur-sm transition-all duration-300 hover:from-blue-600 hover:to-purple-700 hover:shadow-lg"
190190
>
191191
<span>Send Message</span>
192192
<AnimatedIcon variant="spin" mode="hover">

src/pages/demo/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ const ProDemo = () => {
384384
{animatedListItems.map((item) => (
385385
<div key={item.id} className="flex flex-col items-center justify-center gap-4">
386386
<div className="flex items-center justify-center gap-4">
387-
<div className="h-16 w-100 rounded-full bg-gradient-to-br from-purple-500 to-blue-500" />
387+
<div className="h-16 w-100 rounded-full bg-linear-to-br from-purple-500 to-blue-500" />
388388
</div>
389389
</div>
390390
))}

src/pages/home/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ const Home = () => {
863863
secondImage={secondImage}
864864
firstImageClassName="object-cover object-left-top"
865865
secondImageClassName="object-cover object-left-top"
866-
className="h-[200px]"
866+
className="h-50"
867867
slideMode="drag"
868868
/>
869869
</section>

0 commit comments

Comments
 (0)