Skip to content

Commit

Permalink
Build Header, and Example Gradients
Browse files Browse the repository at this point in the history
khatabwedaa committed Oct 25, 2022
1 parent 05773be commit 7a6381c
Showing 16 changed files with 242 additions and 300 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" class="scroll-smooth">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
18 changes: 12 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
<template>
<div class="flex flex-col min-h-screen">
<navbar />
<generator />
<div class="flex flex-col min-h-screen font-inter">
<header-component />

<div class="container relative z-50 px-4 mx-auto -mt-16 2xl:-mt-28">
<div id="generator" class="bg-white shadow-md h-96 scroll-mt-10 rounded-xl shadow-gray-200/90"></div>
</div>

<gradient-examples />

<footer-component />
</div>
</template>

<script>
import HeaderComponent from './components/Header.vue';
import GradientExamples from './components/GradientExamples.vue';
import FooterComponent from './components/Footer.vue';
import Generator from './components/Generator.vue';
import Navbar from './components/Navbar.vue';
export default {
name: 'App',
components: { Navbar, FooterComponent, Generator },
components: { HeaderComponent, GradientExamples, FooterComponent },
}
</script>
Binary file added src/assets/header.webp
Binary file not shown.
Binary file added src/assets/logo.webp
Binary file not shown.
35 changes: 0 additions & 35 deletions src/components/Colors.vue

This file was deleted.

31 changes: 31 additions & 0 deletions src/components/CopyStyle.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<template>
<button v-clipboard:copy="style" v-clipboard:success="copied" class="font-medium text-gray-500 transition-colors duration-300 focus:outline-none hover:text-primary">
<svg v-show="!isCopy" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 00-3.375-3.375h-1.5a1.125 1.125 0 01-1.125-1.125v-1.5A3.375 3.375 0 006.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0015 2.25h-1.5a2.251 2.251 0 00-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 00-9-9z" />
</svg>

<svg v-show="isCopy" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0118 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3l1.5 1.5 3-3.75" />
</svg>
</button>
</template>

<script>
export default {
props: ['style'],
data() {
return {
isCopy: false,
}
},
methods: {
copied() {
this.isCopy = true;
setTimeout(() => this.isCopy = false, 500);
},
}
}
</script>
31 changes: 0 additions & 31 deletions src/components/DefaultGradients.vue

This file was deleted.

35 changes: 0 additions & 35 deletions src/components/Directions.vue

This file was deleted.

28 changes: 24 additions & 4 deletions src/components/Footer.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
<template>
<div class="container px-6 mx-auto">
<div class="flex flex-col items-center">
<div class="py-6 text-center sm:w-2/3">
<p class="text-sm text-gray-600">© {{ new Date().getFullYear() }} by <a href="https://tailwindcomponents.com" target="_blank" className="text-primary hover:underline">Tailwind Components</a></p>
<div class="bg-gray-100 dark:bg-gray-800">
<div class="container flex flex-col items-center px-4 py-6 mx-auto space-y-6 lg:space-y-0 lg:flex-row lg:justify-between">
<div class="w-48 text-gray-700 dark:text-gray-200">
<img class="object-cover object-left h-6" src="../assets/logo.svg" alt="Tailwindcomponents logo">
</div>

<p class="text-sm text-center text-gray-500 dark:text-gray-300">&copy; {{ new Date().getFullYear() }} Highscore Studio. Component copyrights belongs to their authors.</p>

<div class="flex items-center space-x-6">
<a href="/privacy" class="text-sm text-gray-500 transition-colors duration-300 dark:text-gray-300 hover:underline hover:text-primary dark:hover:text-primary">Privacy</a>
<a href="/legal" class="text-sm text-gray-500 transition-colors duration-300 dark:text-gray-300 hover:underline hover:text-primary dark:hover:text-primary">Legal</a>
<a href="/cookies" class="text-sm text-gray-500 transition-colors duration-300 dark:text-gray-300 hover:underline hover:text-primary dark:hover:text-primary">Cookies</a>

<a href="https://twitter.com/TwComponents" target="_blink" class="text-gray-500 transition-colors duration-300 dark:text-gray-300 hover:text-primary dark:hover:text-primary">
<svg class="w-6 h-6 fill-current" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M19.995 6.68799C20.8914 6.15208 21.5622 5.30823 21.882 4.31399C21.0397 4.81379 20.118 5.16587 19.157 5.35499C17.8246 3.94552 15.7135 3.60251 14.0034 4.51764C12.2933 5.43277 11.4075 7.37948 11.841 9.26999C8.39062 9.09676 5.17598 7.4669 2.99702 4.78599C1.85986 6.74741 2.44097 9.25477 4.32502 10.516C3.64373 10.4941 2.97754 10.3096 2.38202 9.97799C2.38202 9.99599 2.38202 10.014 2.38202 10.032C2.38241 12.0751 3.82239 13.8351 5.82502 14.24C5.19308 14.4119 4.53022 14.4372 3.88702 14.314C4.45022 16.0613 6.06057 17.2583 7.89602 17.294C6.37585 18.4871 4.49849 19.1342 2.56602 19.131C2.22349 19.1315 1.88123 19.1118 1.54102 19.072C3.50341 20.333 5.78739 21.0023 8.12002 21C11.3653 21.0223 14.484 19.7429 16.7787 17.448C19.0734 15.1531 20.3526 12.0342 20.33 8.78899C20.33 8.60299 20.3257 8.41799 20.317 8.23399C21.1575 7.62659 21.8828 6.87414 22.459 6.01199C21.676 6.35905 20.8455 6.58691 19.995 6.68799Z"></path>
</svg>
</a>

<a href="https://github.com/tailwindcomponents" target="_blink" class="text-gray-500 transition-colors duration-300 dark:text-gray-300 hover:text-primary dark:hover:text-primary">
<svg viewBox="0 0 30 30" class="w-6 h-6 fill-current">
<path d="M15 1.875C7.75195 1.875 1.875 7.9043 1.875 15.334C1.875 21.2812 5.63672 26.3203 10.8516 28.1016C10.9247 28.1175 10.9994 28.1253 11.0742 28.125C11.5605 28.125 11.748 27.7676 11.748 27.457C11.748 27.1348 11.7363 26.291 11.7305 25.166C11.2963 25.2678 10.8522 25.3209 10.4062 25.3242C7.88086 25.3242 7.30664 23.3613 7.30664 23.3613C6.70898 21.8086 5.84766 21.3926 5.84766 21.3926C4.70508 20.5898 5.8418 20.5664 5.92969 20.5664H5.93555C7.25391 20.6836 7.94531 21.9609 7.94531 21.9609C8.60156 23.1094 9.48047 23.4316 10.2656 23.4316C10.7848 23.4213 11.2959 23.3015 11.7656 23.0801C11.8828 22.2129 12.2227 21.6211 12.5977 21.2812C9.68555 20.9414 6.62109 19.7871 6.62109 14.6309C6.62109 13.1602 7.13086 11.959 7.96875 11.0215C7.83398 10.6816 7.38281 9.31055 8.09766 7.45898C8.19354 7.43604 8.29209 7.42619 8.39062 7.42969C8.86523 7.42969 9.9375 7.61133 11.707 8.8418C13.8572 8.24022 16.1311 8.24022 18.2812 8.8418C20.0508 7.61133 21.123 7.42969 21.5977 7.42969C21.6962 7.42619 21.7947 7.43604 21.8906 7.45898C22.6055 9.31055 22.1543 10.6816 22.0195 11.0215C22.8574 11.9648 23.3672 13.166 23.3672 14.6309C23.3672 19.7988 20.2969 20.9355 17.373 21.2695C17.8418 21.6855 18.2637 22.5059 18.2637 23.7598C18.2637 25.5586 18.2461 27.0117 18.2461 27.4512C18.2461 27.7676 18.4277 28.125 18.9141 28.125C18.9928 28.1253 19.0713 28.1175 19.1484 28.1016C24.3691 26.3203 28.125 21.2754 28.125 15.334C28.125 7.9043 22.248 1.875 15 1.875Z"></path>
</svg>
</a>
</div>
</div>
</div>
129 changes: 0 additions & 129 deletions src/components/Generator.vue

This file was deleted.

Loading

0 comments on commit 7a6381c

Please sign in to comment.