-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
212 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import RunningTime from "../RunningTime"; | ||
import Viewer from "../Viewer"; | ||
|
||
export default function (props: { | ||
ipcNumber: string; | ||
ipcHref: string; | ||
since: string; | ||
version: string; | ||
}) { | ||
return ( | ||
<> | ||
<footer className="text-center text-sm space-y-1 mt-8 md:mt-12 dark:text-dark"> | ||
{Boolean(props.ipcNumber) && props.ipcNumber != "" && ( | ||
<p className=""> | ||
ICP 编号:{" "} | ||
<a | ||
href={props.ipcHref} | ||
target="_blank" | ||
className="hover:text-gray-900 hover:underline-offset-2 hover:underline dark:hover:text-dark-hover transition" | ||
> | ||
{props.ipcNumber} | ||
</a> | ||
</p> | ||
)} | ||
<RunningTime since={props.since}></RunningTime> | ||
<p className=""> | ||
Powered By{" "} | ||
<a | ||
href="https://vanblog.mereith.com" | ||
target={"_blank"} | ||
className="hover:text-gray-900 hover:underline-offset-4 hover:underline dark:hover:text-dark-hover transition" | ||
> | ||
VanBlog <span>{props.version}</span> | ||
</a> | ||
</p> | ||
|
||
<p className="select-none"> | ||
© {new Date(props.since).getFullYear()} - {new Date().getFullYear()} | ||
</p> | ||
<p className="select-none"> | ||
<Viewer></Viewer> | ||
</p> | ||
</footer> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export default function (props: { | ||
children: any; | ||
sideBar: any; | ||
}) { | ||
return ( | ||
<> | ||
<div className="flex mx-auto justify-center"> | ||
<div className="flex-shrink flex-grow md:max-w-3xl xl:max-w-4xl w-full"> | ||
{props.children} | ||
</div> | ||
<div | ||
className={`hidden lg:block flex-shrink-0 flex-grow-0 ${ | ||
Boolean(props.sideBar) ? "w-52" : "" | ||
}`} | ||
> | ||
{props.sideBar} | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
Oops, something went wrong.