Skip to content

Commit d4a0e16

Browse files
authored
Setup v2, NextJS, React, TS (#37)
* Initial Setup * Separate color & hex input * Separate color & hex input * Support RGB with Alpha * Add toggle for switching HEX & RGB * Color Picker & Themed toggle * Improve responsiveness * Clean Up * Fix repo url * Update NextJS & Setup GA * Remove console.log * Move to Gatsby * Fix filename * Correct page title
1 parent 0119e27 commit d4a0e16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+12216
-3059
lines changed

.gitignore

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
### Node ###
21
# Logs
32
logs
43
*.log
@@ -21,7 +20,7 @@ coverage
2120
# nyc test coverage
2221
.nyc_output
2322

24-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2524
.grunt
2625

2726
# Bower dependency directory (https://bower.io/)
@@ -30,14 +29,14 @@ bower_components
3029
# node-waf configuration
3130
.lock-wscript
3231

33-
# Compiled binary addons (https://nodejs.org/api/addons.html)
32+
# Compiled binary addons (http://nodejs.org/api/addons.html)
3433
build/Release
3534

3635
# Dependency directories
3736
node_modules/
3837
jspm_packages/
3938

40-
# TypeScript v1 declaration files
39+
# Typescript v1 declaration files
4140
typings/
4241

4342
# Optional npm cache directory
@@ -52,33 +51,19 @@ typings/
5251
# Output of 'npm pack'
5352
*.tgz
5453

55-
# Yarn Integrity file
56-
.yarn-integrity
57-
58-
# dotenv environment variables file
59-
.env
60-
.env.test
61-
62-
# parcel-bundler cache (https://parceljs.org/)
63-
.cache
64-
65-
# next.js build output
66-
.next
54+
# dotenv environment variable files
55+
.env*
6756

68-
# nuxt.js build output
69-
.nuxt
57+
# gatsby files
58+
.cache/
59+
public
7060

71-
# vuepress build output
72-
.vuepress/dist
61+
# Mac files
62+
.DS_Store
7363

74-
# Serverless directories
75-
.serverless/
76-
77-
# FuseBox cache
78-
.fusebox/
79-
80-
# DynamoDB Local files
81-
.dynamodb/
82-
83-
# Deployment
84-
build/
64+
# Yarn
65+
yarn-error.log
66+
.pnp/
67+
.pnp.js
68+
# Yarn Integrity file
69+
.yarn-integrity

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
10.15.1
1+
10.17.0

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
trailingComma: "es5"
2+
tabWidth: 2
3+
semi: true
4+
singleQuote: true

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

Gruntfile.js

Lines changed: 0 additions & 129 deletions
This file was deleted.

LICENSE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MIT License
22
=======================
33

4-
Copyright (c) 2014 Emmanouil Konstantinidis. http://www.iamemmanouil.com
4+
Copyright (c) 2020 Emmanouil Konstantinidis. https://www.manos.im/
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy
77
of this software and associated documentation files (the "Software"), to deal
@@ -20,4 +20,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2020
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2121
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2222
THE SOFTWARE.
23-

README.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
# UIColor.xyz [![Build Status](https://travis-ci.org/manosim/ui-color.svg?branch=master)](https://travis-ci.org/manosim/ui-color)
1+
# UIColor.io [![Build Status](https://travis-ci.org/manosim/ui-color.svg?branch=master)](https://travis-ci.org/manosim/ui-color)
22

3-
Website: [http://www.uicolor.xyz/](http://www.uicolor.xyz/)
3+
## Getting Started
44

5-
UIColor is a website used to convert HEX & RGB colors to **UIColor** for both **Objective-C** and **Swift** featuring a **colorpicker** and **copy to clipboard** functionality making things easier.
5+
First, run the development server:
66

7-
### Prerequisites
7+
```bash
8+
yarn start
9+
```
810

9-
- AngularJS
10-
- NPM
11-
- Grunt
12-
- Http-Server
11+
Open [http://localhost:8000](http://localhost:8000) with your browser to see the result.
1312

14-
### Development
13+
You can start editing the page by modifying `src/pages/index.js`. The page auto-updates as you edit the file.
1514

16-
You have to install **http-server** globally and then just watch and serve the files.
15+
## Learning Gatsby
1716

18-
npm install
19-
npm install http-server -g
20-
npm start
17+
Looking for more guidance? Full documentation for Gatsby lives [on the website](https://www.gatsbyjs.org/). Here are some places to start:
2118

22-
### License
19+
- **For most developers, we recommend starting with our [in-depth tutorial for creating a site with Gatsby](https://www.gatsbyjs.org/tutorial/).** It starts with zero assumptions about your level of ability and walks through every step of the process.
2320

24-
UIColor is licensed under the MIT Open Source license. For more information, see the LICENSE file in this repository.
21+
- **To dive straight into code samples, head [to our documentation](https://www.gatsbyjs.org/docs/).** In particular, check out the _Guides_, _API Reference_, and _Advanced Tutorials_ sections in the sidebar.

gatsby-config.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
module.exports = {
2+
siteMetadata: {
3+
title: `UIColor.io`,
4+
description: `UIColor.io is a website that helps you convert HEX & RGB colors to UIColor for Objective-C, Swift and Xamarin featuring a colorpicker and copy to clipboard functionality to make things easier.`,
5+
author: `@manosim_`,
6+
keywords: `uicolor,ui,color,colour,convert,converter,hex,rgb,rgba,swift,objective-c,objective,c,apple,ios`,
7+
},
8+
plugins: [
9+
`gatsby-plugin-typescript`,
10+
`gatsby-plugin-styled-components`,
11+
`gatsby-plugin-react-helmet`,
12+
{
13+
resolve: `gatsby-plugin-manifest`,
14+
options: {
15+
name: `UIColor.io`,
16+
short_name: `starter`,
17+
start_url: `/`,
18+
background_color: `#4A5899`,
19+
theme_color: `#4A5899`,
20+
display: `minimal-ui`,
21+
icon: `static/images/favicon.png`,
22+
},
23+
},
24+
// this (optional) plugin enables Progressive Web App + Offline functionality
25+
// To learn more, visit: https://gatsby.dev/offline
26+
// `gatsby-plugin-offline`,
27+
{
28+
resolve: 'gatsby-plugin-web-font-loader',
29+
options: {
30+
google: {
31+
families: ['Sen'],
32+
},
33+
},
34+
},
35+
{
36+
resolve: `gatsby-plugin-google-analytics`,
37+
options: {
38+
// The property ID; the tracking code won't be generated without it
39+
trackingId: 'UA-6891078-41',
40+
// Defines where to place the tracking script - `true` in the head and `false` in the body
41+
head: false,
42+
},
43+
},
44+
],
45+
};

0 commit comments

Comments
 (0)