Skip to content

Commit 2c57766

Browse files
committed
feat:BlogBox2 finish
1 parent 1057476 commit 2c57766

File tree

2 files changed

+87
-5
lines changed

2 files changed

+87
-5
lines changed

app/globals.css

+65
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,68 @@
8989
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
9090
animation: triangle 12s ease forwards infinite;
9191
}
92+
93+
@keyframes typing {
94+
from {
95+
width: 0;
96+
}
97+
to {
98+
width: 225px;
99+
}
100+
}
101+
102+
@keyframes disappear {
103+
0% {
104+
opacity: 1;
105+
visibility: visible;
106+
}
107+
100% {
108+
opacity: 0;
109+
visibility: hidden;
110+
}
111+
}
112+
113+
@keyframes blink {
114+
50% {
115+
border-right: 4px solid white;
116+
}
117+
100% {
118+
border-right: 4px solid transparent;
119+
}
120+
}
121+
122+
@keyframes warning{
123+
0%{
124+
opacity: 0;
125+
visibility: visible;
126+
content: '!Time out';
127+
color: rgb(255, 0, 0);
128+
font-weight: bold;
129+
}
130+
100%{
131+
opacity: 1;
132+
visibility: visible;
133+
content: '!Time out';
134+
color: rgb(255, 0, 0);
135+
font-weight: bold;
136+
}
137+
}
138+
139+
.animate-typing{
140+
position: relative;
141+
}
142+
143+
.animate-typing::after {
144+
position: absolute;
145+
left: -112px;
146+
top: -50px;
147+
content: 'git push↲';
148+
font-family: 'Courier New', monospace;
149+
font-size: 2.6rem;
150+
white-space: nowrap;
151+
overflow: hidden;
152+
color: #fff;
153+
width: 0;
154+
animation: typing 1.5s steps(9) .5s forwards, blink 0.75s step-end 5,disappear 0.15s 4s forwards,warning 0.5s 5s forwards ;
155+
}
156+

app/page.tsx

+22-5
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const BlogBox = () => {
100100
>
101101
Blog.
102102
</div>
103+
103104
<a
104105
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'
105106
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'
@@ -113,16 +114,32 @@ const BlogBox = () => {
113114
<div className='h-[175px] md:h-[250px] flex justify-center items-center'>
114115
<div className='animate-triangle'></div>
115116
</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='w-3/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>
117118
<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'>
118119
<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>
119120
</div>
120121
</a>
121-
<div
122-
className='w-full min-w-[300px] h-[600px] bg-[#2b2f3c] lg:w-1/2'
123-
>
124122

125-
</div>
123+
<a
124+
className='w-full h-[500px] md:h-[700px] bg-[#2b2f3c] flex justify-center items-center lg:w-1/2 flex-col group overflow-hidden relative'
125+
href='https://taskmanagerol.github.io/Blog/2024/01/30/Problem/#Git-Time-out'
126+
target='_blank'
127+
>
128+
<div
129+
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]'
130+
>
131+
Troubleshooting Timeout Issues with Git
132+
</div>
133+
<div className='h-[175px] md:h-[250px] flex justify-center items-center'>
134+
<div className='animate-typing'></div>
135+
</div>
136+
<div className='w-3/5 text-[#f4f5f6] tracking-[-0.3px] transition-all group-hover:mt-2 text-center mb-[40px]'>
137+
It must be hard to have a timeout when you've done a bunch of work, here's how to fix it
138+
</div>
139+
<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'>
140+
<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>
141+
</div>
142+
</a>
126143
</div>
127144
)
128145
}

0 commit comments

Comments
 (0)