Skip to content

Commit

Permalink
Remove PSI branding + style updates
Browse files Browse the repository at this point in the history
- Remove PSI logo
- Update help links
- Change icons (use bootstrap-icons)
  • Loading branch information
sbliven committed Oct 18, 2023
1 parent 9094f0f commit 64e0ba1
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 9 deletions.
File renamed without changes.
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"license": "GPL-3.0",
"dependencies": {
"bootstrap": "^5.3.2",
"bootstrap-icons": "^1.11.1",
"jquery": "^3.7.1",
"jsoneditor": "^9.10.3",
"lodash": "^4.17.21"
Expand Down
33 changes: 24 additions & 9 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
<img class="m-2" src="./images/scicat-logo-white.png" />
<img class="m-2" src="./images/psilogo.png" />
<a href="#" class="navbar-brand">SciCat Metadata Editor</a>
</nav>

Expand All @@ -38,12 +37,18 @@ <h2 class="accordion-header" id="heading-about">
<div id="about" class="accordion-collapse collapse show" aria-labelledby="heading-about" data-bs-parent="#accordion">
<div class="accordion-body">

<p>This is an editor for metadata files for the
<a href="https://discovery.psi.ch">PSI Data Catalog</a>.
<p>This is an editor for metadata.json files for the
<a href="https://scicatproject.github.io/">SciCat</a> data catalog.
Choose templates and options below, or edit the metadata directly
to the right.
</p>
<a role="button" class="btn btn-primary mx-auto" href="#load" data-bs-toggle="collapse" data-bs-target="#load">Get Started</a>
<p>Some institutes may have additional requirements and conventions for
some fields. Requests for additional templates can be made on <a
href="https://github.com/SciCatProject/SciCatEditor">github</a>.</p>
<a role="button" class="btn btn-primary mx-auto" href="#load" data-bs-toggle="collapse" data-bs-target="#load">
Choose a template
<i class="bi bi-caret-down-fill"></i>
</a>
</div>
</div>
</div>
Expand All @@ -61,6 +66,7 @@ <h2 class="accordion-header" id="heading-help">

<h3>Links</h3>
<ul>
<li><a href="https://scicatproject.github.io/">SciCat Home</a></li>
<li><a href="https://scicatproject.github.io/documentation/Ingestor/ingestManual.html">SciCat User
Manual</a> - Official documentation about the metadata format and the Data Catalog</li>
<li><a href="https://discovery.psi.ch">PSI Data Catalog</a> - View your datasets</li>
Expand All @@ -75,15 +81,18 @@ <h3>F.A.Q.</h3>
<button type="button" class="jsoneditor-modes jsoneditor-separator float-none p-0" title="Tree View Icon">Tree ▾</button>
</div>
</div> view, click the '<div class="d-inline jsoneditor-tree float-none"
><button type="button" class="jsoneditor-button jsoneditor-contextmenu-button align-middle"
><button type="button" class="d-inline jsoneditor-button jsoneditor-contextmenu-button align-middle"
title="Actions Menu Icon"></button></div>' and insert
(<div class="d-inline jsoneditor-contextmenu float-none position-relative"
><button type="button" class="jsoneditor-button jsoneditor-contextmenu-button jsoneditor-insert jsoneditor-icon align-middle position-relative"
><button type="button" class="jsoneditor-button jsoneditor-contextmenu-button jsoneditor-insert jsoneditor-icon align-middle position-relative d-inline"
style="background-color: inherit" title="Insert Icon"></button></div>) a new key/value pair.
</dd>
</dl>

<a role="button" class="btn btn-primary mx-auto" href="#load" data-bs-toggle="collapse" data-bs-target="#load">Get Started</a>
<a role="button" class="btn btn-primary mx-auto" href="#load" data-bs-toggle="collapse" data-bs-target="#load">
Choose a template
<i class="bi bi-caret-down-fill"></i>
</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -123,7 +132,10 @@ <h2 class="accordion-header" id="heading-load">

</div>

<a role="button" class="btn btn-primary mx-auto" href="#options" data-bs-toggle="collapse" data-bs-target="#options">Next</a>
<a role="button" class="btn btn-primary mx-auto" href="#options" data-bs-toggle="collapse" data-bs-target="#options">
Next
<i class="bi bi-caret-down-fill"></i>
</a>
</div>
</div>
</div>
Expand Down Expand Up @@ -203,7 +215,10 @@ <h3>Add fields:</h3>
<label class="form-control" for="button-nopublish">Do not publish</label>
</div>

<a role="button" class="btn btn-primary mx-auto" href="#export" data-bs-toggle="collapse" data-bs-target="#export">Next</a>
<a role="button" class="btn btn-primary mx-auto" href="#export" data-bs-toggle="collapse" data-bs-target="#export">
Next
<i class="bi bi-caret-down-fill"></i>
</a>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import examples from './examples.js';
import $ from 'jquery';
import _ from 'lodash';
import 'bootstrap';
import 'bootstrap-icons/font/bootstrap-icons.css';

function validationErrorHook(errors) {
const $error = $("#errors");
Expand Down

0 comments on commit 64e0ba1

Please sign in to comment.