Skip to content

Commit

Permalink
Updated the styling of the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
ronitjadhav committed Dec 12, 2024
1 parent 18e1564 commit 41ec70e
Show file tree
Hide file tree
Showing 4 changed files with 698 additions and 26 deletions.
147 changes: 121 additions & 26 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,126 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<title>OpenLayers Benchmark</title>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
crossorigin="anonymous"
/>
<link rel="stylesheet" type="text/css" href="/node_modules/ol/ol.css" />
<link rel="stylesheet" type="text/css" href="/theme/site.css" />
<link
rel="icon"
type="image/svg+xml"
href="/theme/img/logo-light.svg"
media="(prefers-color-scheme: light)"
/>
<link
rel="icon"
type="image/svg+xml"
href="/theme/img/logo-dark.svg"
media="(prefers-color-scheme: dark)"
/>
<style>
.cases {
display: block;
padding: 0.65rem;
height: 140px;
margin: 0.65rem 0;
overflow: auto;
}
.cases p.description {
font-size: smaller;
margin: 5px 0;
}
a.cases {
text-decoration: none;
}
a.cases:hover :first-child {
text-decoration: underline;
}
</style>
</head>
<body>
<header
class="navbar navbar-expand-md navbar-dark mb-3 px-3 py-0 fixed-top"
>
<a class="navbar-brand" href="/">
<img src="/theme/img/logo-dark.svg" width="70" height="70" alt="Logo" />
&nbsp;OpenLayers Benchmark
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#olmenu"
aria-controls="olmenu"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
</header>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<title>Benchmark Examples</title>
<link rel="stylesheet" href="./style.css">
</head>

<body>
<ul>
<li>
<a href="cases/polygon-rendering/">Polygon Rendering</a>
</li>
<li>
<a href="cases/point-rendering/">Point Rendering</a>
</li>
<li>
<a href="cases/line-rendering/">Line Rendering</a>
</li>
<li>
<a href="cases/vector-tiles-rendering/">Vector Tiles Rendering</a>
</li>
<li>
<a href="cases/filtering-shapes/">Filtering Shapes</a>
</li>
</ul>
</body>
<div id="app" class="container-fluid">
<div class="row mt-3">
<div
class="col-md-4 col-sm-6"
v-for="caseItem in cases"
:key="caseItem.link"
>
<a :href="caseItem.link" class="cases bg-light border rounded">
<strong>{{ caseItem.title }}</strong><br />
<small>({{ caseItem.link }})</small>
<p class="description">{{ caseItem.shortdesc }}</p>
</a>
</div>
</div>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script>
new Vue({
el: "#app",
data: {
cases: [
{
title: "Polygon Rendering",
link: "cases/polygon-rendering/",
shortdesc:
"Performance comparison of Canvas and WebGL for rendering polygon geometries.",
},
{
title: "Point Rendering",
link: "cases/point-rendering/",
shortdesc:
"Performance comparison of Canvas and WebGL for rendering point data.",
},
{
title: "Line Rendering",
link: "cases/line-rendering/",
shortdesc:
"Performance comparison of Canvas and WebGL for rendering line geometries.",
},
{
title: "Vector Tiles Rendering",
link: "cases/vector-tiles-rendering/",
shortdesc:
"Performance comparison of Canvas and WebGL for rendering vector tiles.",
},
{
title: "Filtering Shapes",
link: "cases/filtering-shapes/",
shortdesc:
"Performance comparison of Canvas and WebGL for filtering shapes.",
},
],
},
});
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
23 changes: 23 additions & 0 deletions theme/img/logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions theme/img/logo-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 41ec70e

Please sign in to comment.