Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/Forum-Frontend-Web.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ export default function Home() {
<link rel="icon" href="/favicon.ico" />
</Head>
{/* //navbar */}
<nav>
<div className="logo">
<h1>Forum</h1>
<h1>Forum</h1>
</div>
<nav>

<Link href="#about"><a>About</a></Link>
<Link href="#topposts"><a>Organizations</a></Link>
<Link href="#contactUs"><a>Contact Us</a></Link>
<div className="animation start-home"></div>
</nav>

{/* main */}
Expand Down
1 change: 1 addition & 0 deletions styles/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,4 @@
flex-direction: column;
}
}

66 changes: 55 additions & 11 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,62 @@ a {
box-sizing: border-box;
}

nav{
margin: 10px auto 80px;
padding: 10px 0;
display: flex;
justify-content: flex-end;
align-items: center;
nav {
margin: 27px auto 0;
position: relative;
width: 600px;
height: 50px;
background-color: #34495e;
border-radius: 8px;
font-size: 0;
}

nav a{
margin-left: 2rem;
nav a {
line-height: 50px;
height: 100%;
font-size: 15px;
display: inline-block;
position: relative;
z-index: 1;
text-decoration: none;
text-transform: uppercase;
text-align: center;
color: white;
cursor: pointer;
}
nav .animation {
position: absolute;
height: 100%;
top: 0;
z-index: 0;
transition: all 0.5s ease 0s;
border-radius: 8px;
}
a:nth-child(1) {
width: 200px;
}
a:nth-child(2) {
width: 200px;
}
a:nth-child(3) {
width: 200px;
}

nav .logo{
margin-right:auto;
nav .start-home,
a:nth-child(1):hover ~ .animation {
width: 200px;
left: 0;
background-color: #1abc9c;
}
nav .start-about,
a:nth-child(2):hover ~ .animation {
width: 200px;
left: 200px;
background-color: #e74c3c;
}
nav .start-blog,
a:nth-child(3):hover ~ .animation {
width: 200px;
left: 400px;
background-color: #3498db;
}