devicons-react 1.0.9 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +0,0 @@
1
- import { Fragment } from 'react'
2
- import { FooterContainer, FooterLink } from './Style'
3
-
4
- const Footer = () => {
5
- return (
6
- <Fragment>
7
- <FooterContainer>
8
- <p>
9
- All Copyrights Reserved © 2021, Made With ❤{' '}
10
- <FooterLink href="https://mkabumattar.github.io/">
11
- MKAbuMattar
12
- </FooterLink>{' '}
13
- (under{' '}
14
- <FooterLink href="https://github.com/MKAbuMattar/devicons-react/blob/main/LICENSE">
15
- MIT License
16
- </FooterLink>
17
- )
18
- </p>
19
- </FooterContainer>
20
- </Fragment>
21
- )
22
- }
23
-
24
- export default Footer
@@ -1,19 +0,0 @@
1
- import styled from 'styled-components'
2
-
3
- export const FooterContainer = styled.footer`
4
- background-color: #fff;
5
- text-align: center;
6
- padding: 1em 0 2em 0;
7
- font-size: 0.8em;
8
- `
9
-
10
- export const FooterLink = styled.a`
11
- text-decoration: none;
12
- color: inherit;
13
- padding: 0.1em;
14
-
15
- &&:hover {
16
- color: #000;
17
- border-bottom: 2px solid #000;
18
- }
19
- `
@@ -1,101 +0,0 @@
1
- import { Fragment, useEffect } from 'react'
2
- import Link from 'next/link'
3
-
4
- import hljs from 'highlight.js'
5
- import javascript from 'highlight.js/lib/languages/javascript'
6
- hljs.registerLanguage('javascript', javascript)
7
-
8
- import {
9
- HeaderContainer,
10
- HeaderBox,
11
- HeaderTitleBox,
12
- HeaderTitle,
13
- HeaderInfo,
14
- HeaderLink,
15
- HeaderCard,
16
- HeaderCardInfo,
17
- HeaderCardTitle,
18
- HeaderArrowWaveBox,
19
- HeaderArrowWave,
20
- } from './Style'
21
-
22
- import { DeviconsReactOriginal } from 'devicons-react'
23
-
24
- const Header = () => {
25
- useEffect(() => {
26
- hljs.initHighlighting()
27
- }, [])
28
-
29
- return (
30
- <Fragment>
31
- <HeaderContainer>
32
- <HeaderBox>
33
- <HeaderTitleBox>
34
- <DeviconsReactOriginal size="60" />
35
- <HeaderTitle>
36
- Devicons <span>React</span>
37
- </HeaderTitle>
38
- </HeaderTitleBox>
39
- <HeaderInfo>
40
- Devicons React is a collection of icons that symbolize programming
41
- languages, design tools, and development software.
42
- </HeaderInfo>
43
-
44
- <HeaderArrowWaveBox>
45
- <Link href="#search">
46
- <a>
47
- <HeaderArrowWave>
48
- <span />
49
- <span />
50
- <span />
51
- </HeaderArrowWave>
52
- </a>
53
- </Link>
54
- </HeaderArrowWaveBox>
55
-
56
- <HeaderCard>
57
- <HeaderCardInfo>
58
- <HeaderCardTitle>Install package</HeaderCardTitle>
59
- </HeaderCardInfo>
60
- <pre>
61
- <code className="bash language-bash hljs">
62
- {`#npm
63
- npm install --save devicons-react
64
-
65
- #yarn
66
- yarn add devicons-react`}
67
- </code>
68
- </pre>
69
- </HeaderCard>
70
-
71
- <HeaderCard>
72
- <HeaderCardInfo>
73
- <HeaderCardTitle>Demo</HeaderCardTitle>
74
- </HeaderCardInfo>
75
- <pre>
76
- <code className="js hljs language-javascript">
77
- {`import { Fragment } from 'react'
78
- import { Aarch64Plain, ReactOriginal } from 'devicons-react'
79
- import DeviconsReactOriginal from 'devicons-react/dist/icon/deviconsreact-original'
80
-
81
- const App = () => {
82
- return (
83
- <Fragment>
84
- <Aarch64Plain />
85
- <ReactOriginal color="red" size="500" />
86
- <DeviconsReactOriginal />
87
- </Fragment>
88
- )
89
- }
90
-
91
- export default App`}
92
- </code>
93
- </pre>
94
- </HeaderCard>
95
- </HeaderBox>
96
- </HeaderContainer>
97
- </Fragment>
98
- )
99
- }
100
-
101
- export default Header
@@ -1,138 +0,0 @@
1
- import styled from 'styled-components'
2
-
3
- export const HeaderContainer = styled.header`
4
- background-color: #2d2d2d;
5
- `
6
-
7
- export const HeaderBox = styled.div`
8
- max-width: 550px;
9
- padding: 6em 2em;
10
- margin: 0 auto;
11
- `
12
-
13
- export const HeaderTitleBox = styled.div`
14
- display: flex;
15
- align-items: center;
16
- gap: 1rem;
17
- `
18
-
19
- export const HeaderTitle = styled.h1`
20
- margin: 0;
21
- font-size: 3em;
22
- text-align: center;
23
- color: #eeeeee;
24
-
25
- && span {
26
- font-size: 0.6em;
27
- opacity: 0.5;
28
- }
29
-
30
- @media only screen and (max-width: 512px) {
31
- font-size: 1.7em;
32
- }
33
- `
34
-
35
- export const HeaderInfo = styled.p`
36
- padding: 2em 0 0 0;
37
- margin: 0 auto;
38
- color: #eeeeee;
39
- `
40
-
41
- export const HeaderLink = styled.a`
42
- text-decoration: none;
43
- color: inherit;
44
- padding: 0.1em;
45
- cursor: pointer;
46
-
47
- &&:hover {
48
- border-bottom: 2px solid #eeeeee;
49
- }
50
- `
51
-
52
- export const HeaderCard = styled.div`
53
- display: flex;
54
- flex-direction: column;
55
- margin-top: 5em;
56
- max-width: 820px;
57
- border-radius: 5px;
58
- background-color: #fff;
59
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
60
- `
61
-
62
- export const HeaderCardInfo = styled.div`
63
- padding: 2.5em 3em;
64
- `
65
-
66
- export const HeaderCardTitle = styled.h4`
67
- margin: 0;
68
- font-size: 1.5em;
69
-
70
- &&:after {
71
- content: '';
72
- display: block;
73
- width: 100px;
74
- padding-top: 12px;
75
- border-bottom: 3px solid #2e2e2e;
76
- }
77
- `
78
-
79
- export const HeaderArrowWaveBox = styled.div`
80
- width: 100%;
81
- display: flex;
82
- flex-direction: column;
83
- align-items: center;
84
- margin-top: 2rem;
85
- `
86
-
87
- export const HeaderArrowWave = styled.div`
88
- display: inline-block;
89
- cursor: pointer;
90
- font-size: 0;
91
-
92
- && span {
93
- display: block;
94
- position: relative;
95
- height: 10px;
96
- width: 16px;
97
- opacity: 0.2;
98
-
99
- ::before,
100
- ::after {
101
- display: block;
102
- content: '';
103
- position: absolute;
104
- height: 2px;
105
- width: 12px;
106
- background-color: #d52128;
107
- }
108
-
109
- ::before {
110
- top: -2px;
111
- left: 0;
112
- transform-origin: left center;
113
- transform: rotate(45deg);
114
- }
115
-
116
- ::after {
117
- top: -2px;
118
- right: 0;
119
- transform-origin: right center;
120
- transform: rotate(-45deg);
121
- }
122
-
123
- :nth-child(1n) {
124
- animation: animate-arrow-wave 2s infinite;
125
- animation-delay: 0.25s;
126
- }
127
-
128
- :nth-child(2n) {
129
- animation: animate-arrow-wave 2s infinite;
130
- animation-delay: 0.5s;
131
- }
132
-
133
- :nth-child(3n) {
134
- animation: animate-arrow-wave 2s infinite;
135
- animation-delay: 0.75s;
136
- }
137
- }
138
- `
@@ -1,16 +0,0 @@
1
- export default {
2
- title: 'Devicons React',
3
- description:
4
- 'Devicons React is a collection of icons that symbolize programming languages, design tools, and development software.',
5
- openGraph: {
6
- type: 'website',
7
- locale: 'en_IE',
8
- url: 'https://devicons-react.netlify.app/',
9
- site_name: 'Devicons React',
10
- },
11
- twitter: {
12
- handle: '@mkabumattar',
13
- site: '@mkabumattar',
14
- cardType: 'summary_large_image',
15
- },
16
- }
@@ -1,11 +0,0 @@
1
- const withPWA = require('next-pwa')
2
- const runtimeCaching = require('next-pwa/cache')
3
-
4
- module.exports = withPWA({
5
- pwa: {
6
- dest: 'public',
7
- register: true,
8
- skipWaiting: true,
9
- runtimeCaching,
10
- },
11
- })