Commit fc916998 by Anoop

header design

parent ef0bd874
:root{--primary:#9800bc;--dark-color:#333;--light-color:#fff;--border-radius:0}.app-header{padding:15px;background:var(--primary);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;color:#fff}.user{display:-webkit-box;display:-ms-flexbox;display:flex}.user p{line-height:1.5}.user_designation{color:var(--text-color-light)}.user_name{margin-bottom:0 !important;font-weight:var(--font-weight-bold);color:var(--primary)}.user_avatar{margin-right:15px}.user_avatar img{width:75px;-o-object-fit:contain;object-fit:contain;height:75px;border-radius:50%;border:2px solid #fff;padding:9px} :root{--primary: #375471;--dark-color: #333;--light-color: #fff;--text-color: #333;--text-color-light: rgba(255, 255, 255, 0.9);--border-radius: 0;--font-weight: 400;--font-weight-light: 300;--font-weight-bold: 600}.scr-text{border:0;clip:rect(1px, 1px, 1px, 1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal !important}.app-header{padding:15px;background:var(--primary);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#fff}.app-header>a{color:#fff}.app-header .action{display:-webkit-box;display:-ms-flexbox;display:flex}.app-header .action a{display:block;padding:5px 15px;margin-bottom:5px;opacity:0.8;-webkit-transition:all ease-in-out 0.3s;-o-transition:all ease-in-out 0.3s;transition:all ease-in-out 0.3s}.app-header .action a:hover{opacity:1}.app-header .action>a,.app-header .action .action_text{color:#fff;font-size:1.5rem}.user{display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:auto;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-inline:15px auto}.user p{line-height:1.5;margin-bottom:0}.user_designation{color:var(--text-color-light);margin-bottom:5px !important}.user_name{margin-bottom:0 !important;font-weight:var(--font-weight-bold);color:var(--light-color);font-size:1.25rem}.user_avatar{margin-right:15px}.user_avatar img{width:65px;-o-object-fit:contain;object-fit:contain;height:65px;border-radius:50%;border:2px solid var(--light-color);padding:9px}.toggle{height:35px;width:35px;-webkit-box-flex:0;-ms-flex:0 0 35px;flex:0 0 35px;border:0;margin-right:15px;padding:7px 5px;position:relative;outline:0 !important;background:transparent;cursor:pointer}.toggle span{height:2px;width:80%;background:var(--light-color);display:block;position:absolute;right:0;left:0;margin:auto;-webkit-transition:all ease 0.3s;-o-transition:all ease 0.3s;transition:all ease 0.3s}.toggle span:nth-child(1){top:5px}.toggle span:nth-child(2){top:15px}.toggle span:nth-child(3){top:25px}.toggle:not(.active) span:nth-child(2){width:calc(100% - 15px);left:-8px}.toggle:not(.active) span:nth-child(3){width:calc(100% - 20px);left:-11px}.toggle.active span{-webkit-transition:all ease 0.3s;-o-transition:all ease 0.3s;transition:all ease 0.3s}.toggle.active span:first-child{-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);top:15px}.toggle.active span:nth-child(2){opacity:0}.toggle.active span:nth-child(3){-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg);top:15px}.toggle.dot-toggle{-webkit-transform:scale(0.8);-ms-transform:scale(0.8);transform:scale(0.8)}.toggle.dot-toggle span{width:5px;height:5px;border-radius:5px;background:#333}
/*# sourceMappingURL=main.css.map */ /*# sourceMappingURL=main.css.map */
\ No newline at end of file
{ {
"version": 3, "version": 3,
"mappings": "AAAA,AAAA,KAAK,AAAA,CACD,SAAS,CAAA,OAAC,CACV,YAAY,CAAA,IAAC,CACb,aAAa,CAAA,IAAC,CACd,eAAe,CAAA,CAAC,CACnB,AAGD,AAAA,WAAW,AAAC,CACR,OAAO,CAAE,IAAI,CACb,UAAU,CAAE,cAAc,CAC1B,OAAO,CAAE,IAAI,CACb,eAAe,CAAE,aAAa,CAC9B,KAAK,CAAE,IAAI,CACd,AAED,AAAA,KAAK,AAAC,CACL,OAAO,CAAE,IAAI,CAuBb,AAxBD,AA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AAoDY,OApDL,AA6CF,OAAO,CACJ,IAAI,AAMC,UAAW,CAAA,CAAC,CAAE,CACX,OAAO,CAAE,CAAC,CACb,AAtDb,AAuDY,OAvDL,AA6CF,OAAO,CACJ,IAAI,AASC,UAAW,CAAA,CAAC,CAAE,CACX,SAAS,CAAE,cAAc,CACzB,GAAG,CAAE,IAAI,CACZ,AA1Db,AA8DI,OA9DG,AA8DF,WAAW,AAAC,CACT,SAAS,CAAE,UAAU,CAOxB,AAtEL,AAgEQ,OAhED,AA8DF,WAAW,CAER,IAAI,AAAC,CACD,KAAK,CAAE,GAAG,CACV,MAAM,CAAE,GAAG,CACX,aAAa,CAAE,GAAG,CAClB,UAAU,CAAE,IAAI,CACnB",
"sources": [ "sources": [
"../scss/main.scss" "../scss/main.scss"
], ],
......
...@@ -7,11 +7,19 @@ ...@@ -7,11 +7,19 @@
<link rel="stylesheet" href="css/bootstrap.css"> <link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/main.css">
<title>Hello, world!</title> <link rel="stylesheet" href="node_modules/bootstrap-icons/font/bootstrap-icons.css">
<link rel="shortcut icon" href="/images/envigo.png" type="image/x-icon">
<title>Envigo Dashboard</title>
</head> </head>
<body> <body>
<header class="app-header"> <header class="app-header">
<button class="toggle">
<span></span>
<span></span>
<span></span>
</button>
<div class="user"> <div class="user">
<div class="user_avatar"> <div class="user_avatar">
<img src="images/logo.png" alt="user_avatar"> <img src="images/logo.png" alt="user_avatar">
...@@ -21,13 +29,26 @@ ...@@ -21,13 +29,26 @@
<p class="user_designation">Marketing Agency</p> <p class="user_designation">Marketing Agency</p>
</div> </div>
</div> </div>
<h1 class="app-heading">Building <span class="golden">IPMT</span></h1> <!-- <h1 class="app-heading">Dashboard <span class="golden">UI</span></h1> -->
<div class="action"> <div class="action">
<a href="#" class="action_search"><span class="scr-text">Search</span></a> <a href="#"><i class="bi bi-bell-fill"></i><span class="scr-text">Notification</span></a>
<span class="action_spacer"></span> <a href="#"><i class="bi bi-envelope-fill"></i><span class="scr-text">Messages</span></a>
<a href="#" class="action_grid-view active"><span class="scr-text">Grid View</span></a> <a href="#"><i class="bi bi-list-task"></i><span class="scr-text">Task</span></a>
<a href="" class="action_list-view"><span class="scr-text">List View</span></a>
<div class="dropdown">
<a class="dropdown-toggle action_text" href="#" role="button" id="dropdownMenuLink" data-bs-toggle="dropdown" aria-expanded="false">
John Deo
</a>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuLink">
<li><a class="dropdown-item" href="#">Action</a></li>
<li><a class="dropdown-item" href="#">Another action</a></li>
<li><a class="dropdown-item" href="#">Something else here</a></li>
</ul>
</div>
</div> </div>
</header> </header>
<section class="content-wrap"> <section class="content-wrap">
<aside class="app-sidebar"> <aside class="app-sidebar">
......
:root{ :root {
--primary:#9800bc; --primary: #375471;
--dark-color:#333; --dark-color: #333;
--light-color:#fff; --light-color: #fff;
--border-radius:0; --text-color: #333;
--text-color-light: rgba(255, 255, 255, 0.9);
--border-radius: 0;
--font-weight: 400;
--font-weight-light: 300;
--font-weight-bold: 600;
} }
.scr-text {
border: 0;
clip: rect(1px, 1px, 1px, 1px);
clip-path: inset(50%);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
word-wrap: normal !important;
}
.app-header { .app-header {
padding: 15px; padding: 15px;
background: var(--primary); background: var(--primary);
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
color: #fff;
> a {
color: #fff;
}
.action {
display: flex;
a {
display: block;
padding: 5px 15px;
margin-bottom: 5px;
opacity: 0.8;
transition: all ease-in-out 0.3s;
&:hover {
opacity: 1;
}
}
> a, .action_text {
color: #fff; color: #fff;
font-size: 1.5rem;
}
}
} }
.user { .user {
display: flex; display: flex;
margin-right: auto;
align-items: center;
margin-inline: 15px auto;
p { p {
line-height: 1.5; line-height: 1.5;
margin-bottom: 0;
} }
&_designation { &_designation {
color: var(--text-color-light); color: var(--text-color-light);
margin-bottom: 5px !important;
} }
&_name { &_name {
margin-bottom: 0 !important; margin-bottom: 0 !important;
font-weight: var(--font-weight-bold); font-weight: var(--font-weight-bold);
color: var(--primary); color: var(--light-color);
font-size: 1.25rem;
} }
&_avatar { &_avatar {
margin-right: 15px; margin-right: 15px;
img{ img {
width: 75px; width: 65px;
object-fit: contain; object-fit: contain;
height: 75px; height: 65px;
border-radius: 50%; border-radius: 50%;
border: 2px solid #fff; border: 2px solid var(--light-color);
padding: 9px; padding: 9px;
} }
} }
} }
.toggle {
height: 35px;
width: 35px;
flex: 0 0 35px;
border: 0;
margin-right: 15px;
padding: 7px 5px;
position: relative;
outline: 0 !important;
background: transparent;
cursor: pointer;
// display: none;
span {
height: 2px;
width: 80%;
background: var(--light-color);
display: block;
position: absolute;
right: 0;
left: 0;
margin: auto;
transition: all ease 0.3s;
&:nth-child(1) {
top: 5px;
}
&:nth-child(2) {
top: 15px;
}
&:nth-child(3) {
top: 25px;
}
}
&:not(.active) {
span {
&:nth-child(2) {
width: calc(100% - 15px);
left: -8px;
}
&:nth-child(3) {
width: calc(100% - 20px);
left: -11px;
}
}
}
&.active {
span {
transition: all ease 0.3s;
&:first-child {
transform: rotate(45deg);
top: 15px;
}
&:nth-child(2) {
opacity: 0;
}
&:nth-child(3) {
transform: rotate(-45deg);
top: 15px;
}
}
}
&.dot-toggle {
transform: scale(0.8);
span {
width: 5px;
height: 5px;
border-radius: 5px;
background: #333;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment