-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(week-5): enhance business card component
- Loading branch information
Showing
4 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
Binary file removed
BIN
-101 KB
0-1/assignments/week-5/business-card-component/src/assets/twitter-icon.png
Binary file not shown.
Binary file added
BIN
+28.3 KB
0-1/assignments/week-5/business-card-component/src/assets/twitter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 29 additions & 5 deletions
34
0-1/assignments/week-5/business-card-component/src/components/Card.css
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 |
---|---|---|
@@ -1,20 +1,44 @@ | ||
/* Card.css */ | ||
.card { | ||
border: 1px solid #ccc; | ||
background: #000; | ||
padding: 20px; | ||
margin: 20px auto; | ||
width: 300px; | ||
margin: 50px auto; | ||
width: 400px; | ||
border-radius: 4px; | ||
filter: drop-shadow(0 0 1rem #646cffaa); | ||
} | ||
|
||
.card h2 { | ||
font-size: 3.5rem; | ||
margin-top: 20px; | ||
margin-bottom: 0; | ||
} | ||
|
||
.card p { | ||
font-size: 1.5rem; | ||
margin-top: 10px; | ||
} | ||
|
||
.social-media img { | ||
width: 30px; | ||
margin-right: 10px; | ||
width: 42px; | ||
margin: 5px 20px; | ||
} | ||
|
||
#twitter { | ||
width: 40px; | ||
border-radius: 20%; | ||
background: #fff; | ||
box-sizing: border-box; | ||
padding: 5px; | ||
} | ||
|
||
.interests { | ||
font-size: 1.3rem; | ||
margin-top: 20px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.interests h3 { | ||
font-size: 1.8rem; | ||
margin-bottom: 10px; | ||
} |
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