What this will cover
- Host a static website at S3
- Redirect
www.website.com
towebsite.com
- Website can be an SPA (requiring all requests to return
index.html
) - Free AWS SSL certs
- Deployment with CDN invalidation
describe('Button', () => { | |
let utils; | |
describe('with default props', () => { | |
let button; | |
beforeEach(() => { | |
utils = render(<Button text="Test button text" styleProps={{}} btnClick={btnClick} />); | |
button = utils.getByRole('button'); | |
}); |
// Authentication | |
const TeacherDashboard = () => <div>Teacher Dashboard</div>; | |
const StudentDashboard = () => <div>Student Dashboard</div>; | |
const Lesson = () => <div>Lesson page</div>; | |
// Wrap all components in Authentication component | |
// -> does request to get the `registrationStatus` | |
// -> sets a cookie | |
// -> reads from the cookie and places data into Redux store |
.rotate(@val) { | |
-ms-transform:rotate(0); | |
-webkit-transform: rotate(unit(@val, deg)); | |
transform: rotate(unit(@val, deg)); | |
/* IE6-IE8 */ | |
@radians: ~`parseInt("@{val}") * Math.PI * 2 / 360`; | |
@costheta: ~`Math.cos("@{radians}")`; | |
@sintheta: ~`Math.sin("@{radians}")`; | |
@negsintheta: ~`"@{sintheta}" * -1`; |
if (typeof JSON !== 'object') { | |
JSON = {}; | |
} | |
(function () { | |
'use strict'; | |
function f(n) { | |
// Format integers to have at least two digits. | |
return n < 10 ? '0' + n : n; |
{ | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"draw_white_space": "all", | |
"font_size": 11.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"rulers": | |
[ |