Skip to content

Commit

Permalink
🔥 build(profile): add peterpausianlian profile
Browse files Browse the repository at this point in the history
  • Loading branch information
peterlianpi committed Oct 30, 2023
1 parent 26336e7 commit 8f10f06
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 21 deletions.
1 change: 0 additions & 1 deletion src/components/Contributors/Peter/components/About.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @next/next/no-img-element */
"use-client";
import React from "react";

Expand Down
4 changes: 1 addition & 3 deletions src/components/Contributors/Peter/components/Canvas.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"use-client";
import { useEffect } from "react";
// import { unstable_enableLog } from "react-dom";
// unstable_enableLog("react.dom");
import React, { useEffect } from "react";

function Canvas() {
useEffect(() => {
Expand Down
1 change: 1 addition & 0 deletions src/components/Contributors/Peter/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use-client";
import React from "react";
import {
FaYoutube,
Expand Down
1 change: 0 additions & 1 deletion src/components/Contributors/Peter/components/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use-client";
import React from "react";
import Canvas from "./Canvas";

Expand Down
2 changes: 2 additions & 0 deletions src/components/Contributors/Peter/components/Loading.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import React from "react";

const Loading = () => {
return (
<div className="absolute top-0 left-0 flex flex-col justify-center gap-0 items-center w-full h-screen loader-bg lg-rounded">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use-client";
import React from "react";
import Home from "./Home";
import About from "./About";
Expand Down
63 changes: 48 additions & 15 deletions src/styles/profiles/_peter.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
.peter {
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
.loader {
position: relative;
margin: auto;
box-sizing: border-box;
width: 120px;
height: 120px;
width: 360px;
height: 360px;
border-radius: 50%;
border: 4px solid rgba(255, 255, 255, 0.1);
transform-origin: 50% 50%;
transform: perspective(200px) rotateX(66deg);
transform: perspective(900px) rotateX(66deg);
animation: spinner-wiggle 1.2s infinite;
}

Expand All @@ -34,12 +39,39 @@
}

.loaderText {
font-size: 5rem;
font-size: 11rem;
margin-bottom: -100px;
z-index: 99;
animation: bounce 1.2s infinite;
top: 0;
left: 48%;
left: 45%;
}

// position: relative;

@media (min-width: 768px) {
.loaderText {
left: 47%;
}
}

@media (max-width: 550px) {
.loaderText {
font-size: 5rem;
left: 45%;
}
.loader {
width: 120px;
height: 120px;
transform: perspective(200px) rotateX(66deg);
animation: spinner-wiggle 1.2s infinite;
}
}

@media (max-width: 400px) {
.loaderText {
left: 43%;
}
}

@keyframes spinner-spin {
Expand All @@ -66,8 +98,8 @@
flex-direction: column;
justify-content: center;
align-items: center;
gap: 30px;
width: 100%;
height: 150px;
background-color: #282828;
border-radius: 10px;
border: 1px solid white;
Expand All @@ -77,10 +109,10 @@
display: flex;
justify-content: space-evenly;
align-items: center;
padding: 20px;
padding: 5px;
width: 50%;
height: 50px;
margin: 20px auto;
margin: 0px auto;
}

.socials__icons {
Expand All @@ -98,13 +130,15 @@

.copyright {
color: #fafafa;
font-size: 14px;
font-size: 18px;
font-weight: 500;
padding-bottom: 25px;
}

@media (max-width: 720px) {
.footer {
height: 100px;
height: 150px;
gap: 10px;
}

.socials {
Expand Down Expand Up @@ -327,15 +361,15 @@
font-family: montserrat, sans-serif;
font-size: 14px;
width: 100%;
overflow-x: hidden;
overflow: hidden;

background-color: #1a1a1a;
padding: 30px auto;
outline: 45px solid #1a1a1b;
}

/* animation */
.canvas-animation {
width: 95%;
width: 80%;
height: 60%;
position: fixed;
top: 20%;
Expand All @@ -346,7 +380,6 @@

@media (max-width: 450px) {
.canvas-animation {
width: 90%;
height: 45%;
top: 25%;
}
Expand Down Expand Up @@ -578,7 +611,7 @@
.about__content {
display: flex;
justify-content: space-between;
width: 100%;
width: 95%;
}

@media (max-width: 1300px) {
Expand Down

0 comments on commit 8f10f06

Please sign in to comment.