Skip to content

Instantly share code, notes, and snippets.

View artemartemov's full-sized avatar
👽
01110011 01110101 01110000

Artem Artemov artemartemov

👽
01110011 01110101 01110000
View GitHub Profile
@artemartemov
artemartemov / userChrome.css
Created September 21, 2020 21:52
chrome FF customization
:root {
--srf-color-primary: rgba(20, 20, 20, 0.6);
--srf-color-selection: #9DACDE60;
--srf-color-urlbar: rgba(20, 20, 20, 0.8);
}
/*
G E N E R A L
*/
@artemartemov
artemartemov / HomepageVideoEmbed.js
Last active June 9, 2020 14:12
Fullpage Backgroud Video: including all components and schemas for gatsby frontend and sanity.io backend respecitvely -- demo can be found on: https://cameronmichael.io/ (WIP)
// loader component
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import styled, { keyframes } from 'styled-components';
import LoadingIcon from 'react-feather/dist/icons/loader';
const spin = keyframes`
to {
transform: rotate(360deg);
}
@artemartemov
artemartemov / sanitySchemas.js
Last active December 15, 2020 16:43
Sanity Schema for Background Image Slider for Gatsby.js
// My indexPage.js schema is where I am including the slider --
export default {
name: 'indexPage',
type: 'document',
title: 'Homepage',
__experimental_actions: [/* 'create', */ 'update' /* 'delete', */, 'publish'],
fields: [
{
type: 'array',
name: 'bgImages',
@artemartemov
artemartemov / indexPage.js
Last active June 9, 2020 13:43
Background Image Slider for Gatsyb.js
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Img from 'gatsby-image';
import styled from 'styled-components';
const SlideContainer = styled.div`
transition: opacity 2s ease-in-out;
/* Sets the gatby image wrapper to be viewport height */
& .gatsby-image-wrapper {
height: 100vh;
@artemartemov
artemartemov / localSetup.md
Last active January 15, 2020 19:36
Beautifying and setting up local workflow

These are my workflow settings. Most information is included in here. If you run into any trouble setting this up, please ping me directly!


  • Make sure you are running on node version v10.16 and npm version 6.9
  • You can check to see if you are by pasting into your terminal
node -v && npm -v

@artemartemov
artemartemov / Index.js
Created May 23, 2019 16:56
image slider using gastby-image fluid
const IndexPage = ({ data, errors }) => {
// showSlides({ imageBgNodes });
if (errors) {
return (
<Layout>
<GraphQLErrorList errors={errors} />
</Layout>
);
}
@artemartemov
artemartemov / global-gitignore-dsstore.md
Last active October 21, 2018 20:53
Global .gitignore for removing .DS_Store cause it's annoying af
  1. make a global .gitignore file somewhere

echo .DS_Store >> ~/.gitignore_global

  1. tell git to use it for all repositories

git config --global core.excludesfile ~/.gitignore_global

@artemartemov
artemartemov / facsst-meetup-notes.md
Last active July 20, 2018 14:47
facsst performance meetup notes

Base64 increases critical rendering in your path

Notes:

After gzip Mixins and repetition are much smaller

Notes:

Keybase proof

I hereby claim:

  • I am artemartemov on github.
  • I am artemartemov (https://keybase.io/artemartemov) on keybase.
  • I have a public key ASAzhbTicwHDhB54Tda-cMT1Y6tfVthfUM2boZsKmWq4eAo

To claim this, I am signing this object: