Skip to content

Commit 1f742e4

Browse files
committed
Remove Tailwind Brand, change the headline, remove some unnecessary deps
1 parent f1723cb commit 1f742e4

File tree

25 files changed

+363
-425
lines changed

25 files changed

+363
-425
lines changed

README.md

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,34 @@
1-
<p align="center">
2-
<a href="https://floatui.com/" rel="noopener" target="_blank"><img width="200" src="public/logo.svg" alt="Float UI logo"></a>
3-
</p>
4-
5-
Float UI is collection of modern UI components and website templates built on top of React, and Vue (soon) with Tailwind CSS, the components are beautiful designed, expertly crafted, allow you to build beautiful websites.
6-
7-
## Why Float UI?
8-
9-
First, Float UI is fully free, and open source, you don't need to pay anything to use it, and we are working on it full-time, so we'll keep improving, and adding more UIs, the second thing if you’re working on a large project that requires a high level of UI customization or you find yourself repeating the same UI patterns across projects, consider creating an internal UI library, and in this case Float UI is a great choice. You should definitely use it.
10-
[![HomePage](readme/1.png)](https://floatui.com)
11-
<br>
12-
13-
### A collection of professional and beautiful ,aesthetic and modern designed website templates
14-
15-
[![Templates](readme/2.png)](https://floatui.com/templates)
16-
<br>
17-
18-
### The User Friendly UI Components
19-
20-
[![Components](readme/4.png)](https://floatui.com/components)
21-
<br>
22-
23-
### Demo
24-
25-
[![Demo](readme/3.png)](https://floatui.com/demo)
26-
<br>
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).
272

283
## Getting Started
294

30-
First, install the dependencies we highly recommend using pnpm, and run the development server:
5+
First, run the development server:
316

327
```bash
338
npm run dev
349
# or
3510
yarn dev
36-
# or
37-
pnpm dev
3811
```
3912

4013
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
4114

42-
### Quick start
15+
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
16+
17+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
18+
19+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
20+
21+
## Learn More
22+
23+
To learn more about Next.js, take a look at the following resources:
24+
25+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
4327

44-
- <strong>[UI components](https://floatui.com/components) :</strong> UI components for React and Vue (soon) with Tailwind, every example support both directions LTR and RTL.
28+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
4529

46-
- <strong>[Website templates](https://floatui.com/templates) :</strong> A collection of professional and beautifully designed website templates, built on top of React, Next.js and Nuxt (soon) with Tailwind CSS.
30+
## Deploy on Vercel
4731

48-
## Contributing
32+
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.
4933

50-
If you're interested in contributing to Float UI, please read our [contributing guide](https://github.com/MarsX-dev/floatui/blob/main/CONTRIBUTING.md) to learn about our development process before submitting a pull request.
34+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

app/components/[slug]/page.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ type PageDetails = {
1515
section_name: string;
1616
};
1717

18+
export async function generateStaticParams() {
19+
return sections.map((item) => ({
20+
slug: item.slug.slice(1),
21+
}));
22+
}
23+
1824
export async function generateMetadata({
1925
params: { slug },
2026
}: {
@@ -25,6 +31,10 @@ export async function generateMetadata({
2531
) as PageDetails;
2632

2733
return {
34+
metadataBase: new URL("https://floatui.com"),
35+
alternates: {
36+
canonical: `/components/${slug}`,
37+
},
2838
title: pageDetails
2939
? `${pageDetails.section_name} - Tailwind CSS Components`
3040
: "Page Not Found",

app/layout.tsx

Lines changed: 26 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,30 @@
1-
"use client";
2-
31
import { Inter } from "next/font/google";
4-
import Script from "next/script";
52
import "./tailwind.css";
63
import "./customize.css";
74
import "./prismjs-theme.css";
85
import Navbar from "components/ui/Navbar";
9-
import Footer from "components/ui/Footer/Footer";
10-
import { usePathname } from "next/navigation";
11-
import ProgressBarNav from "components/ProgressBarNav";
6+
import Footer from "components/ui/Footer";
7+
import UsermavenSetup from "components/UsermavenSetup";
8+
import metatag from "metatag";
9+
10+
const { title, desc, ogImage } = metatag;
11+
12+
export const metadata = {
13+
metadataBase: new URL("https://floatui.com"),
14+
title,
15+
description: desc,
16+
openGraph: {
17+
title,
18+
description: desc,
19+
images: ogImage,
20+
url: "https://floatui.com",
21+
},
22+
twitter: {
23+
title,
24+
description: desc,
25+
images: [ogImage],
26+
},
27+
};
1228

1329
const inter = Inter({ subsets: ["latin"] });
1430

@@ -22,9 +38,6 @@ export default function RootLayout({
2238
}: {
2339
children: React.ReactNode;
2440
}) {
25-
const pathname = usePathname();
26-
const isInComponentsPage = pathname.includes("/components");
27-
2841
return (
2942
<html lang="en" className="bg-zinc-950">
3043
<head>
@@ -36,44 +49,18 @@ export default function RootLayout({
3649
<meta name="twitter:site" content="@float_ui" />
3750
<meta name="twitter:creator" content="@float_ui" />
3851
<link rel="icon" href="/favicon.ico" />
39-
{/* Global Site Tag (gtag.js) - Google Analytics */}
4052
<meta
4153
name="google-site-verification"
4254
content={GOOGLE_SITE_VERIFICATION}
4355
/>
4456
<meta name="msvalidate.01" content="D00EDAC78FB47DDD869F2C18FD8A6572" />
45-
<Script
46-
async
47-
strategy="lazyOnload"
48-
defer
49-
src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`}
50-
/>
51-
<Script
52-
strategy="lazyOnload"
53-
dangerouslySetInnerHTML={{
54-
__html: `
55-
window.dataLayer = window.dataLayer || [];
56-
function gtag(){dataLayer.push(arguments);}
57-
gtag('js', new Date());
58-
59-
gtag('config', '${GA_ID}');
60-
`,
61-
}}
62-
/>
57+
<meta name="robots" content="index, follow" />
6358
</head>
59+
<UsermavenSetup />
6460
<body className={inter.className}>
65-
<ProgressBarNav />
66-
<div
67-
className={
68-
isInComponentsPage
69-
? "sticky z-50 top-0 bg-zinc-950 border-zinc-800 xl:border-b"
70-
: ""
71-
}
72-
>
73-
<Navbar />
74-
</div>
61+
<Navbar />
7562
<main>{children}</main>
76-
{!isInComponentsPage ? <Footer /> : ""}
63+
<Footer />
7764
</body>
7865
</html>
7966
);

app/page.tsx

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,6 @@ import Features from "components/ui/Features/Features";
33
import Hero from "components/ui/Hero";
44
import SupportedFrameworks from "components/ui/SupportedFrameworks";
55
import TemplateCTA from "components/ui/TemplateCTA";
6-
import metatag from "metatag";
7-
8-
const { title, desc, ogImage } = metatag;
9-
10-
export const metadata = {
11-
metadataBase: new URL("https://floatui.com"),
12-
title,
13-
description: desc,
14-
openGraph: {
15-
title,
16-
description: desc,
17-
images: ogImage,
18-
url: "https://floatui.com",
19-
},
20-
twitter: {
21-
title,
22-
description: desc,
23-
images: [ogImage],
24-
},
25-
};
266

277
export default () => {
288
return (

app/templates/[slug]/page.tsx

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export async function generateMetadata({
2828
})[0];
2929

3030
return {
31+
metadataBase: new URL("https://floatui.com"),
32+
alternates: {
33+
canonical: `/templates/${slug}`,
34+
},
3135
title: `Float UI - ${template.template_name} Tailwind CSS Template`,
3236
description: template.description,
3337
openGraph: {
@@ -55,6 +59,7 @@ export default async ({ params: { slug } }: { params: Params }) => {
5559
price,
5660
description,
5761
details,
62+
templateFile,
5863
} = item.data();
5964

6065
return {
@@ -66,31 +71,12 @@ export default async ({ params: { slug } }: { params: Params }) => {
6671
price,
6772
description,
6873
details,
74+
templateFile,
6975
};
7076
})[0];
7177

7278
return (
7379
<>
74-
{/* <PaddleLoader />
75-
<Head>
76-
<meta name='robots' content='index, follow' />
77-
<meta property='og:type' content='article' />
78-
<meta name='twitter:description' content={template?.description} />
79-
<meta property='og:image' content={template?.banner_url} />
80-
<meta name='twitter:image' content={template?.banner_url} />
81-
<meta
82-
name='twitter:title'
83-
content={`${template?.template_name} - Float UI`}
84-
/>
85-
<meta
86-
property='og:title'
87-
content={`${template?.template_name} - Float UI`}
88-
/>
89-
<meta property='og:description' content={""} />
90-
<meta name='description' content={template?.description} />
91-
<title>{template?.template_name} - Float UI</title>
92-
</Head>
93-
<Nav /> */}
9480
<section className="mt-24">
9581
<div className="max-w-screen max-w-2xl mx-auto lg:max-w-none">
9682
<div className="gap-12 lg:flex">
@@ -126,35 +112,14 @@ export default async ({ params: { slug } }: { params: Params }) => {
126112
<ArrowTopRightOnSquareIcon className="w-4 h-4 duration-200 group-hover:translate-x-1" />
127113
</LinkItem>
128114
<LinkItem
129-
href="/"
115+
target="_blank"
116+
href={`https://drive.google.com/u/0/uc?id=${template?.templateFile}`}
130117
variant="shiny"
131118
className="inline-block w-full hover:bg-zinc-700 sm:w-auto"
132119
>
133120
Download template
134121
</LinkItem>
135122
</div>
136-
{/* <Link
137-
href='/dashboard/templates'
138-
className='flex items-center justify-center gap-1 py-3 px-4 rounded-lg text-center text-white dark:text-white border-none bg-gray-800 dark:bg-indigo-600 shadow w-full hover:bg-gray-700 dark:hover:bg-indigo-700 sm:w-auto md:py-2.5'>
139-
<svg
140-
xmlns='http://www.w3.org/2000/svg'
141-
className='h-5 w-5'
142-
viewBox='0 0 20 20'
143-
fill='currentColor'>
144-
<path
145-
fillRule='evenodd'
146-
d='M3 17a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zm3.293-7.707a1 1 0 011.414 0L9 10.586V3a1 1 0 112 0v7.586l1.293-1.293a1 1 0 111.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z'
147-
clipRule='evenodd'
148-
/>
149-
</svg>
150-
Download template
151-
</Link>
152-
<a
153-
href={template?.preview_url}
154-
target='_blank'
155-
className='flex items-center justify-center gap-1 py-3 px-5 rounded-lg text-center text-gray-800 dark:text-gray-300 duration-150 hover:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700 border dark:border-none w-full sm:w-auto md:py-2.5'>
156-
Full preview
157-
</a> */}
158123
</div>
159124
</div>
160125
</div>

app/templates/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export const metadata = {
1515
openGraph: {
1616
title,
1717
description: desc,
18-
url: "https://floatui.com",
1918
},
2019
twitter: {
2120
title,
@@ -63,7 +62,7 @@ export default async () => {
6362
</div>
6463
<ul
6564
id="templates"
66-
className="mt-32 space-y-7 divide-y dark:divide-gray-700 gap-14 grid-cols-2 lg:grid lg:space-y-0 lg:divide-y-0"
65+
className="mt-32 space-y-7 divide-y divide-zinc-800 gap-14 grid-cols-2 lg:grid lg:space-y-0 lg:divide-y-0"
6766
>
6867
{templates.map((item, idx) => (
6968
<TemplateCard key={idx} item={item as Templates} />

components/HeroBgGradient.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default ({
1212
viewBox="0 0 653 444"
1313
fill="none"
1414
xmlns="http://www.w3.org/2000/svg"
15-
className={mergeTW(className, "w-full sm:w-[653px] sm:h-auto")}
15+
className={mergeTW(className, "w-full sm:w-[653px]")}
1616
>
1717
<g filter="url(#filter0_f_3249_6957)">
1818
<path

components/ProgressBarNav.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

components/UsermavenSetup.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
"use client";
2+
3+
import { usermavenClient, UsermavenClient } from "@usermaven/sdk-js";
4+
import { useEffect } from "react";
5+
6+
export default () => {
7+
useEffect(() => {
8+
// Init Usermaven
9+
const usermaven: UsermavenClient = usermavenClient({
10+
key: process.env.ANALYTICS_KEY as string,
11+
tracking_host: "https://events.usermaven.com",
12+
});
13+
}, []);
14+
15+
return <></>;
16+
};

components/ui/Banner/Banner.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
export default () => {
22
return (
3-
// <div className="bg-orange-600">
3+
// <div className="bg-orange-600 relative z-10">
44
// <div className="max-w-screen py-3 items-center gap-x-4 justify-between text-white sm:flex">
55
// <div className="flex items-center">
66
// <img
77
// src="https://user-uploads-unicorn.s3.amazonaws.com/product_hunt_kitty.png"
88
// alt="PH kitty"
99
// className="w-24"
1010
// />
11-
// <p>Support our project: Marketsy AI on Product Hunt now</p>
11+
// <p>Support our project: Float UI on Product Hunt now</p>
1212
// </div>
1313
// <a
1414
// className="px-4 rounded-lg text-sm flex-none inline-block w-full mt-3 py-2 text-center text-orange-600 font-medium bg-white duration-150 hover:bg-gray-100 active:bg-gray-200 sm:w-auto sm:mt-0 btnshake"
15-
// href="https://www.producthunt.com/posts/marketsy-ai"
15+
// href="https://www.producthunt.com/posts/float-ui-v2"
1616
// target="_blank"
1717
// >
1818
// <div className="flex items-center justify-center gap-x-1 text-sm">

0 commit comments

Comments
 (0)