adding absolute logo component
This commit is contained in:
parent
0ee09b52da
commit
7804f4e766
17
src/assets/css/components/Logo.scss
Normal file
17
src/assets/css/components/Logo.scss
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
.logo {
|
||||||
|
@apply absolute top-0 left-0 z-10 bg-no-repeat w-auto h-auto;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
background-position: left;
|
||||||
|
translate: -2px -3px;
|
||||||
|
|
||||||
|
isolation: isolate;
|
||||||
|
img {
|
||||||
|
@apply w-24 h-auto py-6 px-12 z-10;
|
||||||
|
}
|
||||||
|
&:after {
|
||||||
|
@apply absolute block top-0 left-0 w-full h-full bg-white;
|
||||||
|
content: "";
|
||||||
|
transform: skew(-2deg) rotate(-2deg);
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
10
src/components/ui/Logo.jsx
Normal file
10
src/components/ui/Logo.jsx
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
import React from "react";
|
||||||
|
import appLogo from "../../assets/img/app_logo.svg";
|
||||||
|
import appLogoBackground from "../../assets/img/app_logo_background3.png";
|
||||||
|
export default function Logo() {
|
||||||
|
return (
|
||||||
|
<div className='logo'>
|
||||||
|
<img src={appLogo} alt='' />
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user