Skip to content

Commit b57818e

Browse files
committed
updates
1 parent 1c85975 commit b57818e

File tree

2 files changed

+55
-17
lines changed

2 files changed

+55
-17
lines changed

app/Components/Main/Pages/About.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ import Image from "next/image";
66
import Link from "next/link";
77
import { useEffect, useState } from "react";
88
import { useTranslation } from "react-i18next";
9+
import Loading from "../../Patterns/Loading";
910

1011
const About = () => {
1112
const [datas, setDatas] = useState<any>({});
12-
13+
console.log("datas", datas);
1314
const getData = async () => {
1415
try {
1516
const res = await Network.run(null, "GET", "/api/about/aboutget", null);
@@ -25,6 +26,11 @@ const About = () => {
2526

2627
const { t } = useTranslation("profile");
2728
const { theme } = useTheme();
29+
30+
if (!datas.email) {
31+
return <Loading />;
32+
}
33+
2834
return (
2935
<div
3036
className={`flex-1 flex flex-col md:flex-row items-start justify-between md:gap-5 w-full h-full overflow-y-auto ${

app/globals.css

Lines changed: 48 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@tailwind base;
2-
32
@tailwind components;
43
@tailwind utilities;
54

@@ -14,7 +13,11 @@
1413
}
1514

1615
.circle {
17-
@apply w-4 h-4 my-12 mx-1 bg-orange-500 rounded-full;
16+
width: 4px;
17+
height: 4px;
18+
margin: 1.5rem 0.3125rem;
19+
background-color: var(--bg-default-500);
20+
border-radius: 50%;
1821
}
1922

2023
html {
@@ -133,17 +136,46 @@ pre {
133136
.dots::after {
134137
content: '.';
135138
animation: loadingDots 1.5s infinite steps(3, end);
136-
}
137-
138-
@keyframes loadingDots {
139-
0% { content: '.'; }
140-
10% { content: '..'; }
141-
20% { content: '...'; }
142-
40% { content: '....'; }
143-
50% { content: '.....'; }
144-
60% { content: '......'; }
145-
70% { content: '.......'; }
146-
80% { content: '........'; }
147-
90% { content: '.........'; }
148-
100% { content: '.'; }
149-
}
139+
}
140+
141+
@keyframes loadingDots {
142+
0% {
143+
content: '.';
144+
}
145+
146+
10% {
147+
content: '..';
148+
}
149+
150+
20% {
151+
content: '...';
152+
}
153+
154+
40% {
155+
content: '....';
156+
}
157+
158+
50% {
159+
content: '.....';
160+
}
161+
162+
60% {
163+
content: '......';
164+
}
165+
166+
70% {
167+
content: '.......';
168+
}
169+
170+
80% {
171+
content: '........';
172+
}
173+
174+
90% {
175+
content: '.........';
176+
}
177+
178+
100% {
179+
content: '.';
180+
}
181+
}

0 commit comments

Comments
 (0)