Added CSS styles

This commit is contained in:
Kenneth Jannette
2018-07-27 21:21:03 -07:00
parent 7f5166b111
commit 304cb3457d
7 changed files with 1666 additions and 1677 deletions

View File

@@ -1,3 +0,0 @@
# How to contribute
The files in this repository are used in the course videos and are the starting point for all students. Because we want all students to have the same experience going through course, if your pull request alters any of the core files, then it (most likely) will _not_ be merged into the project.

3314
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -3,6 +3,7 @@
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"express": "^4.16.3",
"history": "^4.7.2",
"prop-types": "^15.5.8",
"react": "^15.5.4",

View File

@@ -7,27 +7,13 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:400,700">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:300,400,600,700">
<!--
Notice the use of %PUBLIC_URL% in the tag above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>MyReads</title>
</head>
<body>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start`.
To create a production bundle, use `npm run build`.
-->
</body>
</html>

View File

@@ -2,7 +2,7 @@
const api = "https://reactnd-books-api.udacity.com"
// Generate a unique token for storing your bookshelf data on the backend server.
// Generate a unique token
let token = localStorage.token
if (!token)
token = localStorage.token = Math.random().toString(36).substr(-8)

View File

@@ -76,6 +76,7 @@ class SearchPage extends Component {
</ol>
</div>
<div className="tags">
<p className="title-tag">Suggested search terms:</p>
<ul>
<li><span class="badge">Android</span></li>
<li><span class="badge">Art</span></li>

View File

@@ -12,7 +12,7 @@
padding: 5px 17px;
background: #f2f2f2;
font-size: 12px;
color: #8e8e8e;
color: #000000;
}
.tags > ul > li > span:hover {
@@ -20,6 +20,10 @@
padding: 5px 17px;
background: #ececec;
font-size: 12px;
color: #8e8e8e;
color: #000000;
}
.tags > .title-tag {
margin-left: 45px;
}