Skip to content

Commit 0d593e2

Browse files
committed
showcase tweaks and branch graphic
1 parent 143015c commit 0d593e2

File tree

8 files changed

+36
-18
lines changed

8 files changed

+36
-18
lines changed

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ sass_repositories()
5959

6060
http_archive(
6161
name = "rules_blender",
62-
sha256 = "",
62+
sha256 = "3fa3c8de4172164563c5e8a98972d6b00e8e299a7266bc7a9ee2516546e71673",
6363
strip_prefix = "rules_blender-e0513aede99e98558f95ff2d6ba9b9f576b3a61f",
6464
urls = ["https://github.com/zaucy/rules_blender/archive/e0513aede99e98558f95ff2d6ba9b9f576b3a61f.zip"],
6565
)

src/app/docs/overview/overview.component.html

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,81 +51,87 @@ <h1 id="title">Documentation Overview</h1>
5151
<div class="grid grid-cols-1 sm:grid-cols-2 gap-x-10 gap-y-8">
5252
<ecsact-showcase
5353
[title]="'The Basics'"
54-
[description]="'Learn more about what drives Ecsact'"
55-
[img]="'assets/EcsactCode.png'">
54+
[description]="'Learn more about what drives Ecsact'">
55+
<div
56+
showcaseImage
57+
class="w-full h-full bg-branch bg-no-repeat bg-center bg-contain"></div>
58+
5659
<a
57-
class="btn text-secondary/50 bg-primary-bright"
60+
class="btn text-primary/50 bg-primary-bright whitespace-nowrap text-ellipsis overflow-hidden"
5861
routerLink="/docs/ecs">
5962
<span class="text-black">
6063
<span class="i48">school</span>
6164
What is ECS?
6265
</span>
6366
</a>
6467
<a
65-
class="btn text-secondary/50 bg-primary-bright"
68+
class="btn text-primary/50 bg-primary-bright whitespace-nowrap text-ellipsis overflow-hidden"
6669
routerLink="/docs/lang">
6770
<span class="text-black">
6871
<span class="i48">psychology</span>
6972
Language
7073
</span>
7174
</a>
7275
</ecsact-showcase>
76+
7377
<ecsact-showcase
7478
[title]="'Systems'"
7579
[description]="'Read up on how systems are applied'"
7680
[img]="'assets/EcsactCode.png'">
7781
<a
78-
class="btn text-secondary/50 bg-primary-bright"
82+
class="btn text-primary/50 bg-primary-bright whitespace-nowrap text-ellipsis overflow-hidden"
7983
routerLink="/docs/system-impl">
8084
<span class="text-black">
8185
<span class="i48">Settings</span>
8286
System Implementations
8387
</span>
8488
</a>
8589
<a
86-
class="btn text-secondary/50 bg-primary-bright"
90+
class="btn text-primary/50 bg-primary-bright whitespace-nowrap text-ellipsis overflow-hidden"
8791
routerLink="/docs/system-execution">
8892
<span class="text-black">
8993
<span class="i48">Engineering</span>
9094
System Execution
9195
</span>
9296
</a>
9397
</ecsact-showcase>
98+
9499
<ecsact-showcase
95100
[title]="'Unity Integration'"
96101
[description]="'Check out the official support for Ecsact with Unity'"
97102
[img]="'assets/EcsactCode.png'">
98103
<a
99-
class="btn text-secondary/50 bg-primary-bright"
104+
class="btn text-primary/50 bg-primary-bright whitespace-nowrap text-ellipsis overflow-hidden"
100105
routerLink="/docs/defaults">
101106
<span class="text-black">
102107
<span class="i48">library_books</span>
103108
Defaults Class
104109
</span>
105110
</a>
106111
<a
107-
class="btn text-secondary/50 bg-primary-bright"
112+
class="btn text-primary/50 bg-primary-bright whitespace-nowrap text-ellipsis overflow-hidden"
108113
routerLink="/docs/entities">
109114
<span class="text-black">
110115
<span class="i48">add_circle</span>
111116
Creating Entities
112117
</span>
113118
</a>
114119
</ecsact-showcase>
120+
115121
<ecsact-showcase
116122
[title]="'Runtime'"
117123
[description]="'Find out how the Runtime works'"
118124
[img]="'assets/EcsactCode.png'">
119125
<a
120-
class="btn text-secondary/50 bg-primary-bright"
126+
class="btn text-primary/50 bg-primary-bright whitespace-nowrap text-ellipsis overflow-hidden"
121127
routerLink="/docs/runtime">
122128
<span class="text-black">
123129
<span class="i48">memory</span>
124130
Runtime
125131
</span>
126132
</a>
127133
<a
128-
class="btn text-secondary/50 bg-primary-bright"
134+
class="btn text-primary/50 bg-primary-bright whitespace-nowrap text-ellipsis overflow-hidden"
129135
routerLink="/docs/runtime-implementations">
130136
<span class="text-black">
131137
<span class="i48">memory</span>

src/assets/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ filegroup(
55
srcs = glob(["**/*"]) + [
66
# renders are in the bazelignore so they must be manually specified here
77
"renders/ecsact-action-anim.webm",
8+
"renders/branch.png",
89
],
910
)

src/assets/renders/branch.png

142 KB
Loading
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<div class="flex flex-col bg-secondary/20 rounded-xl">
2-
<div>
3-
<img class="h-64 max-h-64 sm:h-80 sm:max-h-80 w-full" src="{{ img }}" />
1+
<div class="flex flex-col bg-secondary/20 rounded-lg shadow-lg h-full">
2+
<div class="h-64 md:h-80 w-full relative overflow-hidden">
3+
<ng-content select="[showcaseImage]"></ng-content>
44
</div>
5-
<div>
6-
<h2 class="px-4 light:text-black dark:text-white mb-2">{{ title }}</h2>
7-
<p class="light: text-black dark:text-white px-4 font-semibold text-lg">
5+
<div class="grow">
6+
<h2 class="px-4 text-black dark:text-white mb-2">{{ title }}</h2>
7+
<p class="text-black dark:text-white px-4 mb-2 font-semibold text-lg">
88
{{ description }}
99
</p>
1010
</div>
1111

1212
<div
13-
class="grid grid-flow-col sm:grid-flow-row grid-rows-2 sm:grid-rows-1 grid-cols-1 sm:grid-cols-2 gap-2 sm:gap-4 pb-2 px-2 grow justify-evenly auto-cols-max w-full">
13+
class="grid grid-flow-col md:grid-flow-row grid-rows-2 md:grid-rows-1 grid-cols-1 md:grid-cols-2 gap-2 md:gap-4 pb-6 px-4 justify-evenly auto-cols-max w-full">
1414
<ng-content></ng-content>
1515
</div>
1616
</div>

src/renders/BUILD.bazel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ blender_render(
1111
render_format = "WEBM",
1212
)
1313

14+
blender_render(
15+
name = "branch",
16+
blend_file = "branch.blend",
17+
render_format = "PNG",
18+
)
19+
1420
bzlws_copy(
1521
name = "copy_renders",
1622
srcs = [
23+
":branch",
1724
":ecsact-action-anim",
1825
],
1926
out = "src/assets/renders/{FILENAME}",

src/renders/branch.blend

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:4092d336af379d25c9acfb8a27b6e995ee3c7449776b92e68b8b2ab73de80f54
3+
size 1024376

src/tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ module.exports = {
1111
logoColor: 'url(external/ecsact_logo/ecsact-color.png)',
1212
'subtle-texture': 'url(assets/bg/subtle-texture.webp)',
1313
wasmLogo: 'url(assets/brand/wasm.svg)',
14+
branch: 'url(assets/renders/branch.png)',
1415
},
1516
keyframes: {
1617
'slide-down': {

0 commit comments

Comments
 (0)