-
Notifications
You must be signed in to change notification settings - Fork 927
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a way to conveniently give star Armeria from the site (#4476)
Motivation: If a user stays on Armeria site (https://armeria.dev) for more than 10 seconds, we can assume they might be interested in our project and like to star Armeria on GitHub. Modifications: - Add a small banner to the left corner of the Armeria site. - It will be exposed 10 seconds after a user visits. Result: Gentle star marketing
- Loading branch information
Showing
5 changed files
with
144 additions
and
56 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#starBegging { | ||
transition: transform .25s; | ||
transform: scale(0); | ||
border-radius: 8px; | ||
position: fixed; | ||
bottom: 32px; | ||
right: 32px; | ||
padding: 20px 40px 16px 20px; | ||
background: #fff; | ||
box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15); | ||
z-index: 9999998; | ||
|
||
p { | ||
font-size: 16px; | ||
margin: 0 0 15px; | ||
} | ||
|
||
.close { | ||
position: absolute; | ||
right: 20px; | ||
top: 20px; | ||
height: 40px; | ||
width: 40px; | ||
line-height: 1; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-size: 28px; | ||
font-family: arial, sans-serif; | ||
cursor: pointer; | ||
background: rgba(0, 0, 0, 0.05); | ||
border-radius: 5px; | ||
} | ||
} | ||
|
||
#starBegging.on { | ||
transform: scale(1); | ||
} | ||
#starBegging.off { | ||
transform: translateX(400px); | ||
} | ||
|
Oops, something went wrong.