Skip to content

Commit 5f7d60a

Browse files
Merge branch 'master' into PR87
2 parents fb2cf57 + 805d989 commit 5f7d60a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1393
-189
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@
66

77
</div>
88

9-
![Screenshot](https://i.postimg.cc/1Rb75nSg/screenshot-rocks.png)
9+
Homepage
10+
![image](https://user-images.githubusercontent.com/42484705/196957568-cf73a4b6-3d1a-40dd-9452-fe73e612f5a0.png)
11+
12+
Components selection page
13+
![image](https://user-images.githubusercontent.com/42484705/196957666-431c5064-b834-4612-91f1-1e18f0df523c.png)
14+
15+
Codepen page
16+
![image](https://user-images.githubusercontent.com/42484705/196957932-608baf1a-8b1b-4686-b534-fc88e67d04f8.png)
1017

11-
![Screenshot](https://i.postimg.cc/FKJ7vBVk/screenshot-rocks-1.png)
1218

1319
# Motivation
1420

components/homebanner.js

Lines changed: 50 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,61 @@
22
import Image from "next/image";
33
import {useState, useRef, useEffect} from "react";
44
import {FaPrayingHands} from "react-icons/fa";
5+
import {BallTriangle} from "react-loader-spinner";
56

67
const Homebanner = () => {
8+
const [loading, setloading] = useState(false);
9+
useEffect(() => {
10+
setloading(true);
11+
setTimeout(() => {
12+
setloading(false);
13+
}, 1500);
14+
}, []);
715
return (
8-
<div className="banner">
9-
<div className="banner_container">
10-
<div className="left_container">
11-
<div className="what_is">What is Tailwind CSS UI bootstrap</div>
12-
<div className="what_is_ans">
13-
<p>
14-
This is one stop for frontend developers (sorry 🙏 fullstack
15-
developers) who are designing and building their website with
16-
tailwind css
17-
</p>
18-
<p>
19-
Here you can find all UI components and layouts build exclusively
20-
in tailwind CSS
21-
</p>
22-
<p>
23-
Additional point, checkout components page - dont say this to your
24-
competitors 🤫
25-
</p>
26-
</div>
16+
<div>
17+
{loading ? (
18+
<div
19+
style={{
20+
height: "100vh",
21+
backgroundColor: "rgba(0,0,0,0.99",
22+
display: "flex",
23+
justifyContent: "center",
24+
}}
25+
className="banner">
26+
<BallTriangle
27+
height="100"
28+
width="100"
29+
color="#e39a09"
30+
ariaLabel="loading"
31+
/>
2732
</div>
28-
<div className="right_container">
29-
<img src="/home_banner.png" alt="banner" />
33+
) : (
34+
<div className="banner">
35+
<div className="banner_container">
36+
<div className="left_container">
37+
<div className="what_is">What is Tailwind CSS UI bootstrap</div>
38+
<div className="what_is_ans">
39+
<p>
40+
This is one stop for frontend developers (sorry 🙏 fullstack
41+
developers) who are designing and building their website with
42+
tailwind css
43+
</p>
44+
<p>
45+
Here you can find all UI components and layouts build
46+
exclusively in tailwind CSS
47+
</p>
48+
<p>
49+
Additional point, checkout components page - dont say this to
50+
your competitors
51+
</p>
52+
</div>
53+
</div>
54+
<div className="right_container">
55+
<img src="/home_banner.png" alt="banner" />
56+
</div>
57+
</div>
3058
</div>
31-
</div>
59+
)}
3260
</div>
3361
);
3462
};

components/navbar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Navbar = () => {
2121
}
2222
};
2323
return (
24-
<div className="nav_container">
24+
<div className="nav_container font-poppins">
2525
<nav>
2626
<Image
2727
src="/nav_logo.png"
@@ -32,7 +32,7 @@ const Navbar = () => {
3232
/>
3333
<div className="right_contents">
3434
<div className="nav_links">
35-
<a href="/components">Components</a>
35+
<Link href="/components">Components</Link>
3636
</div>
3737
<div className="nav_links">
3838
<Link href="/">Documentation</Link>
@@ -47,7 +47,7 @@ const Navbar = () => {
4747
</nav>
4848
<div className={displayMenu()}>
4949
<div className="nav_links">
50-
<a href="/components">Components</a>
50+
<Link href="/components">Components</Link>
5151
</div>
5252
<div className="nav_links">
5353
<Link href="/">Documentation</Link>

0 commit comments

Comments
 (0)