Skip to content

Commit e4ab527

Browse files
committed
feat: updated yasgui and moved the logo
1 parent 68073ad commit e4ab527

File tree

2 files changed

+38
-36
lines changed

2 files changed

+38
-36
lines changed

src/index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link rel="manifest" href="manifest.json" />
1515

1616
<!-- YASGUI CSS -->
17-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@matdata/[email protected].3/build/yasgui.min.css">
17+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@matdata/[email protected].4/build/yasgui.min.css">
1818

1919
<!-- Font Awesome for icons -->
2020
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
@@ -27,17 +27,12 @@
2727

2828
<body>
2929
<noscript>You need to enable JavaScript to run this app.</noscript>
30-
31-
<!-- Header with logo -->
32-
<div id="header">
33-
<img id="logo" src="logo.svg" alt="Matdata Logo">
34-
</div>
35-
30+
3631
<!-- YASGUI container -->
3732
<div id="yasgui"></div>
3833

3934
<!-- YASGUI JavaScript -->
40-
<script src="https://cdn.jsdelivr.net/npm/@matdata/[email protected].3/build/yasgui.min.js"></script>
35+
<script src="https://cdn.jsdelivr.net/npm/@matdata/[email protected].4/build/yasgui.min.js"></script>
4136

4237
<!-- vis-network (required dependency) -->
4338
<script src="https://unpkg.com/[email protected]/standalone/umd/vis-network.min.js"></script>
@@ -46,10 +41,15 @@
4641
<script src="main.js"></script>
4742

4843
<div id="footer">
49-
<small>Source code available on <a href="https://github.com/Matdata-eu/yasgui-matdata">Matdata-eu/yasgui-matdata</a>
50-
using <a href="https://github.com/Matdata-eu/yasgui">Matdata-eu/yasgui</a> with credits to <a href="https://github.com/zazuko/yasgui">Zazuko/Yasgui</a>,
51-
<a href="https://github.com/triplydb/Yasgui">TriplyDB/Yasgui</a>, <a href="https://github.com/Thib-G/yasgui-plugin-geo">Thib-G/yasgui-plugin-geo</a>
52-
and <a href="https://github.com/Matdata-eu/yasgui-graph-plugin">Matdata-eu/yasgui-graph-plugin</a></small>
44+
<a href="https://matdata.eu/" target="_blank" rel="noopener noreferrer" class="footer-left">
45+
<img id="logo" src="logo.svg" alt="Matdata Logo">
46+
</a>
47+
<div class="footer-center">
48+
<small>Source code available on <a href="https://github.com/Matdata-eu/yasgui-matdata">Matdata-eu/yasgui-matdata</a>
49+
using <a href="https://github.com/Matdata-eu/yasgui">Matdata-eu/yasgui</a> with credits to <a href="https://github.com/zazuko/yasgui">Zazuko/Yasgui</a>,
50+
<a href="https://github.com/triplydb/Yasgui">TriplyDB/Yasgui</a>, <a href="https://github.com/Thib-G/yasgui-plugin-geo">Thib-G/yasgui-plugin-geo</a>
51+
and <a href="https://github.com/Matdata-eu/yasgui-graph-plugin">Matdata-eu/yasgui-graph-plugin</a></small>
52+
</div>
5353
</div>
5454
</body>
5555

src/main.css

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,10 @@ body {
99
-moz-osx-font-smoothing: grayscale;
1010
}
1111

12-
/* Header with logo */
13-
#header {
14-
position: fixed;
15-
top: 0;
16-
left: 0;
17-
right: 0;
18-
height: 60px;
19-
background-color: #ffffff;
20-
border-bottom: 1px solid #e0e0e0;
21-
display: flex;
22-
align-items: center;
23-
padding: 0 20px;
24-
z-index: 1000;
25-
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
26-
}
27-
28-
#logo {
29-
height: 40px;
30-
width: auto;
31-
}
32-
3312
/* YASGUI container */
3413
#yasgui {
35-
margin-top: 60px;
36-
height: calc(100vh - 90px);
14+
margin-top: 0px;
15+
height: calc(100vh - 60px);
3716
}
3817

3918
/* Footer styles */
@@ -45,10 +24,33 @@ body {
4524
background-color: #f5f5f5;
4625
padding: 8px 20px;
4726
border-top: 1px solid #e0e0e0;
48-
text-align: center;
27+
display: flex;
28+
align-items: center;
29+
justify-content: center;
4930
z-index: 1000;
5031
}
5132

33+
.footer-left {
34+
position: absolute;
35+
left: 20px;
36+
display: flex;
37+
align-items: center;
38+
}
39+
40+
.footer-center {
41+
text-align: center;
42+
}
43+
44+
#logo {
45+
height: 35px;
46+
width: auto;
47+
transition: opacity 0.2s;
48+
}
49+
50+
#logo:hover {
51+
opacity: 0.8;
52+
}
53+
5254
#footer a {
5355
color: #0066cc;
5456
text-decoration: none;

0 commit comments

Comments
 (0)