Skip to content

Commit 7b9c614

Browse files
committed
chore: wip
1 parent dce2a4c commit 7b9c614

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

app/Models/SubscriberEmail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
validation: {
2929
rule: schema.string().email(),
3030
message: {
31-
email: 'Email must be valid',
31+
email: 'Email address must be of valid format',
3232
required: 'Email is required',
3333
},
3434
},
465 KB
Loading

resources/components/Buttons/BaseButton.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script setup lang="ts">
22
const props = defineProps<{
33
loading: boolean
4-
buttonText: boolean
4+
buttonText: string
55
classString: string
66
}>()
77
88
const fullClass = computed(() => {
9-
let cls = ' duration-150 ease-in-out transition'
9+
let cls = ' duration-150 ease-in-out transition focus:ring-2 focus:ring-inset focus:ring-blue-600'
1010
1111
if (props.loading) {
1212
cls += ` opacity-75 disabled:cursor-not-allowed `
@@ -39,6 +39,7 @@ const fullClass = computed(() => {
3939
/>
4040
</svg>
4141

42-
{{ props.buttonText }}
42+
<span v-if="!props.loading">{{ props.buttonText }}</span>
43+
<span v-else>One moment...</span>
4344
</button>
44-
</template>
45+
</template>

resources/components/Marketing/ComingSoon.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,16 @@ async function submitEmail() {
8989
<div class="mt-10 flex items-center gap-x-6">
9090
<!-- <a href="#" class="rounded-md bg-blue-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600">Get started</a> -->
9191
<div>
92-
<div class="flex rounded-md shadow-sm">
92+
<div class="flex rounded-md shadow-sm w-380px">
9393
<div class="relative flex flex-grow items-stretch focus-within:z-10">
9494
<div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3">
9595
<div class="i-heroicons-envelope h-5 w-5 text-gray-400" />
9696
</div>
9797

98-
<input id="email" v-model="email" type="email" name="email" class="block w-full rounded-none rounded-l-md border-0 py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 sm:text-sm sm:leading-6" placeholder="enter-your@email.com">
98+
<input id="email" v-model="email" type="email" name="email" class="block w-full rounded-none rounded-l-md border-0 py-1.5 pl-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 sm:text-sm sm:leading-6" placeholder="may-we-ask-your@email.org">
9999
</div>
100100

101-
<BaseButton buttonText="Submit" classString="relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50" :loading="loading" @click.native="submitEmail" />
101+
<BaseButton buttonText="Stay in Touch" classString="relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 w-120px" :loading="loading" @click.native="submitEmail" />
102102
</div>
103103
</div>
104104

@@ -116,7 +116,7 @@ async function submitEmail() {
116116
<div class="mx-auto mt-16 flex max-w-2xl sm:mt-24 lg:ml-10 lg:mr-0 lg:mt-0 lg:max-w-none lg:flex-none xl:ml-32">
117117
<div class="max-w-3xl flex-none sm:max-w-5xl lg:max-w-none">
118118
<div class="-m-2 rounded-xl bg-gray-900/5 p-2 ring-1 ring-inset ring-gray-900/10 lg:-m-4 lg:rounded-2xl lg:p-4">
119-
<img src="https://tailwindui.com/img/component-images/project-app-screenshot.png" alt="App screenshot" width="2432" height="1442" class="w-[76rem] rounded-md shadow-2xl ring-1 ring-gray-900/10">
119+
<img src="images/screenshots/dashboard.png" alt="App screenshot" width="2432" height="1442" class="w-[76rem] rounded-md shadow-2xl ring-1 ring-gray-900/10">
120120
</div>
121121
</div>
122122
</div>

0 commit comments

Comments
 (0)