Skip to content

Commit d944ca5

Browse files
committed
docs: update website style and examples
1 parent 4186441 commit d944ca5

File tree

7 files changed

+10
-15
lines changed

7 files changed

+10
-15
lines changed

examples/basic-map/src/app.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, {FunctionComponent} from 'react';
1+
import React from 'react';
22
import {createRoot} from 'react-dom/client';
33

44
import {APIProvider, Map} from '@vis.gl/react-google-maps';
@@ -9,9 +9,10 @@ const API_KEY = process.env.GOOGLE_MAPS_API_KEY as string;
99
const App = () => (
1010
<APIProvider apiKey={API_KEY}>
1111
<Map
12-
zoom={10}
13-
center={{lat: 53.54992, lng: 10.00678}}
12+
zoom={3}
13+
center={{lat: 22.54992, lng: 0}}
1414
gestureHandling={'greedy'}
15+
disableDefaultUI={true}
1516
/>
1617
<ControlPanel />
1718
</APIProvider>

examples/basic-map/src/control-panel.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import * as React from 'react';
33
function ControlPanel() {
44
return (
55
<div className="control-panel">
6-
<h3>Example Template</h3>
6+
<h3>Basic Map</h3>
77
<p>
8-
Add a brief description of the example here and update the link below
8+
The simplest example possible, just rendering a google map with some
9+
settings adjusted.
910
</p>
1011
<div className="source-link">
1112
<a

website/src/components/home/styled.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,12 @@ export const GetStartedLink = styled.a`
6363
font-weight: bold;
6464
margin: 24px 0;
6565
padding: 0 4rem;
66-
pointer-events: all;
6766
display: inline-block;
6867
text-decoration: none;
6968
transition: background-color 250ms ease-in, color 250ms ease-in;
7069
border: solid 2px var(--ifm-color-primary);
7170
color: var(--ifm-color-gray-200);
72-
border-image: linear-gradient(
73-
to right,
74-
var(--ifm-color-gray-700) 0%,
75-
var(--ifm-color-gray-400) 100%
76-
);
77-
border-image-slice: 2;
71+
7872
&:visited {
7973
color: var(--ifm-color-gray-200);
8074
}

website/src/pages/index.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Layout from '@theme/Layout';
77
const HeroExample = styled.div`
88
background-image: url(images/hero.jpg);
99
background-size: cover;
10-
background-position: center;
10+
background-position: top center;
1111
height: 100%;
1212
`;
1313

@@ -36,7 +36,6 @@ const TextContainer = styled.div`
3636
hr {
3737
border: none;
3838
background: #e1e8f0;
39-
height: 1px;
4039
margin: 24px 0 0;
4140
width: 32px;
4241
height: 2px;

website/src/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
--ifm-color-gray-700: #6F8196;
2323
--ifm-color-gray-800: #485668;
2424
--ifm-color-gray-900: #2B3848;
25-
--ifm-color-black: #19202C
25+
--ifm-color-black: #19202C;
2626
--code-font-size: 95%;
2727
}
2828
main .container {

website/static/images/hero-sm.jpg

-9.84 KB
Loading

website/static/images/hero.jpg

276 KB
Loading

0 commit comments

Comments
 (0)