docs: add branding assets as dep
This commit is contained in:
parent
f4ed8b4096
commit
4f4dc05197
4 changed files with 15 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<p align="center">
|
||||
<img src="https://raw.githubusercontent.com/ziex-dev/branding/main/banner-animated.svg" alt="Ziex banner" width="100%" />
|
||||
<img src="https://ziex.dev/branding/assets/banner-animated.svg" alt="Ziex banner" width="100%" />
|
||||
</p>
|
||||
|
||||
A full-stack web framework for Zig. Declarative UI components using familiar patterns, with full access to Zig's control flow.
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ pub fn Page(ctx: zx.PageContext) zx.Component {
|
|||
<div class="hero-mascot">
|
||||
<div class="hero-mascot-glow"></div>
|
||||
// <div class="hero-mascot-glow hero-mascot-glow--inner"></div>
|
||||
<img src="https://raw.githubusercontent.com/ziex-dev/branding/main/compressed/ziex-ziguana.webp" alt="Ziguana Mascot" />
|
||||
<img src="/assets/branding/compressed/ziex-ziguana.webp" alt="Ziguana Mascot" />
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -252,6 +252,15 @@ pub fn build(b: *std.Build) !void {
|
|||
.install_subdir = "static/assets/playground",
|
||||
});
|
||||
b.default_step.dependOn(&install_playground_scripts.step);
|
||||
|
||||
const branding_dep = b.dependency("branding", .{});
|
||||
const install_branding = b.addInstallDirectory(.{
|
||||
.source_dir = branding_dep.path("."),
|
||||
.install_dir = .prefix,
|
||||
.install_subdir = "static/assets/branding",
|
||||
.include_extensions = &.{ "webp", "svg", "png", "gif" },
|
||||
});
|
||||
b.default_step.dependOn(&install_branding.step);
|
||||
}
|
||||
|
||||
const bunjs = @import("bunjs");
|
||||
|
|
|
|||
|
|
@ -17,6 +17,10 @@
|
|||
.url = "git+https://github.com/ziex-dev/zig.git?ref=0.17.0-dev#3f244f738a6e4bbaf4e33d3967952b3eb13bdd4f",
|
||||
.hash = "zig-0.0.0-Fp4XJIEf_A0yo_pEE71WaIz5hySNNRPxV9OCyvj5WUIV",
|
||||
},
|
||||
.branding = .{
|
||||
.url = "git+https://github.com/ziex-dev/branding.git#04a22af76e2198d06c429e4025f960f76d93bf9f",
|
||||
.hash = "N-V-__8AACJRHgCH8MXnlovqXGaz3lrGQkWP6HqE81M04zkV",
|
||||
},
|
||||
},
|
||||
.paths = .{
|
||||
"build.zig",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue