[feat] animate about
This commit is contained in:
parent
f4cda2fe5d
commit
6d73cc52d5
8 changed files with 248 additions and 57 deletions
|
|
@ -17,9 +17,11 @@ import { faEnvelope } from "@fortawesome/free-solid-svg-icons";
|
|||
|
||||
const MyPage = () => {
|
||||
const fullpageOptions = {
|
||||
lockAnchors: true,
|
||||
// only define last anchor as contact
|
||||
anchors: ["home", "about", "projects", "contact"],
|
||||
scrollingSpeed: 1000,
|
||||
licenseKey: "gplv3-license",
|
||||
menu: "#sidebar",
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
@ -46,7 +48,7 @@ const MyPage = () => {
|
|||
<h3 className="uppercase text-xl mb-3 font-normal text tracking-[.5rem] text-gray-500">
|
||||
Alvalen Shafel
|
||||
</h3>
|
||||
<h1 className="text-5xl md:text-8xl font-bold my-2 md:my-5">
|
||||
<h1 className="text-black text-5xl md:text-8xl font-bold my-2 md:my-5">
|
||||
Full Stack Developer
|
||||
</h1>
|
||||
<p className="title text-md md:text-xl mt-4 tracking-wider text-gray-500 leading-[1.7rem]">
|
||||
|
|
@ -90,7 +92,7 @@ const MyPage = () => {
|
|||
className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw]"></motion.div>
|
||||
</div>
|
||||
<div className="z-10 w-full absolute md:w-auto md:left-[10%] top-[60%] md:top-1/3 col-span-2 flex flex-col justify-center items-start md:items-start text-start px-10">
|
||||
<h1 className="text-5xl md:text-8xl font-bold">
|
||||
<h1 className="text-black text-5xl md:text-8xl font-bold">
|
||||
About Me
|
||||
</h1>
|
||||
<div className="flex justify-center items-center flex-col my-5 ">
|
||||
|
|
@ -104,7 +106,8 @@ const MyPage = () => {
|
|||
<Link href="/about">
|
||||
<Button variation="primary">
|
||||
Learn More
|
||||
</Button></Link>
|
||||
</Button>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -114,7 +117,7 @@ const MyPage = () => {
|
|||
<div className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw]"></div>
|
||||
</div>
|
||||
<div className="z-10 w-full absolute md:w-auto md:left-[10%] top-[60%] md:top-1/3 col-span-2 flex flex-col justify-center items-start md:items-start text-start px-10">
|
||||
<h1 className="text-5xl md:text-8xl font-bold">
|
||||
<h1 className="text-black text-5xl md:text-8xl font-bold">
|
||||
My Projects
|
||||
</h1>
|
||||
<div className="flex justify-center items-center flex-col my-5 ">
|
||||
|
|
@ -137,7 +140,7 @@ const MyPage = () => {
|
|||
<div className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw]"></div>
|
||||
</div>
|
||||
<div className="z-10 w-full absolute md:w-auto md:left-[10%] top-[60%] md:top-1/3 col-span-2 flex flex-col justify-center items-start md:items-start text-start px-10">
|
||||
<h1 className="text-5xl md:text-8xl font-bold">
|
||||
<h1 className="text-black text-5xl md:text-8xl font-bold">
|
||||
Get In Touch
|
||||
</h1>
|
||||
<div className="flex justify-center items-center flex-col my-5 ">
|
||||
|
|
|
|||
|
|
@ -1,9 +1,15 @@
|
|||
"use client";
|
||||
import { useEffect } from "react";
|
||||
import Link from "next/link";
|
||||
import { motion } from "framer-motion";
|
||||
import Button from "@/components/Button";
|
||||
import Image from "next/image";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faArrowRight } from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
// images
|
||||
import Me1 from "@/public/img/me1.jpg";
|
||||
import Me2 from "@/public/img/me2.jpg";
|
||||
import Me3 from "@/public/img/me3.jpg";
|
||||
export default function Page() {
|
||||
// useEffect(() => {
|
||||
// window.scrollTo(0, 0);
|
||||
|
|
@ -17,7 +23,7 @@ export default function Page() {
|
|||
<motion.div
|
||||
initial={{ opacity: 1, scale: 1 }}
|
||||
animate={{ opacity: 1, scale: 1.6 }}
|
||||
transition={{ duration: 1 }}
|
||||
transition={{ duration: 1, ease: "easeInOut" }}
|
||||
className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw]"></motion.div>
|
||||
</div>
|
||||
<div className="z-10 w-full absolute md:w-auto md:left-[10%] top-[60%] md:top-1/3 col-span-2 flex flex-col justify-center items-start md:items-start text-start px-10">
|
||||
|
|
@ -56,37 +62,91 @@ export default function Page() {
|
|||
<div className="relative w-screen mx-auto container gap-4 px-10 grid grid-cols-1 md:grid-cols-2 mb-10">
|
||||
<div className="flex justify-center items-start flex-col mb-5 ">
|
||||
<div className="images relative w-full aspect-square">
|
||||
<div className="absolute top-28 left-10 w-[50%] aspect-square">
|
||||
<motion.img
|
||||
initial={{ opacity: 0, scale: 0.5 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
<div className="absolute top-28 left-10 w-[50%] aspect-square grayscale hover:grayscale-0 transition-all ease duration-300">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, scale: 0.5, x: 100 }}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
scale: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{ duration: 1 }}
|
||||
className="w-full h-full object-cover object-center"
|
||||
src="/images/me.jpg"
|
||||
className="w-full h-full">
|
||||
<Image
|
||||
src={Me1}
|
||||
alt="Alvalens"
|
||||
layout="fill"
|
||||
objectFit="cover"
|
||||
placeholder="blur"
|
||||
/>
|
||||
</motion.div>
|
||||
</div>
|
||||
<div className="absolute top-16 right-28 w-[30%] aspect-square">
|
||||
<motion.img
|
||||
initial={{ opacity: 0, scale: 0.5 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
transition={{ duration: 1 }}
|
||||
className="w-full h-full object-cover object-center"
|
||||
src="/images/me.jpg"
|
||||
<div className="absolute top-16 right-28 w-[30%] aspect-square grayscale hover:grayscale-0 transition-all ease duration-300">
|
||||
<motion.div
|
||||
initial={{
|
||||
opacity: 0,
|
||||
scale: 0.5,
|
||||
x: -100,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
scale: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{ delay: 0.3, duration: 1 }}
|
||||
className="w-full h-full">
|
||||
<Image
|
||||
src={Me2}
|
||||
alt="Alvalens"
|
||||
layout="fill"
|
||||
objectFit="cover"
|
||||
placeholder="blur"
|
||||
/>
|
||||
</motion.div>
|
||||
</div>
|
||||
<div className="absolute bottom-16 right-20 w-[40%] aspect-square">
|
||||
<motion.img
|
||||
initial={{ opacity: 0, scale: 0.5 }}
|
||||
animate={{ opacity: 1, scale: 1 }}
|
||||
transition={{ duration: 1 }}
|
||||
className="w-full h-full object-cover object-center"
|
||||
src="/images/me.jpg"
|
||||
<div className="absolute bottom-16 right-20 w-[40%] aspect-square grayscale hover:grayscale-0 transition-all ease duration-300">
|
||||
<motion.div
|
||||
initial={{
|
||||
opacity: 0,
|
||||
scale: 0.5,
|
||||
x: -100,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
scale: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.5,
|
||||
duration: 1,
|
||||
}}
|
||||
className="w-full h-full">
|
||||
<Image
|
||||
src={Me3}
|
||||
alt="Alvalens"
|
||||
layout="fill"
|
||||
objectFit="cover"
|
||||
placeholder="blur"
|
||||
/>
|
||||
</motion.div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex justify-center items-start flex-col mb-5 md:px-10">
|
||||
<motion.div
|
||||
className="flex justify-center items-start flex-col mb-5 md:px-10"
|
||||
initial={{
|
||||
opacity: 0,
|
||||
x: 200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.5,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
}}>
|
||||
<h2 className="text-2xl font-bold tracking-wider mb-3">
|
||||
Alvalen Shafelbilyunazra
|
||||
</h2>
|
||||
|
|
@ -101,7 +161,7 @@ export default function Page() {
|
|||
tenetur ut accusantium officiis itaque qui eum quas
|
||||
harum? Nemo, ducimus quisquam.
|
||||
</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
{/* <div className="mt-16 flex flex-col justify-start items-center w-full pl-12 md:pl-32">
|
||||
<div className="flex justify-center items-center flex-col my-5 self-start ">
|
||||
|
|
@ -111,7 +171,21 @@ export default function Page() {
|
|||
</div>
|
||||
</div> */}
|
||||
<div className=" w-screen mx-auto container gap-4 p-10 grid grid-cols-1 md:grid-cols-2 mt-10 mb-24">
|
||||
<div className="flex justify-center items-center flex-col mb-5 ">
|
||||
<motion.div
|
||||
className="flex justify-center items-center flex-col mb-5 "
|
||||
initial={{
|
||||
opacity: 0,
|
||||
x: -200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.5,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
}}>
|
||||
<h2 className="text-2xl md:text-xl font-normal mb-3 md:tracking-[.5rem] uppercase ">
|
||||
Language & Framework
|
||||
</h2>
|
||||
|
|
@ -167,8 +241,22 @@ export default function Page() {
|
|||
Python
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex justify-start items-center flex-col mb-5 ">
|
||||
</motion.div>
|
||||
<motion.div
|
||||
className="flex justify-start items-center flex-col mb-5 "
|
||||
initial={{
|
||||
opacity: 0,
|
||||
x: 200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.6,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
}}>
|
||||
<h2 className="text-2xl md:text-xl font-normal mb-3 md:tracking-[.5rem] uppercase">
|
||||
Tools
|
||||
</h2>
|
||||
|
|
@ -201,19 +289,75 @@ export default function Page() {
|
|||
</span>{" "}
|
||||
|{" "}
|
||||
</p>
|
||||
</div>
|
||||
</motion.div>
|
||||
</div>
|
||||
<div className="mt-16 flex flex-col justify-start items-center w-full pl-10 md:pl-32">
|
||||
<div className="flex justify-center items-center flex-col my-5 self-start ">
|
||||
<div className="bg-gray-700 w-28 h-1 rounded-full mb-3 self-start"></div>
|
||||
<div className="bg-gray-700 w-28 h-1 rounded-full -translate-x-12"></div>
|
||||
<h1 className="text-3xl font-bold mt-3">
|
||||
<motion.div
|
||||
className="bg-gray-700 w-28 h-1 rounded-full mb-3 self-start"
|
||||
initial={{
|
||||
opacity: 0,
|
||||
x: -200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.5,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
}}></motion.div>
|
||||
<motion.div
|
||||
className="bg-gray-700 w-28 h-1 rounded-full"
|
||||
initial={{
|
||||
opacity: 0,
|
||||
x: 200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
x: -50,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.5,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
}}></motion.div>
|
||||
<motion.h1
|
||||
className="text-3xl font-bold mt-3"
|
||||
initial={{
|
||||
opacity: 0,
|
||||
x: -200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.7,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
}}>
|
||||
Education & Experience
|
||||
</h1>
|
||||
</motion.h1>
|
||||
</div>
|
||||
</div>
|
||||
<div className="w-screen mx-auto container gap-4 p-10 grid grid-cols-1 md:grid-cols-2 my-10">
|
||||
<div className="flex justify-center items-start flex-col mb-5 ">
|
||||
<motion.div
|
||||
className="flex justify-center items-start flex-col mb-5 "
|
||||
initial={{
|
||||
opacity: 0,
|
||||
x: -200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.5,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
}}>
|
||||
<h2 className="text-2xl font-bold mb-3">
|
||||
Education | Universitas Negeri Malang
|
||||
</h2>
|
||||
|
|
@ -228,8 +372,22 @@ export default function Page() {
|
|||
reiciendis corrupti quibusdam architecto, labore
|
||||
cupiditate non autem aliquid?
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex justify-center items-start flex-col mb-5 ">
|
||||
</motion.div>
|
||||
<motion.div
|
||||
className="flex justify-center items-start flex-col mb-5 "
|
||||
initial={{
|
||||
opacity: 0,
|
||||
x: 200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
x: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.5,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
}}>
|
||||
<h2 className="text-2xl font-bold mb-3">
|
||||
Experience | Freelance Web Developer
|
||||
</h2>
|
||||
|
|
@ -244,8 +402,31 @@ export default function Page() {
|
|||
reiciendis corrupti quibusdam architecto, labore
|
||||
cupiditate non autem aliquid?
|
||||
</p>
|
||||
</motion.div>
|
||||
</div>
|
||||
|
||||
<div className="flex justify-center items-center flex-col mt-5 self-start min-h-[50vh] bg-gray-200">
|
||||
<Link href="/#contact">
|
||||
<motion.h1
|
||||
className="text-5xl font-bold mt-3 tracking-widest hover:underline"
|
||||
initial={{
|
||||
opacity: 0,
|
||||
y: -200,
|
||||
}}
|
||||
whileInView={{
|
||||
opacity: 1,
|
||||
y: 0,
|
||||
}}
|
||||
transition={{
|
||||
delay: 0.7,
|
||||
duration: 1,
|
||||
type: "spring",
|
||||
}}>
|
||||
Get In Touch <FontAwesomeIcon icon={faArrowRight} className="text-5xl ml-2" />
|
||||
</motion.h1>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ html {
|
|||
|
||||
body {
|
||||
font-family: 'Poppins', sans-serif !important;
|
||||
color: black;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
|
|
@ -57,3 +58,7 @@ h2, h3, h4, h5, h6 {
|
|||
span {
|
||||
font-family: "Jost", sans-serif;
|
||||
}
|
||||
|
||||
.active {
|
||||
color: rgb(255, 235, 87);
|
||||
}
|
||||
|
|
@ -6,11 +6,11 @@ const NavItems = ({ isNavOpen }) => {
|
|||
const [isMobile, setIsMobile] = useState(false);
|
||||
const navVariant = {
|
||||
open: (height = 1000) => ({
|
||||
clipPath: `circle(${height * 2 + 200}px at calc(100% - 40px) 40px)`,
|
||||
clipPath: `circle(${height + 400}px at calc(100% - 40px) 40px)`,
|
||||
transition: {
|
||||
type: "spring",
|
||||
stiffness: 20,
|
||||
restDelta: 2,
|
||||
stiffness: 400,
|
||||
damping: 30,
|
||||
},
|
||||
}),
|
||||
closed: {
|
||||
|
|
@ -19,7 +19,7 @@ const [isMobile, setIsMobile] = useState(false);
|
|||
delay: 0.5,
|
||||
type: "spring",
|
||||
stiffness: 400,
|
||||
damping: 40,
|
||||
damping: 30,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -22,18 +22,20 @@ const Sidebar = () => {
|
|||
};
|
||||
return (
|
||||
<div className="hidden md:flex fixed z-40 bg-gray-600 h-[50vh] w-14 flex-col justify-between items-center p-4 left-0 top-1/4 rounded-e-3xl">
|
||||
<ul className="flex flex-col justify-center items-center h-full space-y-16 text-gray-200">
|
||||
<li>
|
||||
<ul
|
||||
id="sidebar"
|
||||
className="flex flex-col justify-center items-center h-full space-y-16 text-gray-200">
|
||||
<li data-menuanchor="home" className="active">
|
||||
<button onClick={() => handleMoveToSection(1)}>
|
||||
<FontAwesomeIcon icon={faHome} className="text-xl" />
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<li data-menuanchor="about">
|
||||
<button onClick={() => handleMoveToSection(2)}>
|
||||
<FontAwesomeIcon icon={faUser} className="text-xl" />
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<li data-menuanchor="projects">
|
||||
<button onClick={() => handleMoveToSection(3)}>
|
||||
<FontAwesomeIcon
|
||||
icon={faFolderOpen}
|
||||
|
|
@ -41,7 +43,7 @@ const Sidebar = () => {
|
|||
/>
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<li data-menuanchor="contact">
|
||||
<button onClick={() => handleMoveToSection(4)}>
|
||||
<FontAwesomeIcon
|
||||
icon={faEnvelope}
|
||||
|
|
|
|||
BIN
public/img/me1.jpg
Normal file
BIN
public/img/me1.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 MiB |
BIN
public/img/me2.jpg
Normal file
BIN
public/img/me2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.7 MiB |
BIN
public/img/me3.jpg
Normal file
BIN
public/img/me3.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 693 KiB |
Loading…
Add table
Add a link
Reference in a new issue