-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
379 additions
and
4 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,13 @@ | ||
a.squiggle { | ||
background-image: linear-gradient(to bottom, #0087ca 0%, #0087ca 100%); | ||
background-position: 0 100%; | ||
background-repeat: repeat-x; | ||
background-size: 1px 1px; | ||
color: inherit; | ||
text-decoration: none; | ||
} | ||
|
||
a.squiggle:hover { | ||
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cstyle type='text/css'%3E.squiggle{animation:shift .3s linear infinite;}@keyframes shift {from {transform:translateX(0);}to {transform:translateX(-15px);}}%3C/style%3E%3Cpath fill='none' stroke='%230087ca' stroke-width='2' class='squiggle' d='M0,3.5 c 5,0,5,-3,10,-3 s 5,3,10,3 c 5,0,5,-3,10,-3 s 5,3,10,3'/%3E%3C/svg%3E"); | ||
background-size: auto 2px; | ||
} |
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,16 @@ | ||
import react from 'react' | ||
import styles from './index.module.less' | ||
const AvatarCard = ({ avatar, text }) => { | ||
return ( | ||
<div className={styles.avatarCard}> | ||
<div className={styles.card}> | ||
<figure> | ||
<img alt="" src={avatar} /> | ||
</figure> | ||
<p className={styles.content}>{text}</p> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default AvatarCard |
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,47 @@ | ||
.avatarCard { | ||
.card { | ||
width: 350px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
background: #f3f1fe; | ||
border-radius: 10px; | ||
margin: 8px; | ||
margin-top: 100px; | ||
} | ||
|
||
.card figure { | ||
width: 120px; | ||
height: 120px; | ||
border-radius: 50%; | ||
margin-top: -60px; | ||
position: relative; | ||
} | ||
|
||
.card figure::before { | ||
content: ''; | ||
border-radius: inherit; | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
width: 100%; | ||
height: 100%; | ||
transform: translate(-50%, -50%); | ||
border: 1rem solid #fff; | ||
box-shadow: 0 1px #fff; | ||
} | ||
|
||
.card figure img { | ||
border-radius: inherit; | ||
width: 100%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
|
||
.card .content { | ||
text-align: center; | ||
margin: 2rem; | ||
line-height: 1.5; | ||
color: #101010; | ||
} | ||
} |
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,11 @@ | ||
import React from 'react' | ||
import styles from './index.module.less' | ||
const IsometricCard = ({ text }) => { | ||
return ( | ||
<div className={styles.isometricCard}> | ||
<p>{text}</p> | ||
</div> | ||
) | ||
} | ||
|
||
export default IsometricCard |
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,38 @@ | ||
.isometricCard { | ||
margin: 0 100px; | ||
transform: rotateX(51deg) rotateZ(43deg); | ||
transform-style: preserve-3d; | ||
will-change: transform; | ||
width: 240px; | ||
height: 320px; | ||
background: #070221; | ||
border-radius: 2rem; | ||
box-shadow: | ||
1px 1px 0 1px #f9f9fb, | ||
-1px 0 28px 0 rgba(34, 33, 81, 0.01), | ||
28px 28px 28px 0 rgba(34, 33, 81, 0.25); | ||
transition: | ||
0.4s ease-in-out transform, | ||
0.3s ease-in-out box-shadow; | ||
color: #fff; | ||
} | ||
|
||
.isometricCard:hover { | ||
transform: translate3d(0px, -16px, 0px) rotateX(51deg) rotateZ(43deg); | ||
box-shadow: | ||
1px 1px 0 1px #f9f9fb, | ||
-1px 0 28px 0 rgba(34, 33, 81, 0.01), | ||
54px 54px 28px -10px rgba(34, 33, 81, 0.15); | ||
} | ||
|
||
.isometricCard { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.isometricCard p { | ||
margin: 0 36px; | ||
text-align: center; | ||
font-size: 20px; | ||
line-height: 1.4; | ||
} |
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,8 @@ | ||
import React from 'react' | ||
import styles from './index.module.less' | ||
|
||
const LineBordered = ({ text }) => { | ||
return <span className={styles.lineBordered}>{text}</span> | ||
} | ||
|
||
export default LineBordered |
Oops, something went wrong.