Skip to content

Instantly share code, notes, and snippets.

View SaraVieira's full-sized avatar
🤷‍♀️
open sourcy and shit

Sara Vieira SaraVieira

🤷‍♀️
open sourcy and shit
View GitHub Profile
<html>
<head>
<title>Theme Switcher</title>
<meta charset="UTF-8" />
<link href="src/style.css" />
</head>
<body>
<header>
<button id="theme">Change theme</button>
<fieldset>
{
"indent": "2",
"prettierOptions": {
"semi": 0
},
"readmeFile": "Readme.md",
"licenseFile": "License.md",
"name": "SaraVieira",
"github": "SaraVieira",
"url": "https://iamsaravieira.com",
CSS
Javascript
NodeJS
Performance
Inspirational
React
Story
UX
Design
import flex from "../../styles/flex-mixin";
import { red, blue, yellow } from "../../styles/variables.css";
:import {
-st-from: "../../styles/flex-mixin";
-st-default: flex;
-st-from: "../../styles/variables.css";
-st-named: red, blue, yellow;
}
.root {
-st-states: secondary, tertiary;
import React from "react"
import style from "./button.st.css"
export default (props) => (
<button
{...style(
"root",
{ secondary: props.secondary, tertiary: props.tertiary },
props
)}
:import {
-st-from: "../../styles/flex-mixin";
-st-default: flex;
}
.root {
-st-mixin: flex(center, center);
}
module.exports = flex = ([align = "flex-start", justify = "flex-start"]) => ({
display: "flex",
"align-items": align,
"justify-content": justify
})
docker run --rm -d -p 80:80 rick-morty-random-episode:latest
docker build --rm -f Dockerfile -t rick-morty-random-episode:latest .