Skip to content

Commit 45fbcb2

Browse files
committed
Better website + link to live demos
1 parent f15edae commit 45fbcb2

File tree

4 files changed

+39
-17
lines changed

4 files changed

+39
-17
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
1010
> Includes bevy_dogoap which provides a neat Bevy integration of the dogoap library
1111
12+
### [Live Demos](https://victorb.github.io/dogoap)
13+
14+
[![Live Demo](./docs/images/live_demo.png)](https://victorb.github.io/dogoap)
15+
1216
## Documentation
1317

1418
- [`dogoap`](./crates/dogoap/README.md) docs - Standalone library for creation actions, states and goals to be used with the provided planner

docs/images/live_demo.png

53.4 KB
Loading

web-src/index.html

+4
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
</head>
88

99
<body>
10+
<div id="title">
11+
<div>Dogoap - WASM Examples</div>
12+
</div>
1013
<div id="menu">
1114
<a href="#cells">Cells / Quickstart</a>
1215
<a href="#miner">Miner / Longer plans</a>
16+
<a href="https://github.com/victorb/dogoap" class="right-aligned">Source Code / GitHub</a>
1317
</div>
1418

1519
<div id="wrapper">

web-src/style.css

+31-17
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
:root {
2-
--color1: rgba(0,0,0,0.9);
2+
--color1: rgba(0, 0, 0, 0.9);
33
}
44

55
body {
6-
background: linear-gradient(
7-
135deg,
8-
var(--color1) 0%,
9-
var(--color1) 49%,
10-
black 49%,
11-
black 51%,
12-
var(--color1) 51%,
13-
var(--color1) 100%
14-
) repeat;
6+
background: linear-gradient(135deg,
7+
var(--color1) 0%,
8+
var(--color1) 49%,
9+
black 49%,
10+
black 51%,
11+
var(--color1) 51%,
12+
var(--color1) 100%) repeat;
1513
background-size: 20px 20px;
1614
font-family: sans-serif;
1715
}
@@ -47,28 +45,46 @@ canvas {
4745
align-items: center;
4846
}
4947

48+
#title {
49+
font-size: 26px;
50+
margin-left: 10px;
51+
font-family: monospace;
52+
color: white;
53+
text-align: center;
54+
}
55+
5056
#loading {
5157
position: absolute;
5258
z-index: 0;
5359
font-size: 2em;
5460
}
5561

5662
#menu {
57-
height: 30px;
63+
height: 50px;
64+
display: flex;
65+
justify-content: flex-start;
66+
align-items: end;
67+
padding-left: 10px;
5868
}
5969

60-
a {
61-
margin: 40px;
70+
#menu a {
6271
font-size: 22px;
6372
color: rgba(255, 255, 255, 0.8);
6473
text-decoration: none;
74+
margin-right: 50px;
6575
}
6676

67-
a.active, a:hover {
77+
#menu a.active,
78+
#menu a:hover {
6879
color: rgba(255, 255, 255, 1.0);
6980
text-decoration: underline;
7081
}
7182

83+
a.right-aligned {
84+
margin-left: auto;
85+
margin-right: 10px !important;
86+
}
87+
7288
[class*="shj-lang-"] {
7389
margin: 0px;
7490
padding: 0px;
@@ -78,9 +94,7 @@ a.active, a:hover {
7894
font-size: 0.8em;
7995
background-color: rgba(0, 0, 0, 0.3);
8096
flex: 1;
81-
padding-top: 20px;
82-
padding-bottom: 20px;
8397
max-height: 90vh;
8498
overflow-y: scroll;
8599
margin-left: 20px;
86-
}
100+
}

0 commit comments

Comments
 (0)