-
Notifications
You must be signed in to change notification settings - Fork 119
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 #719 from Ojas-Arora/portal
Navbar Problem
- Loading branch information
Showing
5 changed files
with
268 additions
and
187 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,132 @@ | ||
.popular-container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: space-around; | ||
gap: 20px; | ||
} | ||
|
||
.card { | ||
background-color: white; | ||
border-radius: 10px; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
overflow: hidden; | ||
width: 300px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.card-image { | ||
width: 100%; | ||
height: 200px; | ||
object-fit: cover; | ||
} | ||
|
||
.card-content { | ||
padding: 15px; | ||
} | ||
|
||
.card-header { | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.profile-icon { | ||
width: 40px; | ||
height: 40px; | ||
border-radius: 50%; | ||
margin-right: 10px; | ||
} | ||
|
||
.card-title { | ||
font-size: 1.2em; | ||
font-weight: bold; | ||
color: #000; | ||
} | ||
|
||
.card-body { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.card-dev, | ||
.card-role, | ||
.card-about, | ||
.card-text { | ||
margin-bottom: 5px; | ||
font-size: 0.9em; | ||
color: #333; | ||
} | ||
|
||
.card-footer { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: 10px; | ||
} | ||
|
||
.card-hearts { | ||
font-size: 1.2em; | ||
color: white; | ||
} | ||
|
||
.read-more, | ||
.source-code { | ||
background-color: #6052ff; | ||
color: white; | ||
border: none; | ||
padding: 10px; | ||
border-radius: 10px; | ||
cursor: pointer; | ||
font-size: 14px; | ||
text-align: center; | ||
flex: 1; | ||
margin: 0 5px; | ||
} | ||
|
||
.source-code { | ||
background-color: #00c6ff; | ||
} | ||
|
||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 10px; /* Gap between cards */ | ||
margin-top: 5px; | ||
} | ||
|
||
.popular-card { | ||
background-color: #171238; | ||
border-radius: 10px; | ||
padding: 20px; | ||
width: calc(25% - 10px); /* Adjusted width for 4 cards per row, accounting for gap */ | ||
color: white; | ||
text-align: justify; | ||
position: relative; | ||
height: 330px; | ||
transition: transform 0.3s ease-in-out; | ||
border: 2px solid black; /* Added black border */ | ||
} | ||
|
||
.popular-card:hover { | ||
transform: scale(1.05); | ||
} | ||
|
||
.popular-card img { | ||
margin-left: -10px; | ||
margin-top: -20px; | ||
width: 260px; | ||
height: 110px; | ||
object-fit: cover; | ||
} | ||
|
||
.popular-card h3 { | ||
margin: 10px; | ||
font-size: 20px; | ||
color: #fff; | ||
} | ||
|
||
.popular-card .likes { | ||
position: absolute; | ||
top: 125px; | ||
right: 20px; | ||
font-size: 16px; | ||
color: white; | ||
} | ||
|
||
.popular-card .details { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: -12px; | ||
padding: 0 10px; | ||
align-items: flex-start; /* Aligns the items at the start */ | ||
} | ||
|
||
.popular-card .developer, | ||
.popular-card .type { | ||
flex: 1; /* Both sections take equal space */ | ||
font-size: 13px; | ||
color: grey; | ||
font-weight: bold; | ||
} | ||
|
||
.popular-card .developer span, | ||
.popular-card .type span { | ||
display: block; | ||
color: darkturquoise; | ||
padding: 0 12px; | ||
} | ||
|
||
.popular-card .type { | ||
text-align: right; | ||
margin-top: 0; /* Reset the margin */ | ||
max-width: 50%; /* Limits the width of the type section */ | ||
white-space: normal; /* Allows the text to wrap */ | ||
margin-top: -38px; | ||
margin-left: 105px; | ||
} | ||
|
||
.popular-card .developer { | ||
padding-right: 10px; /* Adds a bit more space on the right */ | ||
} | ||
|
||
.popular-card .type { | ||
padding-left: 10px; /* Adds a bit more space on the left */ | ||
} | ||
|
||
.popular-card .author { | ||
font-size: 18px; | ||
color: white; | ||
margin: 10px 0; | ||
padding: 0 12px; | ||
display: flex; | ||
align-items: center; | ||
font-weight: bold; | ||
} | ||
|
||
.popular-card .author p { | ||
margin: 0; | ||
margin-right: 15px; /* Gap between "By:" and the name */ | ||
} | ||
|
||
.popular-card .author span { | ||
color: #00c6ff; | ||
font-weight: bold; | ||
} | ||
|
||
.popular-card .actions { | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: 28px; | ||
} | ||
|
||
.popular-card .read-more, | ||
.popular-card .source-code { | ||
background-color: #ff21bc; | ||
color: white; | ||
border: none; | ||
padding: 0 12px; | ||
border-radius: 20px; | ||
cursor: pointer; | ||
font-size: 10px; | ||
font-weight: bold; | ||
width: 45%; | ||
text-align: center; | ||
text-decoration: none; | ||
height: 24px; | ||
line-height: 24px; | ||
} | ||
|
||
.popular-card .source-code { | ||
background-color: #00c6ff; | ||
} |
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
Oops, something went wrong.