Skip to content

Commit

Permalink
✨ Creates the Banner component
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranjaK committed Jun 20, 2024
1 parent 9122a23 commit 2346c0b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
15 changes: 11 additions & 4 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/* Font import */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
/* Styling varibales */
:root{
--primary_color: #0d254a;
--secondary-color: #3c7ec3;
--prifont_color: #fff;
--secfont_color: #dfb892;
}
/* Defaul CSS */
* {
margin: 0;
Expand All @@ -14,8 +21,8 @@ body {
font-weight: 400;
overflow-x: hidden;
position: relative;
background-color: #000435 !important;
color: #fff !important;
background-color: var(--primary_color) !important;
color: var(--font_color) !important;
font-family: "Roboto", sans-serif !important;
}
h1,
Expand Down Expand Up @@ -91,7 +98,7 @@ nav.navbar a.navbar-brand {
}
nav.navbar .navbar-nav .nav-link.navbar-link {
font-weight: 400;
color: #fff !important;
color: var(--prifont_color) !important;
letter-spacing: 0.08rem;
padding: 0 2rem;
font-size: 1.4rem;
Expand All @@ -112,7 +119,7 @@ span.navbar-text {
.social-icon a {
width: 3rem;
height: 3rem;
background: rgba(217, 217, 217, 0.1);
background: var(--secondary-color);
display: inline-flex;
border-radius: 50%;
margin-right: 0.6rem;
Expand Down
7 changes: 7 additions & 0 deletions src/components/banner/banner.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


const Banner = () =>{
return {}
}

export default Banner
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import NavBar from './components/navbar/NavBar';
import 'bootstrap/dist/css/bootstrap.min.css'
import NavBar from './components/navbar/NavBar'
import Banner from './components/banner/banner';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<NavBar />
<Banner />
</React.StrictMode>
);

Expand Down

0 comments on commit 2346c0b

Please sign in to comment.