Skip to content

新增「專案」與「加入我們」#5

Merged
kevinlee-06 merged 33 commits intoNTUT-NPC:nuxtfrom
kevinlee-06:nuxt
Feb 28, 2025
Merged

新增「專案」與「加入我們」#5
kevinlee-06 merged 33 commits intoNTUT-NPC:nuxtfrom
kevinlee-06:nuxt

Conversation

@kevinlee-06
Copy link
Contributor

No description provided.

@kevinlee-06 kevinlee-06 requested a review from rileychh February 25, 2025 06:08
Copy link
Member

@rileychh rileychh left a comment

Choose a reason for hiding this comment

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

謝謝幫忙加入這麼多內容!有幾個地方需要修改的,再麻煩你了~

Comment on lines -138 to -251

<style lang="postcss">
body {
font-family: 'Cubic 11';
}

#header,
#header-mobile-menu {
background-color: #333;
color: white;

ul,
& {
display: flex;
gap: 0.5rem;
padding: 0;
> li {
display: flex;
align-items: center;
list-style: none;

&:hover {
cursor: pointer;
background-color: #fff3;
}
}
}

button,
a {
all: unset;
display: inline-block;
padding: 0.5rem;
}
}

#header {
display: flex;
justify-content: space-between;
align-items: center;
height: 4rem;
padding: 0.5rem 2rem;

> * {
flex: 1;
display: flex;
align-items: center;
}

> .left img {
height: 2rem;
}

> .center {
justify-content: center;

.router-link-active {
text-decoration: underline;
text-underline-offset: 0.5rem;
}
}

> .right {
justify-content: flex-end;
}
}

.menu-enter-from,
.menu-leave-to {
opacity: 0;
transform: translateY(-1rem);
}

#header-mobile-menu {
position: absolute;
inset: 4rem 0 0 0;
display: flex;
flex-direction: column;
padding: 1.5rem;
gap: 1.5rem;
font-size: 2rem;
transition: all 0.4s ease;

li {
display: flex;
align-items: center;

> * {
all: unset;
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.25rem 0.5rem;
width: 100%;
height: 100%;
}
}

.mobile-menu-route {
&::before {
content: '◆';
display: inline-block;
visibility: hidden;
}
&.router-link-active::before {
visibility: visible;
}
}

.separator {
border-top: calc(1em / 11) solid darkgray;
}
}
</style>
Copy link
Member

Choose a reason for hiding this comment

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

為什麼不把 CSS 留在這裡就好,要移到另一個檔案?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

移回去了,不過 #header 當 id(跟 HTML tag 一樣)有點容易搞錯,要不要改成 #desktop-menu 之類的

Copy link
Member

@rileychh rileychh Feb 27, 2025

Choose a reason for hiding this comment

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

App.vue 的 <style> 是全域的,把所有全域的 style 都寫在一起比較好管理,不用再另開一個 assets/style.css
至於 #header,手機版和電腦版是共用的,所以叫它 #desktop-menu 也不太對。

Copy link
Contributor Author

Choose a reason for hiding this comment

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

不用再另開一個 assets/style.css

已移動

@import url('cubic-11.css');

body {
font-family: 'Cubic 11', 'Iansui', Arial, Helvetica, sans-serif !important;
Copy link
Member

Choose a reason for hiding this comment

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

內文變多後發現俐方體不易閱讀,我們要不要為內文另尋字體?
此外,芫荽的風格差太多了,不適合做為備用字體

Copy link
Contributor Author

Choose a reason for hiding this comment

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

要不要 Noto, Arial, 微軟正黑體?

Copy link
Member

Choose a reason for hiding this comment

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

要這樣就寫 sans-serif 就好。另外,這也應該不需要 !important
這邊只是針對內文,標題還是可以保持俐方體,給網站保持一些風格

Copy link
Contributor Author

Choose a reason for hiding this comment

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

我發現 style.css 裡面寫過 font-family,我把 font-family: 'Cubic 11'; 移動到 #header{ }

Copy link
Member

@rileychh rileychh left a comment

Choose a reason for hiding this comment

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

  • 解決上面的對話
  • QR Code 圖片可以改用 WebP 減少大小(改成 SVG 了)
  • 不要用有瀏覽器商標的 QR Code
  • 合併前從歷史中移除過去的圖片

kevinlee-06 and others added 27 commits February 27, 2025 15:49
@rileychh
Copy link
Member

rileychh commented Feb 27, 2025

我先暫時移除切換 logo 和 QR Code 的部分,因為這個 PR 太大了,下一個 PR 再來試著處理這個問題。

@kevinlee-06 kevinlee-06 requested a review from Copilot February 28, 2025 13:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

PR Overview

This PR adds new pages and updates the navigation to support "專案" and "加入我們" features while also introducing a new QR Code generator README and a contact page.

  • Introduces a detailed QR Code generation README.
  • Implements new pages for projects, join, contact, and an updated store and about page.
  • Updates global navigation routes and styling in app/app.vue.

Reviewed Changes

File Description
app/assets/README.md New README with QR Code generation instructions.
app/pages/store.vue New store page with email ordering functionality.
app/pages/projects.vue Adds projects page with interactive QR code toggling and styling.
app/pages/join.vue Introduces join page with membership and community call-to-action.
app/pages/index.vue Updates about page with club information and join button.
app/pages/contact.vue Adds a contact page with address and social links.
app/app.vue Updates navigation routes and global styling.

Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (3)

app/pages/projects.vue:59

  • There is a trailing whitespace in the image src attribute, which should be removed to avoid potential issues.
src="assets/img/shorts_qr_code.svg "

app/pages/projects.vue:84

  • Nested selector syntax (using '&:hover') is used in the style block without a declared preprocessor. Consider adding lang="scss" to the style tag if using SCSS.
&:hover {

app/app.vue:213

  • The CSS variable '--shadow-color' is not defined; consider replacing it with '--box-shadow-color' or defining '--shadow-color' to ensure consistent styling.
box-shadow: 0 2px 5px var(--shadow-color);

@kevinlee-06 kevinlee-06 merged commit b45daeb into NTUT-NPC:nuxt Feb 28, 2025
1 check passed
rileychh added a commit that referenced this pull request Feb 28, 2025
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.

3 participants