forked from ashishrair500/iips-academics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17e0f95
commit 80440d5
Showing
14 changed files
with
181 additions
and
110 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/components/DashboardComponents/HomeComponent/selectors.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// selectors.js | ||
|
||
import { createSelector } from 'reselect'; | ||
|
||
const selectFileFoldersState = (state) => state.filefolders; | ||
|
||
export const selectUserFolders = createSelector( | ||
[selectFileFoldersState], | ||
(filefolders) => filefolders.userFolders.filter((folder) => folder.data.parent === "root") | ||
); | ||
|
||
export const selectUserFiles = createSelector( | ||
[selectFileFoldersState], | ||
(filefolders) => filefolders.userFiles.filter((file) => file.data.parent === "root") | ||
); | ||
|
||
export const selectCurrentFolder = createSelector( | ||
[selectFileFoldersState], | ||
(filefolders) => filefolders.currentFolder | ||
); | ||
|
||
export const selectHomeComponentData = createSelector( | ||
[selectFileFoldersState, selectUserFolders, selectUserFiles, selectCurrentFolder], | ||
(filefolders, userFolders, userFiles, currentFolder) => ({ | ||
isLoading: filefolders.isLoading, | ||
userFolders, | ||
userFiles, | ||
currentFolder, | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,75 @@ | ||
/* SubBar.css */ | ||
|
||
.navbar { | ||
background-color: #d44040; | ||
/* Default styles */ | ||
.breadcrumb-container { | ||
margin-left: 3em; | ||
} | ||
|
||
.breadcrumb { | ||
background-color: #fff; | ||
font-size: 16px; | ||
margin-bottom: 0; | ||
.breadcrumb-nav { | ||
background: linear-gradient(to right, #373b44, #2f3031); | ||
border: none; | ||
outline: none; | ||
box-shadow: none; | ||
color: rgb(131, 255, 253); | ||
font-size: large; | ||
padding-left: 10px; | ||
} | ||
|
||
.breadcrumb-item { | ||
color: #333; | ||
.breadcrumb-nav:hover { | ||
color: #ffc107; | ||
} | ||
|
||
.breadcrumb-item:hover { | ||
color: #ffc107; | ||
} | ||
.navbar-nav{ | ||
.navbar-nav { | ||
display: flex; | ||
|
||
justify-content: center; | ||
/* margin-left: 300px !important; */ | ||
} | ||
|
||
.navbar-nav .btn { | ||
background-color: transparent; | ||
border: none; | ||
color: rgb(131, 255, 253); | ||
font-size: 24px; | ||
margin-right: 5px; | ||
transition: all 0.3s ease-in-out; | ||
|
||
background-color: transparent; | ||
border: none; | ||
color: rgb(131, 255, 253); | ||
font-size: 24px; | ||
margin-right: 5px; | ||
transition: all 0.3s ease-in-out; | ||
} | ||
|
||
.navbar-nav .btn:hover { | ||
color: #ffc107; | ||
transform: scale(1.2); | ||
box-shadow: 0 0 10px rgba(255, 193, 7, 0.7); | ||
color: #ffc107; | ||
transform: scale(1.2); | ||
box-shadow: 0 0 10px rgba(255, 193, 7, 0.7); | ||
} | ||
|
||
.btn-outline-dark { | ||
border-color: #333; | ||
color: #333; | ||
border-color: #333; | ||
color: #333; | ||
} | ||
|
||
.btn-outline-dark:hover { | ||
border-color: #ffc107; | ||
color: #ffc107; | ||
border-color: #ffc107; | ||
color: #ffc107; | ||
} | ||
|
||
.btn-primary { | ||
background-color: #007bff; | ||
border-color: #007bff; | ||
background-color: #007bff; | ||
border-color: #007bff; | ||
} | ||
|
||
.btn-primary:hover { | ||
background-color: #0056b3; | ||
border-color: #0056b3; | ||
background-color: #0056b3; | ||
border-color: #0056b3; | ||
} | ||
|
||
/* Responsive styles */ | ||
@media screen and (max-width: 768px) { | ||
.breadcrumb-container { | ||
margin-left: 1em; | ||
} | ||
|
||
/* Additional style for contribute button */ | ||
.breadcrumb-nav { | ||
font-size: medium; | ||
} | ||
|
||
.navbar-nav .btn { | ||
font-size: 18px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.