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 event date and location #19

Merged
merged 15 commits into from
Sep 7, 2024
Merged

Add event date and location #19

merged 15 commits into from
Sep 7, 2024

Conversation

rileychh
Copy link
Member

@rileychh rileychh commented Sep 4, 2024

Screenshot 2024-09-06 at 10-29-00 活動資訊 COSCUP 2024

這份 PR 在「活動資訊」頁面增加了活動的日期和位置。

日期資料會從 #data/conference.ts 匯入,並用 toLocaleDateString 轉換成系統的日期格式。下方有加入各式常見日曆的按鈕,在點擊時會匯入 calender-link 模組並產生對應的連結,然後在新分頁打開。

位置資訊的內文中有場地的地址和地圖。地址旁的複製按鈕在瀏覽器支援時會出現,點擊後會複製場地地址到剪貼簿,並替換圖示成綠色勾勾。用 Leaflet 製作的地圖只會在客戶端出現,利用 <Suspense> 在網頁 FCP 後異步載入(現在是同步元件了),並且在白色和黑色主題下有不同的配色。地圖中載入完成後會置中場地(臺科大),並且標記研揚大樓和綜合研究大樓的位置,觸控或懸停在建築物上就可以看見建築物的名字。

這是 #7 的進度。

@rileychh rileychh force-pushed the event-page branch 2 times, most recently from 02b930b to cefcc96 Compare September 5, 2024 11:22
components/LeafletMap.vue Outdated Show resolved Hide resolved
@rileychh rileychh marked this pull request as ready for review September 6, 2024 02:53
components/VPButton.vue Outdated Show resolved Hide resolved
components/VPButton.vue Show resolved Hide resolved
components/VPButton.vue Show resolved Hide resolved
eslint.config.js Show resolved Hide resolved
Copy link
Contributor

@mirumodapon mirumodapon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (交通資訊待捕)

@rileychh rileychh merged commit f35a57e into main Sep 7, 2024
1 check passed
@rileychh rileychh deleted the event-page branch September 7, 2024 13:53
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