This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Flexbox Example</title> | |
<link type="text/css" rel="stylesheet" href="styles.css"> | |
<link href="https://fonts.googleapis.com/css?family=Rubik" rel="stylesheet"> | |
</head> | |
<body> | |
<div class="container"> | |
<div id="box1" class="box">#1</div> |
This file contains hidden or 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
.container { | |
display: flex; | |
background: #1c9dc5; | |
font-family: 'Rubik', sans-serif; | |
} | |
.box { | |
border: solid #333 2px; | |
background: #a8a8a8; | |
height: 150px; |
This file contains hidden or 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
.container { | |
display: flex; | |
} |
This file contains hidden or 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
.container { | |
display: flex; | |
background: #1c9dc5; | |
font-family: 'Rubik', sans-serif; | |
height: 200px; | |
} |
This file contains hidden or 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
.box { | |
border: solid #333 2px; | |
background: #a8a8a8; | |
width: 150px; | |
margin: 2px; | |
} |
This file contains hidden or 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
.container { | |
display: flex; | |
background: #1c9dc5; | |
font-family: 'Rubik', sans-serif; | |
} | |
.box { | |
border: solid #333 2px; | |
background: #a8a8a8; | |
height: 150px; |
This file contains hidden or 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
.container { | |
display: flex; | |
flex-wrap: wrap; | |
background: #1c9dc5; | |
font-family: 'Rubik', sans-serif; | |
height: 350px; | |
width: 400px; | |
} |
This file contains hidden or 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
#box1 { | |
order: 2; | |
} | |
#box2{ | |
order: 1; | |
} | |
#box3 { | |
order: 4; | |
} | |
#box4{ |
This file contains hidden or 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
const express = require('express'); | |
const app = express(); | |
const port = process.env.PORT || 5000; | |
// console.log that your server is up and running | |
app.listen(port, () => console.log(`Listening on port ${port}`)); | |
// create a GET route | |
app.get('/express_backend', (req, res) => { | |
res.send({ express: 'YOUR EXPRESS BACKEND IS CONNECTED TO REACT' }); |
This file contains hidden or 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, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
state = { | |
data: null | |
}; | |
componentDidMount() { |
OlderNewer