add copyright note
This commit is contained in:
parent
f0860e4223
commit
6226334ea1
4 changed files with 21 additions and 1 deletions
11
components/copyright.tsx
Normal file
11
components/copyright.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import styles from "styles/copyright.module.sass"
|
||||
const Copyright = () => {
|
||||
|
||||
return (
|
||||
<div className={styles.align}>
|
||||
<h1 className={styles.text}>© Lio 2022</h1>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Copyright
|
|
@ -10,6 +10,7 @@ import styles from "styles/Index.module.sass";
|
|||
// import Post from "components/Post";
|
||||
// import PostGrid from "components/PostGrid";
|
||||
import useSwr from 'swr';
|
||||
import Copyright from "components/copyright";
|
||||
|
||||
export async function getStaticProps() {
|
||||
const profiles = await getProfiles();
|
||||
|
@ -41,6 +42,7 @@ const IndexPage = (props: { profiles: SocialButton[]; posts: Array<any>; project
|
|||
{/* {showposts && (<div><p>Posts</p><PostGrid posts={props.posts} /></div>)} */}
|
||||
</div>
|
||||
<Lanyard />
|
||||
<Copyright />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
7
styles/copyright.module.sass
Normal file
7
styles/copyright.module.sass
Normal file
|
@ -0,0 +1,7 @@
|
|||
.align
|
||||
text-align: center
|
||||
|
||||
.text
|
||||
padding-top: 1rem
|
||||
font-size: 1rem
|
||||
font-weight: lighter
|
|
@ -9,7 +9,7 @@ export default async function getProjects(k): Promise<ProjectButton[]> {
|
|||
icon: "git-branch",
|
||||
platform: (data.description === "" || data.description.length > 30) ? "git.lio.cat" : data.description,
|
||||
project: data.full_name,
|
||||
url: `https://git.lio.cat/${data.full_name}`,
|
||||
url: data.website === "" ? `https://git.lio.cat/${data.full_name}` : data.website,
|
||||
updated: data.updated_at
|
||||
}
|
||||
}).sort((lhs, rhs) => { return lhs.updated < rhs.updated ? 1 : lhs.updated > rhs.updated ? -1 : 0; })
|
||||
|
|
Loading…
Add table
Reference in a new issue