-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8420663
commit 9a2eb65
Showing
116 changed files
with
9,695 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
# TWBlocks | ||
|
||
Free open-source website blocks you can easily copy & paste into your react projects. | ||
|
||
I strongly recommend you install shadcn in your project before starting to use these blocks. You can find the installation guide here [shadcn installation](https://ui.shadcn.com/docs/installation) ✌️ | ||
|
||
You can use shadcn [Themes](https://ui.shadcn.com/themes) to customize the styling. | ||
|
||
It works for both dark- and light mode. You can find installation guide to how to toggle and enable the different modes here on shadcn [Dark mode](https://ui.shadcn.com/docs/dark-mode). | ||
|
||
## Blocks | ||
|
||
Go to /components to find the block you need and simply copy/paste it into your project. Then see which dependencies it has to shadcn-ui, and install them. | ||
|
||
Here is a list of available blocks: | ||
|
||
- [Headers](#headers) | ||
- [Heros](#heros) | ||
- [Cases](#cases) | ||
- [Features](#features) | ||
- [CTAs](#ctas) | ||
- [Stats](#stats) | ||
- [Pricing](#pricing) | ||
- [FAQs](#faqs) | ||
- [Blogs](#blogs) | ||
- [Contacts](#contacts) | ||
- [Footers](#footers) | ||
|
||
## Headers | ||
|
||
### [Header1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/header/header1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## Heros | ||
|
||
### [Hero1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/hero/hero1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Hero2](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/hero/hero2.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Hero3](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/hero/hero3.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Hero4](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/hero/hero4.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## Cases | ||
|
||
### [Case1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/case/case1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Case2](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/case/case2.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## Features | ||
|
||
### [Feature1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/feature1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Feature2](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/feature2.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Feature3](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/feature3.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Feature4](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/feature4.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Feature5](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/feature5.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Feature6](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/feature6.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Feature7](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/feature7.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Feature8](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/feature8.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## CTAs | ||
|
||
### [CTA1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/cta1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [CTA2](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/cta2.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## Stats | ||
|
||
### [Stats1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/stats1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
|
||
### [Stats2](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/stats2.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## Pricing | ||
|
||
### [Pricing1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/pricing1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Pricing2](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/pricing2.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## FAQs | ||
|
||
### [FAQ1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/faq1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [FAQ2](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/faq2.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## Blogs | ||
|
||
### [Blog1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/blog1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
### [Blog2](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/blog2.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## Contacts | ||
|
||
### [Contact1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/contact1.tsx) | ||
|
||
 | ||
|
||
 | ||
|
||
## Footers | ||
|
||
### [Footer1](https://github.com/tommyjepsen/next-shadcn-website-templates/blob/main/components/feature/footer1.tsx) | ||
|
||
 | ||
|
||
 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--background: 0 0% 100%; | ||
--foreground: 240 10% 3.9%; | ||
--card: 0 0% 100%; | ||
--card-foreground: 240 10% 3.9%; | ||
--popover: 0 0% 100%; | ||
--popover-foreground: 240 10% 3.9%; | ||
--primary: 240 5.9% 10%; | ||
--primary-foreground: 0 0% 98%; | ||
--secondary: 240 4.8% 95.9%; | ||
--secondary-foreground: 240 5.9% 10%; | ||
--muted: 240 4.8% 95.9%; | ||
--muted-foreground: 240 3.8% 46.1%; | ||
--accent: 240 4.8% 95.9%; | ||
--accent-foreground: 240 5.9% 10%; | ||
--destructive: 0 84.2% 60.2%; | ||
--destructive-foreground: 0 0% 98%; | ||
--border: 240 5.9% 90%; | ||
--input: 240 5.9% 90%; | ||
--ring: 240 5.9% 10%; | ||
--radius: 0.5rem; | ||
} | ||
|
||
.dark { | ||
--background: 240 10% 3.9%; | ||
--foreground: 0 0% 98%; | ||
--card: 240 10% 3.9%; | ||
--card-foreground: 0 0% 98%; | ||
--popover: 240 10% 3.9%; | ||
--popover-foreground: 0 0% 98%; | ||
--primary: 0 0% 98%; | ||
--primary-foreground: 240 5.9% 10%; | ||
--secondary: 240 3.7% 15.9%; | ||
--secondary-foreground: 0 0% 98%; | ||
--muted: 240 3.7% 15.9%; | ||
--muted-foreground: 240 5% 64.9%; | ||
--accent: 240 3.7% 15.9%; | ||
--accent-foreground: 0 0% 98%; | ||
--destructive: 0 62.8% 30.6%; | ||
--destructive-foreground: 0 0% 98%; | ||
--border: 240 3.7% 15.9%; | ||
--input: 240 3.7% 15.9%; | ||
--ring: 240 4.9% 83.9%; | ||
} | ||
} | ||
|
||
@layer base { | ||
* { | ||
@apply border-border; | ||
} | ||
body { | ||
@apply bg-background text-foreground; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import type { Metadata } from "next"; | ||
import { Inter } from "next/font/google"; | ||
import "./globals.css"; | ||
import { ThemeProvider } from "@/components/theme-provider"; | ||
|
||
const inter = Inter({ subsets: ["latin"] }); | ||
|
||
export const metadata: Metadata = { | ||
title: "TWBlocks.com", | ||
description: | ||
"Website code blocks to copy/paste - based on ShadCN & Radix using Tailwind and NextJS", | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<html lang="en"> | ||
<body className={inter.className}> | ||
<ThemeProvider | ||
attribute="class" | ||
defaultTheme="system" | ||
enableSystem | ||
disableTransitionOnChange | ||
> | ||
{children} | ||
</ThemeProvider> | ||
</body> | ||
</html> | ||
); | ||
} |
Oops, something went wrong.