Skip to content

Commit

Permalink
fix about page
Browse files Browse the repository at this point in the history
  • Loading branch information
VerisimilitudeX authored Feb 21, 2025
1 parent 3fd5646 commit fc9a8ec
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 731 deletions.
187 changes: 14 additions & 173 deletions web/about/about.css
Original file line number Diff line number Diff line change
@@ -1,58 +1,5 @@
/*
* Copyright © 2025 Piyush Acharya. Some rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* You are entirely responsible for the use of this application, including any and all activities that occur.
* While DNAnalyzer strives to fix all major bugs that may be either reported by a user or discovered while debugging,
* they will not be held liable for any loss that the user may incur as a result of using this application, under any circumstances.
*
* For further inquiries, please reach out to [email protected]
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

* > * {
font-family: "Poppins", cursive;
}

body {
--text-light: rgba(243, 244, 246, 0.9);
--primary-dark: rgba(55, 65, 81, 1);
--secondary-dark: rgba(55, 65, 81, 0.7);
--bg-light: rgba(243, 244, 246, 0.3);
--bg-btn: rgba(67, 56, 202, 0.8);
background-color: var(--text-light);
}

body.dark {
--text-light: rgba(55, 65, 81, 1);
--primary-dark: rgba(243, 244, 246, 1);
--secondary-dark: rgba(255, 255, 255);
--bg-btn: rgba(219, 233, 29, 0.897);
--bg-light: rgba(45, 49, 54, 0.5);
}

.btn {
background-color: #4CAF50;
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}

p {
margin: 0;
}

/* About page specific styles */
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 0;
max-width: 1200px;
margin: 6rem auto 2rem;
padding: 2rem;
Expand All @@ -62,107 +9,13 @@ p {
margin-bottom: 4rem;
}

.text-center {
text-align: center;
padding: 10px 15px;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
padding: 2rem 0;
}

.grid .flex {
display: flex;
flex-direction: column;
align-items: center;
padding: 4em 0;
}

.grid .icon > span {
font-size: 4em;
color: var(--bg-btn);
}

.primary-dark {
color: var(--primary-dark);
}

.secondary-dark {
color: var(--secondary-dark);
padding: 20px 30px;
}

.bg-light {
background-color: var(--bg-light);
box-shadow: 1px 5px 20px rgba(55, 65, 81, 0.1);
border-radius: 20px;
}

.btn {
width: 250px;
height: 30px;
background-color: #f44336;
border: none;
font-size: 18px;
color: #fff;
border-radius: 50px;
cursor: pointer;
font-weight: bold;
margin: auto
}

img {
width: 120px;
padding: 10px;
border-radius: 50%;
background-color: #f44336;
margin-top: 250px;
}

input[type="checkbox"] {
-webkit-appearance: none;
appearance: none;
position: relative;
width: 80px;
height: 40px;
border-radius: 50px;
outline: none;
/* background-color: yellow; */
background-image: url(https://i.postimg.cc/857jHw2q/Screenshot-2020-04-16-at-1-07-06-PM.png);
background-size: cover;
}

input[type="checkbox"]::before {
content: "";
position: absolute;
top: 0;
left: 0;
height: 40px;
width: 40px;
background-color: var(--primary-dark);
border-radius: 50px;
}

input[type="checkbox"]:checked:before {
transform: translate(100%);
}

input[type="checkbox"]:checked {
background-image: url(https://i.postimg.cc/Hn0nstVK/Screenshot-2020-04-16-at-1-07-19-PM.png);
}

img {
width: 130px;
padding: 10px;
border-radius: 50%;
background-color: #f44336;
margin-top: 100px;
}

/* About page specific styles */
.glass-card {
background: rgba(255, 255, 255, 0.05);
padding: 2rem;
Expand All @@ -189,6 +42,10 @@ img {
.card-icon {
width: 32px;
height: 32px;
padding: 0;
background: none;
border-radius: 0;
margin: 0;
}

.glass-card h2 {
Expand All @@ -207,29 +64,19 @@ img {

.feature-image {
width: 100%;
height: auto;
border-radius: 8px;
margin-top: 1.5rem;
transition: transform 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
padding: 0;
background: none;
}

.feature-image:hover {
transform: scale(1.02);
}

.glass-footer {
background: rgba(255, 255, 255, 0.05);
backdrop-filter: blur(10px);
padding: 1.5rem;
text-align: center;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-footer p {
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
}

.glass-button {
background: rgba(255, 255, 255, 0.1);
color: white;
Expand All @@ -250,10 +97,12 @@ img {
@media (max-width: 768px) {
.container {
padding: 1rem;
margin-top: 5rem;
}

.grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}

.glass-card {
Expand All @@ -263,17 +112,9 @@ img {
.feature-image {
margin: 1rem 0;
}
}

.glass-card h2 {
margin-bottom: 1rem;
color: #ffffff;
}

/* Remove unused styles */
body.dark,
.btn,
input[type="checkbox"],
img.icon {
display: none;
h1 {
font-size: 2rem;
text-align: center;
}
}
2 changes: 1 addition & 1 deletion web/about/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<header class="floating-header">
<nav class="floating-nav">
<a href="../index.html" class="nav-link">
<img src="../assets/icons/Icon_Light_BG.svg" alt="DNAnalyzer Logo" class="nav-logo">
<img src="../assets/icons/Icon_Base.svg" alt="DNAnalyzer Logo" class="nav-logo">
</a>
<a href="about.html" class="nav-link active">About</a>
<a href="../features/features.html" class="nav-link">Features</a>
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<header class="floating-header">
<nav class="floating-nav">
<a href="#" class="nav-link active">
<img src="assets/icons/Icon_Light_BG.svg" alt="DNAnalyzer Logo" class="nav-logo">
<img src="assets/icons/Icon_Base.svg" alt="DNAnalyzer Logo" class="nav-logo">
</a>
<a href="about/about.html" class="nav-link">About</a>
<a href="features/features.html" class="nav-link">Features</a>
Expand Down
58 changes: 35 additions & 23 deletions web/server/server.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
/* Server page specific styles */
.container {
max-width: 1200px;
margin: 6rem auto 2rem;
padding: 2rem;
}

.server-setup-section {
margin-top: 2rem;
}
Expand All @@ -19,6 +25,15 @@
border-color: var(--gradient-end);
}

.glass-card h2 {
font-size: 1.8rem;
margin-bottom: 1.5rem;
background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-align: left;
}

#server-status {
margin-top: 1rem;
padding: 1.5rem;
Expand All @@ -33,15 +48,6 @@
color: rgba(255, 255, 255, 0.6);
}

.glass-button.large {
margin-top: 1.5rem;
font-size: 1.1rem;
padding: 1rem 2rem;
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
border: none;
color: white;
}

.command-box {
display: flex;
align-items: center;
Expand Down Expand Up @@ -76,6 +82,7 @@
.copy-button:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.copy-button:active {
Expand Down Expand Up @@ -103,7 +110,7 @@
top: 0;
width: 1.8rem;
height: 1.8rem;
background: rgba(255, 255, 255, 0.1);
background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
border-radius: 50%;
display: flex;
align-items: center;
Expand All @@ -114,11 +121,7 @@

.setup-steps li p {
margin-bottom: 0.5rem;
color: #E0E0E0;
}

.setup-steps .command-box {
margin: 0.5rem 0;
color: rgba(255, 255, 255, 0.9);
}

.troubleshooting {
Expand All @@ -127,11 +130,6 @@
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.troubleshooting p {
color: #FFA726;
margin-bottom: 0.5rem;
}

.issue-item {
margin-bottom: 2rem;
}
Expand All @@ -155,9 +153,10 @@

.requirements-note {
margin-top: 1.5rem;
padding: 1rem;
background: rgba(255, 255, 255, 0.05);
padding: 1.5rem;
background: rgba(0, 0, 0, 0.2);
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.requirements-note ul {
Expand All @@ -167,7 +166,7 @@
}

.requirements-note ul li {
color: rgba(255, 255, 255, 0.8);
color: rgba(255, 255, 255, 0.9);
margin: 0.4rem 0;
display: flex;
align-items: center;
Expand All @@ -180,6 +179,15 @@
}

@media (max-width: 768px) {
.container {
margin: 4rem 1rem 2rem;
padding: 1rem;
}

.glass-card {
padding: 1.5rem;
}

.command-box {
flex-direction: column;
align-items: stretch;
Expand All @@ -199,4 +207,8 @@
.setup-steps li {
padding-left: 2rem;
}

.glass-card h2 {
font-size: 1.5rem;
}
}
Loading

0 comments on commit fc9a8ec

Please sign in to comment.