File tree Expand file tree Collapse file tree 2 files changed +55
-17
lines changed
Expand file tree Collapse file tree 2 files changed +55
-17
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ import Image from "next/image";
66import Link from "next/link" ;
77import { useEffect , useState } from "react" ;
88import { useTranslation } from "react-i18next" ;
9+ import Loading from "../../Patterns/Loading" ;
910
1011const 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 ${
Original file line number Diff line number Diff line change 11@tailwind base;
2-
32@tailwind components;
43@tailwind utilities;
54
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
2023html {
@@ -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+ }
You can’t perform that action at this time.
0 commit comments