add a profile pic, wip

This commit is contained in:
Timothy Pidashev
2024-04-16 22:38:00 -07:00
parent bded192500
commit e20fc0d197
2 changed files with 74 additions and 46 deletions

BIN
src/web/public/profile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

View File

@@ -1,13 +1,40 @@
"use client"
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() {
return (
<>
<div className="relative h-screen overflow-y-scroll font-bold text-4xl">
<div className="h-screen flex flex-col items-center justify-center">
<Portrait />
<div className="relative h-48 overflow-y-auto">
<Typewriter
options={{
@@ -58,6 +85,7 @@ function Content() {
</div>
</div>
</div>
</>
);
};