@@ -12,10 +12,8 @@ const IndexBox = () =>{
12
12
const handleResize = ( ) => {
13
13
setIsMobile ( window . innerWidth <= 768 ) ; // 判断屏幕宽度是否小于等于768px
14
14
} ;
15
-
16
15
window . addEventListener ( "resize" , handleResize ) ;
17
16
handleResize ( ) ; // 初始检查设备类型
18
-
19
17
return ( ) => {
20
18
window . removeEventListener ( "resize" , handleResize ) ;
21
19
} ;
@@ -63,13 +61,13 @@ const IndexBox = () =>{
63
61
>
64
62
65
63
< div
66
- className = 'text-[#eee] text-[clamp(48px,6vw,120px)] select-none flex flex-col justify-center mt-[5vw]'
64
+ className = 'text-[#eee] text-[clamp(48px,6vw,120px)] select-none flex flex-col justify-center mt-[5vw] items-center md:items-start '
67
65
style = { {
68
66
fontFamily :'SuperLobster' ,
69
67
} }
70
68
>
71
- < div className = 'flex flex-wrap mx-[5rem]' > Hi < div className = 'hover:rotate-60 transition ' > 👋</ div > Here,</ div >
72
- < div className = 'flex flex-wrap mx-[5rem]' >
69
+ < div className = 'flex flex-wrap mx-[5rem] justify-center ' > Hi < div className = 'transition-all hover:rotate-[60deg] ' > 👋</ div > Here,</ div >
70
+ < div className = 'flex flex-wrap mx-[5rem] justify-center ' >
73
71
< div > Task</ div >
74
72
< div > Manager</ div >
75
73
< div > OL.</ div >
@@ -92,23 +90,36 @@ const IndexBox = () =>{
92
90
const BlogBox = ( ) => {
93
91
return (
94
92
< div
95
- className = "w-4/5 my-[3rem] bg-[#a9a9a9] relative flex flex-wrap"
93
+ className = "w-4/5 mt-[5rem] mb-[20rem] bg-[#a9a9a9] relative flex flex-wrap justify-center "
96
94
>
97
95
< div
98
- className = 'absolute top-[-6rem] left-2 text-[100px] font-bold'
96
+ className = 'absolute top-[-4.5rem] md:top-[- 6rem] left-2 text-[70px] md:text-[ 100px] font-bold z-50 '
99
97
style = { {
100
98
fontFamily :'KGPerfectPenmanship'
101
99
} }
102
100
>
103
101
Blog.
104
102
</ div >
105
- < div
106
- className = 'w-1/2 min-w-[300px] h-[600px] bg-[#616161]'
103
+ < a
104
+ className = 'w-full h-[500px] md:h-[700px] bg-[#314964] flex justify-center items-center lg:w-1/2 flex-col group overflow-hidden relative'
105
+ href = 'https://taskmanagerol.github.io/Blog/2023/06/24/CSS/#CSS%E4%B8%89%E8%A7%92%E5%BD%A2%E7%BB%98%E5%88%B6'
106
+ target = '_blank'
107
107
>
108
-
109
- </ div >
108
+ < div
109
+ className = ' w-4/5 text-[#fff] text-[34px] md:text-[46px] font-black tracking-[-0.3px] font-[TT] transition-all group-hover:mb-2 flex flex-wrap justify-center items-center break-words text-center mt-[40px]'
110
+ >
111
+ Drawing a triangle or even a polygon with CSS
112
+ </ div >
113
+ < div className = 'h-[175px] md:h-[250px] flex justify-center items-center' >
114
+ < div className = 'animate-triangle' > </ div >
115
+ </ div >
116
+ < div className = 'w-4/5 text-[#f4f5f6] tracking-[-0.3px] transition-all group-hover:mt-2 text-center mb-[40px]' > Stop using symbols.Complete a standard polygon by modifying the border, background attributes and other options</ div >
117
+ < div className = 'absolute bg-black w-[80px] md:w-[120px] h-[40px] md:h-[60px] right-[10px] md:right-[40px] top-[-60px] transition-all ease-in-out duration-200 text-[#fff] flex justify-center items-center group-hover:top-0' >
118
+ < div className = 'mb-[20px] opacity-0 transition-all duration-200 ease-in group-hover:opacity-100 group-hover:mb-0 text-[12px] tracking-[-0.3px]' > Read more</ div >
119
+ </ div >
120
+ </ a >
110
121
< div
111
- className = 'w-1/2 min-w-[300px] h-[600px] bg-[#616161] '
122
+ className = 'w-full min-w-[300px] h-[600px] bg-[#2b2f3c] lg:w-1/2 '
112
123
>
113
124
114
125
</ div >
@@ -122,7 +133,7 @@ const ProjectBox = () => {
122
133
className = "w-4/5 h-[700px] my-[3rem] bg-[#a9a9a9] relative flex flex-wrap"
123
134
>
124
135
< div
125
- className = 'absolute top-[-6rem ] left-2 text-[100px ] font-bold'
136
+ className = 'absolute top-[-5rem ] left-2 text-[80px ] font-bold md:text-[100px] md:top-[-6rem] '
126
137
style = { {
127
138
fontFamily :'KGPerfectPenmanship'
128
139
} }
0 commit comments