add copyright note

This commit is contained in:
Joshua 2022-10-22 01:03:16 +02:00
parent f0860e4223
commit 6226334ea1
4 changed files with 21 additions and 1 deletions

11
components/copyright.tsx Normal file
View 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

View file

@ -10,6 +10,7 @@ import styles from "styles/Index.module.sass";
// import Post from "components/Post"; // import Post from "components/Post";
// import PostGrid from "components/PostGrid"; // import PostGrid from "components/PostGrid";
import useSwr from 'swr'; import useSwr from 'swr';
import Copyright from "components/copyright";
export async function getStaticProps() { export async function getStaticProps() {
const profiles = await getProfiles(); 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>)} */} {/* {showposts && (<div><p>Posts</p><PostGrid posts={props.posts} /></div>)} */}
</div> </div>
<Lanyard /> <Lanyard />
<Copyright />
</> </>
); );
}; };

View file

@ -0,0 +1,7 @@
.align
text-align: center
.text
padding-top: 1rem
font-size: 1rem
font-weight: lighter

View file

@ -9,7 +9,7 @@ export default async function getProjects(k): Promise<ProjectButton[]> {
icon: "git-branch", icon: "git-branch",
platform: (data.description === "" || data.description.length > 30) ? "git.lio.cat" : data.description, platform: (data.description === "" || data.description.length > 30) ? "git.lio.cat" : data.description,
project: data.full_name, 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 updated: data.updated_at
} }
}).sort((lhs, rhs) => { return lhs.updated < rhs.updated ? 1 : lhs.updated > rhs.updated ? -1 : 0; }) }).sort((lhs, rhs) => { return lhs.updated < rhs.updated ? 1 : lhs.updated > rhs.updated ? -1 : 0; })