Skip to content

Instantly share code, notes, and snippets.

@alexdisdier
alexdisdier / sampleREADME.md
Created August 15, 2018 13:32 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

Keybase proof

I hereby claim:

  • I am alexdisdier on github.
  • I am alexdisdier (https://keybase.io/alexdisdier) on keybase.
  • I have a public key ASA11Io6WN_TfH-zf9qD4Qmh3_YGjVKa_8JCtChgvGVe2Ao

To claim this, I am signing this object:

@alexdisdier
alexdisdier / base.css
Created March 3, 2020 19:28
This file resets some css rules.
:root {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
box-sizing: border-box;
font-size: 18px;
font-style: normal;
font-weight: normal;
text-align: left;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
@alexdisdier
alexdisdier / config.js
Last active March 3, 2020 20:00
Storybook configuration file (version 5.3.14)
import React from "react";
import { addReadme } from 'storybook-readme';
import { create } from '@storybook/theming';
import { addDecorator, addParameters, configure } from "@storybook/react";
import { ThemeProvider } from "react-jss";
import theme from "../src/style/globalStyle";
import '../src/style/base.css';
const basicTheme = create({
@alexdisdier
alexdisdier / index.tsx
Last active March 6, 2020 05:38
A simple react button in typescript using react-jss for styling
import * as React from 'react';
import useStyles from './button.style';
export type Props = {
children: React.ReactNode;
onClick?: () => void;
color?: string;
type?: string;
disabled?: boolean;
@alexdisdier
alexdisdier / button.style.ts
Last active March 10, 2020 05:21
A basic react button stylesheet using react-jss
import { createUseStyles } from 'react-jss';
export default createUseStyles((theme: any) => ({
root: {
color: (props: { color: string }) => props.color || theme.colorPrimary,
backgroundColor: 'white',
borderWidth: 1,
borderColor: (props: { color: string }) =>
props.color || theme.colorPrimary,
padding: '15px 32px',
@alexdisdier
alexdisdier / button.stories.tsx
Last active March 6, 2020 05:55
A react button sample story
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, text, boolean, color } from '@storybook/addon-knobs';
import { action } from '@storybook/addon-actions';
import README from './README.md';
import Button from '.';
const stories = storiesOf('Button', module);
@alexdisdier
alexdisdier / button.test.tsx
Last active March 6, 2020 05:38
A react button sample test using @testing-library/react
import React from 'react';
import { fireEvent, render } from '@testing-library/react';
import Button, { Props } from '.';
describe('Button', () => {
let props: Props;
beforeEach(() => {
props = {
@alexdisdier
alexdisdier / settings.json
Created March 6, 2020 05:41
VSCODE User settings
// VSCODE Extensions installed: Bracket Pair Colorizer, Docker, ESLint, Fix JSON, Git Blame, GraphQl, Material Icon Theme, npm intellisense
{
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 16,
"editor.wordWrap": "on",
"editor.tabSize": 2,
"editor.autoClosingBrackets": "always",
"editor.autoClosingQuotes": "always",
"editor.detectIndentation": true,
"editor.formatOnSave": true,
@alexdisdier
alexdisdier / .eslintrc.js
Created March 6, 2020 22:05
Boilerplate eslint config for CRA typescript
module.exports = {
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
parser: '@typescript-eslint/parser',
extends: ['airbnb', 'prettier', 'prettier/react', 'prettier/standard'],