mirror of
https://github.com/silicoflare/silicoflare-website.git
synced 2026-05-26 20:17:58 +05:30
feat: complete revamp using daisyui
This commit is contained in:
118
src/App.tsx
118
src/App.tsx
@@ -1,45 +1,77 @@
|
||||
import { Portfolio, MainHead, Avatar, Intro, PortSection, SubHead, LinkBar, SocialLink, MD, CardList, Card } from '@silicoflare/portfolify';
|
||||
// import { Portfolio, MainHead, Avatar, Intro, PortSection, SubHead, LinkBar, SocialLink, MD, CardList, Card } from 'portfolify';
|
||||
import { useEffect, useState } from "react";
|
||||
import ProjectCard from "./components/ProjectCard";
|
||||
import { links, projects } from "./data";
|
||||
import JSConfetti from "js-confetti";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
export default function App() {
|
||||
const [bday, setBday] = useState(false);
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<Portfolio>
|
||||
<MainHead>Suraj B M</MainHead>
|
||||
<Avatar src="avatar.png"/>
|
||||
<LinkBar>
|
||||
<SocialLink href="/resume.pdf" logo="nf-md-file_document" />
|
||||
<SocialLink href="mailto:suraj.b.m555@gmail.com" logo="nf-oct-mail" />
|
||||
<SocialLink href="https://github.com/silicoflare" logo="nf-md-github" />
|
||||
<SocialLink href="https://instagram.com/suraj.b.m" logo="nf-md-instagram" />
|
||||
<SocialLink href="https://in.linkedin.com/in/suraj-b-m" logo="nf-md-linkedin" />
|
||||
</LinkBar>
|
||||
<Intro>Student and Frontend Web Developer</Intro>
|
||||
<PortSection>
|
||||
<SubHead>Projects</SubHead>
|
||||
<CardList>
|
||||
<Card heading="Formista">
|
||||
<MD>
|
||||
A form app with more features. [Link](https://formista.vercel.app)
|
||||
</MD>
|
||||
</Card>
|
||||
<Card heading="LuffyEdit">
|
||||
<MD>
|
||||
A simple text editor in C with file save and load.
|
||||
</MD>
|
||||
</Card>
|
||||
<Card heading="docker-hadoop">
|
||||
<MD>
|
||||
A minified Docker image containing pre installed tools required for Big Data.
|
||||
</MD>
|
||||
</Card>
|
||||
<Card heading="@silicoflare/portfolify">
|
||||
<MD>
|
||||
A React component package to build a simple portfolio website.
|
||||
</MD>
|
||||
</Card>
|
||||
</CardList>
|
||||
</PortSection>
|
||||
</Portfolio>
|
||||
)
|
||||
}
|
||||
useEffect(() => {
|
||||
const today = dayjs();
|
||||
if (today.month() === 8 && today.date() === 23) {
|
||||
setBday(true);
|
||||
const confetti = new JSConfetti();
|
||||
confetti.addConfetti();
|
||||
}
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="w-screen h-screen flex flex-col gap-3 bg-base-100 text-base-content md:text-lg p-2 md:p-10 font-space-grotesk">
|
||||
<div className="mt-[15rem] md:mt-10 my-5 px-10 md:px-20 flex flex-col justify-center gap-2 text-center md:text-left">
|
||||
{bday && (
|
||||
<div className="text-2xl md:text-3xl font-semibold text-primary">
|
||||
Level {dayjs().diff("2003-09-23", "years")}!
|
||||
</div>
|
||||
)}
|
||||
<h1 className="text-5xl md:text-6xl font-bold text-primary">
|
||||
Suraj “SilicoFlare”
|
||||
</h1>
|
||||
TypeScript maniac, student, gamer and an avid Linux user.
|
||||
<div className="w-full flex items-center gap-3 justify-center md:justify-start">
|
||||
<a
|
||||
href="/resume.pdf"
|
||||
target="_blank"
|
||||
className="badge badge-accent badge-outline px-5 py-3 rounded-md hover:bg-accent hover:text-base-100"
|
||||
>
|
||||
Resume
|
||||
</a>
|
||||
{Object.entries(links).map(([title, link]) => (
|
||||
<a
|
||||
href={link}
|
||||
key={title}
|
||||
target="_blank"
|
||||
className="text-accent hover:scale-110 transition ease-in-out duration-200"
|
||||
>
|
||||
<img
|
||||
height="20"
|
||||
width="20"
|
||||
src={`https://cdn.simpleicons.org/${title}/FFD100`}
|
||||
className="text-accent hover:scale-110 transition ease-in-out duration-200"
|
||||
/>
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div className="my-20 md:hidden"></div>
|
||||
|
||||
<div className="my-10 flex flex-col px-10 md:px-20 w-full">
|
||||
<h2 className="text-2xl md:text-4xl font-bold text-primary font-space-grotesk">
|
||||
Projects
|
||||
</h2>
|
||||
<div className="w-full grid grid-cols-1 md:grid-cols-3 gap-3 mt-5">
|
||||
{projects.map((pro) => (
|
||||
<ProjectCard
|
||||
key={pro.name}
|
||||
name={pro.name}
|
||||
tech={pro.tech}
|
||||
description={pro.description}
|
||||
repo={pro.repo}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
<div className="p-20 py-10"></div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user