added redirect on logo (#142)

This commit is contained in:
akankshat05 2022-04-21 02:43:32 +05:30 committed by GitHub
parent 1b5389e06c
commit f1bd83e657
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import React from 'react'
import { motion } from 'framer-motion'
import Link from 'next/link'
const pathvariant = {
initial: { pathLength: 0, opacity: 0 },
@ -9,6 +10,8 @@ const pathvariant = {
export default function Logo() {
return (
<div class="home">
<Link href="/">
<div className="logo-wrapper">
<motion.svg
initial={{ rotate: -180 }}
@ -42,6 +45,8 @@ export default function Logo() {
/>
</motion.svg>
</div>
</Link>
</div>
)
}

View File

@ -53,6 +53,8 @@ function Index(props) {
<span>
<Logo />
</span>
<div class="home">
<Link href="/">
<Typography
component={motion.div}
initial={{ y: -50, opacity: 0 }}
@ -65,6 +67,8 @@ function Index(props) {
>
UrlMiniFy
</Typography>
</Link>
</div>
<Box
sx={{
flexGrow: 1,

View File

@ -50,4 +50,6 @@ body::-webkit-scrollbar-thumb {
border-width: 2px 0 2px;
border-radius: 10px;
}
.home{
cursor: pointer;
}