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

add : DropDown and NavBar component #4

Merged
merged 9 commits into from
Jan 14, 2024
Merged

add : DropDown and NavBar component #4

merged 9 commits into from
Jan 14, 2024

Conversation

jason810496
Copy link
Member

Router Link Schema

spec 沒有特別定
所以我這邊就先照著翻譯(?)

寫在 /src/data/navBar.json 這邊

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> 的連結

- home page top left logo (`logo.svg` , `logo-dark.svg`)
- home page image (`home-page.png`)
- add `group-hover` to tailwind config
- add stackoverflow link to README
- `DropDown` props :
    - `theme` : `light` or `dark`
    - `title` : `string`
    - `linkList` : `array` of `objects` with `name` and `link` keys
- import data from `data/navBar.json` dynamically
- props:
    - `theme` : `light` or `dark`
add information about `DropDown` and `NavBar` component
@yeeway0609
Copy link
Member

yeeway0609 commented Jan 13, 2024

DropDown

  • 需要加個背景底色,寬度就以最多字的為主(例如最寬跟「給高中生的一封信」一樣就好)
  • 項目文字置左對齊大標題
  • DropDown 應該不會用到其他部分了,所以看要不要直接整合到 navbar裡

NavBar

  • 點選「成大單車節」logo要導回首頁
  • 「參加資訊」大標題也可以點選,點進去會一樣是「參加資訊/交通資訊」
  • 「主題資訊」大標題也可以點選,點進去會是七大活動列表,route是 /about
  • 「知識論壇」大標題也可以點選,點進去會是三大項目列表,route是 /forum
  • 「紀念品預購」改成「紀念品小舖」
  • 底部加個陰影作為分隔線
  • navBar.json 直接加到 navBar.vue 的 裡,應該不會再新增項目了
  • 之後我會再定 router schema,現在先不用改沒關係,我之後再修

- `ellipse.svg` for psychological test
- rename `home-page.png` to `key-visual.png` for home page
- `key-visual-bottom.png` for home page
- TODO :
    - carousel on seven theme activities
    - column article
    - souvenir
    - bottom key visual
@yeeway0609
Copy link
Member

我先幫你merge進main,navbar可以再改唷

@yeeway0609 yeeway0609 merged commit d6f3a11 into main Jan 14, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants