Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: asdf-vm/actions/install@v3
- uses: UmbrellaDocs/action-linkspector@v1
- uses: UmbrellaDocs/action-linkspector@v1.2.5
find-uvis:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write # Required for commenting on PRs
pull-requests: write # Required for commenting on PRs
steps:
- uses: narthur/uvi-finder@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ vendor
node_modules
.vitepress/dist
.vitepress/cache
.env
146 changes: 146 additions & 0 deletions .vitepress/theme/components/ContactForm.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
<script setup>
console.log(import.meta.env);
const accessKey = import.meta.env.VITE_WEB3FORMS_KEY || "YOUR_ACCESS_KEY_HERE";
</script>

<template>
<section class="contact-section">
<div class="contact-intro">
<h2 class="contact-title">Get in Touch</h2>
<p class="contact-description">
Fill out the form below and we'll get back to you as soon as
possible.
</p>
</div>

<form
class="contact-form"
action="https://api.web3forms.com/submit"
method="POST"
>
<input type="hidden" name="access_key" :value="accessKey" />
<input
type="hidden"
name="subject"
value="New Contact Form Submission from Web3Forms"
/>
<input type="hidden" name="from_name" value="My Website" />
<!-- More customization options available in the docs: https://docs.web3forms.com -->

<div class="form-group-container">
<div class="form-group">
<label for="name" class="form-label">Name</label>
<input
id="name"
name="name"
class="form-input"
placeholder="Your name"
type="text"
required
/>
</div>
<div class="form-group">
<label for="email" class="form-label">Email</label>
<input
id="email"
name="email"
class="form-input"
placeholder="Your email"
type="email"
required
/>
</div>
<div class="form-group">
<label for="message" class="form-label">Message</label>
<textarea
class="form-textarea"
id="message"
name="message"
placeholder="Your message"
required
></textarea>
</div>
</div>
<button class="form-submit" type="submit">Send Message</button>
</form>
</section>
</template>

<style scoped>
.contact-section {
width: 100%;
max-width: 40rem;
margin-left: auto;
margin-right: auto;
padding: 3rem 1rem;
}

.contact-intro > * + * {
margin-top: 1rem;
}

.contact-title {
font-size: 1.875rem;
line-height: 2.25rem;
font-weight: 700;
}

.contact-description {
color: rgb(107 114 128);
}

.form-group-container {
display: grid;
gap: 1rem;
margin-top: 2rem;
}

.form-group {
display: flex;
flex-direction: column;
}

.form-label {
margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
padding: 0.5rem;
border: 1px solid #e5e7eb;
display: flex;
height: 2.5rem;
width: 100%;
border-radius: 0.375rem;
font-size: 0.875rem;
line-height: 1.25rem;
background-color: transparent;
}

.form-textarea:focus-visible {
color: rgb(60, 60, 67);
}

.dark .form-textarea:focus-visible {
color: rgba(255, 255, 245, 0.86);
}

.form-input:focus-visible,
.form-textarea:focus-visible {
outline: 2px solid #2563eb;
outline-offset: 2px;
}

.form-textarea {
min-height: 120px;
}

.form-submit {
width: 100%;
margin-top: 1.2rem;
background-color: #3124ca;
color: #fff;
padding: 13px 5px;
border-radius: 0.375rem;
}
</style>
2 changes: 2 additions & 0 deletions .vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import DefaultTheme from "vitepress/theme";
import "./custom.css";
import Video from "./components/Video.vue";
import ContactForm from "./components/ContactForm.vue";

export default {
...DefaultTheme,
enhanceApp({ app }) {
app.component("Video", Video);
app.component("ContactForm", ContactForm);
},
};
1 change: 1 addition & 0 deletions src/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_WEB3FORMS_KEY=value
3 changes: 3 additions & 0 deletions src/contact.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contact

<ContactForm />