Skip to content

Commit

Permalink
Update to tailwindcss v3 (#3)
Browse files Browse the repository at this point in the history
* Update to vite

* Update gradient Colors

* Update readme

* Delete text file
  • Loading branch information
khatabwedaa authored Oct 7, 2022
1 parent df335b5 commit 05773be
Show file tree
Hide file tree
Showing 22 changed files with 1,664 additions and 9,965 deletions.
23 changes: 12 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
.DS_Store
node_modules
/dist


# local env files
.env.local
.env.*.local

# Log files
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.vscode
.DS_Store
*.suo
*.ntvs*
*.njsproj
Expand Down
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar"]
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="public/gradinet-generator.png" alt="gradinet-generator">
<img src="public/gradinet-generator.png" alt="gradinet-generator"></p>

## Tailwind Components Gradient Generator
This repo content a Gradient Generator page from [tailwindcompnents.com](https://tailwindcomponents.com/gradient-generator/), Build with Vuejs.
Expand All @@ -23,18 +23,18 @@ yarn install

### Compiles and hot-reloads for development
```
yarn serve
yarn dev
```

### Compiles and minifies for production
```
yarn build
```

### Lints and fixes files
```
yarn lint
```
### Vue 3 + Vite

This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.

### Recommended IDE Setup

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
- [VS Code](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar)
5 changes: 0 additions & 5 deletions babel.config.js

This file was deleted.

22 changes: 10 additions & 12 deletions public/index.html → index.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
<!DOCTYPE html>
<html lang="">
<html lang="en">
<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:image" content="/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">
<meta name="twitter:description"
content="Create perfect gradients for your tailwind CSS sites easily with zero lines of code." />
<meta name="twitter:image" content="/gradinet-generator.png" />

<link rel="icon" href="/sm-logo.svg">
<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 -->
<script type="module" src="/src/main.js"></script>
</body>
</html>
50 changes: 13 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,23 @@
{
"name": "gradient-generator",
"version": "0.1.0",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@tailwindcss/forms": "^0.3.3",
"core-js": "^3.6.5",
"vue": "^3.0.0",
"@tailwindcss/forms": "^0.5.3",
"vue": "^3.2.37",
"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"
]
"@vitejs/plugin-vue": "^3.1.0",
"autoprefixer": "^10.4.12",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8",
"vite": "^3.1.0"
}
}
File renamed without changes.
Binary file removed public/favicon.ico
Binary file not shown.
19 changes: 19 additions & 0 deletions public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/sm-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/components/Colors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
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'],
colors: ['slate', 'gray', 'zinc', 'neutral', 'stone', 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'],
values: ['50', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/DefaultGradients.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
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'],
colors: ['slate', 'gray', 'zinc', 'neutral', 'stone', 'red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'],
}
},
Expand Down
6 changes: 3 additions & 3 deletions src/components/Generator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export default {
isVia: false,
step: 'from',
direction: 'bg-gradient-to-r',
from: 'from-teal-400',
via: 'via-teal-600',
to: 'to-teal-800',
from: 'from-teal-300',
via: 'via-teal-400',
to: 'to-teal-500',
isCopied: false,
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<header class="bg-white border-b">
<header class="bg-white">
<nav class="container flex items-center justify-between px-4 py-6 mx-auto">
<div class="flex items-center">
<a href="https://tailwindcomponents.com/">
Expand All @@ -9,7 +9,7 @@
<h1 class="flex items-center pl-2 ml-2 text-lg text-gray-600 border-l border-gray-400">Gradient <span class="flex items-center py-0.5 px-2 ml-2 text-xs font-bold text-white rounded-md bg-primary">Generator</span></h1>
</div>

<a href="https://github.com/tailwindcomponents/gradient-generator" class="text-gray-700 hover:text-primary" aria-label="Github">
<a href="https://github.com/tailwindcomponents/gradient-generator" class="text-gray-600 duration-300 transition-colors hover:text-primary" aria-label="Github">
<svg class="w-6 h-6 fill-current" viewBox="0 0 24 24" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createApp } from 'vue';
import VueClipboard from 'vue3-clipboard'
import App from './App.vue';
import './assets/app.css';
import "./main.css";

createApp(App).use(VueClipboard, {
autoSetContainer: true,
appendToBody: true,
}).mount('#app');
}).mount('#app');
Loading

0 comments on commit 05773be

Please sign in to comment.