-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yiyuan Fang
authored and
Yiyuan Fang
committed
Jun 11, 2020
1 parent
d98cae3
commit 8ce8eaa
Showing
8 changed files
with
650 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const express = require ('express'); | ||
|
||
const app = express(); | ||
|
||
app.get('/', (req, res)=> { | ||
const user { | ||
name: 'Sally', | ||
hobby:'soccer' | ||
} | ||
res.send(user); | ||
}); | ||
|
||
app.get('/',(req,res) => { | ||
res.send("AHAHAH!"); | ||
}); | ||
|
||
app.listen(3000); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ function Basket (props) { | |
</div> | ||
|
||
</div> | ||
|
||
) | ||
} | ||
export default Basket; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
|
||
function Signin (){ | ||
return ( | ||
<main class="pa4 black-80"> | ||
<form class="measure center"> | ||
<fieldset id="sign_up" class="ba b--transparent ph0 mh0"> | ||
<legend class="f4 fw6 ph0 mh0">Sign In</legend> | ||
<div class="mt3"> | ||
<label class="db fw6 lh-copy f6" for="email-address">Email</label> | ||
<input class="pa2 input-reset ba bg-transparent hover-bg-black hover-white w-100" type="email" name="email-address" id="email-address" /> | ||
</div> | ||
<div class="mv3"> | ||
<label class="db fw6 lh-copy f6" for="password">Password</label> | ||
<input class="b pa2 input-reset ba bg-transparent hover-bg-black hover-white w-100" type="password" name="password" id="password" /> | ||
</div> | ||
<label class="pa0 ma0 lh-copy f6 pointer"><input type="checkbox"/> Remember me</label> | ||
</fieldset> | ||
<div class=""> | ||
<input class="b ph3 pv2 input-reset ba b--black bg-transparent grow pointer f6 dib" type="submit" value="Sign in" /> | ||
</div> | ||
<div class="lh-copy mt3"> | ||
<a href="#0" class="f6 link dim black db">Sign up</a> | ||
<a href="#0" class="f6 link dim black db">Forgot your password?</a> | ||
</div> | ||
</form> | ||
</main> | ||
); | ||
} | ||
|
||
export default Signin |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,3 @@ | |
|
||
} | ||
|
||
|
||
/*bg-light-yellow dib br4 pa1 ma3 grow */ |
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
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