Skip to content

Commit 7ea867c

Browse files
committed
fixed bugs
1 parent b310973 commit 7ea867c

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

docusaurus.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const config = {
135135
{
136136
type: "html",
137137
value: `<div class="dropdown_grid">
138-
<a class="dropbtn" href="/tutorial/">Docs</a>
138+
<a class="dropbtn" href="/tutorial/">Absolute Beginner</a>
139139
<div class="dropdown-content">
140140
<a href="#" class="nav__icons"> <img src="/tutorial/icons/html-5.svg" title="HTML5" alt="HTML" /> </a>
141141
<a href="#" class="nav__icons"> <img src="/tutorial/icons/css.svg" title="CSS" alt="CSS" /> </a>
@@ -157,7 +157,7 @@ const config = {
157157
{
158158
type: "html",
159159
value: `<div class="dropdown_grid">
160-
<a class="dropbtn" href="#"> Courses </a>
160+
<a class="dropbtn" href="#">Web Development</a>
161161
<div class="dropdown-content">
162162
<a href="#" class="nav__icons"> <img src="/tutorial/icons/html-5.svg" alt="HTML" /> </a>
163163
<a href="#" class="nav__icons"> <img src="/tutorial/icons/jsx.svg" alt="React" /> </a>
@@ -173,7 +173,7 @@ const config = {
173173
{
174174
type: "html",
175175
value: `<div class="dropdown_grid">
176-
<a class="dropbtn" href="#" target="_self"> DSA </a>
176+
<a class="dropbtn" href="#" target="_self">Frameworks</a>
177177
<div class="dropdown-content dsa-content ">
178178
<a href="#" target="_self" class="nav__icons"> 🧩Problems </a> <br />
179179
<a href="#" target="_self" class="nav__icons "> 💡Solutions </a>
@@ -188,6 +188,9 @@ const config = {
188188
to: "/tutorial/",
189189
label: "View All Tutorials",
190190
style: {
191+
margin: "0.5rem 0",
192+
padding: "0.5rem 1rem",
193+
borderRadius: "4px",
191194
fontSize: "0.8rem",
192195
textAlign: "center",
193196
fontWeight: "bold",

src/css/custom.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,24 +240,24 @@ mark {
240240
-webkit-text-fill-color: transparent;
241241
}
242242

243+
.dropdown_grid {
244+
display: grid;
245+
grid-template-columns: repeat(3, 1fr);
246+
gap: 10px;
247+
}
248+
243249
.dropbtn {
244-
width: 110px;
250+
width: 130px;
245251
background-color: transparent;
246252
color: var(--ifm-color-primary);
247253
padding: 14px;
248-
font-size: 18px;
254+
font-size: 16px;
249255
border: none;
250256
cursor: pointer;
251257
border-right: 1px solid #4e8da0db;
252258
margin: 2px;
253259
}
254260

255-
.dropdown_grid {
256-
display: grid;
257-
grid-template-columns: repeat(3, 1fr);
258-
gap: 10px;
259-
}
260-
261261
.dropdown-content {
262262
position: relative;
263263
min-width: 180px;

0 commit comments

Comments
 (0)