Skip to content

Commit

Permalink
Transferring URLs to an env file. Changed the font family, app icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-1293 committed Nov 27, 2022
1 parent c84b885 commit 325dd69
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 50 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# production
/build
.env

# misc
.DS_Store
Expand Down
Binary file modified public/favicon.ico
Binary file not shown.
35 changes: 6 additions & 29 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,20 @@
<!DOCTYPE html>
<html lang="en" class="h-100">
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<meta name="description" content="Todo Web site for note taking" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags 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`.
-->
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');
</style>
<title>Todoify</title>
</head>
<body class="h-100">
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root" class="h-100 d-flex flex-column"></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` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file modified public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/logo512.png
Binary file not shown.
9 changes: 2 additions & 7 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"short_name": "Todoify",
"name": "Todoify App",
"icons": [
{
"src": "favicon.ico",
Expand All @@ -11,11 +11,6 @@
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
Expand Down
4 changes: 1 addition & 3 deletions src/app/axiosClient.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import axios from 'axios'

const URL = 'http://192.168.88.26/php-yii2-todo/backend/web/v1/'

export default axios.create({
baseURL: URL,
baseURL: process.env.REACT_APP_API_URL,
headers: {
'Content-Type': 'application/json',
Pragma: 'no-cache',
Expand Down
14 changes: 4 additions & 10 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
:root {
* {
--primary: #0d6efd;
--dark: #000;
--light: #fff;
font-family: 'Roboto', sans-serif;
}

html,
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
height: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

.masonry-grid {
display: -webkit-box;
display: -ms-flexbox;
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ store.dispatch(setUserFromLocalStorage())
const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
<Provider store={store}>
<BrowserRouter>
<BrowserRouter basename={process.env.PUBLIC_URL}>
<Routes>
<Route path="*" element={<App />} />
</Routes>
Expand Down

0 comments on commit 325dd69

Please sign in to comment.