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

Footer作成 #54

Merged
merged 8 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from 7 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
36 changes: 36 additions & 0 deletions public/logos/Maximum-logo-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions src/components/Footer/Footer.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.footer {
display: flex;
align-items: center;
justify-content: center;
background-color: #000;
color: #fff;
height: 400px;
gap: 112px;
}

.container {
display: flex;
flex-direction: column;
align-items: center;
gap: 50px;
}

.logo {
img {
display: block;
margin-left: 0px;
}
}

.navigations {
display: flex;
width: 500px;
shigekk marked this conversation as resolved.
Show resolved Hide resolved
gap: 32px;


.navigationLink {
color: #fff;
text-decoration: none;
font-size: 20px;
white-space: nowrap;
}
}

.navigationLink:hover {
color: #7fcc8f;
}
10 changes: 10 additions & 0 deletions src/components/Footer/Footer.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { StoryFn, Meta } from '@storybook/react';
import React from 'react';
import { Footer } from './Footer';

export default {
title: 'Components/Footer',
component: Footer,
} as Meta<typeof Footer>;

export const Default: StoryFn<typeof Footer> = () => <Footer />;
73 changes: 73 additions & 0 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import Link from 'next/link';
import { MdArrowOutward } from 'react-icons/md';
import { SiX, SiGithub } from 'react-icons/si';
import { LinkButton } from '../LinkButton/LinkButton';
import style from './Footer.module.scss';

export function Footer() {
return (
<footer className={style.footer}>
<div className={style.container}>
<div className={style.logo}>
<Link href='/'>
<img
src='/logos/Maximum-logo-white.svg'
alt='Maximum'
width={334}
height={84}
/>
</Link>
</div>
<LinkButton href='/join' variant='green'>
入会案内はこちら
</LinkButton>
</div>

<nav className={style.navigations}>
<Link href='/about' className={style.navigationLink}>
About
</Link>
<Link href='/news' className={style.navigationLink}>
News
</Link>
<Link href='#' className={style.navigationLink}>
Join
</Link>
<Link href='/achievements' className={style.navigationLink}>
Achievements
</Link>
<Link href='/contact' className={style.navigationLink}>
Contact
</Link>
<Link href='/faq' className={style.navigationLink}>
Q&amp;A
</Link>
<Link
href='https://blog.maximum.vc'
target='_blank'
rel='noopener noreferrer'
className={style.navigationLink}
>
Blog
<MdArrowOutward />
</Link>
<Link
href='https://x.com/Maximum03400346'
target='_blank'
rel='noopener noreferrer'
className={style.navigationLink}
>
<SiX size={24} />
</Link>
<Link
href='https://github.com/saitamau-maximum'
target='_blank'
rel='noopener noreferrer'
className={style.navigationLink}
>
<SiGithub size={24} />
</Link>
</nav>
</footer>
);
}
1 change: 1 addition & 0 deletions src/components/Footer/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Footer';