Skip to content

Commit fab94d9

Browse files
authored
Merge pull request #63 from bilalscripts/develop
[add] Banner Component [Fixes #51]
2 parents 002f504 + 13f0225 commit fab94d9

4 files changed

Lines changed: 26 additions & 3 deletions

File tree

components/Banner.jsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from "react";
2+
3+
const Banner = () => {
4+
return (
5+
<div>
6+
<div className="bg-white">
7+
<div
8+
className="p-4"
9+
style={{
10+
background:
11+
"repeating-linear-gradient(-55deg, #222, rgb(34, 34, 34) 10px, rgb(234, 179, 8) 10px, rgb(234, 179, 8) 20px)",
12+
}}
13+
/>
14+
<div className="p-4 text-center text-gray-900 bg-yellow-500 font-bold">
15+
UNDER CONSTRUCTION
16+
</div>
17+
</div>
18+
</div>
19+
);
20+
};
21+
export default Banner;

pages/_app.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import Navbar from "../components/Navbar.jsx";
22
import "../styles/globals.css";
3+
import Banner from "../components/Banner.jsx";
34

45
function MyApp({ Component, pageProps }) {
56
return (
67
<>
8+
<Banner />
79
<Navbar />
810
<Component {...pageProps} />
911
</>

pages/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Head from "next/head";
2+
import Banner from "../components/Banner";
23
import Image from "next/image";
3-
// import styles from '../styles/Home.module.css'
44
import logo from "../public/reactdevske.svg";
55

66
export default function Home() {

styles/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body {
99
margin: 0;
1010
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
1111
Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
12-
background-color: #333333;
12+
background-color: #333333;
1313
}
1414

1515
a {
@@ -19,4 +19,4 @@ a {
1919

2020
* {
2121
box-sizing: border-box;
22-
}
22+
}

0 commit comments

Comments
 (0)