Rename some exports
This commit is contained in:
parent
e17bd61579
commit
5a8df80c36
@ -4,7 +4,7 @@ import Layout from "../../../../components/Blog/Layout";
|
|||||||
import { generateContent, getContentList, prepareDOM } from "../../../../lib/content/generateBackend";
|
import { generateContent, getContentList, prepareDOM } from "../../../../lib/content/generateBackend";
|
||||||
import type { ContentList, Diary, DiaryRender } from "../../../../lib/content/types";
|
import type { ContentList, Diary, DiaryRender } from "../../../../lib/content/types";
|
||||||
|
|
||||||
const DiaryMain: NextPage<{ content: DiaryRender }> = ({ content }) => {
|
const DiaryPage: NextPage<{ content: DiaryRender }> = ({ content }) => {
|
||||||
return <Layout title={`${content.entries[content.pageSelected - 1].title} - ${content.title} - c0ntroller.de`}>
|
return <Layout title={`${content.entries[content.pageSelected - 1].title} - ${content.title} - c0ntroller.de`}>
|
||||||
<ContentPage content={content} />
|
<ContentPage content={content} />
|
||||||
</Layout>;
|
</Layout>;
|
||||||
@ -32,4 +32,4 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export default DiaryMain;
|
export default DiaryPage;
|
@ -32,7 +32,7 @@ const SkillCard: NextPage<{ card: SkillCard }> = ({ card }) => {
|
|||||||
</div>;
|
</div>;
|
||||||
};
|
};
|
||||||
|
|
||||||
const AboutMe: NextPage = () => {
|
const Me: NextPage = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleScrollAnimation = () => {
|
const handleScrollAnimation = () => {
|
||||||
document.querySelectorAll(".vpAnimated").forEach((element) => {
|
document.querySelectorAll(".vpAnimated").forEach((element) => {
|
||||||
@ -69,7 +69,6 @@ const AboutMe: NextPage = () => {
|
|||||||
<h2>Skills</h2>
|
<h2>Skills</h2>
|
||||||
{skills().cards.map((card, i) => <SkillCard key={i} card={card} />)}
|
{skills().cards.map((card, i) => <SkillCard key={i} card={card} />)}
|
||||||
</Layout>;
|
</Layout>;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export default AboutMe;
|
export default Me;
|
@ -13,7 +13,7 @@ import type { ContentList } from "../lib/content/types";
|
|||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import Rainbow from "../lib/colors";
|
import Rainbow from "../lib/colors";
|
||||||
|
|
||||||
const Home: NextPage<{ buildTime: string }> = ({ buildTime }) => {
|
const Terminal: NextPage<{ buildTime: string }> = ({ buildTime }) => {
|
||||||
const inputRef = useRef<HTMLInputElement>(null);
|
const inputRef = useRef<HTMLInputElement>(null);
|
||||||
const { modalFunctions } = useModalFunctions();
|
const { modalFunctions } = useModalFunctions();
|
||||||
const { setContents } = useCommands();
|
const { setContents } = useCommands();
|
||||||
@ -99,4 +99,4 @@ export const getStaticProps: GetStaticProps = async (_context) => {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Home;
|
export default Terminal;
|
||||||
|
Loading…
Reference in New Issue
Block a user