-
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.
✨ Add custom profile image & styling for About Page
- Added a profile image to the About page using the Congo theme's `figure` shortcode. - Introduced a custom CSS class `.about-me-image` to enable specialized styling for the image. - Created `assets/css/custom.css` to house the new styling for the `figure` shortcode integration. - Enhanced responsiveness and hover interactions for better mobile and desktop compatibility.
- Loading branch information
1 parent
20ae930
commit e67ce0f
Showing
4 changed files
with
58 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* ========================== | ||
Global Styles for About Me Image | ||
========================== */ | ||
|
||
/* Container for the profile image */ | ||
.about-me-image { | ||
display: block; | ||
margin: 0 auto; /* Center the image container */ | ||
text-align: center; | ||
} | ||
|
||
/* Styling for the profile image */ | ||
.about-me-image img { | ||
width: 60%; /* Responsive width */ | ||
max-width: 200px; /* Prevent excessive scaling on large screens */ | ||
height: 300px; /* Fixed height for an oval appearance */ | ||
object-fit: cover; /* Maintain aspect ratio while filling the container */ | ||
border-radius: 50%; /* Creates an oval shape */ | ||
border: 3px solid #06b6d4; /* Accent border for visual emphasis */ | ||
box-shadow: 0 10px 20px rgba(5, 88, 238, 0.15); /* Subtle shadow for depth */ | ||
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth hover transition */ | ||
padding: 5px; /* Padding around the image */ | ||
} | ||
|
||
/* Hover effect for non-touch devices */ | ||
.about-me-image img:hover { | ||
transform: scale(1.05); /* Slight zoom effect on hover */ | ||
box-shadow: 0 15px 30px rgba(5, 88, 238, 0.25); /* Enhanced shadow on hover */ | ||
} | ||
|
||
/* Mobile responsiveness for smaller screens */ | ||
@media (max-width: 768px) { | ||
.about-me-image img { | ||
max-width: 150px; /* Reduce max width for smaller devices */ | ||
height: auto; /* Maintain proportion based on width */ | ||
} | ||
} | ||
|
||
/* Disable hover effects for touch devices */ | ||
@media (hover: none) { | ||
.about-me-image img:hover { | ||
transform: none; /* Disable hover animations */ | ||
box-shadow: 0 10px 20px rgba(5, 88, 238, 0.15); /* Default shadow */ | ||
} | ||
} |
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 |
---|---|---|
|
@@ -12,3 +12,6 @@ summaryLength = 0 | |
|
||
[outputs] | ||
home = ["HTML", "RSS", "JSON"] | ||
|
||
[params] | ||
custom_css = "custom.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
Binary file not shown.