Skip to content

Commit

Permalink
adjusted more style in the hero in home page
Browse files Browse the repository at this point in the history
  • Loading branch information
taricov committed Feb 12, 2024
1 parent 139bb33 commit b29fa43
Showing 1 changed file with 1 addition and 69 deletions.
70 changes: 1 addition & 69 deletions components/AppForm/Hero.vue
Original file line number Diff line number Diff line change
@@ -1,45 +1,6 @@
<script setup></script>
<template>
<section class="bg-white dark:bg-gray-900">
<!-- <nav x-data="{ isOpen: false }" class="container p-6 mx-auto lg:flex lg:justify-between lg:items-center">
<div class="flex items-center justify-between">
<a href="/">
<svg width="60" class="ml-20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128.65 139.81"><defs></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-1" d="M94.85,5.15,0,139.81,52.44,0H64.19Q83.17,0,94.85,5.15Z"/><polygon class="cls-2" points="52.44 0 0 139.81 0 0 52.44 0"/><path class="cls-3" d="M128.65,69.43q0,22.41-5.1,34.76a57.54,57.54,0,0,1-14.16,20.7A46.32,46.32,0,0,1,89.93,136a100.26,100.26,0,0,1-25.74,3.81H0L126.83,49.42A106.53,106.53,0,0,1,128.65,69.43Z"/><path class="cls-4" d="M126.83,49.42,0,139.81,94.85,5.15a50,50,0,0,1,19.31,14.78,61.41,61.41,0,0,1,11.06,22.42C125.85,44.67,126.38,47,126.83,49.42Z"/></g></g></svg>
</a>
Mobile menu button
<div class="flex lg:hidden">
<button x-cloak @click="isOpen = !isOpen" type="button" class="text-[#723456] hover:text-gray-600 dark:hover:text-gray-400 focus:outline-none focus:text-gray-600 dark:focus:text-gray-400" aria-label="toggle menu">
<svg x-show="!isOpen" xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M4 8h16M4 16h16" />
</svg>
<svg x-show="isOpen" xmlns="http://www.w3.org/2000/svg" class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
</div>
Mobile Menu open: "block", Menu closed: "hidden"
<div x-cloak :class="[isOpen ? 'translate-x-0 opacity-100 ' : 'opacity-0 -translate-x-full']" class="absolute inset-x-0 z-20 w-full px-6 py-4 transition-all duration-300 ease-in-out bg-white shadow-md lg:bg-transparent lg:dark:bg-transparent lg:shadow-none dark:bg-gray-900 lg:mt-0 lg:p-0 lg:top-0 lg:relative lg:w-auto lg:opacity-100 lg:translate-x-0 lg:flex lg:items-center">
<div class="flex flex-col space-y-4 lg:mt-0 lg:flex-row lg:-px-8 lg:space-y-0">
<a target="_blank" class="block px-5 py-2 mt-4 text-sm text-center capitalize bg-blue-600 rounded-lg lg:mt-0 hover:text-[#723456]/70
lg:w-auto" href="/builder">
Get started
</a>
<a target="_blank" class="block px-5 py-2 mt-4 text-sm text-center capitalize bg-blue-600 rounded-lg lg:mt-0 hover:text-[#723456]/70
lg:w-auto"
href="https://github.com/taricov/d-profile">Source Code</a>
<a target="_blank" class="block px-5 py-2 mt-4 text-sm text-center capitalize bg-blue-600 rounded-lg lg:mt-0 hover:text-[#723456]/70
lg:w-auto"
href="https://linkedin.com/in/taricov">Author</a>
</div>
</div>
</nav> -->

<div class="container px-6 py-24 mx-auto text-center">
<div class="max-w-lg mx-auto">
<svg
Expand Down Expand Up @@ -73,7 +34,7 @@
D-Profile
</h1>

<div className="rounded-full overflow-hidden mb-10 bg-gradient-to-tr from-[#361829]/80 to-[#723456]/90">
<div className="rounded-full overflow-hidden mb-10 bg-gradient-to-tr from-[#361829]/80 to-[#723456]/70">
<p
class="text-transparent bg-clip-text bg-gradient-to-tr from-[#a8658b] to-[#fff]/80 text-md font-semibold rounded-full py-1 px-5 shadow"
>
Expand All @@ -85,41 +46,12 @@
class="px-5 py-2 mt-6 text-lg font-semibold text-center capitalize text-transparent bg-gradient-to-tr from-[#723456] to-[#542240] rounded-lg lg:mx-0 lg:w-auto focus:outline-none shadow hover:opacity-90 transform hover:-translate-y-1 transition duration-300 !border-0 text-slate-200"
>
Start Now
<!-- <icon name="mdi:arrow" class="transform rotate-180 h-4 w-4" /> -->
</a>
<!-- <p class="mt-3 text-sm text-gray-800/70 ">It's Free and <a class="mt-3 text-sm text-gray-800 hover:text-gray-800/50 transition duration-300" href="/buildergi">
Open-source</a>
</p> -->
</div>

<!-- <div class="flex justify-center mt-10">
<img class="object-cover w-full h-96 rounded-xl lg:w-4/5" src="https://i.ibb.co/sqb4QhH/SCR-20230820-211-2.png" />
</div> -->
</div>
</section>
<!-- <a
href="https://linkedin.com/in/taricov"
target="_blank"
class="fixed w-full h-24 flex justify-center items-center !border-0 bottom-0 right-0 bg-slate-800 shadow py-1 mx-auto hover:bg-slate-900 hover:text-slate-50 font-medium text-md text-center text-slate-100 app-grad hover:opacity-90 transition duration-300"
>
<span class="">
Made by Taric Ov
<br/>
<span class="flex justify-center items-center">
with love &nbsp;
<svg width="19" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path fill="none" stroke="currentColor" d="m12 21.35l-1.45-1.32C5.4 15.36 2 12.27 2 8.5C2 5.41 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3C19.58 3 22 5.41 22 8.5c0 3.77-3.4 6.86-8.55 11.53L12 21.35Z"/>
</svg>
</span>
</span>
</a> -->
</template>
<style scoped>
.app-grad {
@apply bg-gradient-to-bl from-[#723456] to-[#8a516e]/90;
}
.cls-1 {
fill: #a37389;
}
Expand Down

0 comments on commit b29fa43

Please sign in to comment.