-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
828ee70
commit 88ca5bb
Showing
22 changed files
with
297 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<script setup lang="ts"> | ||
import Gallery from "../components/Gallery.vue"; | ||
|
||
const beginner = [ | ||
{ | ||
href: "/basics/read", | ||
src: "images/read.png", | ||
caption: "Read / Load", | ||
desc: "How to read/load a GeoRegion into the workspace." | ||
}, | ||
{ | ||
href: "/basics/create", | ||
src: "images/create.png", | ||
caption: "Create", | ||
desc: "How to create a user-defined GeoRegion." | ||
}, | ||
{ | ||
href: "/basics/shape", | ||
src: "images/shape.png", | ||
caption: "Shape Properties", | ||
desc: "Retrieving the Shape of a GeoRegion" | ||
}, | ||
{ | ||
href: "/basics/tables", | ||
src: "images/list.png", | ||
caption: "Tables", | ||
desc: "Listing existing GeoRegions in Table Format" | ||
} | ||
]; | ||
|
||
const predefined = [ | ||
{ | ||
href: "/basics/predefined/sets", | ||
src: "images/sets.png", | ||
caption: "Available Datasets", | ||
desc: "Different Predefined Datasets in GeoRegions.jl" | ||
}, | ||
{ | ||
href: "/basics/predefined/listall", | ||
src: "images/listall.png", | ||
caption: "All Predefined GeoRegions", | ||
desc: "Listing out all predefined GeoRegions in GeoRegions.jl" | ||
} | ||
]; | ||
</script> | ||
|
||
# The Basics | ||
|
||
<Gallery :images="beginner" /> | ||
|
||
## Predefined GeoRegions | ||
|
||
<Gallery :images="predefined" /> |
2 changes: 1 addition & 1 deletion
2
docs/src/basics/read/predefined.md → docs/src/basics/predefined/datasets.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!-- https://codepen.io/heyDante/pen/bxEYOw --> | ||
|
||
<script setup lang="ts"> | ||
import GalleryImage, { type Props } from './GalleryImage.vue'; | ||
defineProps<{ | ||
images: Props[]; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<div class="gallery-image"> | ||
<GalleryImage v-for="image in images" v-bind="image" /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.heading { | ||
text-align: center; | ||
font-size: 2em; | ||
letter-spacing: 1px; | ||
padding: 40px; | ||
color: white; | ||
} | ||
.gallery-image { | ||
padding: 20px; | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
} | ||
.gallery-image :deep(img) { | ||
height: 350px; | ||
width: 250px; | ||
transform: scale(1); | ||
transition: transform 0.4s ease; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<script setup lang="ts"> | ||
import { withBase } from 'vitepress' | ||
export interface Props { | ||
href: string; | ||
src: string; | ||
caption: string; | ||
desc: string; | ||
} | ||
defineProps<Props>(); | ||
</script> | ||
|
||
<template> | ||
<div class="img-box"> | ||
<a :href="href"> | ||
<img :src="withBase(src)" height="150px" alt=""> | ||
<div class="transparent-box1"> | ||
<div class="caption"> | ||
<h2>{{ caption }}</h2> | ||
</div> | ||
</div> | ||
<div class="transparent-box2"> | ||
<div class="subcaption"> | ||
<p class="opacity-low">{{ desc }}</p> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.img-box { | ||
box-sizing: content-box; | ||
border-radius: 14px; | ||
margin: 20px; | ||
height: 350px; | ||
width: 250px; | ||
overflow: hidden; | ||
display: inline-block; | ||
color: white; | ||
position: relative; | ||
background-color: transparent; | ||
border: 2px solid var(--vp-c-bg-alt); | ||
} | ||
.img-box h2 { | ||
border-top: 0; | ||
} | ||
.img-box img { | ||
height: 100%; | ||
width: 100%; | ||
object-fit: cover; | ||
opacity: 0.3; | ||
transition: transform 0.3s ease, opacity 0.3s ease; | ||
} | ||
.caption { | ||
position: absolute; | ||
bottom: 30px; | ||
color: var(--vp-c-text-1); | ||
left: 10px; | ||
opacity: 1; | ||
transition: transform 0.3s ease, opacity 0.3s ease; | ||
} | ||
.subcaption { | ||
position: absolute; | ||
bottom: 5px; | ||
color: var(--vp-c-text-1); | ||
left: 10px; | ||
opacity: 0; | ||
transition: transform 0.3s ease, opacity 0.3s ease; | ||
} | ||
.transparent-box1 { | ||
height: 250px; | ||
width: 250px; | ||
background-color: transparent; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
transition: background-color 0.3s ease; | ||
} | ||
.transparent-box2 { | ||
height: 100px; | ||
width: 250px; | ||
background-color: transparent; | ||
position: absolute; | ||
top: 250px; | ||
left: 0; | ||
transition: background-color 0.3s ease; | ||
} | ||
.img-box:hover img { | ||
transform: scale(1.1); | ||
} | ||
.img-box:hover .transparent-box1 { | ||
background-color: var(--vp-c-bg-alt); | ||
} | ||
.img-box:hover .transparent-box2 { | ||
background-color: var(--vp-c-bg-alt); | ||
} | ||
.img-box:hover .caption { | ||
transform: translateY(-20px); | ||
opacity: 1; | ||
} | ||
.img-box:hover .subcaption { | ||
transform: translateY(-20px); | ||
opacity: 1; | ||
} | ||
.img-box:hover { | ||
border: 2px solid var(--vp-c-brand-light); | ||
cursor: pointer; | ||
} | ||
.caption>p:nth-child(2) { | ||
font-size: 0.8em; | ||
} | ||
.subcaption>p:nth-child(2) { | ||
font-size: 0.8em; | ||
} | ||
.opacity-low { | ||
opacity: 0.85; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<script setup lang="ts"> | ||
import Gallery from "../components/Gallery.vue"; | ||
|
||
const using = [ | ||
{ | ||
href: "/tutorials/using/isin", | ||
src: "images/isin.png", | ||
caption: "Is it In a GeoRegion?", | ||
desc: "Check if a Point/GeoRegion is inside a GeoRegion" | ||
}, | ||
{ | ||
href: "/tutorials/using/ison", | ||
src: "images/ison.png", | ||
caption: "Is it On a GeoRegion", | ||
desc: "Check if GeoRegion Shapes are Equal" | ||
}, | ||
{ | ||
href: "/tutorials/isequal", | ||
src: "images/isequal.png", | ||
caption: "Equivalence in GeoRegions.jl", | ||
desc: "Retrieving the Shape of a GeoRegion" | ||
} | ||
]; | ||
|
||
const projects = [ | ||
{ | ||
href: "/tutorials/projects/setup", | ||
src: "images/setup.png", | ||
caption: "Available Datasets", | ||
desc: "Different Predefined Datasets in GeoRegions.jl" | ||
}, | ||
{ | ||
href: "/tutorials/projects/addreadrm", | ||
src: "images/addreadrm.png", | ||
caption: "All Predefined GeoRegions", | ||
desc: "Listing out all predefined GeoRegions in GeoRegions.jl" | ||
}, | ||
{ | ||
href: "/tutorials/projects/files", | ||
src: "images/files.png", | ||
caption: "Tables", | ||
desc: "Listing existing GeoRegions in Table Format" | ||
} | ||
]; | ||
</script> | ||
|
||
# Tutorials | ||
|
||
## Using GeoRegions.jl | ||
|
||
<Gallery :images="using" /> | ||
|
||
## Predefined GeoRegions | ||
|
||
<Gallery :images="projects" /> |