Skip to content

Commit 53330d1

Browse files
committed
fiirst commit
0 parents  commit 53330d1

19 files changed

+5379
-0
lines changed

.eslintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "next/core-web-vitals"
3+
}

.gitignore

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
.yarn/install-state.gz
8+
9+
# testing
10+
/coverage
11+
12+
# next.js
13+
/.next/
14+
/out/
15+
16+
# production
17+
/build
18+
19+
# misc
20+
.DS_Store
21+
*.pem
22+
23+
# debug
24+
npm-debug.log*
25+
yarn-debug.log*
26+
yarn-error.log*
27+
28+
# local env files
29+
.env*.local
30+
31+
# vercel
32+
.vercel
33+
34+
# typescript
35+
*.tsbuildinfo
36+
next-env.d.ts

README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
# or
14+
bun dev
15+
```
16+
17+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18+
19+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
20+
21+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
22+
23+
## Learn More
24+
25+
To learn more about Next.js, take a look at the following resources:
26+
27+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
29+
30+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
31+
32+
## Deploy on Vercel
33+
34+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35+
36+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

app/favicon.ico

25.3 KB
Binary file not shown.

app/globals.css

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
4+
5+
html,
6+
body,
7+
:root {
8+
height: 100%;
9+
10+
}
11+
@font-face {
12+
font-family: "Cal";
13+
src: url('../public/CalSans-SemiBold.otf');
14+
formt:('truetype')
15+
}
16+
@layer base {
17+
:root {
18+
--background: 0 0% 100%;
19+
--foreground: 222.2 84% 4.9%;
20+
21+
--card: 0 0% 100%;
22+
--card-foreground: 222.2 84% 4.9%;
23+
24+
--popover: 0 0% 100%;
25+
--popover-foreground: 222.2 84% 4.9%;
26+
27+
--primary: 222.2 47.4% 11.2%;
28+
--primary-foreground: 210 40% 98%;
29+
30+
--secondary: 210 40% 96.1%;
31+
--secondary-foreground: 222.2 47.4% 11.2%;
32+
33+
--muted: 210 40% 96.1%;
34+
--muted-foreground: 215.4 16.3% 46.9%;
35+
36+
--accent: 210 40% 96.1%;
37+
--accent-foreground: 222.2 47.4% 11.2%;
38+
39+
--destructive: 0 84.2% 60.2%;
40+
--destructive-foreground: 210 40% 98%;
41+
42+
--border: 214.3 31.8% 91.4%;
43+
--input: 214.3 31.8% 91.4%;
44+
--ring: 222.2 84% 4.9%;
45+
46+
--radius: 0.5rem;
47+
}
48+
49+
.dark {
50+
--background: 222.2 84% 4.9%;
51+
--foreground: 210 40% 98%;
52+
53+
--card: 222.2 84% 4.9%;
54+
--card-foreground: 210 40% 98%;
55+
56+
--popover: 222.2 84% 4.9%;
57+
--popover-foreground: 210 40% 98%;
58+
59+
--primary: 210 40% 98%;
60+
--primary-foreground: 222.2 47.4% 11.2%;
61+
62+
--secondary: 217.2 32.6% 17.5%;
63+
--secondary-foreground: 210 40% 98%;
64+
65+
--muted: 217.2 32.6% 17.5%;
66+
--muted-foreground: 215 20.2% 65.1%;
67+
68+
--accent: 217.2 32.6% 17.5%;
69+
--accent-foreground: 210 40% 98%;
70+
71+
--destructive: 0 62.8% 30.6%;
72+
--destructive-foreground: 210 40% 98%;
73+
74+
--border: 217.2 32.6% 17.5%;
75+
--input: 217.2 32.6% 17.5%;
76+
--ring: 212.7 26.8% 83.9%;
77+
}
78+
}
79+
80+
@layer base {
81+
* {
82+
@apply border-border;
83+
}
84+
body {
85+
@apply bg-background text-foreground;
86+
}
87+
}

app/layout.tsx

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import type { Metadata } from "next";
2+
import { Inter } from "next/font/google";
3+
import "./globals.css";
4+
5+
const inter = Inter({ subsets: ["latin"] });
6+
7+
export const metadata: Metadata = {
8+
title: "Create Next App",
9+
description: "Generated by create next app",
10+
};
11+
12+
export default function RootLayout({
13+
children,
14+
}: Readonly<{
15+
children: React.ReactNode;
16+
}>) {
17+
return (
18+
<html lang="en">
19+
<body className={inter.className}>{children}</body>
20+
</html>
21+
);
22+
}

app/page.tsx

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Button } from "@/components/ui/button";
2+
3+
export default function Home() {
4+
return (
5+
<div className="max-w-[1300px] w-full flex flex-col items-center justify-center h-full gap-6 font-cal">
6+
<div className="md:text-7xl text-4xl font-semibold tracking-widest md:text-center text-left w-full px-3 ">
7+
Collection of Tailwind Tricks <br /> I learn on Daily basis
8+
</div>
9+
<p className="md:w-5/6 w-full md:text-center text-left tracking-widest text-xl px-3">
10+
Easily integrate these Tailwind CSS and Vanilla CSS crafted snippets
11+
into your next project with simple copy-and-paste functionality.
12+
They&apos;re ready-to-use, providing seamless integration.
13+
</p>
14+
<div>
15+
<Button>Explore</Button>
16+
</div>
17+
</div>
18+
)
19+
}

components.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils"
16+
}
17+
}

components/ui/button.tsx

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import * as React from "react"
2+
import { Slot } from "@radix-ui/react-slot"
3+
import { cva, type VariantProps } from "class-variance-authority"
4+
5+
import { cn } from "@/lib/utils"
6+
7+
const buttonVariants = cva(
8+
"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
9+
{
10+
variants: {
11+
variant: {
12+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
13+
destructive:
14+
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
15+
outline:
16+
"border border-input bg-background hover:bg-accent hover:text-accent-foreground",
17+
secondary:
18+
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
19+
ghost: "hover:bg-accent hover:text-accent-foreground",
20+
link: "text-primary underline-offset-4 hover:underline",
21+
},
22+
size: {
23+
default: "h-10 px-4 py-2",
24+
sm: "h-9 rounded-md px-3",
25+
lg: "h-11 rounded-md px-8",
26+
icon: "h-10 w-10",
27+
},
28+
},
29+
defaultVariants: {
30+
variant: "default",
31+
size: "default",
32+
},
33+
}
34+
)
35+
36+
export interface ButtonProps
37+
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
38+
VariantProps<typeof buttonVariants> {
39+
asChild?: boolean
40+
}
41+
42+
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
43+
({ className, variant, size, asChild = false, ...props }, ref) => {
44+
const Comp = asChild ? Slot : "button"
45+
return (
46+
<Comp
47+
className={cn(buttonVariants({ variant, size, className }))}
48+
ref={ref}
49+
{...props}
50+
/>
51+
)
52+
}
53+
)
54+
Button.displayName = "Button"
55+
56+
export { Button, buttonVariants }

lib/utils.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { type ClassValue, clsx } from "clsx"
2+
import { twMerge } from "tailwind-merge"
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs))
6+
}

next.config.mjs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/** @type {import('next').NextConfig} */
2+
const nextConfig = {};
3+
4+
export default nextConfig;

0 commit comments

Comments
 (0)