[feat] change image
This commit is contained in:
parent
218ee462f0
commit
11afd77359
5 changed files with 44 additions and 23 deletions
|
|
@ -8,6 +8,7 @@ import Link from "next/link";
|
||||||
// components
|
// components
|
||||||
import Button from "@/components/Button";
|
import Button from "@/components/Button";
|
||||||
import Me from "../../public/img/me.jpg";
|
import Me from "../../public/img/me.jpg";
|
||||||
|
import MeAbout from "@/public/img/me2.jpg";
|
||||||
import Hr from "@/components/Hr";
|
import Hr from "@/components/Hr";
|
||||||
// icons
|
// icons
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
|
|
@ -145,7 +146,15 @@ const MyPage = () => {
|
||||||
delay: 0.5,
|
delay: 0.5,
|
||||||
type: "spring",
|
type: "spring",
|
||||||
}}
|
}}
|
||||||
className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw]"></motion.div>
|
className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw] grayscale hover:grayscale-0 ">
|
||||||
|
<Image
|
||||||
|
src={MeAbout}
|
||||||
|
layout="fill"
|
||||||
|
className="object-cover"
|
||||||
|
alt="Alvalens"
|
||||||
|
placeholder="blur"
|
||||||
|
/>
|
||||||
|
</motion.div>
|
||||||
</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 py-5">
|
<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 py-5">
|
||||||
<motion.h1
|
<motion.h1
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,18 @@ export default function Page() {
|
||||||
<div className="relative h-screen w-screen gap-4 p-10 flex justify-center items-center flex-col mb-10">
|
<div className="relative h-screen w-screen gap-4 p-10 flex justify-center items-center flex-col mb-10">
|
||||||
<div className="z-0 mb-48 md:mb-0 md:absolute top-1/4 md:right-[10%] md:-translate-y-16 ">
|
<div className="z-0 mb-48 md:mb-0 md:absolute top-1/4 md:right-[10%] md:-translate-y-16 ">
|
||||||
<motion.div
|
<motion.div
|
||||||
initial={{ scale: 1 }}
|
initial={{ scale: 1 }}
|
||||||
animate={{ scale: 1.6 }}
|
animate={{ scale: 1.6 }}
|
||||||
transition={{ ease: "circOut", duration: 1}}
|
transition={{ ease: "circOut", duration: 1 }}
|
||||||
className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw]"></motion.div>
|
className="bg-slate-300 rounded-sm h-[400px] md:h-[600px] w-[80vw] md:w-[30vw] grayscale hover:grayscale-0">
|
||||||
|
<Image
|
||||||
|
src={Me2}
|
||||||
|
alt="Alvalens"
|
||||||
|
layout="fill"
|
||||||
|
objectFit="cover"
|
||||||
|
placeholder="blur"
|
||||||
|
/>
|
||||||
|
</motion.div>
|
||||||
</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">
|
<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-5xl md:text-8xl font-bold">
|
||||||
|
|
@ -39,8 +47,8 @@ export default function Page() {
|
||||||
A brief introduction about me and my interest.
|
A brief introduction about me and my interest.
|
||||||
</p>
|
</p>
|
||||||
<motion.div
|
<motion.div
|
||||||
initial={{ opacity: 0, }}
|
initial={{ opacity: 0 }}
|
||||||
animate={{ opacity: 1, }}
|
animate={{ opacity: 1 }}
|
||||||
transition={{ duration: 0.5, ease: "circOut" }}
|
transition={{ duration: 0.5, ease: "circOut" }}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
window.scrollTo({
|
window.scrollTo({
|
||||||
|
|
@ -93,7 +101,7 @@ export default function Page() {
|
||||||
scale: 1,
|
scale: 1,
|
||||||
x: 0,
|
x: 0,
|
||||||
}}
|
}}
|
||||||
transition={{ delay: 0.3}}
|
transition={{ delay: 0.3 }}
|
||||||
className="w-full h-full">
|
className="w-full h-full">
|
||||||
<Image
|
<Image
|
||||||
src={Me2}
|
src={Me2}
|
||||||
|
|
@ -118,7 +126,6 @@ export default function Page() {
|
||||||
}}
|
}}
|
||||||
transition={{
|
transition={{
|
||||||
delay: 0.5,
|
delay: 0.5,
|
||||||
|
|
||||||
}}
|
}}
|
||||||
className="w-full h-full">
|
className="w-full h-full">
|
||||||
<Image
|
<Image
|
||||||
|
|
|
||||||
|
|
@ -1,18 +1,22 @@
|
||||||
"use client";
|
import dynamic from "next/dynamic";
|
||||||
import "./globals.css";
|
import "./globals.css";
|
||||||
import Navbar from "@/components/Navbar";
|
import Navbar from "@/components/Navbar";
|
||||||
import { config } from '@fortawesome/fontawesome-svg-core'
|
import { config } from "@fortawesome/fontawesome-svg-core";
|
||||||
import '@fortawesome/fontawesome-svg-core/styles.css'
|
import "@fortawesome/fontawesome-svg-core/styles.css";
|
||||||
config.autoAddCss = false
|
config.autoAddCss = false;
|
||||||
|
|
||||||
|
|
||||||
import TopProgressBar from "@/components/TopProgressBar";
|
|
||||||
import "./nprogress.css";
|
import "./nprogress.css";
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: "Create Next App",
|
title: "Create Next App",
|
||||||
description: "Generated by create next app",
|
description: "Generated by create next app",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const TopProgressBar = dynamic(() => import("@/components/TopProgressBar"), {
|
||||||
|
ssr: false,
|
||||||
|
});
|
||||||
|
|
||||||
export default function RootLayout({ children }) {
|
export default function RootLayout({ children }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<body>
|
<body>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
"use client"
|
||||||
import Router from "next/router";
|
import Router from "next/router";
|
||||||
import NProgress from "nprogress";
|
import NProgress from "nprogress";
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 3.5 MiB |
Loading…
Add table
Add a link
Reference in a new issue