From 96a04df81d5fb4ac03d98a1f05bf217a5e183d36 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 8 Apr 2024 13:41:26 +0300 Subject: [PATCH] Button style updates --- .../styles/layout/templates/_templates.scss | 34 +++++++++ components/template/Hero/index.vue | 4 +- pages/templates/index.vue | 74 +++++++++---------- 3 files changed, 73 insertions(+), 39 deletions(-) diff --git a/assets/styles/layout/templates/_templates.scss b/assets/styles/layout/templates/_templates.scss index 0b3b696e2..fa7d813eb 100644 --- a/assets/styles/layout/templates/_templates.scss +++ b/assets/styles/layout/templates/_templates.scss @@ -1155,6 +1155,7 @@ margin-top: 2rem; a { + display: inline-flex; text-decoration: none; height: 2.5rem; flex: 1; @@ -1635,3 +1636,36 @@ } } } + +.templates-page { + &-button { + display: inline-flex; + cursor: pointer; + user-select: none; + align-items: center; + justify-content: center; + overflow: hidden; + position: relative; + background-color: var(--primary-color); + color: var(--primary-inverse-color); + border: 1px solid var(--border-color); + padding: 0.5rem 1rem; + font-size: 1rem; + font-family: inherit; + font-feature-settings: inherit; + transition: background-color var(--p-transition-duration), color var(--p-transition-duration), border-color var(--p-transition-duration), outline-color var(--p-transition-duration); + border-radius: var(--p-rounded-base); + outline-color: transparent; + flex: 1 1 0%; + + &-outlined { + background: transparent; + color: var(--primary-color); + border-color: var(--p-primary-200); + } + + &-label { + font-weight: 500; + } + } +} diff --git a/components/template/Hero/index.vue b/components/template/Hero/index.vue index 595ee5336..942858196 100644 --- a/components/template/Hero/index.vue +++ b/components/template/Hero/index.vue @@ -9,8 +9,8 @@

{{ templateHeroData.description }}

- Live Demo - + Live Demo + {{ templateHeroData.free ? 'Source Code' : 'Buy Now' }}
diff --git a/pages/templates/index.vue b/pages/templates/index.vue index b3b4d135b..678679a47 100644 --- a/pages/templates/index.vue +++ b/pages/templates/index.vue @@ -5,18 +5,18 @@

Highly customizable application templates to get started in no time with style. Designed and implemented by PrimeTek.

-
+
Apollo
- - Preview + + Preview - - Learn More + + Learn More
@@ -27,11 +27,11 @@ Sakai
- - Preview + + Preview - - Learn More + + Learn More
@@ -42,11 +42,11 @@ Atlantis
- - Preview + + Preview - - Learn More + + Learn More
@@ -57,11 +57,11 @@ Ultima
- - Preview + + Preview - - Learn More + + Learn More
@@ -72,11 +72,11 @@ Freya
- - Preview + + Preview - - Learn More + + Learn More
@@ -87,11 +87,11 @@ Diamond
- - Preview + + Preview - - Learn More + + Learn More
@@ -102,11 +102,11 @@ Verona
- - Preview + + Preview - - Learn More + + Learn More
@@ -117,11 +117,11 @@ Poseidon
- - Preview + + Preview - - Learn More + + Learn More
@@ -132,11 +132,11 @@ Avalon
- - Preview + + Preview - - Learn More + + Learn More