-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b7fb13b
Showing
24 changed files
with
10,570 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2021 Tailwind Components | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<p align="center"> | ||
<img src="public/gradinet-generator.png" alt="gradinet-generator"> | ||
|
||
## Tailwind Components Gradient Generator | ||
This repo content a Gradient Generator page from [tailwindcompnents.com](https://tailwindcomponents.com/gradient-generator/), Build with Vuejs. | ||
|
||
<a href="https://github.com/tailwindcomponents/gradient-generator/blob/main/LICENSE"> | ||
<img src="https://img.shields.io/github/license/tailwindcomponents/gradient-generator"> | ||
</a> | ||
|
||
<a href="https://github.com/tailwindcomponents/gradient-generator/stargazers"> | ||
<img src="https://img.shields.io/github/stars/tailwindcomponents/gradient-generator"> | ||
</a> | ||
|
||
<a href="https://twitter.com/TwComponents"> | ||
<img src="https://img.shields.io/twitter/url?label=Tailwindcomponents&style=social&url=https%3A%2F%2Ftwitter.com%2FTwComponents"> | ||
</a> | ||
|
||
### Project setup | ||
``` | ||
yarn install | ||
``` | ||
|
||
### Compiles and hot-reloads for development | ||
``` | ||
yarn serve | ||
``` | ||
|
||
### Compiles and minifies for production | ||
``` | ||
yarn build | ||
``` | ||
|
||
### Lints and fixes files | ||
``` | ||
yarn lint | ||
``` | ||
|
||
### Customize configuration | ||
See [Configuration Reference](https://cli.vuejs.org/config/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"name": "gradient-generator", | ||
"version": "0.1.0", | ||
"private": true, | ||
"scripts": { | ||
"serve": "vue-cli-service serve", | ||
"build": "vue-cli-service build", | ||
"lint": "vue-cli-service lint" | ||
}, | ||
"dependencies": { | ||
"@tailwindcss/forms": "^0.3.3", | ||
"core-js": "^3.6.5", | ||
"vue": "^3.0.0", | ||
"vue3-clipboard": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vue/cli-plugin-babel": "~4.5.0", | ||
"@vue/cli-plugin-eslint": "~4.5.0", | ||
"@vue/cli-service": "~4.5.0", | ||
"@vue/compiler-sfc": "^3.0.0", | ||
"autoprefixer": "^9", | ||
"babel-eslint": "^10.1.0", | ||
"eslint": "^6.7.2", | ||
"eslint-plugin-vue": "^7.0.0", | ||
"postcss": "^7", | ||
"tailwindcss": "npm:@tailwindcss/postcss7-compat" | ||
}, | ||
"eslintConfig": { | ||
"root": true, | ||
"env": { | ||
"node": true | ||
}, | ||
"extends": [ | ||
"plugin:vue/vue3-essential", | ||
"eslint:recommended" | ||
], | ||
"parserOptions": { | ||
"parser": "babel-eslint" | ||
}, | ||
"rules": {} | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"last 2 versions", | ||
"not dead" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang=""> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
|
||
<meta property="og:image" content="<%= BASE_URL %>gradinet-generator.png" /> | ||
<meta property="og:title" content="Tailwind Gradient Generator" /> | ||
<meta property="og:description" content="Create perfect gradients for your tailwind CSS sites easily with zero lines of code." /> | ||
|
||
<meta name="twitter:card" content="summary_large_image" /> | ||
<meta name="twitter:site" content="@TwComponents" /> | ||
<meta name="twitter:title" content="Tailwind Gradient Generator" /> | ||
<meta name="twitter:description" content="Create perfect gradients for your tailwind CSS sites easily with zero lines of code." /> | ||
<meta name="twitter:image" content="<%= BASE_URL %>gradinet-generator.png" /> | ||
|
||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> | ||
<title>Tailwind Gradient Generator</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> | ||
</noscript> | ||
<div id="app"></div> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<div class="flex flex-col min-h-screen"> | ||
<navbar /> | ||
<generator /> | ||
<footer-component /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
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 }, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@import "tailwindcss/base"; | ||
@import "tailwindcss/components"; | ||
@import "tailwindcss/utilities"; | ||
|
||
::-webkit-scrollbar { | ||
width: 16px; | ||
height: 12px; | ||
} | ||
|
||
::-webkit-scrollbar-track { | ||
background: transparent; | ||
} | ||
|
||
::-webkit-scrollbar-thumb { | ||
background: rgba(0, 0, 0, 0.2); | ||
border-radius: 50px; | ||
border: 4px solid #fff; | ||
} | ||
|
||
.dark .overflow-y-auto ::-webkit-scrollbar-thumb { | ||
border: 4px solid #121927; | ||
background: rgba(255, 255, 255, 0.2); | ||
} | ||
|
||
::-webkit-scrollbar-thumb:hover { | ||
background: #12d3cf; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<div class="mt-6"> | ||
<p class="mb-2 text-gray-600 capitalize">Colors</p> | ||
|
||
<div class="overflow-auto h-80"> | ||
<div v-for="(color, index) in colors" :key="index"> | ||
<p class="mb-2 text-gray-700" v-text="color"></p> | ||
|
||
<div class="flex items-center px-2 py-1 mb-2 space-x-2 bg-gray-100 rounded-full"> | ||
<button v-for="(number, index) in values" :key="index" :class="'bg-' + color + '-' + number" @click="updateColor(color + '-' + number)" class="flex items-center justify-center flex-shrink-0 w-8 h-8 text-sm text-white rounded-full focus:outline-none" v-text="number"></button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'Colors', | ||
data() { | ||
return { | ||
colors: ['blue-gray', 'gray', 'true-gray', 'warm-gray', 'lime', 'green', 'teal', 'cyan', 'light-blue', 'blue', 'indigo', 'purple', 'fuchsia', 'red', 'orange', 'yellow', 'pink', 'rose'], | ||
values: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'], | ||
} | ||
}, | ||
methods: { | ||
updateColor(color) | ||
{ | ||
this.$emit('updateColor', color); | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<p class="mb-2 text-gray-600 capitalize">suggestions</p> | ||
|
||
<div class="space-x-4 overflow-y-auto whitespace-nowrap"> | ||
<button v-for="color in colors" :key="color" | ||
:class="'bg-' + color + '-700' + ' ' + 'hover:bg-' + color + '-600'" | ||
class="inline w-10 h-10 rounded-md focus:outline-none" | ||
@click="updateColor(color)" | ||
> | ||
</button> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'Deafult Gradients', | ||
data() { | ||
return { | ||
colors: ['blue-gray', 'gray', 'true-gray', 'warm-gray', 'lime', 'green', 'teal', 'cyan', 'light-blue', 'blue', 'indigo', 'purple', 'fuchsia', 'red', 'orange', 'yellow', 'pink', 'rose'], | ||
} | ||
}, | ||
methods: { | ||
updateColor(color) | ||
{ | ||
this.$emit('updateColor', color); | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<p class="mb-2 text-gray-600 capitalize">Directions </p> | ||
|
||
<select class="w-full h-10 text-gray-800 border-gray-200 rounded-lg focus:border-teal-500 focus:ring focus:ring-primary focus:ring-opacity-40" | ||
v-model="direction" | ||
@change="updateDirection" | ||
> | ||
<option value="bg-gradient-to-t">To Top</option> | ||
<option value="bg-gradient-to-tr">To Top Right</option> | ||
<option value="bg-gradient-to-r">To Right</option> | ||
<option value="bg-gradient-to-br">To Bottom Right</option> | ||
<option value="bg-gradient-to-b">To Bottom</option> | ||
<option value="bg-gradient-to-bl">To Bottom Left</option> | ||
<option value="bg-gradient-to-l">To Left</option> | ||
<option value="bg-gradient-to-tl">To Top Left</option> | ||
</select> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'Directions', | ||
data() { | ||
return { | ||
direction: 'bg-gradient-to-r', | ||
} | ||
}, | ||
methods: { | ||
updateDirection() { | ||
this.$emit('updateDirection', this.direction); | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<template> | ||
<div class="container px-6 mx-auto"> | ||
<div class="flex flex-col items-center border-t border-gray-200"> | ||
<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> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'Footer', | ||
} | ||
</script> |
Oops, something went wrong.