diff --git a/Image-Gallery/style.css b/Image-Gallery/style.css index 687f448d..f1c0cf80 100644 --- a/Image-Gallery/style.css +++ b/Image-Gallery/style.css @@ -4,69 +4,58 @@ body { align-items: center; text-align: center; justify-content: center; + background-color: var(--body-light); } + :root { - --primary-color: #3685fb; - --primary-color-dark: #2f73d9; - --text-light: #767268; - --extra-light: #ffffff; + --primary-color: #6a0dad; /* Purple */ + --primary-color-dark: #2f73d9; /* Dark Blue */ + --text-light: #ffffff; /* Light text */ + --extra-light: #fafcff; --foot-light: #0d213f; --arr-light: #ffffff; - --body-light: #ffffff; + --body-light: #fafcff; --secondary-color: #fafcff; --text-dark: #0d213f; --max-width: 1200px; - --img-color: slateblue; - --head-text: #6a5acd; - --btn-border: slateblue; - --btn-color: red; - + --img-color: #6a0dad; /* Image accent color */ + --head-text: #6a0dad; + --btn-border: linear-gradient(45deg, #6a0dad, #2f73d9); /* Gradient border for buttons */ + --btn-color: #ffffff; /* Button text color */ } * { padding: 0; margin: 0; box-sizing: border-box; - } .dark-theme { --secondary-color: #0e1525; --text-dark: #ffffff; - --arr-light: white; + --arr-light: #ffffff; --body-light: #0e1525; - --img-color:red; - --head-text: red; - --btn-border: red; - --btn-color: #fdbb2dbf; + --img-color: #6a0dad; + --head-text: #ff69b4; /* Pink for dark theme headers */ + --btn-border: linear-gradient(45deg, #6a0dad, #2f73d9); + --btn-color: #ffffff; --footer-text-color: #ffffff; } -.footer__text { - color: var(--footer-text-color); -} - -.footer__title { - color: var(--footer-text-color); -} - -.footer__subtitle { +.footer__text, .footer__title, .footer__subtitle, .footer__col p { color: var(--footer-text-color); } .footer__col h4 { - color: #123456; + color: #6a0dad; } -.footer__col p { - color: var(--footer-text-color); -} - -.gallery-rotate-image{ +.gallery-rotate-image { display: flex; align-items: center; justify-content: center; } + .image-container { position: relative; width: 200px; @@ -101,18 +90,20 @@ body { justify-content: space-between; } +/* Gradient background for buttons */ .btn { - top : -40px; - background-color: slateblue; - color: white; + top: -40px; + background: linear-gradient(45deg, #6a0dad, #2f73d9); /* Purple to Dark Blue gradient */ + color: var(--btn-color); border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; + transition: background-color 0.3s ease, filter 0.3s ease; } .btn:hover { - filter: brightness(1.5); + filter: brightness(1.2); /* Slightly brighter on hover */ } #btn-style { @@ -122,8 +113,8 @@ body { padding-left: 20px; padding-right: 20px; width: auto; - background-color: var(--btn-border); - border: 2px solid var(--btn-border); + background: linear-gradient(45deg, #6a0dad, #2f73d9); /* Gradient background */ + border: 2px solid transparent; /* Remove solid border, keep gradient */ color: var(--arr-light); font-weight: 500; font-size: 14px; @@ -132,17 +123,13 @@ body { text-decoration: none; white-space: nowrap; } + #btn-style:hover { - background-color: #ff0000; + background-color: #ff0000; border-color: #ff0000; color: #fff; } -#btn:hover { - filter: brightness(1.5); -} - - .btn-style { display: inline-block; border-radius: 50px; @@ -150,8 +137,8 @@ body { padding-left: 20px; padding-right: 20px; width: auto; - background-color: transparent; - border: 2px solid var(--btn-border); + background: linear-gradient(45deg, #6a0dad, #2f73d9); /* Gradient background */ + border: 2px solid var(--btn-border); /* Gradient border */ color: var(--btn-color); font-weight: 500; font-size: 14px; @@ -160,16 +147,13 @@ body { text-decoration: none; white-space: nowrap; } + .btn-style:hover { - background-color: #ff0000; + background-color: #ff0000; border-color: #ff0000; color: #fff; } -.btn:hover { - filter: brightness(1.5); -} - #prev { left: 0%; } diff --git a/Image-Gallery/stylecaptions.css b/Image-Gallery/stylecaptions.css index b44d2333..5d8a895e 100644 --- a/Image-Gallery/stylecaptions.css +++ b/Image-Gallery/stylecaptions.css @@ -1,20 +1,27 @@ -/* contribution-namefeature enhancement GSSOC */ - - .image-container { - display: inline-block; - position: relative; - text-align: center; - font-weight: bolder; - - margin: 20px; - } - - figcaption { - display: block; - margin-top: 8px; - margin-bottom: 20px; - } - + display: inline-block; + position: relative; + text-align: center; + font-weight: bolder; + margin: 20px; + padding: 10px; + border-radius: 10px; + background: linear-gradient(45deg, #6a0dad, #2f73d9); /* Purple to dark blue gradient */ + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for a 3D effect */ + transition: transform 0.3s ease, box-shadow 0.3s ease; +} + +/* Add a subtle hover effect to the image container */ +.image-container:hover { + transform: translateY(-5px); /* Lifts the image container on hover */ + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhances shadow on hover */ +} - \ No newline at end of file +figcaption { + display: block; + margin-top: 8px; + margin-bottom: 20px; + color: #ffffff; /* White text for contrast against the dark theme */ + font-size: 16px; /* Adjust the font size for better readability */ + text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Add a subtle text shadow for depth */ +} diff --git a/loc.html b/loc.html index 412aa336..432ec4af 100644 --- a/loc.html +++ b/loc.html @@ -11,43 +11,63 @@ padding: 0; background-color: #f4f4f4; } + + /* Gradient header */ header { - background-color: #333; + background: linear-gradient(45deg, #6a0dad, #2f73d9); /* Purple to dark blue gradient */ color: white; padding: 1em; text-align: center; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow to the header */ } + #events { display: flex; flex-wrap: wrap; justify-content: center; - padding: 1em; + padding: 2em; } + + /* Styling event cards */ .event-card { background-color: white; - border: 1px solid #ddd; - border-radius: 8px; - margin: 10px; + border: none; + border-radius: 12px; + margin: 15px; padding: 15px; - width: 300px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + width: 320px; + box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); + transition: transform 0.3s ease, box-shadow 0.3s ease; } + + /* Hover effect for cards */ + .event-card:hover { + transform: translateY(-8px); /* Lift the card on hover */ + box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */ + } + .event-card img { width: 100%; height: auto; - border-radius: 8px 8px 0 0; + border-radius: 12px 12px 0 0; /* Round the top corners */ } + .event-card h2 { - font-size: 1.5em; + font-size: 1.6em; + color: #6a0dad; /* Use purple for titles */ margin: 10px 0; } + .event-card p { font-size: 1em; margin-bottom: 10px; + color: #333; } + .event-card .date { font-weight: bold; - color: #333; + color: #2f73d9; /* Use dark blue for the date */ + margin-bottom: 10px; }