mirror of
https://github.com/movie-web/docs.git
synced 2025-09-13 07:13:26 +00:00
Make all pages MDX compliant + added logo back
This commit is contained in:
18
components/Logo.module.css
Normal file
18
components/Logo.module.css
Normal file
@@ -0,0 +1,18 @@
|
||||
.logo {
|
||||
border-radius: 5px;
|
||||
margin-left: -0.5rem;
|
||||
padding: 0.5rem;
|
||||
transition: transform 100ms ease-in-out, background-color 100ms ease-in-out;
|
||||
}
|
||||
|
||||
.logo > img {
|
||||
height: 1.5rem;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
background-color: rgba(var(--colors-bgLightest));
|
||||
}
|
||||
|
||||
.logo:active {
|
||||
transform: scale(1.05);
|
||||
}
|
13
components/Logo.tsx
Normal file
13
components/Logo.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import Link from "next/link";
|
||||
import classes from "./Logo.module.css";
|
||||
|
||||
export function Logo() {
|
||||
return (
|
||||
<Link
|
||||
href="/"
|
||||
className={classes.logo}
|
||||
>
|
||||
<img src="/icon-light.png" alt="Logo of movie-web" />
|
||||
</Link>
|
||||
);
|
||||
}
|
@@ -1,16 +0,0 @@
|
||||
<template>
|
||||
<img src="/icon-light.png" alt="Logo of movie-web" class="img-dark" />
|
||||
<img src="/icon-dark.png" alt="Logo of movie-web" class="img-light" />
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
img {
|
||||
height: 30px;
|
||||
}
|
||||
.light .img-dark {
|
||||
display: none;
|
||||
}
|
||||
.dark .img-light {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user