adding absolute logo component

This commit is contained in:
Antoine M 2024-02-13 19:19:25 +01:00
parent 0ee09b52da
commit 7804f4e766
2 changed files with 27 additions and 0 deletions

View 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;
}
}

View 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>
);
}