-
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 #463 from Ojas-Arora/test
Transform Your Services Page: Make It as Engaging as Your Blog
- Loading branch information
Showing
3 changed files
with
79 additions
and
103 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,97 +1,73 @@ | ||
.home-icon { | ||
position: absolute; | ||
top: 1.5rem; | ||
left: 1.5rem; | ||
width: 2.5rem; | ||
cursor: pointer; | ||
} | ||
|
||
.services { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
.services-page { | ||
background: #121026; | ||
color: #ffffff; | ||
width: 100%; | ||
padding: 20px; | ||
max-width: 700px; | ||
margin: 0 auto; | ||
margin-top: 50px; | ||
border-radius: 10px; | ||
} | ||
|
||
.services h1 { | ||
.services-page h1 { | ||
text-align: center; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.service { | ||
.services { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 20px; | ||
max-width: 800px; | ||
align-items: center; | ||
width: 100%; | ||
} | ||
|
||
.service-post { | ||
border: 2px solid #6052ff; | ||
box-shadow: 7px 7px 32px 0 #6052ff; | ||
background: #19162c; | ||
padding: 20px; | ||
border-radius: 10px; | ||
transition: transform 0.3s, box-shadow 0.3s; | ||
background: #1f1c35; | ||
padding: 10px 20px; | ||
transition: 0.3s; | ||
cursor: pointer; | ||
width: 100%; | ||
max-width: 800px; | ||
overflow: hidden; | ||
box-shadow: 7px 7px 32px 0 #6052ff; | ||
} | ||
.service-post:not(.active):hover { | ||
box-shadow: 0 0px 10px rgba(193, 193, 193, 0.3); | ||
} | ||
|
||
.service-post h2 { | ||
margin-bottom: 10px; | ||
cursor: pointer; | ||
font-size: 18px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
.service-post.active { | ||
background-color: #1f1c35; | ||
} | ||
.service-post.active * { | ||
color: #ff21bc; | ||
} | ||
|
||
.service-post .date { | ||
font-size: 0.9em; | ||
font-size: 13px; | ||
color: #aaa; | ||
margin-bottom: 15px; | ||
} | ||
|
||
.service-post .content { | ||
.services .content { | ||
line-height: 1.6; | ||
margin-top: 15px; | ||
} | ||
|
||
.service-post:hover { | ||
transform: translateY(-5px); | ||
/* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */ | ||
transition: 0.1s; | ||
opacity: 0; | ||
background-color: #1f1c35; | ||
transform: scaleY(0); | ||
transform-origin: top; | ||
width: 100%; | ||
max-width: 800px; | ||
margin-bottom: 12px; | ||
padding: 0 20px; | ||
border-top: 2px solid #121026; | ||
box-shadow: 7px 7px 32px 0 #6052ff; | ||
} | ||
|
||
.service-post.expanded .content { | ||
display: block; | ||
} | ||
|
||
.service-post .content { | ||
display: none; | ||
} | ||
|
||
button { | ||
background: #ff6347; | ||
color: #ffffff; | ||
padding: 10px 20px; | ||
border: none; | ||
border-radius: 5px; | ||
.home-icon { | ||
position: absolute; | ||
top: 1rem; | ||
left: 1rem; | ||
width: 2.5rem; | ||
cursor: pointer; | ||
transition: background-color 0.3s; | ||
} | ||
|
||
button:hover { | ||
background: #e55347; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.services { | ||
padding: 10px; | ||
} | ||
|
||
.service-post { | ||
padding: 15px; | ||
} | ||
.services .content.expand { | ||
opacity: 1; | ||
transform: scaleY(1); | ||
padding: 20px; | ||
} |
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