Skip to content

Commit

Permalink
Website fixes and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Aug 30, 2024
1 parent 5512e01 commit d5a1b60
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 91 deletions.
2 changes: 1 addition & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const {getDocusaurusConfig} = require('@vis.gl/docusaurus-website');

const config = getDocusaurusConfig({
projectName: 'mjolnir.js',
tagline: 'An event manager',
tagline: 'A modern event manager',
siteUrl: 'https://visgl.github.io/mjolnir.js',
repoUrl: 'https://github.com/visgl/mjolnir.js',

Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"dependencies": {
"@docusaurus/core": "^3.0.0",
"@vis.gl/docusaurus-website": "1.0.0-alpha.18",
"@vis.gl/docusaurus-website": "1.0.0-alpha.20",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
89 changes: 29 additions & 60 deletions website/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,10 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
import styled from 'styled-components';
import Layout from '@theme/Layout';

// import HeroExample from '../examples/home-demo';
const HeroExample = ({children}) => <div>{children}</div>;

const FeatureImage = styled.div`
position: absolute;
height: 100%;
width: 50%;
top: 0;
right: 0;
z-index: -1;
border-top: solid 200px transparent;
background-image: url(${props => props.src});
background-size: contain;
background-repeat: no-repeat;
background-position: right top;
@media screen and (max-width: 768px) {
display: none;
}
`;

const TextContainer = styled.div`
max-width: 800px;
padding: 64px 112px;
width: 70%;
font-size: 14px;
font-size: 16px;
h2 {
font: bold 32px/48px;
Expand All @@ -41,11 +19,13 @@ h3 {
margin: 16px 0 0;
position: relative;
}
h3 > img {
position: absolute;
top: -4px;
width: 36px;
left: -48px;
div {
display: flex;
align-items: center;
margin-top: 1em;
}
div > img {
margin-right: 1em;
}
hr {
border: none;
Expand All @@ -66,43 +46,32 @@ export default function IndexPage() {
const baseUrl = useBaseUrl('/');

return (
<Layout title="Home" description="deck.gl">
<Home HeroExample={HeroExample}>
<div style={{position: 'relative'}}>
<FeatureImage src={`${baseUrl}images/maps.jpg`} />
<TextContainer>
<h2>
A collection of math modules for Geospatial and 3D use cases.
</h2>
<hr className="short" />
<Layout title="Home" description="mjolnir.js">
<>
<Home />
<TextContainer>
<h2>
A dependency-free input handling and gesture recognition system
</h2>
<hr className="short" />

<h3>
<img src={`${baseUrl}images/icon-layers.svg`} />
Toolbox of 3D math modules
</h3>
<p></p>
<div>
<img src={`${baseUrl}images/icon-high-precision.svg`} />
Predictable behavior across browsers and input devices
</div>

<h3>
<img src={`${baseUrl}images/icon-high-precision.svg`} />
Matrices and vectors, bounding boxes, frustum culling etc
</h3>
<p></p>

<h3>
<img src={`${baseUrl}images/icon-basemap.webp`} />
Geospatial reprojection, gravity models, solar position, etc
</h3>
<p></p>
<div>
<img src={`${baseUrl}images/icon-typescript.svg`} />
Fully typed API
</div>

<h3>
<div>
<img src={`${baseUrl}images/icon-react.svg`} />
Strict TypeScript and run-time checks that detect bad data
</h3>
<p></p>
Treeshakable and SSR-ready ESM package
</div>

</TextContainer>
</div>
</Home>
</TextContainer>
</>
</Layout>
);
}
Binary file removed website/static/images/footer-pattern.gif
Binary file not shown.
Binary file removed website/static/images/header-bg.jpg
Binary file not shown.
Binary file removed website/static/images/icon-basemap.webp
Binary file not shown.
29 changes: 0 additions & 29 deletions website/static/images/icon-layers.svg

This file was deleted.

19 changes: 19 additions & 0 deletions website/static/images/icon-typescript.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d5a1b60

Please sign in to comment.