Skip to content

Commit c51bb02

Browse files
authored
Merge pull request #317 from luciankt/feedback-banner
Add feedback banner to home page
2 parents 1bb5e23 + 3f99fa3 commit c51bb02

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

src/css/App.css

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,31 @@
4444
cursor: pointer;
4545
}
4646

47+
.banner-container {
48+
justify-content: center;
49+
display: flex;
50+
}
51+
52+
.banner {
53+
background-color: rgb(255, 128, 128);
54+
padding: 20px 40px 10px 40px;
55+
border-radius: 0px 0px 15px 15px;
56+
filter: drop-shadow(3px 3px 3px);
57+
font-size: x-large;
58+
animation: banner-ease ease-in-out 2.0s forwards;
59+
text-align: center;
60+
cursor: default;
61+
}
62+
63+
@keyframes banner-ease {
64+
from {
65+
transform: translateY(-7vw);
66+
}
67+
to {
68+
transform: translateY(-25px);
69+
}
70+
}
71+
4772
.rotate-effect {
4873
transition: transform 1.5s ease;
4974
}
@@ -144,9 +169,9 @@ body {
144169
font-weight: 100;
145170
}
146171

147-
.content a {
172+
/* .content a {
148173
cursor: default;
149-
}
174+
} */
150175

151176
.about a,
152177
.four-o-four a {

src/screens/HomeScreen.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ const HomeScreen = ({ theme, toggleTheme }) => (
1313
<div className="content">
1414
<Switch>
1515
<Route exact path="/">
16+
<div className="banner-container">
17+
<div className="banner">
18+
<span role="img" aria-label="nerd">🤓</span>
19+
<span> Studying for the final? </span>
20+
<a href="https://forms.gle/j9iMhFi8drjf2PU86" target="_blank" rel="noreferrer">Tell us how we can improve!</a>
21+
</div>
22+
</div>
1623
<div className="outer-flex">
1724
<div className="inner-flex">
1825
{algoList.map((name, idx) =>

0 commit comments

Comments
 (0)