forked from rocktimsaikia/Contribute-101
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reowrk Card Design * Update Cards * Fix Country Names
- Loading branch information
1 parent
6403ca9
commit 045b9e3
Showing
2 changed files
with
142 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,107 +1,158 @@ | ||
@import url("https://fonts.googleapis.com/css?family=Krub|Open+Sans|Raleway"); | ||
:root { | ||
--lightgreen: #68e074; | ||
--darkgrey: #333333; | ||
--lightgrey: #c4c4c4; | ||
--darkgreen: #4ecf8a; | ||
} | ||
|
||
body { | ||
background: #fff; | ||
font-family: "Open Sans", sans-serif; | ||
font-family: 'Open Sans', sans-serif; | ||
} | ||
|
||
ul { | ||
padding: 0; | ||
} | ||
|
||
p { | ||
margin: 0px; | ||
} | ||
|
||
#hero-page { | ||
font-family: "Krub", sans-serif; | ||
font-family: 'Krub', sans-serif; | ||
text-align: center; | ||
background: rgb(92, 67, 67); | ||
background: var(--darkgrey); | ||
color: #fff; | ||
border: 2px solid #fff; | ||
padding: 2rem; | ||
} | ||
|
||
.cards-wrapper { | ||
display: table; | ||
margin: auto; | ||
margin-top: 3em; | ||
} | ||
|
||
.cards { | ||
position: relative; | ||
display: grid; | ||
list-style: none; | ||
grid-gap: 20px; | ||
grid-template-columns: repeat(3, 1fr); | ||
font-family: "Raleway"; | ||
grid-gap: 3vw; | ||
grid-template-columns: repeat(4, 20vw); | ||
font-family: 'Roboto'; | ||
} | ||
.cards > .info_card > li > img { | ||
margin: 7px 0 4px 40px; | ||
} | ||
.cards > .info_card > li > h4 { | ||
color: #333; | ||
padding-left: 40px; | ||
margin-bottom: 3px; | ||
|
||
.info_card { | ||
color: var(--darkgrey); | ||
width: 20vw; | ||
float: left; | ||
font-weight: 600; | ||
line-height: 1; | ||
background: #fff; | ||
color: #333; | ||
box-shadow: 6px 6px 20px -5px rgba(51, 51, 51, 0.6); | ||
padding: 1.3vw; | ||
display: inherit; | ||
} | ||
.cards > .info_card > li > p { | ||
color: rgb(161, 161, 161); | ||
padding-left: 40px; | ||
margin: 0; | ||
|
||
.info_card img { | ||
width: 100%; | ||
height: 12vw; | ||
object-fit: cover; | ||
object-position: 100% 0%; | ||
border-radius: 0.6em; | ||
} | ||
|
||
.info_card h4 { | ||
font-size: 2vw; | ||
font-weight: bold; | ||
margin-bottom: 1.3vw; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
padding-left: 0.5vw; | ||
} | ||
|
||
.info_card p.role { | ||
font-size: 1vw; | ||
font-weight: 600; | ||
display: inline; | ||
padding-left: 0.5vw; | ||
} | ||
.cards > .info_card > li > .tech-stack { | ||
margin: 10px 0 0 60px; | ||
|
||
.info_card p.country { | ||
font-size: 1vw; | ||
background-color: var(--lightgrey); | ||
border: solid var(--lightgrey); | ||
border-radius: 0.4em; | ||
padding: 0em 0.5em; | ||
float: right; | ||
max-width: 10vw; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
.cards > .info_card > li > .tech-stack > ol { | ||
margin: 0 18px 20px 0; | ||
|
||
.info_card p.country > i { | ||
vertical-align: middle; | ||
} | ||
.cards > .info_card { | ||
font-weight: 600; | ||
padding: 0 20px; | ||
background: #fff; | ||
color: #333; | ||
box-shadow: 0 16px 48px #e3e7eb; | ||
border-top: 6px solid #5aff62; | ||
border-radius: 10px; | ||
|
||
.info_card li { | ||
overflow: hidden; | ||
} | ||
|
||
.tech-stack { | ||
margin-top: 0.7vw; | ||
} | ||
.info_card:hover{ | ||
box-shadow:0 10px 30px #5aff62; | ||
|
||
.tech-stack > ul { | ||
list-style-type: none; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
} | ||
.info_card > li { | ||
margin-top: 20px; | ||
|
||
.tech-stack li { | ||
font-size: 1vw; | ||
background-color: var(--lightgrey); | ||
border: solid var(--lightgrey); | ||
border-radius: 0.4em; | ||
margin-top: 0.5vw; | ||
text-overflow: ellipsis; | ||
overflow: inherit; | ||
padding: 0vw 1vw; | ||
} | ||
|
||
.info_card > a { | ||
font-size: 30px; | ||
margin: 10px; | ||
} | ||
.tech-stack > p { | ||
margin: 0; | ||
} | ||
.tech-stack > ol { | ||
margin-left: 0; | ||
|
||
.social-row { | ||
margin-top: -2vw; | ||
margin-bottom: 3vw; | ||
} | ||
|
||
.social-media { | ||
background-color: #f66767; | ||
padding: 6px; | ||
background-color: var(--lightgreen); | ||
border: solid var(--lightgreen); | ||
border-radius: 0.6em; | ||
margin: 0; | ||
display: inline-flex; | ||
align-items: center; | ||
line-height: 17px; | ||
width: 2vw; | ||
height: 2vw; | ||
padding: 0vw 1.5vw; | ||
justify-content: center; | ||
} | ||
|
||
.social-media:hover { | ||
background-color: #d35656; | ||
background-color: var(--darkgreen); | ||
border: solid var(--darkgreen); | ||
} | ||
.social-media > a:hover { | ||
|
||
.social-row > a:hover { | ||
text-decoration: none; | ||
} | ||
|
||
.social-media > i { | ||
font-size: 23px; | ||
font-size: 1.5vw; | ||
color: black; | ||
margin: 0 auto; | ||
padding: 3px; | ||
vertical-align: middle; | ||
} | ||
|
||
@media only screen and (max-width: 1040px) { | ||
.cards { | ||
grid-template-columns: 2fr 50%; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 600px) { | ||
.cards { | ||
grid-template-columns: 1fr; | ||
} | ||
} |
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