From 30368c348cf14753117a7c2b009f2e3ff41142a5 Mon Sep 17 00:00:00 2001 From: Madhurima Rawat <105432776+madhurimarawat@users.noreply.github.com> Date: Tue, 30 Jul 2024 23:15:55 +0530 Subject: [PATCH] Enhanced repo details, improved CSS layout. Added additional repository details and improved CSS styling - Included watchers, forks, updated, and deployment status for each repository in the display. - Adjusted CSS to refine link appearance, ensuring consistency and visual appeal. - Implemented a two-column layout for better organization and readability of repository information. - Enhanced mobile device responsiveness by adjusting the user information card to fit smaller screens seamlessly. --- css/index.css | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 2 ++ js/index.js | 45 +++++++++++++++++++++++++++++-- 3 files changed, 119 insertions(+), 2 deletions(-) diff --git a/css/index.css b/css/index.css index d75a5a9..ff9b276 100644 --- a/css/index.css +++ b/css/index.css @@ -259,4 +259,78 @@ h3 { text-align: center; /* Vertically align content */ vertical-align: middle; +} + +.spacer { + height: 2em; + /* This creates space equivalent to two line breaks */ +} + +.repo-actions { + display: grid; + grid-template-columns: 1fr; + /* Default to a single column */ + gap: 10px; + /* Add space between grid items */ +} + +@media (min-width: 768px) { + + /* Adjust breakpoint as needed */ + .repo-actions { + grid-template-columns: 1fr 1fr; + /* Two columns for larger screens */ + } +} + +/* Media query for smaller devices */ +@media (max-width: 767px) { + .user-info-card table { + display: block; + } + + .user-info-card td { + display: block; + width: 100%; + text-align: center; + } + + .user-details { + padding-left: 0; + text-align: center; + } + + .user-details p { + margin-bottom: 10px; + } + + #userProfileLink a { + display: inline-block; + margin-top: 10px; + } + + .repo-actions { + display: grid; + grid-template-columns: 1fr; + gap: 10px; + } + + .repo-actions p { + margin: 0; + /* Removes margin between paragraphs */ + margin-bottom: 5px; + /* Adjust this value to decrease or increase space */ + padding: 0; + /* Removes padding inside paragraphs */ + } + + .centered-td img { + display: block; + margin: 0 auto; + /* Center the image horizontally */ + padding-top: 10px; + /* Add space before the image */ + padding-bottom: 10px; + /* Add space after the image */ + } } \ No newline at end of file diff --git a/index.html b/index.html index cdae3af..edc7a03 100644 --- a/index.html +++ b/index.html @@ -114,6 +114,8 @@

+ +