Skip to content

Commit 13f0225

Browse files
author
bilal
committed
modified Banner [Fixes #51]
1 parent 6dfae73 commit 13f0225

2 files changed

Lines changed: 12 additions & 29 deletions

File tree

components/Banner.jsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@ import React from "react";
33
const Banner = () => {
44
return (
55
<div>
6-
<div className="banner">
7-
<div className="stripe"></div>
8-
<div className="text">UNDER CONSTRUCTION</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>
917
</div>
1018
</div>
1119
);

styles/globals.css

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,4 @@ a {
1919

2020
* {
2121
box-sizing: border-box;
22-
}
23-
24-
/* styles for top under construction banner start here*/
25-
26-
.banner {
27-
background: white;
28-
}
29-
30-
.banner>div {
31-
padding: 1rem;
32-
}
33-
34-
.stripe {
35-
background: repeating-linear-gradient(-55deg, #222, rgb(34, 34, 34) 10px, rgb(229, 194, 0) 10px, rgb(229, 194, 0) 20px);
36-
}
37-
38-
.text {
39-
font-family: Verdana, Geneva, Tahoma, sans-serif;
40-
text-align: center;
41-
font-weight: bolder;
42-
color: #222;
43-
font-size: clamp(1rem, 1vw, 2rem);
44-
background-color: rgb(229, 194, 0);
45-
}
46-
47-
/* styles for top under construction banner end here*/
22+
}

0 commit comments

Comments
 (0)