hacking-tutorial icon indicating copy to clipboard operation
hacking-tutorial copied to clipboard

Add "Back to Lessons" / "Home" link on every lesson page

Open nidhiii128 opened this issue 1 year ago • 9 comments

Description

Currently, individual lesson pages don't have a visible "Back to Lessons" or "Home" button.
This makes it hard for users to navigate back to the main lesson list or homepage after finishing a lesson.

Steps to Reproduce

  1. Open any lesson page (for example: https://hacking-tutorial.vercel.app/ethical-hacking/lesson-01)
  2. Scroll through the page.
  3. Notice there's no clear way to return to the homepage or lesson index.

Expected Behavior

Every lesson page should have an easy way to navigate back to:

  • The main lessons list, OR
  • The homepage.

Suggested Fix

  • Add a small link or button in the header or footer, such as:
    • "← Back to Lessons"
    • "🏠 Home"
  • The link can use the existing site navigation style or be a simple <a href="/">Home</a> tag.
  • Ensure it’s visible and consistent across all lesson pages.

Example Implementation

If using React/Next.js:

import Link from "next/link";

export default function BackButton() {
  return (
    <div style={{ marginTop: "1rem" }}>
      <Link href="/" className="text-blue-500 underline hover:text-blue-700">
        ← Back to Lessons
      </Link>
    </div>
  );
}

nidhiii128 avatar Oct 12 '25 20:10 nidhiii128

@nidhiii128 issue is assigned to you.

amandewatnitrr avatar Oct 13 '25 03:10 amandewatnitrr

Be in communication with @HarzhMehta for updates on this.

amandewatnitrr avatar Oct 13 '25 03:10 amandewatnitrr

i would like to work on it @nidhiii128

tushar09sh avatar Oct 13 '25 04:10 tushar09sh

i would love to contribute in this @nidhiii128

Dhruvmax avatar Oct 13 '25 04:10 Dhruvmax

Hi guys, just hold on for 2 hrs. Im adding dynamic routing for all .md files so I'll be using those routes to add "prev" and "next" for pages. Based on that there will be a lot of work required for react UI , specially the code snippets.

You all can help out a lot in that. Its a lot of work, sufficient for everbody :)

HarzhMehta avatar Oct 13 '25 04:10 HarzhMehta

@HarzhMehta have you done this work?

Dhruvmax avatar Oct 13 '25 12:10 Dhruvmax

I have made the PR this afternoon. Waiting for it to be accepted

HarzhMehta avatar Oct 13 '25 14:10 HarzhMehta

sure

Dhruvmax avatar Oct 13 '25 14:10 Dhruvmax

I'd like to pick this one , will raise a pr when the implementation is done . thanks

bhushan4work avatar Oct 18 '26 07:10 bhushan4work