Skip to content

Commit

Permalink
Fixed broken links and stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
sohail019 committed Jul 27, 2024
1 parent 30deae1 commit 76af09f
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 6 deletions.
37 changes: 31 additions & 6 deletions 03 - Chai aur Javascript/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>Chai aur JS</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="../style.css" rel="stylesheet" type="text/css" />
<link href="./style.css" rel="stylesheet" type="text/css" />
</head>

<body style="background-color: #212121; color: white">
Expand All @@ -17,9 +16,10 @@
>
</nav>

<main>
<header>
<h1>Chai aur JS</h1>

</header>
<main>
<div class="box">
<a class="folder-link" href="./01 - JS Fundamentals/"
>01 - JS Fundamentals</a
Expand All @@ -42,7 +42,7 @@ <h1>Chai aur JS</h1>
</div>
<div class="box">
<a class="folder-link" href="./05 - Events in JS/"
>05 - Events in JS</a
>05 - Events in Javascript</a
>
</div>
<div class="box">
Expand All @@ -52,7 +52,32 @@ <h1>Chai aur JS</h1>
</div>
<div class="box">
<a class="folder-link" href="./07 - Async JS/index.html"
>07 - Async JS</a
>07 - Async Javascript</a
>
</div>
<div class="box">
<a class="folder-link" href="./08 - API/index.html"
>08 - API & XMLHTTP</a
>
</div>
<div class="box">
<a class="folder-link" href="./09 - Promises/"
>09 - Callback & Promises</a
>
</div>
<div class="box">
<a class="folder-link" href="./10 - Async Await/"
>10 - Async Await</a
>
</div>
<div class="box">
<a class="folder-link" href="./11 - Fetch API/index.html"
>11 - Fetch API</a
>
</div>
<div class="box">
<a class="folder-link" href="./12 - Object Oriented Programming/"
>12 - Object Oriented Programming</a
>
</div>
</main>
Expand Down
102 changes: 102 additions & 0 deletions 03 - Chai aur Javascript/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
html {
height: 100%;
width: 100%;
}

body {
margin: 0;
color: black;
background-color: white;
}

nav {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
padding: 0.5rem;
gap: 0.5rem;
background-color: #eee;
border-bottom: 2px solid #aaa;
}

nav a {
display: inline-block;
min-width: 8rem;
padding: 0.75rem 1.5rem;
border-radius: 5px;
border: 1px solid transparent;
text-align: center;
text-decoration: none;
color: #f9f9f9;
background-color: #2c3e50; /* Dark blue-gray background */
transition: background-color 0.3s, border-color 0.3s; /* Smooth transition */
}

nav a:hover {
background-color: #1abc9c; /* Teal color on hover */
color: #fff;
border-color: #16a085; /* Teal border on hover */
}

nav a[aria-current='page'] {
color: #fff;
background-color: #16a085; /* Teal background for the current page */
}

header {
text-align: center;
padding: 2rem 0;
background: linear-gradient(135deg, #1abc9c, #16a085); /* Gradient background for the header */
color: #fff;
}
h1{
font-size: 2.5rem; /* Larger font size for the header */
}

main {
padding: 0.5rem;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem; /* Adjust spacing between boxes */
justify-items: center;
}

h1{
text-align: center;
margin-bottom: 1rem;
}

.box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #ffffff; /* White background for the boxes */
border-radius: 10px;
height: 220px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.box:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
background: #f9f9f9; /* Light gray background on hover */
}

.folder-link {
color: #fff;
padding: 1rem 2rem;
background: linear-gradient(135deg, #1abc9c, #16a085); /* Gradient background */
text-decoration: none;
font-size: 1.2rem;
border-radius: 8px;
text-align: center;
transition: background 0.3s, transform 0.3s;
}


.folder-link:hover {
background: linear-gradient(135deg, #16a085, #1abc9c); /* Inverted gradient on hover */
transform: scale(1.05); /* Slight scale-up effect */
}

0 comments on commit 76af09f

Please sign in to comment.