Git Product home page Git Product logo

bikefestival17th-frontend's Introduction

BikeFestival17th-Frontend

開發流程

Dependencies

  • npm or yarn

Initial

git clone [email protected]:gdsc-ncku/BikeFestival17th-Frontend.git
cd BikeFestival17th-Frontend
yarn install
yarn dev

Commit message 格式

  • add: 為新增功能、元件或是頁面
  • fix: 為修改原有的功能或是修正 bug
  • doc: 為修改 README.md 文件

Branch

  • main: 主要分支,用來部署。
  • xxx: 各自開發分支,開發完成後合併到 main

例如:jason , jimmy , jerry ... ( 自己的代號 ),請勿直接在 main 上開發

  • 開 branch
git checkout -b <branch-name> # 這邊 <branch-name> 就直接用自己的名字

目前有設好 Github Action,會自動部署 main 的內容到 gh-pages 分支

合併流程

  • 在自己的 branch 開發完 push 回 origin
  • 開一個 Pull Request,如果只是一些小小的改動可以自己直接 merge 到 main。如果是較大的改動要給其他成員 code review 的話就在 discord 通知一聲,沒問題的話就再 merge。

Routes 路由規劃與頁面層級

  • 第一層級:依照navBar的最大標題,分別為首頁、關於單車節、參加資訊、主題活動、知識論壇、合作夥伴、紀念品預購
  • 第二層級:有些項目底下會有子頁面,分別為:
    • 參加資訊:交通資訊、攤位地圖、行程表、我的行程
    • 主題活動:主舞台〈曦瓣〉、科系博覽、升學指南、大學藍圖、人生叉路口、沈浸式體驗、解憂茶軒
    • 知識論壇:科系手冊、專欄文章、給高中生的一封信
  • 第三層級:在知識論壇的三個子項目中,每篇文章也有各自的路由,再依據路由來渲染出對應文章的畫面,詳情請參照data資料夾中的departmentHandbook.jsonfeaturedArticles.jsonletterToHighSchoolStudents.json

對應的 url path請參考 route.js

Components

Navbar

/src/data/navBar.json 讀取資料
如果要新增新的 navbar item 就直接在/src/data/navBar.json 加就好
props :

  • theme : light or dark (default: light)

navBar.json schema :

如果 linkList 只有 1 個的話,就不會顯示 dropdown

[
    {
        "title": "關於單車節",
        "linkList" : [
            {
                "name": "關於單車節",
                "link": "/about"
            }
        ]
    },
    {
        "title": "參加資訊",
        "linkList" : [
            {
                "name": "交通資訊",
                "link": "/information/traffic"
            },
            {
                "name": "攤位地圖",
                "link": "/information/map"
            },
            {
                "name": "行程表",
                "link": "/information/schedule"
            },
            {
                "name": "我的行程",
                "link": "/information/mySchedule"
            }
        ]
    },
    // ...
]

DropDown

props :

  • title : dropdown 顯示的名字
  • linkList : hover 會顯示的 <a> 列表
    • name : <a> 顯示的名字
    • link : <a> 的連結

Reference

bikefestival17th-frontend's People

Contributors

yeeway0609 avatar jason810496 avatar zhihao1021 avatar yeyeleaf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.