Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed public/favicon.ico
Binary file not shown.
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,20 @@
.nextra-nav-container a[href*="tags/"] {
display: none;
}

@keyframes shake {
0%, 100% { transform: translate(0, 0); }
10% { transform: translate(-3px, -2px); }
20% { transform: translate(3px, 2px); }
30% { transform: translate(-3px, -1px); }
40% { transform: translate(3px, 1px); }
50% { transform: translate(-2px, -2px); }
60% { transform: translate(2px, 2px); }
70% { transform: translate(-2px, -1px); }
80% { transform: translate(2px, 1px); }
90% { transform: translate(-1px, -1px); }
}

.logo-shake:hover .logo-image {
animation: shake 0.8s ease-in-out;
}
17 changes: 15 additions & 2 deletions src/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,20 @@ import TagContent from "@/components/tags";
import { Archived } from "@/components/archived";
import { Separator } from "@/components/ui/separator";
import { Code } from "@/components";

const logo = <p className="flex flex-nowrap">Lifecycle</p>;
import Image from "next/image";

const logo = (
<div className="flex items-center gap-2 logo-shake">
<Image
src="/logo.png"
alt="Lifecycle"
width={32}
height={32}
className="rounded logo-image"
/>
<span className="text-lg font-semibold tracking-wide">Lifecycle</span>
</div>
);

export type MainProps = {
children?: ReactElement;
Expand Down Expand Up @@ -59,6 +71,7 @@ export const HeadMeta = () => {
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="og:title" content="Lifecycle" />
<meta property="og:description" content="Documentation for Lifecycle" />
<link rel="icon" type="image/png" href="/logo.png" />
</>
);
};
Expand Down