Skip to content

Commit c7cc527

Browse files
committed
Touch up study data view page
1 parent b4fc9a6 commit c7cc527

File tree

2 files changed

+70
-5
lines changed

2 files changed

+70
-5
lines changed

app/pages/studydataview.html

+15-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99
<body>
1010
<div class="content">
11+
<img id="logo" src="../images/on.svg" alt="">
12+
<h1>
13+
<span class="pretitle">Transparency & Control</span>
14+
GitHub Timestamp Privacy Study
15+
</h1>
16+
<h2>Collected Study Data</h2>
1117
<table id="participant-data">
1218
<caption>General participant data</caption>
1319
<tbody>
@@ -67,9 +73,16 @@
6773
</tbody>
6874
</table>
6975
<form>
70-
<button id="clipcopy">Copy Report to Clipboard</button>
71-
<button id="studypurge">Reset Study Data</button>
76+
<button id="clipcopy">Copy to Clipboard</button>
7277
</form>
78+
<details id="expert-options">
79+
<summary>Expert options</summary>
80+
<form class="box box-warn">
81+
<span>Warning</span>
82+
Resetting will delete your local study data and start a new participation.
83+
<button id="studypurge">Reset Study Data</button>
84+
</form>
85+
</details>
7386
</div>
7487
<script src="../scripts/studydataview.js"></script>
7588
</body>

app/styles/studydataview.css

+55-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
1+
body {
2+
background-color: #28ADCA;
3+
color: white;
4+
font-size: normal;
5+
font-family: Helvetica, Arial, sans-serif;
6+
}
7+
8+
.content {
9+
max-width: 1024px;
10+
margin: 20px auto;
11+
padding: 20px;
12+
background-color: white;
13+
color: black;
14+
display: flex;
15+
align-items: stretch;
16+
justify-content: center;
17+
flex-direction: column;
18+
}
19+
20+
h1 {
21+
margin-top: 0.1em;
22+
text-align: center;
23+
}
24+
.pretitle {
25+
font-size: 80%;
26+
font-weight: normal;
27+
display: block;
28+
text-align: center;
29+
}
30+
h2 {
31+
}
32+
33+
#logo {
34+
align-self: center;
35+
width: 64px;
36+
}
37+
138
table {
2-
font-family: arial, sans-serif;
339
border-collapse: collapse;
440
width: 100%;
541
margin-bottom: 20px;
@@ -15,6 +51,22 @@ tr:nth-child(even) {
1551
background-color: #dddddd;
1652
}
1753

18-
form {
19-
padding: 1em 0;
54+
#expert-options {
55+
margin-top: 20px;
56+
align-items: left;
57+
justify-content: left;
58+
}
59+
.box {
60+
color: #555;
61+
border-radius: 10px;
62+
padding: 10px;
63+
margin: 10px 0;
64+
}
65+
.box span {
66+
font-weight: bold;
67+
text-transform: uppercase;
68+
}
69+
.box-warn {
70+
background-color: #fff8c4;
71+
border: 1px solid #f2c779;
2072
}

0 commit comments

Comments
 (0)