Skip to content

Commit

Permalink
investment portfolio website
Browse files Browse the repository at this point in the history
  • Loading branch information
eethansmith committed Nov 29, 2023
1 parent d9740e7 commit 45f9cc9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
29 changes: 19 additions & 10 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ h1 {
}

.App-nav {
background-color: #1a1a1a; /* Slightly lighter/different than main background for contrast */
display: flex;
justify-content: space-between;
align-items: center;
background-color: #1a1a1a;
padding: 10px 20px;
text-align: right;
}

.nav-links button {
Expand All @@ -46,29 +48,36 @@ h1 {
}

.home-button {
display: inline-block;
position: relative;
margin-right: 20px;
display: flex;
align-items: center;
position: relative; /* This is important for positioning the home-text */
cursor: pointer;
}

.home-button img {
width: 50px; /* Adjust size as needed */
height: 50px;
border-radius: 50%; /* Makes the image circular */
cursor: pointer;
}

.home-text {
position: absolute;
width: 100%;
text-align: center;
bottom: -20px;
left: 0;
bottom: -20px; /* Adjust as needed */
left: 50%;
transform: translateX(-50%); /* Centers the text horizontally */
opacity: 0;
transition: opacity 0.3s;
color: #F5F5F5;
white-space: nowrap; /* Keeps the text in a single line */
}

.home-button:hover .home-text {
opacity: 1;
}

.project-title {
font-size: 22.5px; /* Larger font size for the title */
font-weight: bold;
color: #F5F5F5; /* Color of the title */
margin-left: -400px;
}
3 changes: 3 additions & 0 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ function App() {
<img src={homeImage} alt="Home" />
<span className="home-text">Home</span>
</div>
<div className="project-title">
Investment Portfolio
</div>
<div className="nav-links">
<button
className={activeTab === 'Overall Portfolio' ? 'active' : ''}
Expand Down

0 comments on commit 45f9cc9

Please sign in to comment.