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

Update style.css #38

Closed
wants to merge 1 commit into from
Closed
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
284 changes: 201 additions & 83 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,158 +1,276 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
:root {
--color-default: #222222;
--color-primary: #0f0f0f;
--color-secondary: #f85a40;
}

html {
--bg: #f8fafc;
--primary: #f43f5e;
--btn-color: #f43f5e;
--btn-text: #fff;
--head: #334155;
--card: #fff;
--p: #4b5563;
--bg: #f8fafc;
--primary: #f43f5e;
--btn-color: #f43f5e;
--btn-text: #fff;
--head: #334155;
--card: #fff;
--p: #4b5563;
}

html[data-theme="dark"] {
--bg: #1e293b;
--btn-color: #fecdd3;
--btn-text: #1e293b;
--head: #fff;
--p: #94A3B8;
--bg: #1e293b;
--btn-color: #fecdd3;
--btn-text: #1e293b;
--head: #fff;
--p: #94a3b8;
}

a {
text-decoration: none;
text-decoration: none;
}

ul {
list-style: none;
list-style: none;
}

body {
margin: 0;
padding: 0;
background-color: var(--bg);
margin: 0;
padding: 0;
background-color: var(--bg);
}

#projects {
margin: 5rem 0;
margin: 5rem 0;
}

.projects-heading {
margin-top: 20px;
text-align: center;
margin-top: 20px;
text-align: center;
}

.projects-heading h3 span {
color: var(--primary);
color: var(--primary);
}

.projects-heading h3 {
font-size: 2.7rem;
font-weight: 600;
color: var(--head);
font-size: 2.7rem;
font-weight: 600;
color: var(--head);
}

.projects-heading p {
color: var(--p);
color: var(--p);
}

.btn-container {
margin-top: 2rem;
margin-top: 2rem;
}

.projects-heading .source-code-btn {
background-color: var(--btn-color);
font-weight: 500;
border-radius: 0.5rem;
/* height: 2.5rem; */
color: var(--btn-text);
padding: 0.8rem 1rem;
background-color: var(--btn-color);
font-weight: 500;
border-radius: 0.5rem;
/* height: 2.5rem; */
color: var(--btn-text);
padding: 0.8rem 1rem;
}

.projects-container {
max-width: 1080px;
display: grid;
margin: 3rem auto;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
grid-gap: 1rem;
padding: 1rem;
max-width: 1080px;
display: grid;
margin: 3rem auto;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
grid-gap: 1rem;
padding: 1rem;
}

.card {
background: var(--card);
border-radius: 8px;
color: #0f172a;
transition: all 0.2s ease-in-out 0s;
transition-property: all;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
transition-delay: 0s;
background: var(--card);
border-radius: 8px;
color: #0f172a;
transition: all 0.2s ease-in-out 0s;
transition-property: all;
transition-duration: 0.2s;
transition-timing-function: ease-in-out;
transition-delay: 0s;
}

.card:hover {
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.card-cover {
background: rgba(25, 90, 216, 0.2);
border-radius: 8px 8px 0 0;
height: 8rem;
display: flex;
align-items: center;
justify-content: center;
background: rgba(25, 90, 216, 0.2);
border-radius: 8px 8px 0 0;
height: 8rem;
display: flex;
align-items: center;
justify-content: center;
}

.counter-cover-color {
background: rgba(255, 206, 0, 0.2);
background: rgba(255, 206, 0, 0.2);
}

.counter-cover-colour {
background-color: rgba(249, 89, 95, 0.2);
background-color: rgba(249, 89, 95, 0.2);
}

.card-cover img {
height: 80%;
height: 80%;
}

.card-content {
padding: 1rem;
padding: 1rem;
}

.card-heading {
color: #1e293b;
font-weight: 600;
color: #1e293b;
font-weight: 600;
}

.card-description {
color: #475569;
font-size: 0.9rem;
margin-top: 0.2rem;
color: #475569;
font-size: 0.9rem;
margin-top: 0.2rem;
}

.icon {
position: fixed;
top: 1rem;
right: 1rem;
position: fixed;
top: 1rem;
right: 1rem;
}

#toggle-mode-btn {
border: none;
display: inline-flex;
appearance: none;
align-items: center;
justify-content: center;
border-radius: 9999px;
padding: 8px;
align-items: center;
background-color: #f43f5e;
color: #ffffff;
cursor: pointer;
border: none;
display: inline-flex;
appearance: none;
align-items: center;
justify-content: center;
border-radius: 9999px;
padding: 8px;
align-items: center;
background-color: #f43f5e;
color: #ffffff;
cursor: pointer;
}

#toggle-mode-btn svg {
fill: #fff;
}
fill: #fff;
}
.footer {
font-size: 14px;
background-color: var(--color-primary);
padding: 50px 0;
color: white;
}

.footer .footer-info .logo {
line-height: 0;
margin-bottom: 25px;
text-decoration: none;
}

.footer .footer-info .logo img {
max-height: 40px;
margin-right: 6px;
}

.footer .footer-info .logo span {
font-size: 30px;
font-weight: 500;
color: #fff;
font-family: var(--font-primary);

}

.footer .footer-info p {
font-size: 14px;
font-family: var(--font-primary);
}

.footer .social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
border: 1px solid rgba(255, 255, 255, 0.2);
font-size: 16px;
color: rgba(255, 255, 255, 0.7);
margin-right: 10px;
transition: 0.3s;
}

.footer .social-links a:hover {
color: #fff;
border-color: #fff;
}

.footer h4 {
font-size: 16px;
font-weight: bold;
position: relative;
padding-bottom: 12px;
}

.footer .footer-links {
margin-bottom: 30px;
}

.footer .footer-links ul {
list-style: none;
padding: 0;
margin: 0;
}

.footer .footer-links ul i {
padding-right: 2px;
color: rgba(0, 131, 116, 0.8);
font-size: 12px;
line-height: 0;
}

.footer .footer-links ul li {
padding: 10px 0;
display: flex;
align-items: center;
}

.footer .footer-links ul li:first-child {
padding-top: 0;
}

.footer .footer-links ul a {
color: rgba(255, 255, 255, 0.7);
transition: 0.3s;
display: inline-block;
text-decoration: none;
line-height: 1;
}

.footer .footer-links ul a:hover {
color: #fff;
}

.footer .footer-contact p {
line-height: 26px;
}

.footer .copyright {
text-align: center;
}

.footer .credits {
padding-top: 4px;
text-align: center;
font-size: 13px;
}

.footer .credits a {
color: #fff;
}