From 4b2a9094b84eb8184e2b3dd905ab65df5dcea748 Mon Sep 17 00:00:00 2001 From: ItsukiKigoshi Date: Sun, 7 Jan 2024 15:30:34 +0900 Subject: [PATCH] Refactor code structure and update dependencies, colour --- src/app/page.tsx | 79 +++++++-------------------------------- src/components/Footer.tsx | 52 ++++++++++++++++++++++++++ src/components/Main.tsx | 65 ++++++++++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 65 deletions(-) create mode 100644 src/components/Footer.tsx create mode 100644 src/components/Main.tsx diff --git a/src/app/page.tsx b/src/app/page.tsx index c12439c..31a093a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,78 +1,27 @@ -import * as React from "react"; -import IconButton from "@mui/material/Button"; -import TwitterIcon from "@mui/icons-material/Twitter"; -import InstagramIcon from "@mui/icons-material/Instagram"; -import GitHubIcon from "@mui/icons-material/GitHub"; -import LinkedInIcon from "@mui/icons-material/LinkedIn"; -import { Typography, Box, Stack, Avatar } from "@mui/material"; -import Footer from "../../components/Footer"; +"use client"; +import Footer from "@/components/Footer"; +import Main from "@/components/Main"; +import { Box, ThemeProvider, createTheme } from "@mui/material"; +import { orange } from "@mui/material/colors"; export default function App() { - const links = [ - { - name: "Instagram", - Icon: InstagramIcon, - href: "https://www.instagram.com/itsukikigoshi", + const theme = createTheme({ + palette: { + primary: orange, }, - { - name: "X(formally Twitter)", - Icon: TwitterIcon, - href: "https://www.twitter.com/itsukikigoshi", - }, - { - name: "GitHub", - Icon: GitHubIcon, - href: "https://www.github.com/itsukikigoshi", - }, - { - name: "LinkedIn", - Icon: LinkedInIcon, - href: "https://www.linkedin.com/in/itsukikigoshi", - }, - ]; - - const linkButtons = links.map( - ( - link // This is a map function. It is used to create a list of elements. - ) => ( - - - - ) - ); - + }); return ( - + - - Itsuki KIGOSHI - {`ICU '27 (2004)`} - - {linkButtons} - +
+