From a00d30bba7da9821a5ca1ff602276273acc7fa4c Mon Sep 17 00:00:00 2001 From: tomarmayankk Date: Fri, 20 Dec 2024 13:21:33 +0530 Subject: [PATCH 1/2] Improved Landing page of site --- components/layout/Header.js | 11 +++--- components/layout/Navigation.js | 12 +++---- components/other/ComponentListing.js | 43 ++++++++++++++---------- components/other/HeroSection.js | 50 +++++++++++++++++----------- 4 files changed, 65 insertions(+), 51 deletions(-) diff --git a/components/layout/Header.js b/components/layout/Header.js index bf869fc..2e79e85 100644 --- a/components/layout/Header.js +++ b/components/layout/Header.js @@ -3,21 +3,19 @@ import Navigation from "./Navigation"; const Header = () => { return ( -
+
diff --git a/components/layout/Navigation.js b/components/layout/Navigation.js index 3e0ec2a..69db1a6 100644 --- a/components/layout/Navigation.js +++ b/components/layout/Navigation.js @@ -40,7 +40,7 @@ const Navigation = () => {
- How to use + Get Started @@ -53,14 +53,13 @@ const Navigation = () => { {" "} Share on twitter - - + Visit on Github
@@ -72,22 +71,21 @@ const Navigation = () => { return (
- - How to use + + Get Started
{" "} Share on twitter
- { const [list, setList] = useState(undefined); @@ -40,43 +39,51 @@ const ComponentListing = ({ featured = 0 }) => { count: 1, icon: "ri-login-box-line", featured: true, - } + }, ]; useEffect(() => { - if (featured != 0) { + if (featured !== 0) { setList([...components.slice(0, featured)]); } }, [featured]); return ( -
+
{(list || components)?.map((component) => ( - - {component.name} - - {component.count > 1 - ? `${component.count} Components` - : component.count - ? `${component.count} Component` - : "coming soon"} - - - +
+ {/* Icon */} + + {/* Component Name */} +

+ {component.name} +

+ {/* Count */} + + {component.count > 1 + ? `${component.count} Components` + : component.count + ? `${component.count} Component` + : "Coming Soon"} + +
+ {/* External Link Icon */} +
))}
); }; - export default ComponentListing; diff --git a/components/other/HeroSection.js b/components/other/HeroSection.js index 8bfb504..1e23982 100644 --- a/components/other/HeroSection.js +++ b/components/other/HeroSection.js @@ -1,26 +1,38 @@ +import Link from "next/link"; import Hero from "./Svg/Hero"; import Arrow from "./Svg/icons/doodleArrow"; const HeroSection = () => { - return ( -
-
- -
-
-

DripUI

-

Tailwind CSS Components

+ return ( +
- {/*

DripUI is a collection of free Tailwind CSS components to bootstrap your new apps, projects or landing sites!

*/} -

DripUI is a collection of free UI components to help you develop your component easier and better!

-
- Free Open Source - + {/* Hero Image */} +
+ +
+ + {/* Text Content */} +
+

+ DripUI +

+

+ Tailwind CSS Components +

+

+ DripUI is a collection of free, customizable Tailwind CSS components + designed to speed up your development process. +

+
+ + + +
+
+
+ ); +}; -
-
- - ); -} - export default HeroSection; From 014df2c64a11e45fc465e5dde0bf75423b4ab57a Mon Sep 17 00:00:00 2001 From: tomarmayankk Date: Mon, 23 Dec 2024 13:29:24 +0530 Subject: [PATCH 2/2] created a sign up component --- components/drip/signin/Signup.js | 81 ++++++++++++++++++++++++++++ components/other/ComponentListing.js | 2 +- pages/docs/signin.js | 6 ++- 3 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 components/drip/signin/Signup.js diff --git a/components/drip/signin/Signup.js b/components/drip/signin/Signup.js new file mode 100644 index 0000000..46b9b98 --- /dev/null +++ b/components/drip/signin/Signup.js @@ -0,0 +1,81 @@ +import React, { useRef, useState } from 'react'; +import copyToClipboard from '../../../utils/function/copyToClipBoard'; + +const Signup = () => { + const [CopySuccess, setCopySuccess] = useState(false); + const pageEL = useRef(null); + + return ( +
copyToClipboard(pageEL, setCopySuccess)}> + +

+ {CopySuccess && ( + + Copied! + + )} +

+ +
+

Sign Up

+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + + +

+ Already have an account?{" "} + + Sign in + +

+
+
+ ); +}; + +export default Signup; diff --git a/components/other/ComponentListing.js b/components/other/ComponentListing.js index 07e0727..be13591 100644 --- a/components/other/ComponentListing.js +++ b/components/other/ComponentListing.js @@ -36,7 +36,7 @@ const ComponentListing = ({ featured = 0 }) => { }, { name: "signin", - count: 1, + count: 2, icon: "ri-login-box-line", featured: true, }, diff --git a/pages/docs/signin.js b/pages/docs/signin.js index 4726338..20c4300 100644 --- a/pages/docs/signin.js +++ b/pages/docs/signin.js @@ -3,10 +3,10 @@ import { useState } from "react"; import Meta from "../../components/layout/meta"; import PageHeading from "../../components/other/PageHeadings"; import Signin from "../../components/drip/signin/Signin"; +import Signup from "../../components/drip/signin/Signup"; export default function Alerts() { const [CopySuccess, setCopySuccess] = useState(false); - const signinComponentCode = ` 'use-client'; import React, { useState } from "react"; @@ -80,6 +80,7 @@ export default function Alerts() { export default Signin; `; + const copyToClipboard = async () => { try { await navigator.clipboard.writeText(signinComponentCode); @@ -122,6 +123,9 @@ export default function Alerts() {

+
+ +
);