Skip to content

Commit de8d9d4

Browse files
author
bilal
committed
[add] banner
1 parent 2d96591 commit de8d9d4

3 files changed

Lines changed: 38 additions & 0 deletions

File tree

components/Banner.jsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from "react";
2+
import styles from "../styles/Banner.module.css";
3+
4+
const Banner = () => {
5+
return (
6+
<div>
7+
<div className={styles.module}>
8+
<h2 className={styles.stripe}></h2>
9+
<h1 className={styles.text}>UNDER CONSTRUCTION</h1>
10+
</div>
11+
</div>
12+
);
13+
};
14+
15+
export default Banner;

pages/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import Head from "next/head";
2+
import Banner from "../components/Banner";
23
import Image from "next/image";
34
// import styles from '../styles/Home.module.css'
45
import logo from "../public/reactdevske.svg";
56

67
export default function Home() {
78
return (
89
<div className="">
10+
911
<Head>
12+
<Banner />
1013
<title>React Devs Kenya</title>
1114
<meta
1215
name="description"

styles/Banner.module.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.module {
2+
background: white;
3+
}
4+
5+
.module>h2 {
6+
padding: 1rem;
7+
}
8+
9+
.stripe {
10+
background: repeating-linear-gradient(-55deg, #222, rgb(34, 34, 34) 10px, rgb(229, 194, 0) 10px, rgb(229, 194, 0) 20px);
11+
}
12+
13+
.text {
14+
font-family: Verdana, Geneva, Tahoma, sans-serif;
15+
text-align: center;
16+
font-weight: bolder;
17+
font-size: 1.5vw;
18+
color: #222;
19+
background-color: rgb(229, 194, 0);
20+
}

0 commit comments

Comments
 (0)