Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #11

Merged
merged 3 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 2 additions & 132 deletions app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';

import MagicBookButton from '@/components/MagicBookButton';
import MainWrapper from '@/components/MainWrapper';
import sections from '@/data/home/sections.json';

function LinkSection(props) {
const { title, array, color, children } = props;
Expand Down Expand Up @@ -64,138 +65,7 @@ function LinkSection(props) {
}

export default function HomePage() {
let profile = [
{
name: 'About',
icon: 'fa-solid fa-user-circle',
link: '/about',
target: '',
},
{
name: '\u00A0\u00A0Curriculum Vitae',
icon: 'fa-solid fa-file-alt',
link: 'CV_Wonjae-Choi.pdf',
target: '_blank',
},
{
name: 'Projects',
icon: 'fa-solid fa-project-diagram',
link: '/wip',
target: '',
},
{
name: 'Honors',
icon: 'fa-solid fa-award',
link: '/wip',
target: '',
},
{
name: 'Skills',
icon: 'fa-solid fa-tools',
link: '/wip',
target: '',
},
{
name: 'Interests',
icon: 'fa-solid fa-search',
link: '/wip',
target: '',
},
];

let academia = [
{
name: 'All',
icon: 'fa-solid fa-book-open',
link: '/academia',
target: '',
},
{
name: 'Blockchain',
icon: 'fa-solid fa-cube',
link: '/academia/blockchain',
target: '',
},
{
name: '\u00A0\u00A0Computer Science',
icon: 'fa-solid fa-laptop-code',
link: '/academia/computer-science',
target: '',
},
{
name: 'Etc',
icon: 'fa-solid fa-ellipsis-h',
link: '/academia/etc',
target: '',
},
];

let personal = [
{
name: 'Myself',
icon: 'fa-solid fa-user',
link: '/wip',
target: '',
},
{
name: 'WEB3',
icon: 'fa-solid fa-globe',
link: '/web3',
target: '',
},
{ name: 'Blog', icon: 'fa-solid fa-bookmark', link: '/blog', target: '' },
{
name: 'Hobbies',
icon: 'fa-solid fa-gamepad',
link: '/wip',
target: '',
},
{
name: 'Music',
icon: 'fa-solid fa-music',
link: 'https://youtube.com/playlist?list=PLAWDa1m7EkNUFIFaeKaXHpdO2zVUH6kg5&si=VF-dSpEbv6ncdPOJ',
target: '_blank',
},
{
name: 'Newsletter',
icon: 'fa-regular fa-newspaper',
link: '/wip',
target: '_blank',
},
];

let socials = [
{
name: 'LinkedIn',
icon: 'fa-brands fa-linkedin',
link: 'https://linkedin.com/wonj',
target: '_blank',
},
{
name: 'Twitter',
icon: 'fa-brands fa-twitter',
link: 'https://twitter.com/0xwonj',
target: '_blank',
},
{
name: 'GitHub',
icon: 'fa-brands fa-github',
link: 'https://github.com/wonj1012',
target: '_blank',
},
{
name: 'Telegram',
icon: 'fa-brands fa-telegram',
link: 'https://t.me/wonj1012',
target: '_blank',
},
{
name: 'Email',
icon: 'fa-solid fa-envelope',
link: 'mailto:[email protected]',
target: '_blank',
},
];
const { profile, academia, personal, socials } = sections;

return (
<MainWrapper>
Expand Down
2 changes: 1 addition & 1 deletion components/Web3Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const Web3Button = () => {
const [showButtons, setShowButtons] = useState(false);

return (
<div className="flex h-10 flex-row justify-end">
<div className="flex h-10 flex-row justify-end gap-2">
<button
onClick={() => setShowButtons(!showButtons)}
className="orangeShadow py-1 font-press-start text-xl text-orange-500 hover:text-yellow-300 sm:px-2 sm:text-2xl"
Expand Down
124 changes: 124 additions & 0 deletions data/home/sections.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"profile": [
{
"name": "About",
"icon": "fa-solid fa-user-circle",
"link": "/about",
"target": ""
},
{
"name": "\u00A0\u00A0Curriculum Vitae",
"icon": "fa-solid fa-file-alt",
"link": "CV_Wonjae-Choi.pdf",
"target": "_blank"
},
{
"name": "Honors",
"icon": "fa-solid fa-award",
"link": "/wip",
"target": ""
},
{
"name": "Skills",
"icon": "fa-solid fa-tools",
"link": "/wip",
"target": ""
}
],
"academia": [
{
"name": "Writings",
"icon": "fa-solid fa-pen-nib",
"link": "/academia",
"target": ""
},
{
"name": "Projects",
"icon": "fa-solid fa-project-diagram",
"link": "/wip",
"target": ""
},
{
"name": "Activities",
"icon": "fa-solid fa-users",
"link": "/wip",
"target": ""
},
{
"name": "Interests",
"icon": "fa-solid fa-lightbulb",
"link": "/wip",
"target": ""
}
],
"personal": [
{
"name": "Myself",
"icon": "fa-solid fa-user",
"link": "/wip",
"target": ""
},
{
"name": "WEB3",
"icon": "fa-solid fa-globe",
"link": "/web3",
"target": ""
},
{
"name": "Blog",
"icon": "fa-solid fa-bookmark",
"link": "/blog",
"target": ""
},
{
"name": "Hobbies",
"icon": "fa-solid fa-gamepad",
"link": "/wip",
"target": ""
},
{
"name": "Music",
"icon": "fa-solid fa-music",
"link": "https://youtube.com/playlist?list=PLAWDa1m7EkNUFIFaeKaXHpdO2zVUH6kg5&si=VF-dSpEbv6ncdPOJ",
"target": "_blank"
},
{
"name": "Newsletter",
"icon": "fa-regular fa-newspaper",
"link": "/wip",
"target": "_blank"
}
],
"socials": [
{
"name": "LinkedIn",
"icon": "fa-brands fa-linkedin",
"link": "https://linkedin.com/wonj",
"target": "_blank"
},
{
"name": "Twitter",
"icon": "fa-brands fa-twitter",
"link": "https://twitter.com/0xwonj",
"target": "_blank"
},
{
"name": "GitHub",
"icon": "fa-brands fa-github",
"link": "https://github.com/wonj1012",
"target": "_blank"
},
{
"name": "Telegram",
"icon": "fa-brands fa-telegram",
"link": "https://t.me/wonj1012",
"target": "_blank"
},
{
"name": "Email",
"icon": "fa-solid fa-envelope",
"link": "mailto:[email protected]",
"target": "_blank"
}
]
}