Skip to content

Commit e160aae

Browse files
committed
Amazing new enhancements 🔥
1 parent 26c50c2 commit e160aae

File tree

4 files changed

+170
-34
lines changed

4 files changed

+170
-34
lines changed

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
"noty": "^3.2.0-beta",
99
"react": "^16.8.6",
1010
"react-dom": "^16.8.6",
11-
"react-scripts": "2.1.8"
11+
"react-gh-corner": "^1.1.2",
12+
"react-github-btn": "^1.0.5",
13+
"react-helmet": "^5.2.0",
14+
"react-scripts": "2.1.8",
15+
"styled-components": "^4.2.0"
1216
},
1317
"scripts": {
1418
"start": "react-scripts start",

src/App.js

+28-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
11
import React, { Component } from 'react';
22
import Noty from 'noty'
3+
import GitHubButton from 'react-github-btn'
4+
import GHCorner from 'react-gh-corner';
5+
import styled from 'styled-components';
6+
// import {Helmet} from "react-helmet";
37

48
import './css/App.css';
59
import './css/noty.css'
610
import './css/bootstrap-v4.css'
711

812
class App extends Component {
13+
render() {
14+
return (
15+
<div className="App">
16+
<p className="github">
17+
<h1>React Notify</h1>
18+
</p>
19+
20+
<button class="success" onClick={(e)=>this.showSuccess(e)}><span>Success</span></button>
21+
<button class="error" onClick={(e)=>this.showError(e)}><span>Error</span></button>
22+
<button class="info" onClick={(e)=>this.showInfo(e)}><span>Info</span></button>
23+
<button class="warning" onClick={(e)=>this.showWarning(e)}><span>Warning</span></button>
24+
<GHCorner
25+
href="https://github.com/developerayo/react-notify"
26+
positon="top-right"
27+
bgColor="black"
28+
size={120}
29+
ariaLabel="View source on Github"/>
30+
<footer style={{marginTop: `160px`}}>
31+
<GitHubButton href="https://github.com/developerayo" data-size="large" aria-label="Follow @developerayo on GitHub">Follow @developerayo</GitHubButton>
32+
<GitHubButton href="https://github.com/developerayo/react-notify" data-size="large" data-show-count="true" aria-label="Star developerayo/react-notify on GitHub">Star</GitHubButton>
33+
<GitHubButton href="https://github.com/developerayo/react-notify/fork" data-size="large" aria-label="Fork developerayo/react-notify on GitHub">Fork</GitHubButton></footer>
34+
</div>
35+
);
36+
}
937
showSuccess(){
1038
new Noty({
1139
type:"success",
@@ -42,17 +70,6 @@ class App extends Component {
4270
timeout:"3000"
4371
}).show()
4472
}
45-
46-
render() {
47-
return (
48-
<div className="App">
49-
<button class="success" onClick={(e)=>this.showSuccess(e)}><span>Success</span></button>
50-
<button class="error" onClick={(e)=>this.showError(e)}><span>Error</span></button>
51-
<button class="info" onClick={(e)=>this.showInfo(e)}><span>Info</span></button>
52-
<button class="warning" onClick={(e)=>this.showWarning(e)}><span>Warning</span></button>
53-
</div>
54-
);
55-
}
5673
}
5774

5875
export default App;

src/css/App.css

+2-20
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,8 @@
22
text-align: center;
33
margin-top: 260px;
44
}
5-
6-
.App-logo {
7-
animation: App-logo-spin infinite 20s linear;
8-
height: 40vmin;
9-
pointer-events: none;
10-
}
11-
12-
.App-header {
13-
background-color: #282c34;
14-
min-height: 100vh;
15-
display: flex;
16-
flex-direction: column;
17-
align-items: center;
18-
justify-content: center;
19-
font-size: calc(10px + 2vmin);
20-
color: white;
21-
}
22-
23-
.App-link {
24-
color: #61dafb;
5+
.github {
6+
text-align: center;
257
}
268

279
@keyframes App-logo-spin {

yarn.lock

+135-2
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,23 @@
852852
resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7"
853853
integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw==
854854

855+
"@emotion/is-prop-valid@^0.7.3":
856+
version "0.7.3"
857+
resolved "https://registry.yarnpkg.com/@emotion/is-prop-valid/-/is-prop-valid-0.7.3.tgz#a6bf4fa5387cbba59d44e698a4680f481a8da6cc"
858+
integrity sha512-uxJqm/sqwXw3YPA5GXX365OBcJGFtxUVkB6WyezqFHlNe9jqUWH5ur2O2M8dGBz61kn1g3ZBlzUunFQXQIClhA==
859+
dependencies:
860+
"@emotion/memoize" "0.7.1"
861+
862+
"@emotion/[email protected]":
863+
version "0.7.1"
864+
resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.1.tgz#e93c13942592cf5ef01aa8297444dc192beee52f"
865+
integrity sha512-Qv4LTqO11jepd5Qmlp3M1YEjBumoTHcHFdgPTQ+sFlIL5myi/7xu/POwP7IRu6odBdmLXdtIs1D6TuW6kbwbbg==
866+
867+
"@emotion/unitless@^0.7.0":
868+
version "0.7.3"
869+
resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.3.tgz#6310a047f12d21a1036fb031317219892440416f"
870+
integrity sha512-4zAPlpDEh2VwXswwr/t8xGNDGg8RQiPxtxZ3qQEXyQsBV39ptTdESCjuBvGze1nLMVrxmTIKmnO/nAV8Tqjjzg==
871+
855872
"@mrmlnc/readdir-enhanced@^2.2.1":
856873
version "2.2.1"
857874
resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde"
@@ -1669,6 +1686,21 @@ babel-plugin-named-asset-import@^0.3.1:
16691686
resolved "https://registry.yarnpkg.com/babel-plugin-named-asset-import/-/babel-plugin-named-asset-import-0.3.1.tgz#5ec13ec446d0a1e5bb6c57a1f94c9cdedb0c50d6"
16701687
integrity sha512-vzZlo+yEB5YHqI6CRRTDojeT43J3Wf3C/MVkZW5UlbSeIIVUYRKtxaFT2L/VTv9mbIyatCW39+9g/SZolvwRUQ==
16711688

1689+
"babel-plugin-styled-components@>= 1":
1690+
version "1.10.0"
1691+
resolved "https://registry.yarnpkg.com/babel-plugin-styled-components/-/babel-plugin-styled-components-1.10.0.tgz#ff1f42ad2cc78c21f26b62266b8f564dbc862939"
1692+
integrity sha512-sQVKG8irFXx14ZfaK1bBePirfkacl3j8nZwSZK+ZjsbnadRHKQTbhXbe/RB1vT6Vgkz45E+V95LBq4KqdhZUNw==
1693+
dependencies:
1694+
"@babel/helper-annotate-as-pure" "^7.0.0"
1695+
"@babel/helper-module-imports" "^7.0.0"
1696+
babel-plugin-syntax-jsx "^6.18.0"
1697+
lodash "^4.17.10"
1698+
1699+
babel-plugin-syntax-jsx@^6.18.0:
1700+
version "6.18.0"
1701+
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
1702+
integrity sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=
1703+
16721704
babel-plugin-syntax-object-rest-spread@^6.13.0, babel-plugin-syntax-object-rest-spread@^6.8.0:
16731705
version "6.13.0"
16741706
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
@@ -2135,6 +2167,11 @@ camelcase@^5.0.0:
21352167
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.2.0.tgz#e7522abda5ed94cc0489e1b8466610e88404cf45"
21362168
integrity sha512-IXFsBS2pC+X0j0N/GE7Dm7j3bsEBp+oTpb7F50dwEVX7rf3IgwO9XatnegTsDtniKCUtEJH4fSU6Asw7uoVLfQ==
21372169

2170+
camelize@^1.0.0:
2171+
version "1.0.0"
2172+
resolved "https://registry.yarnpkg.com/camelize/-/camelize-1.0.0.tgz#164a5483e630fa4321e5af07020e531831b2609b"
2173+
integrity sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=
2174+
21382175
caniuse-api@^3.0.0:
21392176
version "3.0.0"
21402177
resolved "https://registry.yarnpkg.com/caniuse-api/-/caniuse-api-3.0.0.tgz#5e4d90e2274961d46291997df599e3ed008ee4c0"
@@ -2655,6 +2692,11 @@ css-blank-pseudo@^0.1.4:
26552692
dependencies:
26562693
postcss "^7.0.5"
26572694

2695+
css-color-keywords@^1.0.0:
2696+
version "1.0.0"
2697+
resolved "https://registry.yarnpkg.com/css-color-keywords/-/css-color-keywords-1.0.0.tgz#fea2616dc676b2962686b3af8dbdbe180b244e05"
2698+
integrity sha1-/qJhbcZ2spYmhrOvjb2+GAskTgU=
2699+
26582700
[email protected], css-color-names@^0.0.4:
26592701
version "0.0.4"
26602702
resolved "https://registry.yarnpkg.com/css-color-names/-/css-color-names-0.0.4.tgz#808adc2e79cf84738069b646cb20ec27beb629e0"
@@ -2735,6 +2777,15 @@ css-selector-tokenizer@^0.7.0:
27352777
fastparse "^1.1.1"
27362778
regexpu-core "^1.0.0"
27372779

2780+
css-to-react-native@^2.2.2:
2781+
version "2.3.0"
2782+
resolved "https://registry.yarnpkg.com/css-to-react-native/-/css-to-react-native-2.3.0.tgz#bf80d24ec4a08e430306ef429c0586e6ed5485f7"
2783+
integrity sha512-IhR7bNIrCFwbJbKZOAjNDZdwpsbjTN6f1agXeELHDqg1wHPA8c2QLruttKOW7hgMGetkfraRJCIEMrptifBfVw==
2784+
dependencies:
2785+
camelize "^1.0.0"
2786+
css-color-keywords "^1.0.0"
2787+
postcss-value-parser "^3.3.0"
2788+
27382789
27392790
version "1.0.0-alpha.28"
27402791
resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.0.0-alpha.28.tgz#8e8968190d886c9477bc8d61e96f61af3f7ffa7f"
@@ -3625,6 +3676,11 @@ execa@^1.0.0:
36253676
signal-exit "^3.0.0"
36263677
strip-eof "^1.0.0"
36273678

3679+
exenv@^1.2.1:
3680+
version "1.2.2"
3681+
resolved "https://registry.yarnpkg.com/exenv/-/exenv-1.2.2.tgz#2ae78e85d9894158670b03d47bec1f03bd91bb9d"
3682+
integrity sha1-KueOhdmJQVhnCwPUe+wfA72Ru50=
3683+
36283684
exit@^0.1.2:
36293685
version "0.1.2"
36303686
resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c"
@@ -4176,6 +4232,11 @@ getpass@^0.1.1:
41764232
dependencies:
41774233
assert-plus "^1.0.0"
41784234

4235+
github-buttons@^2.2.9:
4236+
version "2.2.9"
4237+
resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.2.9.tgz#fb426fa469a2050a1c5d69b6413da0d1537f235b"
4238+
integrity sha512-G/UGx6GKUL3747gTUULGGqWDjKANVbLCnCHdYMqf1iUGYxIj+wMHK9WG4e4J/V0bG03auI4o6bZJQf7IjHyE1A==
4239+
41794240
glob-base@^0.3.0:
41804241
version "0.3.0"
41814242
resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
@@ -6074,6 +6135,11 @@ mem@^4.0.0:
60746135
mimic-fn "^1.0.0"
60756136
p-is-promise "^2.0.0"
60766137

6138+
memoize-one@^5.0.0:
6139+
version "5.0.4"
6140+
resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.0.4.tgz#005928aced5c43d890a4dfab18ca908b0ec92cbc"
6141+
integrity sha512-P0z5IeAH6qHHGkJIXWw0xC2HNEgkx/9uWWBQw64FJj3/ol14VYdfVGWWr0fXfjhhv3TKVIqUq65os6O4GUNksA==
6142+
60776143
memory-fs@^0.4.0, memory-fs@~0.4.1:
60786144
version "0.4.1"
60796145
resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552"
@@ -7795,7 +7861,7 @@ prompts@^0.1.9:
77957861
kleur "^2.0.1"
77967862
sisteransi "^0.1.1"
77977863

7798-
prop-types@^15.6.2:
7864+
prop-types@^15.5.4, prop-types@^15.6.2:
77997865
version "15.7.2"
78007866
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.7.2.tgz#52c41e75b8c87e72b9d9360e0206b99dcbffa6c5"
78017867
integrity sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==
@@ -8032,6 +8098,33 @@ react-error-overlay@^5.1.4:
80328098
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-5.1.4.tgz#88dfb88857c18ceb3b9f95076f850d7121776991"
80338099
integrity sha512-fp+U98OMZcnduQ+NSEiQa4s/XMsbp+5KlydmkbESOw4P69iWZ68ZMFM5a2BuE0FgqPBKApJyRuYHR95jM8lAmg==
80348100

8101+
react-gh-corner@^1.1.2:
8102+
version "1.1.2"
8103+
resolved "https://registry.yarnpkg.com/react-gh-corner/-/react-gh-corner-1.1.2.tgz#f6b7ba9b83ab7f47f314d8e04fcdb529b5707a03"
8104+
integrity sha1-9re6m4Orf0fzFNjgT821KbVwegM=
8105+
8106+
react-github-btn@^1.0.5:
8107+
version "1.0.5"
8108+
resolved "https://registry.yarnpkg.com/react-github-btn/-/react-github-btn-1.0.5.tgz#03ee7c6cd51f04ef940543b5ec247fbe4fe09a05"
8109+
integrity sha512-wE3s2e3Rrs6I9n2TDdBSUzTQXJy68EetFBxrYPosAVp/OSP5DwI9u/npf/Eu0/Uww1pTh60yvYO2wOS63HihkQ==
8110+
dependencies:
8111+
github-buttons "^2.2.9"
8112+
8113+
react-helmet@^5.2.0:
8114+
version "5.2.0"
8115+
resolved "https://registry.yarnpkg.com/react-helmet/-/react-helmet-5.2.0.tgz#a81811df21313a6d55c5f058c4aeba5d6f3d97a7"
8116+
integrity sha1-qBgR3yExOm1VxfBYxK66XW89l6c=
8117+
dependencies:
8118+
deep-equal "^1.0.1"
8119+
object-assign "^4.1.1"
8120+
prop-types "^15.5.4"
8121+
react-side-effect "^1.1.0"
8122+
8123+
react-is@^16.6.0:
8124+
version "16.8.6"
8125+
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
8126+
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==
8127+
80358128
react-is@^16.8.1:
80368129
version "16.8.4"
80378130
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.4.tgz#90f336a68c3a29a096a3d648ab80e87ec61482a2"
@@ -8091,6 +8184,14 @@ [email protected]:
80918184
optionalDependencies:
80928185
fsevents "1.2.4"
80938186

8187+
react-side-effect@^1.1.0:
8188+
version "1.1.5"
8189+
resolved "https://registry.yarnpkg.com/react-side-effect/-/react-side-effect-1.1.5.tgz#f26059e50ed9c626d91d661b9f3c8bb38cd0ff2d"
8190+
integrity sha512-Z2ZJE4p/jIfvUpiUMRydEVpQRf2f8GMHczT6qLcARmX7QRb28JDBTpnM2g/i5y/p7ZDEXYGHWg0RbhikE+hJRw==
8191+
dependencies:
8192+
exenv "^1.2.1"
8193+
shallowequal "^1.0.1"
8194+
80948195
react@^16.8.6:
80958196
version "16.8.6"
80968197
resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe"
@@ -8692,6 +8793,11 @@ shallow-clone@^1.0.0:
86928793
kind-of "^5.0.0"
86938794
mixin-object "^2.0.1"
86948795

8796+
shallowequal@^1.0.1:
8797+
version "1.1.0"
8798+
resolved "https://registry.yarnpkg.com/shallowequal/-/shallowequal-1.1.0.tgz#188d521de95b9087404fd4dcb68b13df0ae4e7f8"
8799+
integrity sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==
8800+
86958801
shebang-command@^1.2.0:
86968802
version "1.2.0"
86978803
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
@@ -9122,6 +9228,23 @@ [email protected]:
91229228
loader-utils "^1.1.0"
91239229
schema-utils "^1.0.0"
91249230

9231+
styled-components@^4.2.0:
9232+
version "4.2.0"
9233+
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-4.2.0.tgz#811fbbec4d64c7189f6c7482b9eb6fefa7fefef7"
9234+
integrity sha512-L/LzkL3ZbBhqIVHdR7DbYujy4tqvTNRfc+4JWDCYyhTatI+8CRRQUmdaR0+ARl03DWsfKLhjewll5uNLrqrl4A==
9235+
dependencies:
9236+
"@babel/helper-module-imports" "^7.0.0"
9237+
"@emotion/is-prop-valid" "^0.7.3"
9238+
"@emotion/unitless" "^0.7.0"
9239+
babel-plugin-styled-components ">= 1"
9240+
css-to-react-native "^2.2.2"
9241+
memoize-one "^5.0.0"
9242+
prop-types "^15.5.4"
9243+
react-is "^16.6.0"
9244+
stylis "^3.5.0"
9245+
stylis-rule-sheet "^0.0.10"
9246+
supports-color "^5.5.0"
9247+
91259248
stylehacks@^4.0.0:
91269249
version "4.0.3"
91279250
resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-4.0.3.tgz#6718fcaf4d1e07d8a1318690881e8d96726a71d5"
@@ -9131,6 +9254,16 @@ stylehacks@^4.0.0:
91319254
postcss "^7.0.0"
91329255
postcss-selector-parser "^3.0.0"
91339256

9257+
stylis-rule-sheet@^0.0.10:
9258+
version "0.0.10"
9259+
resolved "https://registry.yarnpkg.com/stylis-rule-sheet/-/stylis-rule-sheet-0.0.10.tgz#44e64a2b076643f4b52e5ff71efc04d8c3c4a430"
9260+
integrity sha512-nTbZoaqoBnmK+ptANthb10ZRZOGC+EmTLLUxeYIuHNkEKcmKgXX1XWKkUBT2Ac4es3NybooPe0SmvKdhKJZAuw==
9261+
9262+
stylis@^3.5.0:
9263+
version "3.5.4"
9264+
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.5.4.tgz#f665f25f5e299cf3d64654ab949a57c768b73fbe"
9265+
integrity sha512-8/3pSmthWM7lsPBKv7NXkzn2Uc9W7NotcwGNpJaa3k7WMM1XDCA4MgT5k/8BIexd5ydZdboXtU90XH9Ec4Bv/Q==
9266+
91349267
supports-color@^2.0.0:
91359268
version "2.0.0"
91369269
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
@@ -9143,7 +9276,7 @@ supports-color@^3.1.2:
91439276
dependencies:
91449277
has-flag "^1.0.0"
91459278

9146-
supports-color@^5.1.0, supports-color@^5.3.0, supports-color@^5.4.0:
9279+
supports-color@^5.1.0, supports-color@^5.3.0, supports-color@^5.4.0, supports-color@^5.5.0:
91479280
version "5.5.0"
91489281
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f"
91499282
integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==

0 commit comments

Comments
 (0)