Skip to content

Commit

Permalink
test: remove dynamic navbar asterisks and try css approach with poten…
Browse files Browse the repository at this point in the history
…tial overflow issue
  • Loading branch information
aaronchan32 committed May 31, 2024
1 parent 8317796 commit 6083c43
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
20 changes: 10 additions & 10 deletions src/app/components/Navbar/Navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ nav {
width: 0;
height: 2px;
background-color: #212121;
transition: width 0.3s ease-in;
transition: width 0.25s;
}

&:is(:hover, :focus-visible):before {
Expand All @@ -114,15 +114,14 @@ nav {
color: #212121;
opacity: 0.45;
max-width: 310px;
height: 1em;
// &::before {
// content: '********************************************************************************';
// display: block;
// white-space: nowrap;
// width: 100%;
// height: 100%;
// overflow: hidden;
// }
&::before {
content: '********************************************************************************';
display: block;
white-space: nowrap;
width: 100%;
height: 100%;
overflow: hidden;
}
}

.nav-footer {
Expand Down Expand Up @@ -150,6 +149,7 @@ nav {
background-color: #212121;
height: 61.75px;
margin-bottom: 40px;
transition: background-color 0.3s;
}

h1 {
Expand Down
3 changes: 2 additions & 1 deletion src/app/components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ export default function Navbar({ pageRefs }: NavbarProps) {

<div>
<p>
THANK YOU FOR CHECKING OUT <br /> UCSD DESIGN CO’S UP-GRADE
{`THANK YOU FOR CHECKING OUT`} <br />{' '}
{`UCSD DESIGN CO'S UP-GRADE`}
</p>
<a href="mailto:[email protected]">
<p style={{ textDecoration: 'underline' }}>
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Navbar/hooks/useHandleAsterisks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const useHandleAsterisks = ({
}
};

updateAsterisks();
// updateAsterisks();
window.addEventListener('resize', updateAsterisks);

return () => {
Expand Down

0 comments on commit 6083c43

Please sign in to comment.