Skip to content

Commit 6a9b6ef

Browse files
Restructure deployments page (#26)
This PR restructures the deployments page into three categories: Open to all, By membership, and Institutional. The PR also updates and generalizes the code to generate each deployment card. Lastly, local policy files are discarded in favor of deployed policies (based on templates provided in aiidalab-deployment-files).
1 parent b55fe49 commit 6a9b6ef

File tree

4 files changed

+255
-919
lines changed

4 files changed

+255
-919
lines changed

_sass/deployments.scss

Lines changed: 66 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,81 @@
11
.deployments {
2-
@extend %flexbox;
3-
@include flex-flow(wrap);
4-
padding: 50px 0 30px 0;
2+
padding: 5px 0;
53

64
.deployment {
7-
list-style: none;
8-
padding: 0;
9-
margin: 0 10px 50px 10px;
10-
text-align: center;
11-
border: 1px solid #eee;
12-
border-radius: 5px;
13-
box-shadow: 0px 0px 10px #eee;
14-
width: 100%;
15-
16-
display: flex;
17-
flex-direction: column;
18-
justify-content: space-between;
19-
20-
.highlighted {
21-
font-size: 1.2em;
22-
}
5+
height: 100%;
236

24-
.deployments-cta {
25-
padding: 0;
7+
.card {
8+
height: 100%;
269

27-
.status {
28-
font-size: 0.8em;
29-
padding: 0.8em 1em;
30-
font-weight: bold;
10+
img {
11+
padding: 1em;
12+
height: 100px;
13+
width: auto;
14+
object-fit: contain;
3115
}
3216

33-
a {
34-
display: block;
35-
box-sizing: border-box;
36-
padding: 20px 0;
37-
border-radius: 0 0 2px 2px;
38-
border: 0;
17+
.card-header,
18+
.card-footer {
19+
display: grid;
20+
margin: -1px;
3921
}
40-
}
4122

42-
@media #{$desktop} {
43-
-webkit-flex: 1;
44-
flex: 1;
45-
}
23+
.card-header {
24+
font-size: x-large;
25+
font-weight: bold;
26+
color: white;
27+
}
4628

47-
li {
48-
border-top-right-radius: 5px;
49-
border-top-left-radius: 5px;
50-
padding: 20px 0;
51-
h3 {
29+
.card-footer {
5230
padding: 0;
53-
margin: 0;
54-
color: #fff;
55-
font-weight: normal;
31+
32+
.btn {
33+
font-size: large;
34+
text-decoration: none;
35+
border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px);
36+
border: 0;
37+
}
5638
}
57-
img {
58-
width: 35%;
39+
40+
.card-body {
41+
display: flex;
42+
flex-direction: column;
43+
44+
.content {
45+
flex: 1;
46+
47+
h6 {
48+
margin: 0;
49+
font-weight: bold;
50+
}
51+
52+
div {
53+
margin-bottom: 10px;
54+
}
55+
56+
ul {
57+
list-style: none;
58+
padding: 0;
59+
margin: 0;
60+
}
61+
62+
.sponsors {
63+
ul {
64+
display: flex;
65+
flex-direction: row;
66+
align-items: center;
67+
}
68+
69+
img {
70+
height: auto;
71+
width: 100%;
72+
}
73+
}
74+
}
75+
76+
.status {
77+
font-weight: bold;
78+
}
5979
}
6080
}
6181
}

0 commit comments

Comments
 (0)