Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corps-directory
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fhurtado14
corps-directory
Commits
6426936e
"...git@git.cs.vt.edu:danieljk/actual-vt-capstone.git" did not exist on "9ef5fd12e06cab880ed61126720f3fab9b91a439"
Commit
6426936e
authored
5 months ago
by
sush202020
Browse files
Options
Downloads
Patches
Plain Diff
Admin Home Page
parent
f4210afb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/components/AdminHome/AdminHome.css
+165
-0
165 additions, 0 deletions
frontend/src/components/AdminHome/AdminHome.css
frontend/src/components/AdminHome/AdminHome.js
+67
-0
67 additions, 0 deletions
frontend/src/components/AdminHome/AdminHome.js
with
232 additions
and
0 deletions
frontend/src/components/AdminHome/AdminHome.css
0 → 100644
+
165
−
0
View file @
6426936e
/* General layout */
.admin-page
{
display
:
flex
;
flex-direction
:
column
;
height
:
100vh
;
/* Full height of the viewport */
}
/* Navbar styles */
.navbar
{
width
:
100%
;
background
:
linear-gradient
(
to
right
,
red
,
orange
);
height
:
60px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
/* Navbar links styles */
.navbar-links
a
{
margin
:
0
80px
;
/* Increase margin to space out links more */
color
:
white
;
text-decoration
:
none
;
font-size
:
20px
;
position
:
relative
;
transition
:
color
0.3s
;
}
/* Hover effect */
.navbar-links
a
:hover
{
color
:
rgb
(
13
,
28
,
84
);
/* Changes text color on hover */
}
/* Optional: Add underline on hover */
.navbar-links
a
::after
{
content
:
''
;
position
:
absolute
;
width
:
0
;
height
:
2px
;
left
:
0
;
bottom
:
-5px
;
background-color
:
rgb
(
0
,
47
,
255
);
/* Underline color */
transition
:
width
0.3s
;
}
.navbar-links
a
:hover::after
{
width
:
100%
;
/* Expands underline on hover */
}
/* Main content wrapper */
.main-content
{
display
:
flex
;
flex-grow
:
1
;
/* Take up the remaining height below the navbar */
height
:
calc
(
100%
-
60px
);
/* Full height minus navbar */
}
/* Sidebar styles */
.sidebar
{
background-color
:
rgb
(
68
,
68
,
72
);
color
:
white
;
display
:
flex
;
flex-direction
:
column
;
padding
:
20px
;
transition
:
width
0.3s
;
}
.sidebar.open
{
width
:
200px
;
}
.sidebar.closed
{
width
:
50px
;
justify-content
:
flex-start
;
align-items
:
center
;
}
.sidebar-toggle
{
background-color
:
transparent
;
border
:
none
;
color
:
white
;
font-size
:
18px
;
cursor
:
pointer
;
margin-bottom
:
20px
;
}
/* Sidebar menu styles */
.sidebar-menu
{
list-style
:
none
;
padding
:
0
;
}
.sidebar-menu
li
{
margin
:
15px
0
;
}
.sidebar-menu
a
{
text-decoration
:
none
;
color
:
white
;
/* Default text color */
font-size
:
18px
;
display
:
block
;
padding
:
10px
;
transition
:
background-color
0.3s
,
color
0.3s
;
/* Smooth transition for hover effects */
}
/* Hover effect for sidebar links */
.sidebar-menu
a
:hover
{
color
:
rgb
(
13
,
23
,
59
);
/* Changes text color on hover */
background-color
:
#b1a4a4
;
/* Darker background on hover (optional) */
}
/* adjust side bar */
.sidebar-menu
li
a
{
color
:
white
;
text-decoration
:
none
;
font-size
:
20px
;
}
/* Content area */
.content
{
flex-grow
:
1
;
padding
:
20px
;
background-color
:
#f4f4f4
;
}
.content
h1
{
font-size
:
28px
;
margin-bottom
:
20px
;
}
/* Dashboard layout */
.dashboard
{
display
:
grid
;
grid-template-columns
:
repeat
(
2
,
1
fr
);
gap
:
20px
;
}
.dashboard-item
{
background-color
:
white
;
border
:
2px
solid
#ddd
;
padding
:
20px
;
font-size
:
20px
;
text-align
:
center
;
box-shadow
:
2px
2px
10px
rgba
(
0
,
0
,
0
,
0.1
);
cursor
:
pointer
;
transition
:
background-color
0.3s
,
box-shadow
0.3s
;
}
.dashboard-item
:hover
{
background-color
:
#f0f0f0
;
box-shadow
:
4px
4px
15px
rgba
(
0
,
0
,
0
,
0.2
);
}
input
[
type
=
"file"
]
{
display
:
block
;
margin
:
10px
auto
;
cursor
:
pointer
;
}
This diff is collapsed.
Click to expand it.
frontend/src/components/AdminHome/AdminHome.js
0 → 100644
+
67
−
0
View file @
6426936e
import
React
,
{
useEffect
,
useState
}
from
"
react
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
"
./AdminHome.css
"
;
function
Homer
()
{
const
[
isSidebarOpen
,
setSidebarOpen
]
=
useState
(
true
);
const
toggleSidebar
=
()
=>
{
setSidebarOpen
(
!
isSidebarOpen
);
};
return
(
<
div
className
=
"
admin-page
"
>
{
/* Navbar */
}
<
nav
className
=
"
navbar
"
>
<
div
className
=
"
navbar-links
"
>
<
a
href
=
"
#
"
>
Home
<
/a
>
<
a
href
=
"
#
"
>
Browse
<
/a
>
<
a
href
=
"
#
"
>
Search
<
/a
>
<
a
href
=
"
#
"
>
Messages
<
/a
>
<
/div
>
<
/nav
>
{
/* Main content wrapper */
}
<
div
className
=
"
main-content
"
>
{
/* Sidebar */
}
<
div
className
=
{
`sidebar
${
isSidebarOpen
?
"
open
"
:
"
closed
"
}
`
}
>
<
button
className
=
"
sidebar-toggle
"
onClick
=
{
toggleSidebar
}
>
{
isSidebarOpen
?
"
←
"
:
"
→
"
}
<
/button
>
{
isSidebarOpen
&&
(
<
ul
className
=
"
sidebar-menu
"
>
<
li
><
a
href
=
"
#
"
>
Account
Settings
<
/a></
li
>
<
li
><
a
href
=
"
#
"
>
Privacy
Policy
<
/a></
li
>
<
li
><
a
href
=
"
#
"
>
More
...
<
/a></
li
>
<
/ul
>
)}
<
/div
>
{
/* Dashboard area */
}
<
div
className
=
"
content
"
>
<
h1
>
Welcome
to
Admin
Page
<
/h1
>
<
div
className
=
"
dashboard
"
>
<
div
className
=
"
dashboard-item
"
onClick
=
{()
=>
console
.
log
(
"
Viewing Users
"
)}
>
<
span
>
View
Users
<
/span
>
<
/div
>
<
div
className
=
"
dashboard-item
"
onClick
=
{()
=>
console
.
log
(
"
Editing Users
"
)}
>
<
span
>
Edit
Users
<
/span
>
<
/div
>
<
div
className
=
"
dashboard-item
"
onClick
=
{()
=>
console
.
log
(
"
Deleting Users
"
)}
>
<
span
>
Delete
Users
<
/span
>
<
/div
>
<
div
className
=
"
dashboard-item
"
>
<
input
type
=
"
file
"
onChange
=
{()
=>
console
.
log
(
"
CSV Uploaded
"
)}
/
>
<
span
>
Upload
CSV
<
/span
>
<
/div
>
<
div
className
=
"
dashboard-item
"
onClick
=
{()
=>
console
.
log
(
"
Tracking Page Visits
"
)}
>
<
span
>
Track
Application
Activity
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
);
}
export
default
Homer
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment