Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
jewlexx committed Dec 19, 2024
1 parent 13c0942 commit 1d20cab
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 120 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.4.20",
"daisyui": "^4.12.22",
"eslint": "^8",
"eslint-config-next": "15.0.3",
"eslint-config-prettier": "^9.1.0",
Expand Down
21 changes: 6 additions & 15 deletions src/app/_components/Project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ interface Link {

function Header({ title, description }: Props) {
return (
<div className="flex min-h-full flex-col items-center justify-center text-center">
<h1 className="text-4xl font-extrabold">{title}</h1>
<div className="card-body">
<h1 className="card-title">{title}</h1>
<p>{description}</p>
</div>
);
Expand All @@ -41,27 +41,18 @@ function HeroImage({ link }: Props) {
}

export default function Project(props: Props) {
const { link, alternate = false } = props;
const { link } = props;

return (
<a
className="mx-20 mt-12 flex min-w-[calc(100vw-10rem)] justify-between rounded-xl bg-[rgb(220,220,220)] p-8 shadow-lg transition-button hover:scale-105 hover:bg-white"
className="card bg-base-100 m-5 min-w-[50vw] max-w-[50vw] shadow-xl transition-transform hover:scale-[1.02]"
href={link.href}
target="_blank"
rel="noopener noreferrer"
aria-label={link.label}
>
{alternate ? (
<>
<HeroImage {...props} />
<Header {...props} />
</>
) : (
<>
<Header {...props} />
<HeroImage {...props} />
</>
)}
<HeroImage {...props} />
<Header {...props} />
</a>
);
}
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="en" className="h-full w-full">
<html lang="en" className="h-full w-full" data-theme="cupcake">
<body
className={`${roboto.className} ${robotoMono.className} box-border min-h-full w-full bg-background pb-12 text-lg text-foreground antialiased`}
>
Expand Down
107 changes: 4 additions & 103 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,115 +1,16 @@
import Image from 'next/image';
import Project from './_components/Project';
import { projects } from '$/lib/projects';
import Project from './_components/Project';

export default function Home() {
// return (
// <div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
// <main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
// <Image
// className="dark:invert"
// src="/next.svg"
// alt="Next.js logo"
// width={180}
// height={38}
// priority
// />
// <ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
// <li className="mb-2">
// Get started by editing{" "}
// <code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
// src/app/page.tsx
// </code>
// .
// </li>
// <li>Save and see your changes instantly.</li>
// </ol>

// <div className="flex gap-4 items-center flex-col sm:flex-row">
// <a
// className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
// href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
// target="_blank"
// rel="noopener noreferrer"
// >
// <Image
// className="dark:invert"
// src="/vercel.svg"
// alt="Vercel logomark"
// width={20}
// height={20}
// />
// Deploy now
// </a>
// <a
// className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
// href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
// target="_blank"
// rel="noopener noreferrer"
// >
// Read our docs
// </a>
// </div>
// </main>
// <footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
// <a
// className="flex items-center gap-2 hover:underline hover:underline-offset-4"
// href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
// target="_blank"
// rel="noopener noreferrer"
// >
// <Image
// aria-hidden
// src="/file.svg"
// alt="File icon"
// width={16}
// height={16}
// />
// Learn
// </a>
// <a
// className="flex items-center gap-2 hover:underline hover:underline-offset-4"
// href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
// target="_blank"
// rel="noopener noreferrer"
// >
// <Image
// aria-hidden
// src="/window.svg"
// alt="Window icon"
// width={16}
// height={16}
// />
// Examples
// </a>
// <a
// className="flex items-center gap-2 hover:underline hover:underline-offset-4"
// href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
// target="_blank"
// rel="noopener noreferrer"
// >
// <Image
// aria-hidden
// src="/globe.svg"
// alt="Globe icon"
// width={16}
// height={16}
// />
// Go to nextjs.org →
// </a>
// </footer>
// </div>
// );

return (
<main className="column">
<div className="column mb-4 mt-12 gap-4">
<div className="column prose mb-4 mt-12 gap-4">
<Image src="/icons/org.png" alt="Winpax Icon" width="150" height="150" priority />
<h1 className="text-[2.5rem]">Welcome to Winpax</h1>
<h1>Welcome to Winpax</h1>
<p>Creating blazing fast, package management solutions for the Windows platform.</p>
</div>

<p>Creating blazing fast, package management solutions for the Windows platform.</p>

{projects.map((project, index) => (
<Project {...project} alternate={index % 2 === 1} key={project.title} />
))}
Expand Down
4 changes: 3 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import type { Config } from 'tailwindcss';
import daisyui from 'daisyui';
import typography from '@tailwindcss/typography';

export default {
content: [
Expand All @@ -18,5 +20,5 @@ export default {
}
}
},
plugins: []
plugins: [typography, daisyui]
} satisfies Config;

0 comments on commit 1d20cab

Please sign in to comment.