update link for personal cloud storage in LinksSection.vue
This commit is contained in:
@@ -6,10 +6,8 @@
|
|||||||
<p class="section-subtitle">{{ subtitle }}</p>
|
<p class="section-subtitle">{{ subtitle }}</p>
|
||||||
</ScrollReveal>
|
</ScrollReveal>
|
||||||
|
|
||||||
<div class="contact-grid">
|
<div class="contact-info-cards">
|
||||||
<!-- Contact Info -->
|
|
||||||
<ScrollReveal :delay="100">
|
<ScrollReveal :delay="100">
|
||||||
<div class="contact-info">
|
|
||||||
<div class="card contact-info-card">
|
<div class="card contact-info-card">
|
||||||
<h3><i class="fas fa-paper-plane"></i> 联系方式</h3>
|
<h3><i class="fas fa-paper-plane"></i> 联系方式</h3>
|
||||||
<div class="contact-list">
|
<div class="contact-list">
|
||||||
@@ -31,7 +29,9 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</ScrollReveal>
|
||||||
|
|
||||||
|
<ScrollReveal :delay="200">
|
||||||
<div class="card social-card">
|
<div class="card social-card">
|
||||||
<h3><i class="fas fa-share-nodes"></i> 社交媒体</h3>
|
<h3><i class="fas fa-share-nodes"></i> 社交媒体</h3>
|
||||||
<div class="social-grid">
|
<div class="social-grid">
|
||||||
@@ -50,67 +50,6 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</ScrollReveal>
|
|
||||||
|
|
||||||
<!-- Contact Form -->
|
|
||||||
<ScrollReveal :delay="200">
|
|
||||||
<div class="card contact-form-card">
|
|
||||||
<h3><i class="fas fa-envelope"></i> 发送消息</h3>
|
|
||||||
<form class="contact-form" @submit.prevent="handleSubmit">
|
|
||||||
<div class="form-row">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="contact-name">昵称</label>
|
|
||||||
<input
|
|
||||||
id="contact-name"
|
|
||||||
v-model="form.name"
|
|
||||||
type="text"
|
|
||||||
placeholder="你的昵称"
|
|
||||||
required
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="contact-email">邮箱</label>
|
|
||||||
<input
|
|
||||||
id="contact-email"
|
|
||||||
v-model="form.email"
|
|
||||||
type="email"
|
|
||||||
placeholder="your@email.com"
|
|
||||||
required
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="contact-subject">主题</label>
|
|
||||||
<input
|
|
||||||
id="contact-subject"
|
|
||||||
v-model="form.subject"
|
|
||||||
type="text"
|
|
||||||
placeholder="消息主题"
|
|
||||||
required
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="contact-message">内容</label>
|
|
||||||
<textarea
|
|
||||||
id="contact-message"
|
|
||||||
v-model="form.message"
|
|
||||||
rows="5"
|
|
||||||
placeholder="写下你想说的内容..."
|
|
||||||
required
|
|
||||||
></textarea>
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-primary" :disabled="submitted">
|
|
||||||
<i :class="submitted ? 'fas fa-check' : 'fas fa-paper-plane'"></i>
|
|
||||||
{{ submitted ? '已发送' : '发送消息' }}
|
|
||||||
</button>
|
|
||||||
<p v-if="submitted" class="form-note success">感谢你的消息!我会尽快回复。</p>
|
|
||||||
<p class="form-note hint">
|
|
||||||
<i class="fas fa-info-circle"></i>
|
|
||||||
或直接发送邮件至 <a href="mailto:i@nanami.tech">i@nanami.tech</a>
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</ScrollReveal>
|
</ScrollReveal>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -118,7 +57,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { ref, reactive } from 'vue';
|
|
||||||
import ScrollReveal from './ScrollReveal.vue';
|
import ScrollReveal from './ScrollReveal.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -137,14 +75,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const submitted = ref(false);
|
|
||||||
const form = reactive({
|
|
||||||
name: '',
|
|
||||||
email: '',
|
|
||||||
subject: '',
|
|
||||||
message: ''
|
|
||||||
});
|
|
||||||
|
|
||||||
const contactItems = [
|
const contactItems = [
|
||||||
{
|
{
|
||||||
label: '电子邮箱',
|
label: '电子邮箱',
|
||||||
@@ -175,24 +105,9 @@ export default {
|
|||||||
{ label: 'Email', icon: 'fas fa-envelope', url: 'mailto:contact@nanami.tech' }
|
{ label: 'Email', icon: 'fas fa-envelope', url: 'mailto:contact@nanami.tech' }
|
||||||
];
|
];
|
||||||
|
|
||||||
const handleSubmit = () => {
|
|
||||||
// Static form — show success state since no backend
|
|
||||||
submitted.value = true;
|
|
||||||
setTimeout(() => {
|
|
||||||
submitted.value = false;
|
|
||||||
form.name = '';
|
|
||||||
form.email = '';
|
|
||||||
form.subject = '';
|
|
||||||
form.message = '';
|
|
||||||
}, 5000);
|
|
||||||
};
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
form,
|
|
||||||
submitted,
|
|
||||||
contactItems,
|
contactItems,
|
||||||
socialLinks,
|
socialLinks
|
||||||
handleSubmit
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -203,23 +118,16 @@ export default {
|
|||||||
padding: 64px 0;
|
padding: 64px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-grid {
|
.contact-info-cards {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1.2fr;
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
align-items: start;
|
max-width: 800px;
|
||||||
}
|
margin: 0 auto;
|
||||||
|
|
||||||
/* Contact Info */
|
|
||||||
.contact-info {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-info-card h3,
|
.contact-info-card h3,
|
||||||
.social-card h3,
|
.social-card h3 {
|
||||||
.contact-form-card h3 {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
@@ -227,8 +135,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.contact-info-card h3 i,
|
.contact-info-card h3 i,
|
||||||
.social-card h3 i,
|
.social-card h3 i {
|
||||||
.contact-form-card h3 i {
|
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
@@ -323,87 +230,12 @@ export default {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Form */
|
|
||||||
.contact-form {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-row {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 1fr;
|
|
||||||
gap: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group label {
|
|
||||||
font-size: 13px;
|
|
||||||
font-weight: 600;
|
|
||||||
color: var(--text-secondary);
|
|
||||||
transition: color 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group input,
|
|
||||||
.form-group textarea {
|
|
||||||
font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
||||||
padding: 10px 14px;
|
|
||||||
border: 2px solid var(--border-color);
|
|
||||||
border-radius: 8px;
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 1.47;
|
|
||||||
background: var(--surface-light);
|
|
||||||
color: var(--text-color);
|
|
||||||
transition: all 0.3s;
|
|
||||||
resize: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group input:focus,
|
|
||||||
.form-group textarea:focus {
|
|
||||||
outline: none;
|
|
||||||
border-color: var(--accent);
|
|
||||||
box-shadow: 0 0 0 3px var(--accent-subtle);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-group input::placeholder,
|
|
||||||
.form-group textarea::placeholder {
|
|
||||||
color: var(--text-tertiary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-note {
|
|
||||||
font-size: 13px;
|
|
||||||
margin: 0;
|
|
||||||
transition: color 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-note.success {
|
|
||||||
color: var(--accent);
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-note.hint {
|
|
||||||
color: var(--text-tertiary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-note.hint a {
|
|
||||||
color: var(--accent);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.contact {
|
.contact {
|
||||||
padding: 48px 0;
|
padding: 48px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.contact-grid {
|
.contact-info-cards {
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-row {
|
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export default {
|
|||||||
label: '个人网盘',
|
label: '个人网盘',
|
||||||
description: '访问开源资源、工具软件与文件分享',
|
description: '访问开源资源、工具软件与文件分享',
|
||||||
icon: 'fas fa-cloud',
|
icon: 'fas fa-cloud',
|
||||||
url: 'https://drive.nanami.tech',
|
url: 'https://netdisk.nanami.tech',
|
||||||
external: true,
|
external: true,
|
||||||
accent: 'accent-warm'
|
accent: 'accent-warm'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user