mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
Contact
This commit is contained in:
1 parent
c2c792f10c
commit
5041ec9dc6
3 files changed
+54
-49
No files matched your search
@@ -0,0 +1,28 @@
|
|||||||
|
<script setup>
|
||||||
|
defineProps({
|
||||||
|
url: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
icons: {
|
||||||
|
type: Array,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
desciption: String,
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
<template>
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<a :href="url" target="_blank" class="h-10 w-10" :title="desciption">
|
||||||
|
<font-awesome-icon
|
||||||
|
:icon="icons"
|
||||||
|
:alt="title"
|
||||||
|
class="text-text-primary h-10 delay-130 hover:-translate-y-1 hover:scale-110"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
+1
-8
@@ -1,11 +1,4 @@
|
|||||||
export const surveyUrl = '/api/v1/survey'
|
export const surveyUrl = '/api/v1/survey'
|
||||||
export const bugReportUrl = '/api/v1/bug-report'
|
export const bugReportUrl = '/api/v1/bug-report'
|
||||||
export const facebookUrl = 'https://www.facebook.com/LinuxOdyssey'
|
export const facebookUrl = 'https://www.facebook.com/LinuxOdyssey'
|
||||||
export const GitHubUrl = 'https://github.com/linux-odyssey/linux-odyssey'
|
export const githubUrl = 'https://github.com/linux-odyssey/linux-odyssey'
|
||||||
|
|
||||||
export default {
|
|
||||||
surveyUrl,
|
|
||||||
bugReportUrl,
|
|
||||||
facebookUrl,
|
|
||||||
GitHubUrl,
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
|
import ContactButton from '../components/ContactButton.vue'
|
||||||
import DynamicBackground from '../components/DynamicBackground.vue'
|
import DynamicBackground from '../components/DynamicBackground.vue'
|
||||||
import { bugReportUrl, facebookUrl, GitHubUrl } from '../config'
|
import { bugReportUrl, facebookUrl, githubUrl } from '../config'
|
||||||
|
|
||||||
const scrollToSection = (sectionId) => {
|
const scrollToSection = (sectionId) => {
|
||||||
const section = document.getElementById(sectionId)
|
const section = document.getElementById(sectionId)
|
||||||
@@ -52,10 +53,10 @@ const scrollToSection = (sectionId) => {
|
|||||||
><button
|
><button
|
||||||
id="Info"
|
id="Info"
|
||||||
class="text-text inline-block font-bold whitespace-nowrap pt-1"
|
class="text-text inline-block font-bold whitespace-nowrap pt-1"
|
||||||
@click="scrollToSection('info')"
|
@click="scrollToSection('about')"
|
||||||
style="font-size: 2vh"
|
style="font-size: 2vh"
|
||||||
>
|
>
|
||||||
Info
|
About
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
@@ -203,7 +204,7 @@ const scrollToSection = (sectionId) => {
|
|||||||
</RouterLink>
|
</RouterLink>
|
||||||
</section>
|
</section>
|
||||||
<section
|
<section
|
||||||
id="info"
|
id="about"
|
||||||
class="text-text flex flex-col items-center mt-10 gap-10"
|
class="text-text flex flex-col items-center mt-10 gap-10"
|
||||||
>
|
>
|
||||||
<div class="w-full flex flex-col items-center gap-2">
|
<div class="w-full flex flex-col items-center gap-2">
|
||||||
@@ -228,7 +229,7 @@ const scrollToSection = (sectionId) => {
|
|||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h1
|
<!-- <h1
|
||||||
class="text-text-primary p-5 font-extrabold font-mono col-span-3 gap-3"
|
class="text-text-primary p-5 font-extrabold font-mono col-span-3 gap-3"
|
||||||
style="font-size: 3.5vh"
|
style="font-size: 3.5vh"
|
||||||
>
|
>
|
||||||
@@ -260,53 +261,36 @@ const scrollToSection = (sectionId) => {
|
|||||||
</h1>
|
</h1>
|
||||||
<h1 class="text-text p-3" style="font-size: 2.5vh">
|
<h1 class="text-text p-3" style="font-size: 2.5vh">
|
||||||
"以前覺得寫程式是我生活中碰不到而且很難的項目。但通過這堂課之後,覺得寫程式不再那麼難以親近"
|
"以前覺得寫程式是我生活中碰不到而且很難的項目。但通過這堂課之後,覺得寫程式不再那麼難以親近"
|
||||||
</h1>
|
</h1> -->
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<section
|
<section
|
||||||
id="contact"
|
id="contact"
|
||||||
class="text-text p-10 grid grid-cols-3 gap-5 justify-items-center"
|
class="text-text mt-10 flex flex-col items-center"
|
||||||
>
|
|
||||||
<h1
|
|
||||||
class="text-text-primary p-5 font-extrabold font-mono col-span-3"
|
|
||||||
style="font-size: 3.5vh"
|
|
||||||
>
|
>
|
||||||
|
<h1 class="text-text-primary font-extrabold font-mono text-3xl">
|
||||||
聯絡我們
|
聯絡我們
|
||||||
</h1>
|
</h1>
|
||||||
<a
|
<div class="flex flex-row items-center justify-around mt-5 gap-5">
|
||||||
title="facebookUrl"
|
<ContactButton
|
||||||
:href="facebookUrl"
|
:url="facebookUrl"
|
||||||
target="_blank"
|
:icons="['fab', 'facebook']"
|
||||||
class="h-10 w-10"
|
title="Facebook"
|
||||||
>
|
desciption="Linux Odyssey"
|
||||||
<font-awesome-icon
|
|
||||||
:icon="['fab', 'facebook']"
|
|
||||||
class="text-text-primary h-full w-full delay-130 hover:-translate-y-1 hover:scale-150"
|
|
||||||
/>
|
/>
|
||||||
</a>
|
<ContactButton
|
||||||
<a
|
:url="githubUrl"
|
||||||
title="GitHubUrl"
|
:icons="['fab', 'github']"
|
||||||
:href="GitHubUrl"
|
title="GitHub"
|
||||||
target="_blank"
|
desciption="linux-odyssey/linux-odyssey"
|
||||||
class="h-10 w-10"
|
|
||||||
>
|
|
||||||
<font-awesome-icon
|
|
||||||
:icon="['fab', 'github']"
|
|
||||||
class="text-text-primary h-full w-full delay-130 hover:-translate-y-1 hover:scale-150"
|
|
||||||
/>
|
/>
|
||||||
</a>
|
<ContactButton
|
||||||
<div title="EmailAddress" class="h-10 w-10">
|
url="mailto:team@linuxodyssey.xyz"
|
||||||
<font-awesome-icon
|
:icons="['fas', 'envelope']"
|
||||||
:icon="['fas', 'envelope']"
|
title="Email"
|
||||||
class="text-text-primary h-full w-full delay-130 hover:-translate-y-1 hover:scale-150"
|
desciption="team@linuxodyssey.xyz"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="font-semibold" style="font-size: 2.5vh">Facebook</h1>
|
|
||||||
<h1 class="font-semibold" style="font-size: 2.5vh">GitHub</h1>
|
|
||||||
<h1 class="font-semibold" style="font-size: 2.5vh">Email</h1>
|
|
||||||
<h1 style="font-size: 2.5vh">Linux Odyssey</h1>
|
|
||||||
<h1 style="font-size: 2.5vh">linux-odyssey/linux-odyssey</h1>
|
|
||||||
<h1 style="font-size: 2.5vh">team@linuxodyssey.xyz</h1>
|
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in new issue
Block a user