-
Notifications
You must be signed in to change notification settings - Fork 5
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
e092a15
commit 6b02e80
Showing
9 changed files
with
171 additions
and
148 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
|
||
/* Home page sidebar Menu */ | ||
|
||
.sidebar { | ||
width: 50px; /* Initial width */ | ||
height: 100vh; | ||
background-color: #333; | ||
padding-top: 20px; | ||
position: fixed; | ||
transition: width 0.3s; | ||
overflow: hidden; | ||
} | ||
|
||
.sidebar:hover { | ||
width: 200px; /* Expanded width */ | ||
} | ||
|
||
.logo-container { | ||
width: 50px; /* Logo container width */ | ||
text-align: center; | ||
} | ||
|
||
.sidebar img { | ||
width: 30px; /* Adjust as per your logo's dimensions */ | ||
cursor: pointer; | ||
} | ||
|
||
.sidebar nav ul { | ||
list-style-type: none; | ||
padding: 0; | ||
margin-top: 20px; | ||
} | ||
|
||
.sidebar nav ul li { | ||
padding: 10px; | ||
} | ||
|
||
.sidebar:hover nav ul li { | ||
opacity: 1; | ||
} | ||
|
||
.sidebar nav ul li a { | ||
color: white; | ||
text-decoration: none; | ||
} | ||
|
||
.content { | ||
margin-left: 50px; /* Match the initial width of the sidebar */ | ||
padding: 20px; | ||
transition: margin-left 0.3s; | ||
} | ||
|
||
.sidebar:hover ~ .content { | ||
margin-left: 200px; /* Match the expanded width of the sidebar */ | ||
} | ||
|
||
/* ... existing styles ... */ | ||
|
||
.sidebar ul li a { | ||
display: flex; | ||
align-items: center; | ||
color: white; | ||
text-decoration: none; | ||
} | ||
|
||
.sidebar ul li a span { | ||
margin-left: 10px; | ||
display: none; /* Hide text labels by default */ | ||
} | ||
|
||
.sidebar:hover ul li a span { | ||
display: inline; /* Show text labels on hover */ | ||
} | ||
|
||
/* Icon styles */ | ||
.sidebar nav ul li a .fa-icon { | ||
min-width: 20px; /* Ensure icons have space */ | ||
} |
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,28 @@ | ||
// src/components/Layout.js | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | ||
import { faHome, faTree, faDotCircle, faCog } from '@fortawesome/free-solid-svg-icons'; | ||
import './Layout.css'; // Import layout-specific styles | ||
|
||
const Layout = ({ children }) => { | ||
return ( | ||
<div className="App"> | ||
<div className="sidebar"> | ||
<nav> | ||
<ul> | ||
<li><Link to="/"><FontAwesomeIcon icon={faHome} /><span>Home</span></Link></li> | ||
<li><Link to="/worktree"><FontAwesomeIcon icon={faTree} /><span>WorkTree</span></Link></li> | ||
<li><Link to="/node"><FontAwesomeIcon icon={faDotCircle} /><span>Node</span></Link></li> | ||
<li><Link to="/settings"><FontAwesomeIcon icon={faCog} /><span>Settings</span></Link></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
<div className="content"> | ||
{children} {/* This is where your page-specific content will be rendered */} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Layout; |
This file was deleted.
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
46 changes: 46 additions & 0 deletions
46
aiida_worktree/web/frontend/src/components/WorkTreeTable.css
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,46 @@ | ||
/* WorkTree.css */ | ||
|
||
/* Pagination styles */ | ||
.pagination { | ||
display: flex; | ||
list-style-type: none; | ||
justify-content: center; | ||
padding: 0; | ||
} | ||
|
||
.pagination li { | ||
margin: 0 5px; | ||
} | ||
|
||
.pagination li a { | ||
border: 1px solid #007bff; | ||
padding: 5px 10px; | ||
text-decoration: none; | ||
color: #007bff; | ||
border-radius: 5px; | ||
} | ||
|
||
.pagination li a:hover { | ||
background-color: #007bff; | ||
color: white; | ||
} | ||
|
||
.pagination .active a { | ||
background-color: #007bff; | ||
color: white; | ||
} | ||
|
||
.action-button { | ||
background-color: #007BFF; /* Set the background color */ | ||
color: #fff; /* Set the text color */ | ||
border: none; | ||
border-radius: 1px; | ||
cursor: pointer; | ||
margin-right: 16px; /* Add some spacing between buttons */ | ||
padding: 4px 4px; | ||
font-size: 10px; /* Adjust the font size */ | ||
} | ||
|
||
.action-button:hover { | ||
background-color: #0056b3; /* Change the background color on hover */ | ||
} |
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