-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
f0d2bcd
commit 70da12f
Showing
18 changed files
with
16,635 additions
and
99 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 |
---|---|---|
@@ -1,3 +1,31 @@ | ||
const html = '<script type="text/javascript">(function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter46142643 = new Ya.Metrika({ id:46142643, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true, trackHash:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/46142643" style="position:absolute; left:-9999px;" alt="" /></div></noscript>'; | ||
const html = `<!-- Yandex.Metrika counter --> | ||
<script type="text/javascript" > | ||
(function (d, w, c) { | ||
(w[c] = w[c] || []).push(function() { | ||
try { | ||
w.yaCounter48848744 = new Ya.Metrika({ | ||
id:48848744, | ||
clickmap:true, | ||
trackLinks:true, | ||
accurateTrackBounce:true, | ||
webvisor:true | ||
}); | ||
} catch(e) { } | ||
}); | ||
var n = d.getElementsByTagName("script")[0], | ||
s = d.createElement("script"), | ||
f = function () { n.parentNode.insertBefore(s, n); }; | ||
s.type = "text/javascript"; | ||
s.async = true; | ||
s.src = "https://mc.yandex.ru/metrika/watch.js"; | ||
if (w.opera == "[object Opera]") { | ||
d.addEventListener("DOMContentLoaded", f, false); | ||
} else { f(); } | ||
})(document, window, "yandex_metrika_callbacks"); | ||
</script> | ||
<noscript><div><img src="https://mc.yandex.ru/watch/48848744" style="position:absolute; left:-9999px;" alt="" /></div></noscript> | ||
<!-- /Yandex.Metrika counter -->`; | ||
|
||
module.exports = process.env.NODE_ENV === 'production' ? html : ''; |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
$size: 46px; | ||
|
||
.button { | ||
@include clickable-effects(); | ||
|
||
width: $size; | ||
height: $size; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 6px 20px; | ||
text-transform: uppercase; | ||
font-size: 18px; | ||
} |
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 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import classNames from 'classnames'; | ||
import styles from './styles.scss'; | ||
|
||
const getCurrentYear = () => new Date().getFullYear(); | ||
const homepageUrl = 'http://kamilmielnik.com/'; | ||
|
||
const Copyright = ({ className }) => ( | ||
<div className={classNames(styles.copyright, className)}> | ||
Copyright © {getCurrentYear()} | ||
| ||
<a className={styles.link} href={homepageUrl}> | ||
Kamil Mielnik | ||
</a> | ||
</div> | ||
); | ||
|
||
Copyright.propTypes = { | ||
className: PropTypes.string | ||
}; | ||
|
||
export default Copyright; |
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,3 @@ | ||
.copyright { | ||
text-align: center; | ||
} |
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,29 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import classNames from 'classnames'; | ||
import Copyright from 'components/copyright'; | ||
import styles from './styles.scss'; | ||
|
||
const email = '[email protected]'; | ||
|
||
const Footer = ({ className }) => ( | ||
<footer className={classNames(styles.footer, className)}> | ||
<div className={styles.row}> | ||
Design & Development | ||
</div> | ||
|
||
<Copyright className={styles.row} /> | ||
|
||
<div className={styles.row}> | ||
<a className={styles.link} href={`mailto:${email}`}> | ||
{email} | ||
</a> | ||
</div> | ||
</footer> | ||
); | ||
|
||
Footer.propTypes = { | ||
className: PropTypes.string | ||
}; | ||
|
||
export default Footer; |
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 @@ | ||
.footer { | ||
padding: 50px 0; | ||
background-color: $black; | ||
color: #aaa; | ||
box-shadow: $box-shadow; | ||
} | ||
|
||
.row { | ||
margin: 12px 0; | ||
text-align: center; | ||
|
||
&:first-child { | ||
margin-top: 0; | ||
} | ||
|
||
&:last-child { | ||
margin-bottom: 0; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import classNames from 'classnames'; | ||
import styles from './styles.scss'; | ||
|
||
const Page = ({ children }) => ( | ||
<div className={styles.page}> | ||
const Page = ({ children, className }) => ( | ||
<div className={classNames(styles.page, className)}> | ||
<div className={styles.pageContent}> | ||
{children} | ||
</div> | ||
</div> | ||
); | ||
|
||
Page.propTypes = { | ||
children: PropTypes.node.isRequired | ||
children: PropTypes.node.isRequired, | ||
className: PropTypes.string | ||
}; | ||
|
||
export default Page; |
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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import 'normalize.css'; | ||
@import '~normalize.css'; | ||
|
||
*, *:after, *:before { | ||
box-sizing: border-box; | ||
|
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
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