-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from Anchor-Protocol/feature/mobile-airdrop
Feature: Airdrop dialog on mobile layout
- Loading branch information
Showing
4 changed files
with
157 additions
and
39 deletions.
There are no files selected for viewing
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,37 @@ | ||
import airdropImage from 'components/Header/assets/airdrop.svg'; | ||
import React from 'react'; | ||
import styled, { keyframes } from 'styled-components'; | ||
|
||
export interface AirdropImageProps { | ||
className?: string; | ||
} | ||
|
||
function AirdropImageBase({ className }: AirdropImageProps) { | ||
return <img src={airdropImage} className={className} alt="Airdrop!" />; | ||
} | ||
|
||
const parachute = keyframes` | ||
0% { | ||
transform: rotate(10deg) translateY(0); | ||
} | ||
25% { | ||
transform: rotate(-10deg) translateY(-3px); | ||
} | ||
50% { | ||
transform: rotate(10deg) translateY(0); | ||
} | ||
75% { | ||
transform: rotate(-10deg) translateY(3px); | ||
} | ||
100% { | ||
transform: rotate(10deg) translateY(0); | ||
} | ||
`; | ||
|
||
export const AirdropImage = styled(AirdropImageBase)` | ||
animation: ${parachute} 6s ease-in-out infinite; | ||
`; |
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
fadcdb4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
anchor-web-app – ./app
app.anchor.market
app.anchorprotocol.com
anchor.vercel.app
anchor-web-app-anchor-protocol.vercel.app
anchor-web-app-git-master-anchor-protocol.vercel.app
app.anchor.money