mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Add minecraft wiki banner
This commit is contained in:
BIN
public/images/minecraft_wiki.png
Normal file
BIN
public/images/minecraft_wiki.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
@@ -23,6 +23,7 @@ export function Home({}: Props) {
|
||||
|
||||
return <main>
|
||||
<div class="container">
|
||||
<MinecraftWikiBanner />
|
||||
<div class="card-group">
|
||||
<div class="card-column">
|
||||
<PopularGenerators />
|
||||
@@ -47,6 +48,15 @@ export function Home({}: Props) {
|
||||
</main>
|
||||
}
|
||||
|
||||
function MinecraftWikiBanner() {
|
||||
return <a class="tool-card minecraft-wiki" href="https://minecraft.wiki/w/Minecraft_Wiki:Moving_from_Fandom" target="_blank">
|
||||
<img src="/images/minecraft_wiki.png" alt="Minecraft Wiki Logo" />
|
||||
<div>
|
||||
The Minecraft Wiki has moved from Fandom to <em>minecraft.wiki</em>!
|
||||
</div>
|
||||
</a>
|
||||
}
|
||||
|
||||
function PopularGenerators() {
|
||||
const { locale } = useLocale()
|
||||
return <ToolGroup title={locale('generators.popular')} link="/generators/">
|
||||
|
||||
@@ -1520,6 +1520,24 @@ a.tool-head:hover {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.minecraft-wiki {
|
||||
margin-bottom: 8px;
|
||||
align-items: center;
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
.minecraft-wiki img {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.minecraft-wiki em {
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
color: var(--accent-primary);
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 12px 0;
|
||||
border: none;
|
||||
|
||||
Reference in New Issue
Block a user