Skip to content

Commit

Permalink
feat(tooling): bootstrap and sass
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Apr 15, 2022
1 parent 061a163 commit f2ddeaf
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 20 deletions.
37 changes: 37 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-scripts": "5.0.1",
"sass": "^1.50.0",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down
9 changes: 0 additions & 9 deletions src/App.css

This file was deleted.

4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Map from '@arcgis/core/Map';
import MapView from '@arcgis/core/views/MapView';
import React from 'react';
import './App.css';
import './App.scss';
import config from './services/config';

function App() {
Expand All @@ -12,7 +12,7 @@ function App() {
new MapView({ map, container: 'mapDiv', ...config.DEFAULT_EXTENT });
}, []);

return <div id="mapDiv"></div>;
return <div id="mapDiv" className="w-100 h-100"></div>;
}

export default App;
Empty file added src/App.scss
Empty file.
16 changes: 7 additions & 9 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@import '../node_modules/bootstrap/dist/css/bootstrap.css';
@import 'https://js.arcgis.com/4.23/@arcgis/core/assets/esri/themes/light/main.css';

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
html, body, #root {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}

0 comments on commit f2ddeaf

Please sign in to comment.