Skip to content

Commit

Permalink
Boilerplate for NFDI4Objects
Browse files Browse the repository at this point in the history
  • Loading branch information
MontyBitto authored Mar 12, 2024
1 parent e052b3b commit 1f64075
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/nfdi4objects/config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TITLE=NFDI4Objects
LOGO=nfdi4obj-logo.png
NAMESPACE=
BACKEND=https://bartoc.org/api/?partOf=http://bartoc.org/en/node/18961
Binary file added examples/nfdi4objects/public/nfdi4obj-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions examples/nfdi4objects/public/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
:root {
--bar-color: #FFF;
--link-color: #002e5c;
}
/* header */
:header {
color: rgb(156, 107, 48);
}
header > nav {
padding: 1em 3em 1em 3em;
}
header > nav img {
width: 50%;
display: block;
}

.title {
text-align: center;
font-size: 30px;;
}

.nav-text {
color: #002e5c;
}

/* scheme list */
.jskos-vue-itemList.schemes-list > div {
display: inline-block;
line-height: 4em;
padding: 0;
}
.jskos-vue-itemList.schemes-list > div:hover {
background: none;
}
.jskos-vue-itemList.schemes-list > div > span {
white-space: nowrap;
border: 1px solid #666;
padding: 0.8em 1em;
margin: 0.5em 0.8em;
}

.jskos-vue-itemList.schemes-list > div > span:hover {
box-shadow: 3px 3px 3px #666;
margin: 0.4em 0.6em 0.6em 0.4em; /* TODO: shift 0.1em upwards */
}
9 changes: 9 additions & 0 deletions examples/nfdi4objects/views/about.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<p>
Diese Seite enthält eine experimentelle Liste von Terminologien (Normdateien, Thesauri, Klassifikationen, Gazeteers, Ontologien...), die im Rahmen der Forschungsdateninfrastruktur <a href="https://www.nfdi4objects.net/"> NFDI4Objects</a> (N4O) relevant sein könnten. Die Liste wird in <a href="https://bartoc.org/en/node/18961">BARTOC</a> verwaltet.
</p>

<p>

</p>

<p>Die Liste kann <a href="https://bartoc.org/api/voc?partOf=http%3A%2F%2Fbartoc.org%2Fen%2Fnode%2F18961">JSKOS-Format<a> heruntergeladen werden und ist auch unter <a href="https://nfdi4objects.github.io/n4o-terminologies/">https://nfdi4objects.github.io/n4o-terminologies/</a> als Tabelle zu finden.</p>
26 changes: 26 additions & 0 deletions examples/nfdi4objects/views/header.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<header>
<nav>
<ul class="nav">
<li>
<a href="<%= namespace.pathname %>">
<img src="<%= namespace.pathname %>_public/<%= logo %>"/>
</a>
</li>
<li>
<a href="<%= namespace.pathname %>">


<p class="title nav-text"><%= title || namespace.pathname %></p>

</a>
</li>
<li style="flex: 1"></li>
<li>
<a href="" onclick="document.cookie=`locale=<%= locale === 'en' ? 'de' : 'en' %>;samesite=lax;path=<%= namespace.pathname %>`"><span class="nav-text"><%= locale %></span></a>
</li>
<li>
<a href="<%= namespace.pathname %>about/"><span class="nav-text">about</span></a>
</li>
</ul>
</nav>
</header>
1 change: 1 addition & 0 deletions examples/nfdi4objects/views/imprint.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://www.nfdi4objects.net/index.php/impressum">NFDI4Objects</a>

0 comments on commit 1f64075

Please sign in to comment.