https://reurl.cc/GKjOGv ## 資料夾連結 https://drive.google.com/drive/folders/1pHb6VH0BtfrAEum9LobSpnpVk58aSEp_?usp=sharing 建資料夾 ``` ---components | --common ``` # 分畫面區塊 1. NAV 2. BANNER 3. FEATURED POEMS 4. PROGRAMS & RECORDINGS 5. POETS 6. PARTNERS 7. FOOTER # 刻畫面 #### Nav ![](https://hackmd.io/_uploads/rk47VWEZ6.png) icon: https://react-icons.github.io/react-icons/icons?name=fa ``` import { FaArrowDown } from 'react-icons/fa'; ``` html ``` <nav> <div className="nav-title"> <h2>The Adrain Brinkerhoff<br/> Poetry Foundation</h2> </div> <div> <FaSistrix size={32} className="nav-icon" /> <FaBars size={32} className="nav-icon" /> </div> </nav> ``` css ``` nav { height: 20vh; display: flex; justify-content: space-between; align-items: center; padding: 0 5% ; background-color: #2c2020; width: 100vw; } .nav-title { display: flex; align-items: center; } .nav-title h2 { font-size: 28px; font-weight: lighter; color: #F3EFEB; cursor: pointer; letter-spacing: 1px; } .nav-icon { color: #fff; cursor: pointer; margin-left: 15px; font-weight: 100; } ``` #### /about ![](https://hackmd.io/_uploads/S1zoE-Eb6.png) **** html ``` <section className="about-container"> <div className="about-content"> <h3 className="about-sub-title">ABOUT</h3> <h2>Who we are</h2> <p className="about-text"> Our aim is to expand access to poetry and educational poetry materials, gathering great poems from across places, eras, and traditions. </p> <a className="read-more" href="../"> BACK HOME <span>→</span> </a> </div> <div className="about-image"> <Image src={big_Image}/> </div> </section> ``` css ``` .about-container { background-color: rgb(55, 49, 58); color: white; display: flex; align-items: center; padding: 5%; transition: 0.4s ease-in-out; width: 100vw; height: 100vh; cursor: pointer; } .about-content { display: flex; flex-direction: column; align-items: center; padding: 15px; } .about-content h3 { font-family: 'Kanit', sans-serif; font-size: 15px; letter-spacing: 1px; font-weight: bold; justify-content: space-between; color: #fff; margin-bottom: 65px; } .about-content h2 { margin-bottom: 50px; font-size: 48px; } .about-content .about-text { margin-bottom: 80px; width: 75%; font-size: 25px; text-align: center; } .about-content .read-more { position: relative; padding: 5px 0; } .about-content .read-more::after { content: ''; width: 100%; height: 1px; top: 100%; right: 0; position: absolute; background-color: #fff; transition: height 0.3s, background-color 0.3s; } .about-content .read-more span { padding-left: 5px; transition: 0.5s; } .about-container:hover { background-color: rgb(47, 42, 50); } .about-container:hover .about-content .read-more::after { height: 0; background-color: #000 ; } .about-container:hover .about-content .read-more span { padding-left: 10px; } .about-image { height: 75vh; width: 70%; overflow: hidden; } .about-image img { transform: scale(1); transition: all 0.5s ease-out; height: 100%; width: 100%; } .about-container:hover .about-image img { transform: scale(1.05); } ``` # Json ``` const mylist = [ { 'title': 'Low Tide at St. Andrews', 'by': 'BY E. PAULINE JOHNSON' }, { 'title': 'Low Tide at St. Andrews', 'by': 'BY E. PAULINE JOHNSON' } ]; ``` ``` { mylist.map((item, index) => <div key={index}> <h3>{item.title}</h3> <p>{item.by}</p> </div>) } ```