Skip to content

Commit 96522fd

Browse files
committed
feat: responsive design, fix card with mascot,
1 parent 760d83e commit 96522fd

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

docs/index.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ footerHtml: false
1414

1515
<script setup>
1616

17-
import { ref } from 'vue';
18-
1917
const cards = [
2018
{
2119
id: 'btn1',
@@ -43,7 +41,7 @@ const cards = [
4341
}
4442
];
4543

46-
const bottomCards = ref([
44+
const bottomCards = [
4745
{
4846
id: 'btn4',
4947
title: 'About HUNT Cloud',
@@ -63,7 +61,7 @@ const bottomCards = ref([
6361
href: 'https://www.ntnu.edu/mh/huntcloud',
6462
description: 'Explore and evolve. See the main HUNT Cloud page for information on HUNT Cloud\'s scientific products and services.',
6563
}
66-
]);
64+
];
6765

6866
const cardStyle = {
6967
padding: '25px',
@@ -106,7 +104,7 @@ const imageHeight = '180px';
106104
v-for="card in bottomCards"
107105
:key="card.id"
108106
class="hc-column-4"
109-
:style="cardStyle"
107+
:style="card.isMascot ? {} : cardStyle"
110108
:class="{ 'mascot-container': card.isMascot }"
111109
>
112110
<template v-if="card.isMascot">
@@ -128,7 +126,7 @@ const imageHeight = '180px';
128126
</template>
129127
</div>
130128
</div>
131-
<div class="hc-row">
129+
<div class="hc-row footer">
132130
<center>
133131
<i>These pages contain the official user documentation for HUNT Cloud. <br>HUNT Cloud is a scientific infrastructure for data explorations at <a href="https://www.ntnu.edu/">NTNU</a>, Norway.<br><a href="/govern-science/privacy-statement">Privacy statement</a>.</i><br>
134132
</center>
@@ -207,12 +205,16 @@ h1 {
207205
.hc-row {
208206
justify-content: center;
209207
display: flex;
208+
flex-direction: column;
210209
gap: 15px;
210+
}
211211

212+
.footer {
213+
margin-top: 30px;
212214
}
213215

214216
.bottom-row {
215-
margin-top: 30px;
217+
margin-top: 15px;
216218
}
217219

218220
.hc-column-4 {
@@ -288,6 +290,10 @@ h1 {
288290
}
289291

290292
@media (min-width: 720px) {
293+
.hc-row {
294+
flex-direction: row;
295+
}
296+
291297
.hc-header-img {
292298
background-image: url("https://assets.hdc.ntnu.no/assets/static/banner_960.jpg");
293299
height: 300px;

0 commit comments

Comments
 (0)