Skip to content

REF: refactored logo to be a link and removed home links from nav #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2024
Merged
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
21 changes: 6 additions & 15 deletions components/Header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useEffect, useState, useRef } from "react";
import Image from "next/image";
import Link from "next/link";

import {
disableBodyScroll,
Expand Down Expand Up @@ -98,7 +99,11 @@ function Header(props) {
>
<div className="container">
<div className="leftWrapper">
<h1>CID Contact</h1>
<Link href="/">
<a aria-label="CID Contact">
CID Contact
</a>
</Link>
</div>
<div className="centerWrapper">
<a href="https://ipfs.io/" target="_blank" rel="noreferrer">
Expand All @@ -123,15 +128,6 @@ function Header(props) {
<div className="rightWrapper">
<nav className="mainMenu desktop">
<ul>
<li>
<a
href="#"
className={pagePos == "home" ? "active" : undefined}
onClick={(e) => props.handelScrollTo(e, "home")}
>
Home
</a>
</li>
<li>
<a
href="#"
Expand Down Expand Up @@ -178,11 +174,6 @@ function Header(props) {
onClick={toggleMenu}
></button>
<ul>
<li>
<a href="#" onClick={(e) => props.handelCloseScrollTo(e, "home")}>
Home
</a>
</li>
<li>
<a href="#" onClick={(e) => props.handelCloseScrollTo(e, "about")}>
About
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ export default function Home(props) {
//onLeave={() => handelHomeLeave(setPagePos)}
>
<section className="hero" ref={homeRef}>
<h2>Content Discovery & Routing for the Distributed Web</h2>
<h1>Content Discovery & Routing for the Distributed Web</h1>
<p>
CID Contact is an Interplanetary Network Indexer built for IPFS
and Filecoin. <br />
Expand Down
15 changes: 8 additions & 7 deletions sass/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,18 @@
cursor: pointer;
text-decoration: none;
color: $black;
}

h1 {
transition: color 0.2s ease;
font-size: 1.2rem;
font-weight: 600;
margin: 0;
font-size: 18px;
text-wrap: nowrap;
line-height: 0;

&:hover {
color: $blue;
transition: color 0.2s ease;
}

@include media-breakpoint-up(lg) {
font-size: 25px;
font-size: 1.5rem;
}
}
}
Expand Down