Add FloatingMenu component and integrate DocsButton; update styles for ThemeButton and FloatingMenu
This commit is contained in:
19
frontend/src/css/DocsButton.css
Normal file
19
frontend/src/css/DocsButton.css
Normal file
@@ -0,0 +1,19 @@
|
||||
.docs-button {
|
||||
z-index: 1000;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
transition: background-color 0.3s, transform 0.3s;
|
||||
}
|
||||
|
||||
.docs-button:hover {
|
||||
background-color: var(--secondary-color);
|
||||
}
|
||||
55
frontend/src/css/FloatingMenu.css
Normal file
55
frontend/src/css/FloatingMenu.css
Normal file
@@ -0,0 +1,55 @@
|
||||
.floating-menu {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
z-index: 1000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.menu-buttons {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.menu-toggle {
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
transition: background-color 0.3s, transform 0.3s;
|
||||
}
|
||||
|
||||
.menu-toggle:hover {
|
||||
background-color: var(--secondary-color);
|
||||
}
|
||||
|
||||
.menu-buttons button {
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--primary-color);
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||||
transition: background-color 0.3s, transform 0.3s;
|
||||
}
|
||||
|
||||
.menu-buttons button:hover {
|
||||
background-color: var(--secondary-color);
|
||||
}
|
||||
@@ -1,7 +1,4 @@
|
||||
.theme-toggle {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
z-index: 1000;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
@@ -19,4 +16,4 @@
|
||||
|
||||
.theme-toggle:hover {
|
||||
background-color: var(--secondary-color);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user