forked from remix-run/react-router
-
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.
Merge pull request remix-run#145 from bobeagan/examples-cleanup
update examples to be easier to play with
- Loading branch information
Showing
27 changed files
with
119 additions
and
52 deletions.
There are no files selected for viewing
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,9 @@ | ||
### React Router Examples | ||
|
||
In order to try out the examples, you need to follow these steps: | ||
|
||
1. Clone this repo | ||
1. Run `npm -g install webpack`, if you don't have it installed already | ||
1. Run `npm install` from the repo's root directory | ||
1. Run `./script/build-examples` from the repo's root directory | ||
1. Point your browser to the `index.html` location in this directory |
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,30 @@ | ||
.Image { | ||
position: relative; | ||
} | ||
|
||
.Image img { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 400; | ||
width: 400; | ||
background: gray; | ||
} | ||
|
||
.example-enter { | ||
opacity: 0.01; | ||
transition: opacity .5s ease-in; | ||
} | ||
|
||
.example-enter.example-enter-active { | ||
opacity: 1; | ||
} | ||
|
||
.example-leave { | ||
opacity: 1; | ||
transition: opacity .5s ease-in; | ||
} | ||
|
||
.example-leave.example-leave-active { | ||
opacity: 0.01; | ||
} |
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 |
---|---|---|
@@ -1,37 +1,8 @@ | ||
<!doctype html public "restroom"> | ||
<title>Animation Example</title> | ||
<link href="../app.css" rel="stylesheet"/> | ||
<style> | ||
.Image { | ||
position: relative; | ||
} | ||
|
||
.Image img { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 400; | ||
width: 400; | ||
background: gray; | ||
} | ||
|
||
.example-enter { | ||
opacity: 0.01; | ||
transition: opacity .5s ease-in; | ||
} | ||
|
||
.example-enter.example-enter-active { | ||
opacity: 1; | ||
} | ||
|
||
.example-leave { | ||
opacity: 1; | ||
transition: opacity .5s ease-in; | ||
} | ||
|
||
.example-leave.example-leave-active { | ||
opacity: 0.01; | ||
} | ||
</style> | ||
<link href="../global.css" rel="stylesheet"/> | ||
<link href="app.css" rel="stylesheet"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Animations</h1> | ||
<div id="example"/> | ||
<script src="../build/animations.js"></script> |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<!doctype html public "display of affection"> | ||
<title>Authentication Flow Example</title> | ||
<link rel="stylesheet" href="../app.css"/> | ||
<link rel="stylesheet" href="../global.css"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Auth Flow</h1> | ||
<div id="example"/> | ||
<script src="../build/auth-flow.js"></script> | ||
|
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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<!doctype html public "embarassment"> | ||
<title>Data Flow Example</title> | ||
<link href="../global.css" rel="stylesheet"/> | ||
<link href="app.css" rel="stylesheet"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Data Flow</h1> | ||
<div id="example"/> | ||
<script src="../build/data-flow.js"></script> | ||
|
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<!doctype html public "restroom"> | ||
<title>Dynamic Segments Example</title> | ||
<link href="../app.css" rel="stylesheet"/> | ||
<link href="../global.css" rel="stylesheet"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Dynamic Segments</h1> | ||
<div id="example"/> | ||
<script src="../build/dynamic-segments.js"></script> |
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 |
---|---|---|
|
@@ -15,3 +15,6 @@ a.active { | |
color: hsl(20, 50%, 50%); | ||
} | ||
|
||
.breadcrumbs a { | ||
text-decoration: none; | ||
} |
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 @@ | ||
<!doctype html> | ||
<title>React Router Examples</title> | ||
<link href="global.css" rel="stylesheet"/> | ||
<body> | ||
<h1>React Router Examples</h1> | ||
<ul> | ||
<li><a href="animations/index.html">Animations</a></li> | ||
<li><a href="auth-flow/index.html">Auth Flow</a></li> | ||
<li><a href="data-flow/index.html">Data Flow</a></li> | ||
<li><a href="dynamic-segments/index.html">Dynamic Segments</a></li> | ||
<li><a href="master-detail/index.html">Master Detail</a></li> | ||
<li><a href="partial-app-loading/index.html">Partial App Loading</a></li> | ||
<li><a href="query-params/index.html">Query Params</a></li> | ||
<li><a href="shared-root/index.html">Shared Root</a></li> | ||
<li><a href="simple-master-detail/index.html">Simple Master Detail</a></li> | ||
<li><a href="transitions/index.html">Transitions</a></li> | ||
</ul> |
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
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<!doctype html public "embarassment"> | ||
<title>Master Detail Example</title> | ||
<link href="../global.css" rel="stylesheet"/> | ||
<link href="app.css" rel="stylesheet"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Master Detail</h1> | ||
<div id="example"/> | ||
<script src="../build/master-detail.js"></script> |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<!doctype html public "intoxication"> | ||
<title>Partial App Loading Example</title> | ||
<link rel="stylesheet" href="../app.css"/> | ||
<link rel="stylesheet" href="../global.css"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Partial App Loading</h1> | ||
<div id="example"/> | ||
<script src="../build/partial-app-loading.js"></script> |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<!doctype html public "restroom"> | ||
<title>Query Params Example</title> | ||
<link href="../app.css" rel="stylesheet"/> | ||
<link href="../global.css" rel="stylesheet"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Query Params</h1> | ||
<div id="example"/> | ||
<script src="../build/query-params.js"></script> |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<!doctype html public "superawesome"> | ||
<title>Shared Root Example</title> | ||
<link rel="stylesheet" href="../app.css"/> | ||
<link rel="stylesheet" href="../global.css"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Shared Root</h1> | ||
<div id="example"/> | ||
<script src="../build/shared-root.js"></script> |
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
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<!doctype html public "embarassment"> | ||
<title>Simple Master Detail Example</title> | ||
<link href="../global.css" rel="stylesheet"/> | ||
<link href="app.css" rel="stylesheet"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Simple Master Detail</h1> | ||
<div id="example"/> | ||
<script src="../build/simple-master-detail.js"></script> |
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<!doctype html public "restroom"> | ||
<title>Transitions Example</title> | ||
<link href="../app.css" rel="stylesheet"/> | ||
<link href="../global.css" rel="stylesheet"/> | ||
<body> | ||
<h1 class="breadcrumbs"><a href="../index.html">React Router Examples</a> / Transitions</h1> | ||
<div id="example"/> | ||
<script src="../build/transitions.js"></script> |