Skip to content

Commit 7c730dd

Browse files
committed
Merge remote-tracking branch 'origin/dev' into sgratzl/docker2
2 parents 019207c + df111e6 commit 7c730dd

File tree

13 files changed

+204
-0
lines changed

13 files changed

+204
-0
lines changed

config.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,9 @@ relativeURLs = false
111111
mission = "Develop the theory and practice of epidemiological forecasting, with a long-term vision of making this technology as universally accepted and useful as weather forecasting is today."
112112
apiUrl = "https://cmu-delphi.github.io/delphi-epidata"
113113
twitter = "CmuDelphi"
114+
feedbackForm = "https://docs.google.com/forms/d/e/1FAIpQLSeIeOJtrAhdOriEyiRY7LkpQX8DZBY19dl6De8l56Q9CZhmxw/viewform?usp=pp_url&entry.1245962748="
115+
feedbackLikelihoodMobile = 0.2
116+
feedbackLikelihoodDesktop = 1
117+
feedbackDelayMin = 10 # in sec
118+
feedbackDelayMax = 100 # in sec
119+
feedbackDuration = 60 # show it for 60sec

content/covidcast/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ order: 1
77
modeTitle: Map Overview
88
icon: solid/map
99
heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg
10+
feedback: true
1011
---

content/covidcast/export.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ app_mode: export
77
order: 6
88
icon: solid/download
99
heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg
10+
feedback: true
1011
---

content/covidcast/single.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ app_mode: single
77
order: 4
88
icon: location-solid
99
heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg
10+
feedback: true
1011
---

content/covidcast/survey-results.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ app_mode: survey-results
88
order: 5
99
icon: solid/poll
1010
heroImage: /images/landing-page/hero-images/covidcast_survey.jpg
11+
feedback: true
1112
---

content/covidcast/timelapse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ app_mode: timelapse
77
order: 2
88
icon: solid/clock
99
heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg
10+
feedback: true
1011
---

content/covidcast/top10.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ app_mode: top10
77
order: 3
88
icon: solid/list
99
heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg
10+
feedback: true
1011
---
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
.feedback-modal {
2+
padding-top: 1.5em;
3+
height: calc(100vh - 100px);
4+
display: block;
5+
position: relative;
6+
}
7+
8+
.feedback-modal > iframe {
9+
width: 100%;
10+
height: 100%;
11+
}
12+
13+
.feedback-message {
14+
width: unset;
15+
16+
.uk-notification-message {
17+
background: #60a5fa;
18+
color: white;
19+
border-radius: 5px;
20+
padding: 0;
21+
font-size: 1rem;
22+
cursor: inherit;
23+
box-shadow: 0px 0px 12px 0px rgba(0, 0, 0, 0.25);
24+
25+
> div {
26+
padding: 1.5rem 3rem 1.5rem 1.5rem;
27+
display: flex;
28+
justify-content: flex-start;
29+
align-items: center;
30+
}
31+
}
32+
33+
.uk-notification-close {
34+
color: white;
35+
right: 1rem;
36+
top: 50%;
37+
transform: translateY(-50%);
38+
display: block !important;
39+
}
40+
41+
.uk-button {
42+
background: #2563eb;
43+
border-radius: 3px;
44+
// padding: 14px 24px 14px 24px;
45+
}
46+
}
47+
48+
.feedback-text {
49+
margin-right: 1em;
50+
}
51+
52+
@media only screen and (max-width: 550px) {
53+
.feedback-message {
54+
.uk-notification-message > div {
55+
flex-direction: column;
56+
}
57+
58+
.uk-button {
59+
margin-top: 0.5em;
60+
}
61+
}
62+
}

themes/delphi/assets/css/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
@import "./components/card_grid";
2424
@import "./components/latest_card";
2525
@import "./components/toc";
26+
@import "./components/feedback";
2627

2728
// Page Designs
2829
@import "./pages/about";

themes/delphi/assets/css/pages/_covidcast.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,20 @@
1111
.covidcast_wrapper > footer {
1212
display: none;
1313
}
14+
15+
.covidcast-modes {
16+
position: relative;
17+
18+
&::before {
19+
content: "";
20+
position: absolute;
21+
bottom: 0;
22+
left: 0;
23+
right: 0;
24+
border-bottom: 1px solid #e5e5e5;
25+
}
26+
27+
.uk-tab::before {
28+
display: none;
29+
}
30+
}

0 commit comments

Comments
 (0)