mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 10:54:06 -06:00
linking back to website
This commit is contained in:
parent
a935238818
commit
6680ebf485
35
quartz/components/LogoLink.tsx
Normal file
35
quartz/components/LogoLink.tsx
Normal file
@ -0,0 +1,35 @@
|
||||
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
|
||||
|
||||
const LogoLink: QuartzComponent = ({ cfg }: QuartzComponentProps) => {
|
||||
return (
|
||||
<a href="https://ededdyedward.com" className="logo-link">
|
||||
<img src="/static/EdEddyEdward-Logo.png" alt="Eddy Zhou" />
|
||||
</a>
|
||||
)
|
||||
}
|
||||
|
||||
LogoLink.css = `
|
||||
.logo-link {
|
||||
display: inline-flex;
|
||||
background-color: #c03541;
|
||||
padding: 0.0rem 0.5rem;
|
||||
border-radius: 0.25rem;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background-color;
|
||||
text-decoration: none;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.logo-link:hover {
|
||||
background-color: #f06571;
|
||||
}
|
||||
|
||||
.logo-link img {
|
||||
height: 1.00rem;
|
||||
object-fit: scale-down;
|
||||
display: block;
|
||||
}
|
||||
`
|
||||
|
||||
export default (() => LogoLink) satisfies QuartzComponentConstructor
|
||||
BIN
quartz/static/EdEddyEdward-Logo.png
Normal file
BIN
quartz/static/EdEddyEdward-Logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
Loading…
Reference in New Issue
Block a user