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
.row { | |
display: flex; | |
} | |
/* 4 column layout */ | |
.column { | |
min-width: 18.75rem; /* 300px */ | |
width: 25%; | |
} |
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
$base-font-size: 16; | |
// strips away any unit from a value: e.g. "16px" => 16 | |
@function strip-unit($number) { | |
@if type-of($number) == 'number' and not unitless($number) { | |
@return $number / ($number * 0 + 1); | |
} | |
@return $number; | |
} |
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
.hero { | |
/* whatever hero styles you need */ | |
} | |
.hero__title { | |
margin-bottom: 3rem; | |
} | |
.hero__cta { | |
border-color: #ff02c9; |
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
import React from 'react'; | |
import Button from './Button'; | |
import './Hero.css'; | |
function Hero() { | |
return ( | |
<header className="hero"> | |
<h1 className="hero__title">Eric's Website</h1> | |
<p>Learn all about BEM</p> | |
<Button className="hero__cta">Learn more about BEM</Button> |
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
/* You probably don't want to do this... */ | |
import React from 'react'; | |
import './Hero.css'; | |
function Hero() { | |
return ( | |
<header className="hero"> | |
<h1 className="hero__title">Eric's Website</h1> | |
<p className="hero__tagline">Learn all about BEM</p> |
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
html { | |
box-sizing: border-box; | |
font-family: "Helvetica Neue", Helvetica , Arial, sans-serif; | |
} | |
*, *::before, *::after { | |
box-sizing: inherit; | |
} | |
h1 { |
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
import React from 'react'; | |
import Button from './Button'; | |
import './Hero.css'; | |
function Hero() { | |
return ( | |
<header className="hero"> | |
<h1>Eric's Website</h1> | |
<p>Learn all about BEM</p> | |
<Button>Learn more about BEM</Button> |