Skip to content

Commit e8cd983

Browse files
committed
fix(layout): fix responsive start
1 parent 6cfc005 commit e8cd983

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

app/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export default async function HomePage() {
3131
}
3232

3333
async function getLearns(): Promise<ILearn[]> {
34+
revalidatePath('/')
3435
const response = await prisma.learn.findMany()
3536
return response.map(learnDto)
3637
}

app/star.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,15 @@
209209
.single-star:nth-child(5)::after {
210210
animation-delay: 1.8s;
211211
}
212+
213+
@media only screen and (max-width: 1024px) {
214+
@keyframes falling {
215+
0% {
216+
transform: translateX(0);
217+
}
218+
219+
100% {
220+
transform: translateX(200px);
221+
}
222+
}
223+
}

components/elements/ShiningStar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default function ShiningStar() {
22
return (
3-
<div className="absolute right-0 top-64">
3+
<div className="fixed right-0 top-64">
44
<div className="night">
55
<div className="single-star"></div>
66
<div className="single-star"></div>

0 commit comments

Comments
 (0)