Spaces:
Running
Running
Commit
·
7e2111f
1
Parent(s):
e381dc2
fixed double scrolling, added header description
Browse files
viewer/src/routes/+page.svelte
CHANGED
@@ -8,10 +8,11 @@
|
|
8 |
}
|
9 |
</script>
|
10 |
|
11 |
-
<div class="banner">
|
12 |
-
<h1 on:pointerdown={goHome}>IGF</h1>
|
13 |
-
</div>
|
14 |
<div class="container">
|
|
|
|
|
|
|
|
|
15 |
<div class="tabs">
|
16 |
<button on:click={() => activeTab.set("Models")} class={$activeTab === "Models" ? "active" : ""}>Models</button>
|
17 |
<button on:click={() => activeTab.set("Scenes")} class={$activeTab === "Scenes" ? "active" : ""}>Scenes</button>
|
|
|
8 |
}
|
9 |
</script>
|
10 |
|
|
|
|
|
|
|
11 |
<div class="container">
|
12 |
+
<div on:pointerdown={goHome} class="banner">
|
13 |
+
<h1>IGF</h1>
|
14 |
+
<p>Comparative 3D Research Browser</p>
|
15 |
+
</div>
|
16 |
<div class="tabs">
|
17 |
<button on:click={() => activeTab.set("Models")} class={$activeTab === "Models" ? "active" : ""}>Models</button>
|
18 |
<button on:click={() => activeTab.set("Scenes")} class={$activeTab === "Scenes" ? "active" : ""}>Scenes</button>
|
viewer/src/routes/models/[slug]/+page.svelte
CHANGED
@@ -24,10 +24,11 @@
|
|
24 |
}
|
25 |
</script>
|
26 |
|
27 |
-
<div class="banner">
|
28 |
-
<h1 on:pointerdown={goHome}>IGF</h1>
|
29 |
-
</div>
|
30 |
<div class="container">
|
|
|
|
|
|
|
|
|
31 |
<div class="header">{data.model.title}</div>
|
32 |
<div class="model-container">
|
33 |
<div class="model-info">
|
|
|
24 |
}
|
25 |
</script>
|
26 |
|
|
|
|
|
|
|
27 |
<div class="container">
|
28 |
+
<div on:pointerdown={goHome} class="banner">
|
29 |
+
<h1>IGF</h1>
|
30 |
+
<p>Comparative 3D Research Browser</p>
|
31 |
+
</div>
|
32 |
<div class="header">{data.model.title}</div>
|
33 |
<div class="model-container">
|
34 |
<div class="model-info">
|
viewer/static/global.css
CHANGED
@@ -3,6 +3,11 @@ body {
|
|
3 |
font-family: 'Roboto', sans-serif;
|
4 |
background-color: #1a1b1e;
|
5 |
color: white;
|
|
|
|
|
|
|
|
|
|
|
6 |
}
|
7 |
|
8 |
.banner {
|
@@ -11,22 +16,28 @@ body {
|
|
11 |
margin: 0;
|
12 |
border-bottom: 1px solid #333;
|
13 |
box-sizing: border-box;
|
|
|
14 |
}
|
15 |
|
16 |
.banner h1 {
|
17 |
padding: 0;
|
18 |
-
margin: 20px 0;
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
20 |
}
|
21 |
|
22 |
.container {
|
23 |
-
padding: 10px 15px
|
24 |
margin-left: auto;
|
25 |
margin-right: auto;
|
26 |
max-height: 100vh;
|
27 |
overflow-y: auto;
|
28 |
position: relative;
|
29 |
-
|
30 |
|
31 |
@media (min-width: 576px) {
|
32 |
max-width: 540px;
|
|
|
3 |
font-family: 'Roboto', sans-serif;
|
4 |
background-color: #1a1b1e;
|
5 |
color: white;
|
6 |
+
margin: 0;
|
7 |
+
padding: 0;
|
8 |
+
height: 100%;
|
9 |
+
width: 100%;
|
10 |
+
overflow: hidden;
|
11 |
}
|
12 |
|
13 |
.banner {
|
|
|
16 |
margin: 0;
|
17 |
border-bottom: 1px solid #333;
|
18 |
box-sizing: border-box;
|
19 |
+
cursor: pointer;
|
20 |
}
|
21 |
|
22 |
.banner h1 {
|
23 |
padding: 0;
|
24 |
+
margin: 20px 0 0 0;
|
25 |
+
}
|
26 |
+
|
27 |
+
.banner p {
|
28 |
+
padding: 0;
|
29 |
+
margin: 5px 0 20px 0;
|
30 |
+
color: #aaa;
|
31 |
}
|
32 |
|
33 |
.container {
|
34 |
+
padding: 10px 15px 80px 15px;
|
35 |
margin-left: auto;
|
36 |
margin-right: auto;
|
37 |
max-height: 100vh;
|
38 |
overflow-y: auto;
|
39 |
position: relative;
|
40 |
+
box-sizing: border-box;
|
41 |
|
42 |
@media (min-width: 576px) {
|
43 |
max-width: 540px;
|