File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- import { motion } from ' motion/react'
3
2
import { getTitleAnimation } from ' ../animations'
4
3
5
4
const {
@@ -15,15 +14,15 @@ const {
15
14
16
15
{
17
16
href ? (
18
- <motion. a
19
- className = " transition-bg h-fit flex items-center justify-center gap-2 rounded-full border-2 border-dark bg-dark p-2 text-sm text-paper shadow-sm hover:bg-paper hover:text-dark hover:duration-200 md:px-4"
17
+ <a
18
+ className = " transition-all h-fit flex items-center justify-center gap-2 rounded-full border-2 border-dark bg-dark p-2 text-sm text-paper shadow-sm hover:bg-paper hover:text-dark hover:duration-200 md:px-4"
20
19
client :load
21
20
{ ... getTitleAnimation (0.2 )}
22
21
id = { id }
23
22
{ ... extra }
24
23
href = { href }
25
24
class :list = { [
26
- ' transition-bg flex items-center justify-center gap-2 rounded-full px-6 py-2 transition-transform duration-200' ,
25
+ ' transition-bg flex items-center justify-center gap-2 rounded-full px-6 py-2 transition-all duration-200' ,
27
26
className ,
28
27
isPrimary
29
28
? ' border-2 border-dark bg-dark text-paper hover:bg-paper hover:text-dark'
@@ -35,19 +34,19 @@ const {
35
34
]}
36
35
>
37
36
<slot />
38
- </motion. a >
37
+ </a >
39
38
) : (
40
- <motion. button
41
- className = " transition-bg h-fit flex items-center justify-center gap-2 rounded-full border-2 border-dark bg-dark p-2 text-sm text-paper shadow-sm hover:bg-paper hover:text-dark hover:duration-200 md:px-4"
39
+ <button
40
+ className = " transition-all h-fit flex items-center justify-center gap-2 rounded-full border-2 border-dark bg-dark p-2 text-sm text-paper shadow-sm hover:bg-paper hover:text-dark hover:duration-200 md:px-4"
42
41
client :load
43
42
{ ... getTitleAnimation (0.2 )}
44
43
id = { id }
45
44
{ ... extra }
46
45
class :list = { [
47
- ' flex items-center justify-center gap-2 rounded-full px-6 py-2 transition-transform duration-200' ,
46
+ ' transition-bg flex items-center justify-center gap-2 rounded-full px-6 py-2 transition-all duration-200' ,
48
47
className ,
49
48
isPrimary
50
- ? ' bg-dark text-paper'
49
+ ? ' border-2 border-dark bg-dark text-paper hover:bg-paper hover:text-dark '
51
50
: isAlert
52
51
? ' bg-red-300 text-dark'
53
52
: ! isBordered
@@ -56,7 +55,7 @@ const {
56
55
]}
57
56
>
58
57
<slot />
59
- </motion. button >
58
+ </button >
60
59
)
61
60
}
62
61
<style >
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function getHeroTitleAnimation() {
27
27
<div class =" flex h-full flex-col items-center justify-center" >
28
28
<motion .a
29
29
href =" /download"
30
- className =" transition-bg mb-10 flex items-center gap-2 rounded-full border-2 border-dark bg-dark px-2 py-1 text-sm text-paper shadow-sm hover:bg-paper hover:text-dark hover:duration-200 md:px-4"
30
+ className =" mb-10 flex items-center gap-2 rounded-full border-2 border-dark bg-dark px-2 py-1 text-sm text-paper shadow-sm transition-all duration-200 ease-in-out hover:bg-paper hover:text-dark hover:duration-200 md:px-4"
31
31
client:load
32
32
{... getTitleAnimation (1.8 )}
33
33
>
You can’t perform that action at this time.
0 commit comments