-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from ryoctrl/feature/#3_front_design_Adjustment
Feature/#3 front design adjustment
- Loading branch information
Showing
17 changed files
with
892 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import Image from "next/image"; | ||
import React, { useState } from "react"; | ||
|
||
import styles from "@styles/Home.module.scss"; | ||
import { HeaderScrollRefs, scroll } from "libs/utils/header"; | ||
|
||
export const HeaderMenu: React.FC = () => { | ||
const [ menuOpen, setMenuOpen ] = useState(false); | ||
|
||
const scrollAndMenuClose = (ref : React.RefObject<HTMLDivElement>) => { | ||
setMenuOpen(false); | ||
scroll(ref); | ||
} | ||
|
||
return ( | ||
<div className={styles.headerMenu}> | ||
<div className={styles.headerWrapper}> | ||
<div className={styles.headerBar}> | ||
<div className={styles.titleLogo}> | ||
<Image | ||
alt="タイトルロゴ" | ||
src="/KUMD.png" | ||
width="129px" | ||
height="33px" | ||
onClick={() => scrollAndMenuClose(HeaderScrollRefs.TOP)} | ||
/> | ||
</div> | ||
<div className={styles.pcScrollBtns}> | ||
<span onClick={() => scrollAndMenuClose(HeaderScrollRefs.TOP)}> | ||
top | ||
</span> | ||
<span onClick={() => scrollAndMenuClose(HeaderScrollRefs.ABOUT)}> | ||
about | ||
</span> | ||
<span onClick={() => scrollAndMenuClose(HeaderScrollRefs.GALLERY)}> | ||
gallery | ||
</span> | ||
</div> | ||
<div className={styles.hamburgerWrapper}> | ||
<button className={`${styles.hamburger} ${menuOpen ? styles.openHamburger : ""}`} onClick={() => setMenuOpen(!menuOpen)}> | ||
<span></span> | ||
<span></span> | ||
<span></span> | ||
</button> | ||
</div> | ||
</div> | ||
<div className={`${styles.headerContent} ${menuOpen ? styles.openContent : ""}`}> | ||
<div className={styles.borderTop}></div> | ||
<div className={styles.scrollBtnWrapper}> | ||
<div className={styles.scrollBtn} onClick={() => scrollAndMenuClose(HeaderScrollRefs.TOP)}> | ||
<div> | ||
<h3>01</h3> | ||
<h3>TOP</h3> | ||
</div> | ||
</div> | ||
<div className={styles.scrollBtn} onClick={() => scrollAndMenuClose(HeaderScrollRefs.ABOUT)}> | ||
<div> | ||
<h3>02</h3> | ||
<h3>ABOUT</h3> | ||
</div> | ||
</div> | ||
<div className={styles.scrollBtn} onClick={() => scrollAndMenuClose(HeaderScrollRefs.GALLERY)}> | ||
<div> | ||
<h3>03</h3> | ||
<h3>GALLERY</h3> | ||
</div> | ||
</div> | ||
</div> | ||
<div className={styles.borderBottom}></div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import Image from "next/image"; | ||
|
||
import { HeaderScrollRefs, scroll } from "libs/utils/header"; | ||
import { useExhibitions } from "hooks/exhibitions/use-exhibitions"; | ||
|
||
export const HomeFooter: React.FC = () => { | ||
const { | ||
exhibitionsState: { currentExhibition }, | ||
} = useExhibitions(); | ||
return ( | ||
<div className="footer"> | ||
<div className="footer-wrapper"> | ||
<div className="footer-btn-wrapper"> | ||
<div className="footer-btn" onClick={() => scroll(HeaderScrollRefs.TOP)}> | ||
<h4>01</h4> | ||
<h4>TOP</h4> | ||
</div> | ||
<div className="footer-btn" onClick={() => scroll(HeaderScrollRefs.ABOUT)}> | ||
<h4>02</h4> | ||
<h4>ABOUT</h4> | ||
</div> | ||
<div className="footer-btn" onClick={() => scroll(HeaderScrollRefs.GALLERY)}> | ||
<h4>03</h4> | ||
<h4>GALLERY</h4> | ||
</div> | ||
<div className="page-top-btn"> | ||
<Image | ||
alt="タイトルロゴ" | ||
src="/pageTopBtn.png" | ||
layout="fill" | ||
objectFit="contain" | ||
onClick={() => scroll(HeaderScrollRefs.TOP)} | ||
/> | ||
</div> | ||
</div> | ||
<div className="footer-title-logo"> | ||
<Image | ||
alt="タイトルロゴ" | ||
src="/KUMD.png" | ||
layout="fill" | ||
objectFit="contain" | ||
onClick={() => scroll(HeaderScrollRefs.TOP)} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export * from "./home"; | ||
export * from "./header-menu"; | ||
export * from "./section-title"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.