Skip to content

Commit d95eb4d

Browse files
homebanner added
1 parent bdd2768 commit d95eb4d

File tree

7 files changed

+96
-12
lines changed

7 files changed

+96
-12
lines changed

components/homebanner.js

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/* eslint-disable @next/next/no-img-element */
2+
import Image from "next/image";
3+
import {useState, useRef, useEffect} from "react";
4+
const Homebanner = () => {
5+
return (
6+
<div className="banner">
7+
<div className="banner_container">
8+
<div className="left_container">
9+
<div className="what_is">What is Tailwind CSS UI bootstrap</div>
10+
<div className="what_is_ans">
11+
<p>
12+
This is one stop for frontend developers (sorry 🙏 fullstack
13+
developers) who are designing and building their website in
14+
tailwind css
15+
</p>
16+
<p>
17+
Here you can find all UI components and layouts build exclusively
18+
in tailwind
19+
</p>
20+
<p>
21+
Additional point, checkout components page - dont say this to your
22+
competitors 🤫
23+
</p>
24+
</div>
25+
</div>
26+
<div className="right_container">
27+
<img src="/home_banner.png" alt="banner" />
28+
</div>
29+
</div>
30+
</div>
31+
);
32+
};
33+
34+
export default Homebanner;

pages/_app.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import '../styles/globals.css'
2-
import '../styles/components/navbar_style.css';
1+
import "../styles/globals.css";
2+
import "../styles/components/navbar_style.css";
3+
import "../styles/components/homebanner.css";
34

4-
function MyApp({ Component, pageProps }) {
5-
return <Component {...pageProps} />
5+
function MyApp({Component, pageProps}) {
6+
return <Component {...pageProps} />;
67
}
78

8-
export default MyApp
9+
export default MyApp;

pages/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Head from "next/head";
22

33
import Navbar from "../components/navbar";
4+
import Homebanner from "../components/homebanner";
45

56
export default function Home() {
67
return (
@@ -13,6 +14,7 @@ export default function Home() {
1314

1415
<div className=" bg-slate-100 min-h-screen">
1516
<Navbar />
17+
<Homebanner />
1618
</div>
1719
</div>
1820
);

public/home_banner.png

60.3 KB
Loading

styles/components/homebanner.css

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
.banner {
2+
background-color: rgb(35, 32, 71);
3+
min-height: 80vh;
4+
width: 100%;
5+
font-family: poppins;
6+
padding-top: 2%;
7+
}
8+
9+
.banner_container {
10+
width: 75%;
11+
margin: 0 auto;
12+
display: flex;
13+
justify-content: space-between;
14+
align-items: center;
15+
gap: 10rem;
16+
z-index: 10;
17+
}
18+
19+
.left_container {
20+
width: 100%;
21+
}
22+
23+
.what_is {
24+
font-weight: bolder;
25+
color: wheat;
26+
text-decoration: underline;
27+
text-underline-offset: 8px;
28+
padding-bottom: 24px;
29+
font-size: large;
30+
letter-spacing: 4px;
31+
}
32+
33+
.what_is_ans {
34+
color: white;
35+
font-size: x-large;
36+
line-height: 1.8;
37+
}
38+
39+
.what_is_ans p {
40+
margin-bottom: 24px;
41+
}
42+
43+
.right_container {
44+
width: 100%;
45+
}
46+
47+
.right_container img {
48+
width: 100%;
49+
display: flex;
50+
justify-content: center;
51+
}

styles/components/navbar_style.css

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/* Google font family for poppins */
2+
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
3+
14
.nav_container {
25
width: 100%;
36
background: linear-gradient(

styles/globals.css

-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4-
5-
/* Google font family for poppins */
6-
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
7-
8-
* {
9-
font-family: 'Poppins', sans-serif;
10-
}

0 commit comments

Comments
 (0)