Skip to content

Commit 4902770

Browse files
committed
feat: Update button components and styles for consistency across documentation pages
1 parent 9ed99bc commit 4902770

File tree

5 files changed

+22
-22
lines changed

5 files changed

+22
-22
lines changed
0 Bytes
Binary file not shown.

docs-v3/components/case-studies/CaseStudiesCta.vue

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,27 @@
1414
Start your project today and become our next case study.
1515
</p>
1616
<div class="flex flex-col sm:flex-row gap-4 justify-center">
17-
<NuxtLink
18-
to="/docs"
19-
class="inline-flex items-center justify-center px-8 py-4 bg-gradient-to-r from-red-500 to-red-600 text-white hover:from-red-600 hover:to-red-700 font-semibold rounded-xl transition-all duration-300 text-lg shadow-lg shadow-red-500/20 hover:shadow-red-500/30"
17+
<HeroButton
18+
type="primary"
19+
href="/docs"
20+
:icon="BookOpenIcon"
21+
:is-nuxt-link="true"
2022
>
21-
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
22-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.746 0 3.332.477 4.5 1.253v13C19.832 18.477 18.246 18 16.5 18c-1.746 0-3.332.477-4.5 1.253" />
23-
</svg>
2423
Get Started with Restify
25-
</NuxtLink>
26-
<a
24+
</HeroButton>
25+
<HeroButton
26+
type="secondary"
2727
href="https://www.binarcode.com/recent-work"
28-
target="_blank"
29-
rel="noopener noreferrer"
30-
class="inline-flex items-center justify-center px-8 py-4 bg-gray-100 dark:bg-gray-800/50 border border-gray-300 dark:border-gray-700/50 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700/50 hover:text-gray-900 dark:hover:text-white font-semibold rounded-xl transition-all duration-300 text-lg backdrop-blur-sm"
28+
:icon="BriefcaseIcon"
3129
>
32-
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
33-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16l3-3 3 3 3-3 3 3V5a2 2 0 00-2-2z" />
34-
</svg>
3530
Recent Projects
36-
</a>
31+
</HeroButton>
3732
</div>
3833
</div>
3934
</div>
4035
</template>
36+
37+
<script setup lang="ts">
38+
import { BookOpenIcon, BriefcaseIcon } from '@heroicons/vue/24/outline'
39+
import HeroButton from '~/components/website/HeroButton.vue'
40+
</script>

docs-v3/components/website/ContributorsSection.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div class="absolute right-0 top-0 z-10 w-16 h-full bg-gradient-to-l from-white/80 dark:from-gray-900/80 to-transparent pointer-events-none"></div>
2121

2222
<div class="flex animate-scroll-left space-x-4">
23-
<div class="flex space-x-4 shrink-0">
23+
<div class="flex space-x-4 shrink-0 p-1">
2424
<ContributorAvatar
2525
v-for="contributor in contributors"
2626
:key="contributor.username"
@@ -29,7 +29,7 @@
2929
:contributions="contributor.contributions"
3030
/>
3131
</div>
32-
<div class="flex space-x-4 shrink-0">
32+
<div class="flex space-x-4 shrink-0 p-1">
3333
<ContributorAvatar
3434
v-for="contributor in contributors"
3535
:key="`dup-${contributor.username}`"
@@ -46,7 +46,7 @@
4646
href="https://github.com/BinarCode/laravel-restify/graphs/contributors"
4747
target="_blank"
4848
rel="noopener noreferrer"
49-
class="inline-flex items-center text-red-500 dark:text-red-400 hover:text-red-600 dark:hover:text-red-300 font-medium transition-colors group"
49+
class="inline-flex items-center text-primary-500 dark:text-primary-400 hover:text-primary-600 dark:hover:text-primary-300 font-medium transition-colors group"
5050
>
5151
View All Contributors
5252
<ArrowRightIcon class="ml-2 w-4 h-4 group-hover:translate-x-1 transition-transform" />

docs-v3/pages/community/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
href="https://github.com/BinarCode/restify-demo"
115115
target="_blank"
116116
rel="noopener noreferrer"
117-
class="inline-flex items-center text-red-500 dark:text-red-400 hover:text-red-600 dark:hover:text-red-300 font-medium transition-colors"
117+
class="inline-flex items-center text-primary-500 dark:text-primary-400 hover:text-primary-600 dark:hover:text-primary-300 font-medium transition-colors"
118118
>
119119
View Demo Repository
120120
<svg class="w-4 h-4 ml-1" fill="none" stroke="currentColor" viewBox="0 0 24 24">

docs-v3/pages/playground/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="flex space-x-2">
4040
<button
4141
@click="switchToHttp"
42-
:class="activeTab === 'http' ? 'bg-red-500 text-white shadow-md' : 'text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white'"
42+
:class="activeTab === 'http' ? 'bg-primary-500 text-white shadow-md' : 'text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white'"
4343
class="flex-1 px-6 py-4 rounded-lg font-medium transition-all duration-200"
4444
>
4545
<div class="flex items-center justify-center space-x-2">
@@ -52,7 +52,7 @@
5252
</button>
5353
<button
5454
@click="switchToMcp"
55-
:class="activeTab === 'mcp' ? 'bg-red-500 text-white shadow-md' : 'text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white'"
55+
:class="activeTab === 'mcp' ? 'bg-primary-500 text-white shadow-md' : 'text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white'"
5656
class="flex-1 px-6 py-4 rounded-lg font-medium transition-all duration-200"
5757
>
5858
<div class="flex items-center justify-center space-x-2">
@@ -194,7 +194,7 @@
194194
<button
195195
@click="sendRequest"
196196
:disabled="isLoading"
197-
class="w-full bg-red-500 hover:bg-red-600 disabled:bg-red-500/50 disabled:cursor-not-allowed text-white font-medium py-4 px-6 rounded-lg transition-colors text-lg"
197+
class="w-full bg-primary-500 hover:bg-primary-600 disabled:bg-primary-500/50 disabled:cursor-not-allowed text-white font-medium py-4 px-6 rounded-lg transition-colors text-lg"
198198
>
199199
{{ isLoading ? 'Sending...' : 'Send Request' }}
200200
</button>

0 commit comments

Comments
 (0)