Skip to content

Commit

Permalink
Header Added
Browse files Browse the repository at this point in the history
  • Loading branch information
AD1TYA03 committed May 28, 2022
1 parent 756baf2 commit 6e6a49e
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 4 deletions.
Binary file added public/images/masterji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import "./styles.css";

import Header from "../src/components/header";
export default function App() {
return (
<div className="App">

<Header />
</div>
);
}
30 changes: 30 additions & 0 deletions src/components/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from "react";
import "../styles.css";
function header() {
return (
<div className="headerMain">
<img src="https://i.ibb.co/fpgM7Qw/masterji.png" alt="logo"></img>
<h1 className="logoName">E MASTARJI</h1>
<div className="headButtons">
<ul>
<li>
<button>Home</button>
</li>
<li>
<button>Schedule</button>
</li>
<li>
<button>Live Classes</button>
</li>
<li>
<button>Notes</button>
</li>
</ul>
</div>
<button className="loginBtn">LOGIN</button>
<button className="loginBtn2">SIGN UP</button>
</div>
);
}

export default header;
87 changes: 85 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,87 @@
.App {
font-family: sans-serif;
.headerMain {
width: 1440px;
height: 70px;
background-color: transparent;
display: flex;
align-items: center;
box-shadow: 5px 4px 5px 0.1px grey;
}
.headerMain img {
height: 60px;
margin-left: 20px;
margin-top: 10px;
}
.logoName {
display: inline-block;
margin-top: 10px;
font-size: 1.5em;
margin-block-start: 0px;
margin-block-end: 0em;
margin-inline-start: 10px;
margin-inline-end: 0px;
text-align: center;
font-weight: bold;
}

.headButtons ul {
display: inline;
list-style-type: disc;
margin-block-start: 1em;
margin-block-end: 1em;
margin-inline-start: 0px;
margin-inline-end: 0px;
padding-inline-start: 0px;
}
.headButtons li {
list-style: none;
background: transparent;
display: inline;
padding-left: 30px;
}
.headButtons button:hover {
color: #f9d923;
}
.headButtons button {
border-style: none;
background-color: transparent;
color: black;
font-weight: 1000;
font-size: large;
}
.headButtons {
margin-left: 350px;

display: inline;
}
.loginBtn {
border-style: none;
border-radius: 6px;
background-color: #ffd24c;
color: black;
padding: 8px 15px 8px 15px;
font-size: small;
display: inline;
margin-left: 100px;
margin-top: 0px;
}
.loginBtn:hover {
color: white;
font-weight: bolder;
background-color: green;
}
.loginBtn2 {
border-style: none;
border-radius: 6px;
background-color: #ffd24c;
color: black;
padding: 8px 15px 8px 15px;
font-size: small;
display: inline;
margin-left: 10px;
margin-top: 0px;
}
.loginBtn2:hover {
color: white;
font-weight: bolder;
background-color: green;
}

0 comments on commit 6e6a49e

Please sign in to comment.