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

Navbar #801

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
28 changes: 19 additions & 9 deletions backend/public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ section {
text-align: center;
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
padding: 20px;
background-color: #a0d8f0;
box-shadow: 0 4px 8px 0 #a3cbf5,
0 6px 20px 0 #a3cbf5;
background-color: #dfe6e9;
box-shadow: 0 4px 8px 0 #c0c4c6,
0 6px 20px 0 #c0c4c6;

/* width: 15vw;
height: 30vh; */
Expand All @@ -149,10 +149,9 @@ section {

}

.course:hover {
border: .2px solid #093074;
background-color: #5c93f2;
}
/* .course:hover {
border:2px solid #093074;
} */

.course[data-paid="false"]:hover {
/* Your hover effect styles */
Expand All @@ -162,6 +161,7 @@ section {
.course .course-banner img {
width: 150px;
height: 150px;
object-fit: cover;
}

.course-author:hover {
Expand All @@ -181,6 +181,7 @@ section {

.course-title {
margin-top: .5em;
color: black;
}

.btn-7c {
Expand Down Expand Up @@ -407,6 +408,7 @@ section {
.course-detail p {
font-size: 1.3em;
background-color: rgba(255, 0, 0, 0.357);
border-radius: 1rem;
width: fit-content;
padding: 0.1em 0.5em;
margin: 0.8vh auto;
Expand Down Expand Up @@ -446,7 +448,7 @@ section {
.buy-button {
padding: 0.7em;
width: 10em;
color: black;
color: white;
background-color: #0654a8;
font-size: 1.2em;
border: none;
Expand All @@ -461,7 +463,14 @@ section {
background: #093074;
color: white;
}

.eye-button:hover{
/* color: white; */
font-weight: bold;
}
.eye-button:focus{
outline: none;
border: none;
}
.buy-button[data-paid="true"] {
/* Button styles when purchased */
background-color: none;
Expand Down Expand Up @@ -532,6 +541,7 @@ section {
outline: none;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
width: 100%;
margin-top: 2rem;
max-width: 400px;
}

Expand Down
12 changes: 3 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,9 @@
<div class="fas fa-bars"></div>
<nav class="navbar">
<ul>
<i class='icons bx bxs-home'></i>
<li style="margin-left: 1px;"><a href="#home">home</a></li>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<i class='icons bx bx-laptop'></i>
<li style="margin-left: 1px;"><a href="./backend/public/index.html">Projects</a></li>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<i class='icons bx bxs-contact'></i>
<li style="margin-left: 1px;"><a href="#contact">contact</a></li>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<li><a href="#home">Home</a></li>
<li><a href="./backend/public/index.html">Projects</a></li>
<li><a href="#contact">Contact</a></li>
<button id="login">Log In</button>
<h3 id="name"></h3>
<img id="image" onclick="ProfileClicked()" />
Expand Down
39 changes: 18 additions & 21 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -304,29 +304,21 @@ body.night {


}

.header .navbar ul .icons {
font-size: 25px;
.header .navbar ul button{
padding: 0.7em;
width: 7rem;
color: white;
}

.header .navbar ul button {
/* width: 4vw; */
/* height: 4.3vh; */
flex-wrap: wrap;
/* background: transparent; */
color: rgb(255, 255, 255);
font-size: large;
/* border: 0.5px solid white; */
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
font-weight: 600;
/* padding: 8em 5em; */
border-radius: 5px;
background-color: #0654a8;
font-size: 1.5rem;
border: none;
background-color: #002e5f;
padding: 0.6em;
cursor: pointer;
margin: 0.7em 0;
font-weight: 600;
border-radius: 8px;
font-family: inherit;
}


.header .navbar ul button:hover {
background-color: #227ebb;
transition: 0.2s;
Expand Down Expand Up @@ -368,10 +360,14 @@ body.night {
.header .navbar ul li a {
font-size: 2rem;
color: #fff;
margin: 0rem 1rem;
}

.header .navbar ul li a:hover {
color: #2d5c6b;
color: #E3F2FD;
/* font-weight: bold; */
/* text-shadow: #00bfff; */
text-shadow: 0 0 2px #fff,0 0 2px #fff,0 0 2px #fff,0 0 5px #228dff,0 0 5px #228dff,0 0 10px #228dff;
text-decoration: underline;
}

Expand Down Expand Up @@ -1828,10 +1824,11 @@ hr {

.theme-switch {
display: inline-block;
height: 35px;
height: 30px;
position: relative;
width: 62px;
margin-bottom: 20px;
border: none;
}

.theme-switch input {
Expand Down