Skip to content

Commit

Permalink
Better website + link to live demos
Browse files Browse the repository at this point in the history
  • Loading branch information
victorb committed Aug 11, 2024
1 parent f15edae commit 45fbcb2
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 17 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
> Includes bevy_dogoap which provides a neat Bevy integration of the dogoap library
### [Live Demos](https://victorb.github.io/dogoap)

[![Live Demo](./docs/images/live_demo.png)](https://victorb.github.io/dogoap)

## Documentation

- [`dogoap`](./crates/dogoap/README.md) docs - Standalone library for creation actions, states and goals to be used with the provided planner
Expand Down
Binary file added docs/images/live_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions web-src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
</head>

<body>
<div id="title">
<div>Dogoap - WASM Examples</div>
</div>
<div id="menu">
<a href="#cells">Cells / Quickstart</a>
<a href="#miner">Miner / Longer plans</a>
<a href="https://github.com/victorb/dogoap" class="right-aligned">Source Code / GitHub</a>
</div>

<div id="wrapper">
Expand Down
48 changes: 31 additions & 17 deletions web-src/style.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
:root {
--color1: rgba(0,0,0,0.9);
--color1: rgba(0, 0, 0, 0.9);
}

body {
background: linear-gradient(
135deg,
var(--color1) 0%,
var(--color1) 49%,
black 49%,
black 51%,
var(--color1) 51%,
var(--color1) 100%
) repeat;
background: linear-gradient(135deg,
var(--color1) 0%,
var(--color1) 49%,
black 49%,
black 51%,
var(--color1) 51%,
var(--color1) 100%) repeat;
background-size: 20px 20px;
font-family: sans-serif;
}
Expand Down Expand Up @@ -47,28 +45,46 @@ canvas {
align-items: center;
}

#title {
font-size: 26px;
margin-left: 10px;
font-family: monospace;
color: white;
text-align: center;
}

#loading {
position: absolute;
z-index: 0;
font-size: 2em;
}

#menu {
height: 30px;
height: 50px;
display: flex;
justify-content: flex-start;
align-items: end;
padding-left: 10px;
}

a {
margin: 40px;
#menu a {
font-size: 22px;
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
margin-right: 50px;
}

a.active, a:hover {
#menu a.active,
#menu a:hover {
color: rgba(255, 255, 255, 1.0);
text-decoration: underline;
}

a.right-aligned {
margin-left: auto;
margin-right: 10px !important;
}

[class*="shj-lang-"] {
margin: 0px;
padding: 0px;
Expand All @@ -78,9 +94,7 @@ a.active, a:hover {
font-size: 0.8em;
background-color: rgba(0, 0, 0, 0.3);
flex: 1;
padding-top: 20px;
padding-bottom: 20px;
max-height: 90vh;
overflow-y: scroll;
margin-left: 20px;
}
}

0 comments on commit 45fbcb2

Please sign in to comment.