File tree Expand file tree Collapse file tree
components/Contributors/Peter/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /* eslint-disable @next/next/no-img-element */
21"use-client" ;
32import React from "react" ;
43
Original file line number Diff line number Diff line change 11"use-client" ;
2- import { useEffect } from "react" ;
3- // import { unstable_enableLog } from "react-dom";
4- // unstable_enableLog("react.dom");
2+ import React , { useEffect } from "react" ;
53
64function Canvas ( ) {
75 useEffect ( ( ) => {
Original file line number Diff line number Diff line change 1+ "use-client" ;
12import React from "react" ;
23import {
34 FaYoutube ,
Original file line number Diff line number Diff line change 1- "use-client" ;
21import React from "react" ;
32import Canvas from "./Canvas" ;
43
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+
13const Loading = ( ) => {
24 return (
35 < div className = "absolute top-0 left-0 flex flex-col justify-center gap-0 items-center w-full h-screen loader-bg lg-rounded" >
Original file line number Diff line number Diff line change 1- "use-client" ;
21import React from "react" ;
32import Home from "./Home" ;
43import About from "./About" ;
Original file line number Diff line number Diff line change 11.peter {
2+ border-radius : 5px ;
3+ -webkit-border-radius : 5px ;
4+ -moz-border-radius : 5px ;
5+ -ms-border-radius : 5px ;
6+ -o-border-radius : 5px ;
27 .loader {
38 position : relative ;
49 margin : auto ;
510 box-sizing : border-box ;
6- width : 120 px ;
7- height : 120 px ;
11+ width : 360 px ;
12+ height : 360 px ;
813 border-radius : 50% ;
914 border : 4px solid rgba (255 , 255 , 255 , 0.1 );
1015 transform-origin : 50% 50% ;
11- transform : perspective (200 px ) rotateX (66deg );
16+ transform : perspective (900 px ) rotateX (66deg );
1217 animation : spinner- wiggle 1.2s infinite ;
1318 }
1419
3439 }
3540
3641 .loaderText {
37- font-size : 5 rem ;
42+ font-size : 11 rem ;
3843 margin-bottom : -100px ;
3944 z-index : 99 ;
4045 animation : bounce 1.2s infinite ;
4146 top : 0 ;
42- left : 48% ;
47+ left : 45% ;
48+ }
49+
50+ // position: relative;
51+
52+ @media (min-width : 768px ) {
53+ .loaderText {
54+ left : 47% ;
55+ }
56+ }
57+
58+ @media (max-width : 550px ) {
59+ .loaderText {
60+ font-size : 5rem ;
61+ left : 45% ;
62+ }
63+ .loader {
64+ width : 120px ;
65+ height : 120px ;
66+ transform : perspective (200px ) rotateX (66deg );
67+ animation : spinner- wiggle 1.2s infinite ;
68+ }
69+ }
70+
71+ @media (max-width : 400px ) {
72+ .loaderText {
73+ left : 43% ;
74+ }
4375 }
4476
4577 @keyframes spinner-spin {
6698 flex-direction : column ;
6799 justify-content : center ;
68100 align-items : center ;
101+ gap : 30px ;
69102 width : 100% ;
70- height : 150px ;
71103 background-color : #282828 ;
72104 border-radius : 10px ;
73105 border : 1px solid white ;
77109 display : flex ;
78110 justify-content : space-evenly ;
79111 align-items : center ;
80- padding : 20 px ;
112+ padding : 5 px ;
81113 width : 50% ;
82114 height : 50px ;
83- margin : 20 px auto ;
115+ margin : 0 px auto ;
84116 }
85117
86118 .socials__icons {
98130
99131 .copyright {
100132 color : #fafafa ;
101- font-size : 14 px ;
133+ font-size : 18 px ;
102134 font-weight : 500 ;
135+ padding-bottom : 25px ;
103136 }
104137
105138 @media (max-width : 720px ) {
106139 .footer {
107- height : 100px ;
140+ height : 150px ;
141+ gap : 10px ;
108142 }
109143
110144 .socials {
327361 font-family : montserrat, sans-serif ;
328362 font-size : 14px ;
329363 width : 100% ;
330- overflow-x : hidden ;
364+ overflow : hidden ;
365+
331366 background-color : #1a1a1a ;
332- padding : 30px auto ;
333367 outline : 45px solid #1a1a1b ;
334368 }
335369
336370 /* animation */
337371 .canvas-animation {
338- width : 95 % ;
372+ width : 80 % ;
339373 height : 60% ;
340374 position : fixed ;
341375 top : 20% ;
346380
347381 @media (max-width : 450px ) {
348382 .canvas-animation {
349- width : 90% ;
350383 height : 45% ;
351384 top : 25% ;
352385 }
578611 .about__content {
579612 display : flex ;
580613 justify-content : space-between ;
581- width : 100 % ;
614+ width : 95 % ;
582615 }
583616
584617 @media (max-width : 1300px ) {
You can’t perform that action at this time.
0 commit comments