Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesigned the free resources page #450

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 102 additions & 76 deletions Resources.css
Original file line number Diff line number Diff line change
@@ -1,91 +1,117 @@

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

/* General Styles */
body {
font-family: "Josefin Sans", sans-serif;
background-color: #f0f0f0;
}

.nav {
background-color: #ffebcc;
margin: 0;
font-family: 'Arial', sans-serif;
background-color: #f0f4f8;
color: #333;
}

.header {
display: flex;
justify-content: center;
justify-content: space-between;
align-items: center;
height: 10vh;
}

.text {
color: #333;
padding: 20px;
background-color:#0044cc;
color: white;
}

.nav-links a {
margin-left: 15px;
text-decoration: none;
color: white;
font-weight: bold;
font-size: 2rem;
text-align: center;
}
transition: color 0.3s;
}

.nav-links a:hover {
color: #ffcc00;
}

.main {
padding: 20px;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
#free-tag{
font-size: 50px;
font-weight: 600;
}

.mini-intro {
text-align: center;
padding: 50px 20px;
background-color: #003366;
color: white;
}

.resource-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}

.resource-box {
padding: 40px;
}

.resource-card {
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 300px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-box h2 {
font-size: 1.5rem;
color: #333;
margin-bottom: 10px;
}

.resource-box p {
color: #666;
font-size: 1rem;
margin-top:9px;
}
transition: transform 0.3s, box-shadow 0.3s;
line-height: 2;
}

.resource-card h3{
font-size: 20px;
font-weight: 500;
}

.resource-card:hover {
transform: translateY(-10px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.resource-icon {
width: 80px;
height: 80px;
margin-bottom: 15px;
}

.resource-box a {
.resource-card.dark-mode-card {
background-color: #1e1e1e; /* Dark background */
color: #fff; /* White text */
}

.visit-button {
display: inline-block;
margin-top: 10px;
padding: 8px 12px;
background-color: #007bff;
background-color: #28a745;
color: white;
text-decoration: none;
padding: 10px 20px;
border-radius: 5px;
font-size: 1rem;
transition: background-color 0.3s ease;
}

.resource-box a:hover {
background-color: #0056b3;
}

.resource-box:hover {
transform: translateY(-10px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive styling */
@media (max-width: 768px) {
.main {
flex-direction: column;
align-items: center;
}

.resource-box {
width: 100%;
max-width: 400px;
}
}
text-decoration: none;
transition: background-color 0.3s;
}

.visit-button:hover {
background-color: #218838;
}

.footerrr{
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: #003366;
color: white;
}

.social-icons-box{
display: flex;
justify-content: space-between;
}
.social-icons-box img {
width: 30px;
margin-left: 10px;
cursor: pointer;
transition: transform 0.3s;
}

.social-icons img:hover {
transform: scale(1.2);
}

Loading