Add the logo to the demo.

Logo design courtesy Jay Vining.
This commit is contained in:
Patrick Walton 2017-12-19 14:51:51 -08:00
parent 097e909d07
commit 23482b2af8
7 changed files with 135 additions and 11 deletions

View File

@ -217,6 +217,10 @@ button > svg path {
margin-right: -15px; margin-right: -15px;
} }
#pf-masthead-logo {
width: 30vw;
}
.github-corner { .github-corner {
display: block; display: block;
position: absolute; position: absolute;

View File

@ -8,15 +8,14 @@
<body> <body>
{{>partials/navbar.html}} {{>partials/navbar.html}}
<main id="content" class="mt-5 mb-5"> <main id="content" class="mt-5 mb-5">
<div class="container"> <div class="container d-flex flex-row">
<div class="flex-column"> <div><img alt="" src="/svg/demo/logo" id="pf-masthead-logo"></div>
<div class="text-center"> <div class="flex-column d-flex justify-content-center ml-5">
<h1>Pathfinder</h1> <h1 class="display-4">Pathfinder</h1>
<p class="lead"> <p class="lead">
A fast, high-quality, open source text and vector graphics renderer for A fast, high-quality, open source text and vector graphics renderer for
GPUs. GPUs.
</p> </p>
</div>
</div> </div>
</div> </div>
</main> </main>

View File

@ -43,6 +43,7 @@
<option value="font-nimbus-sans">Font: Nimbus Sans</option> <option value="font-nimbus-sans">Font: Nimbus Sans</option>
<option value="font-inter-ui">Font: Inter UI</option> <option value="font-inter-ui">Font: Inter UI</option>
<option value="svg-tiger">SVG: Ghostscript Tiger</option> <option value="svg-tiger">SVG: Ghostscript Tiger</option>
<option value="svg-logo">SVG: Pathfinder Logo</option>
<option value="svg-custom">SVG: Custom…</option> <option value="svg-custom">SVG: Custom…</option>
</select> </select>
<input id="pf-file-select" type="file"> <input id="pf-file-select" type="file">

View File

@ -1,5 +1,8 @@
<nav class="navbar navbar-expand-sm navbar-dark bg-dark"> <nav class="navbar navbar-expand-sm navbar-dark bg-dark">
<a class="navbar-brand" href="/">Pathfinder</a> <a class="navbar-brand" href="/">
<img id="pf-navbar-logo" alt="" src="/svg/demo/logo" width="30" class="mr-2">
Pathfinder
</a>
<div class="collapse navbar-collapse"> <div class="collapse navbar-collapse">
<ul class="navbar-nav mr-auto"> <ul class="navbar-nav mr-auto">
<li class="nav-item dropdown {{#if isDemo}}active{{/if}}"> <li class="nav-item dropdown {{#if isDemo}}active{{/if}}">

View File

@ -45,6 +45,7 @@
<label for="pf-select-file">SVG document</label> <label for="pf-select-file">SVG document</label>
<select id="pf-select-file" class="form-control custom-select"> <select id="pf-select-file" class="form-control custom-select">
<option value="tiger" selected>Ghostscript Tiger</option> <option value="tiger" selected>Ghostscript Tiger</option>
<option value="logo">Pathfinder Logo</option>
<option value="load-custom">Load File&hellip;</option> <option value="load-custom">Load File&hellip;</option>
</select> </select>
<input id="pf-file-select" type="file"> <input id="pf-file-select" type="file">

View File

@ -98,8 +98,9 @@ static BUILTIN_FONTS: [(&'static str, &'static str); 4] = [
("inter-ui", "../../resources/fonts/inter-ui/Inter-UI-Regular.ttf"), ("inter-ui", "../../resources/fonts/inter-ui/Inter-UI-Regular.ttf"),
]; ];
static BUILTIN_SVGS: [(&'static str, &'static str); 1] = [ static BUILTIN_SVGS: [(&'static str, &'static str); 2] = [
("tiger", "../../resources/svg/Ghostscript_Tiger.svg"), ("tiger", "../../resources/svg/Ghostscript_Tiger.svg"),
("logo", "../../resources/svg/pathfinder_logo.svg"),
]; ];
#[derive(Clone, Debug, PartialEq, Eq, Hash)] #[derive(Clone, Debug, PartialEq, Eq, Hash)]

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 223 KiB