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>
|
||||
);
|
||||
}
|
||||
|
||||
35
src/components/ProjectCard.tsx
Normal file
35
src/components/ProjectCard.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
import { Project } from "../data";
|
||||
|
||||
export default function ProjectCard({
|
||||
name,
|
||||
tech,
|
||||
description,
|
||||
repo,
|
||||
}: Project) {
|
||||
return (
|
||||
<a
|
||||
href={`https://github.com/${repo}`}
|
||||
target="_blank"
|
||||
className="card bg-base-300 w-full shadow-xl hover:scale-105 transition ease-in-out duration-200"
|
||||
>
|
||||
<div className="card-body text-sm text-justify md:text-left md:text-base">
|
||||
<h2 className="card-title flex items-center justify-between text-secondary">
|
||||
{name}
|
||||
<div className="flex items-center gap-2 text-neutral-content">
|
||||
{tech.map((x) => (
|
||||
<img
|
||||
key={x}
|
||||
height="20"
|
||||
width="20"
|
||||
src={`https://cdn.simpleicons.org/${x}/57C6F3`}
|
||||
className="text-neutral-content fill-neutral-content stroke-neutral-content"
|
||||
title={x}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</h2>
|
||||
<p>{description}</p>
|
||||
</div>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
61
src/data.ts
Normal file
61
src/data.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
export const links: Record<string, string> = {
|
||||
gmail: "mailto:silicoflare@gmail.com",
|
||||
github: "https://github.com/silicoflare",
|
||||
linkedin: "https://in.linkedin.com/in/suraj-b-m",
|
||||
};
|
||||
|
||||
export interface Project {
|
||||
name: string;
|
||||
description: string;
|
||||
repo: string;
|
||||
tech: string[];
|
||||
}
|
||||
|
||||
export const projects: Project[] = [
|
||||
{
|
||||
name: "rapport",
|
||||
description:
|
||||
"An end-to-end encrypted messaging app written in Next.js. involving several layers of encryption",
|
||||
repo: "silicoflare/rapport",
|
||||
tech: ["nextdotjs", "mysql"],
|
||||
},
|
||||
{
|
||||
name: "pesu-tix",
|
||||
description:
|
||||
"An event ticketing system tailored for PES University, integrating ID Card verification for secure event access.",
|
||||
repo: "silicoflare/pesu-tix",
|
||||
tech: ["nextdotjs", "trpc"],
|
||||
},
|
||||
{
|
||||
name: "confidant",
|
||||
description: "A CLI tool to create secure password-protected vaults",
|
||||
repo: "silicoflare/confidant",
|
||||
tech: ["typescript"],
|
||||
},
|
||||
{
|
||||
name: "safe",
|
||||
description:
|
||||
"A CLI tool to encrypt and decrypt files to share with contacts",
|
||||
repo: "silicoflare/safe-cli",
|
||||
tech: ["typescript"],
|
||||
},
|
||||
{
|
||||
name: "vroomify",
|
||||
description:
|
||||
"An enterprise resource planning [ERP] software for an automobile industry, to manage orders, models, inventory and refills",
|
||||
repo: "Samprith002/vroomify",
|
||||
tech: ["nextdotjs", "fastapi", "mongodb"],
|
||||
},
|
||||
{
|
||||
name: "docker-hadoop",
|
||||
description: "A Docker image containing necessary tools for Big Data",
|
||||
repo: "silicoflare/docker-hadoop",
|
||||
tech: ["docker"],
|
||||
},
|
||||
{
|
||||
name: "silicodrive",
|
||||
description: "A simple file storage and synchronization platform",
|
||||
repo: "silicoflare/silicodrive",
|
||||
tech: ["nextdotjs", "supabase"],
|
||||
},
|
||||
];
|
||||
@@ -0,0 +1,5 @@
|
||||
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
12
src/main.tsx
12
src/main.tsx
@@ -1,10 +1,10 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import App from './App.tsx'
|
||||
import { StrictMode } from 'react'
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import './index.css'
|
||||
import App from './App.tsx'
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
<React.StrictMode>
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
</StrictMode>,
|
||||
)
|
||||
|
||||
2
src/vite-env.d.ts
vendored
2
src/vite-env.d.ts
vendored
@@ -1,3 +1 @@
|
||||
/// <reference types="vite/client" />
|
||||
declare module '@silicoflare/portfolify';
|
||||
declare module 'portfolify';
|
||||
Reference in New Issue
Block a user