mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 11:03:50 +00:00
add a profile pic, wip
This commit is contained in:
BIN
src/web/public/profile.png
Normal file
BIN
src/web/public/profile.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 304 KiB |
@@ -1,13 +1,40 @@
|
|||||||
"use client"
|
"use client"
|
||||||
|
|
||||||
import Typewriter from 'typewriter-effect';
|
import Typewriter from 'typewriter-effect';
|
||||||
import React from 'react';
|
import { motion } from 'framer-motion';
|
||||||
|
import React, { useState, useEffect } from 'react';
|
||||||
|
import Image from 'next/image';
|
||||||
|
|
||||||
|
function Portrait() {
|
||||||
|
const fadeInAnimation = {
|
||||||
|
hidden: { opacity: 0 },
|
||||||
|
visible: { opacity: 1, transition: { duration: 1 } },
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<motion.div
|
||||||
|
initial="hidden"
|
||||||
|
animate="visible"
|
||||||
|
variants={fadeInAnimation}
|
||||||
|
className="w-32 h-32 relative rounded-full overflow-hidden"
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
src="/profile.png"
|
||||||
|
alt="Portrait"
|
||||||
|
width="90"
|
||||||
|
height="90"
|
||||||
|
className="w-full h-full rounded-full"
|
||||||
|
/>
|
||||||
|
</motion.div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
function Content() {
|
function Content() {
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
<div className="relative h-screen overflow-y-scroll font-bold text-4xl">
|
<div className="relative h-screen overflow-y-scroll font-bold text-4xl">
|
||||||
<div className="h-screen flex flex-col items-center justify-center">
|
<div className="h-screen flex flex-col items-center justify-center">
|
||||||
|
<Portrait />
|
||||||
<div className="relative h-48 overflow-y-auto">
|
<div className="relative h-48 overflow-y-auto">
|
||||||
<Typewriter
|
<Typewriter
|
||||||
options={{
|
options={{
|
||||||
@@ -58,6 +85,7 @@ function Content() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user