npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

navigation-web-package

v0.1.0

Published

[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![MIT License][license-shield]][license-url]

Downloads

3

Readme

Contributors Forks Stargazers MIT License

About The Project

GDG Algiers Web navigation package is a free, open source multipurpose set of customizable Side and Navbars to use, maintain and develop by the open source community in order to speed the development process of a specific project.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Installation

If you're willing to maintain or develop the package you can follow the following steps

  1. Clone the repo and cd to it
git clone https://github.com/GDGAlgiers/web-navigation-package.git
cd web-navigation-package
  1. Install Requirements
npm install
  1. Install Requirements
npm run dev
  1. All components are listed in the components directory inside the src folder, to test how the component works, you can check the app.tsx file in the pages folder where we added all the components with comments to get to know how props working...

Usage

  1. First you have to install the package using the command
npm install gdg-navigation-components
  1. Import the component you want to your file
import { LinkExplorer, EdgeSidebar, EdgeNavbar, SidebarPanel, InteractiveNavbar, QuickSidebar, SideBarWithSearch } from "gdg-navigation-components";

//use the component imported, check the list of components section to know how components works

<EdgeSidebar
  links={
    [
      {
        link: [
          {
            link: "overview",
            name: "Overview",
            icon: "1",
          },
        ],
        name: "Overview",
        icon: Overview,
        currentLink: "/"
      },
      {
        link: [],
        name: "Chat",
        icon: Chat,
        currentLink: "/chat"
      }
    ]
  }
  generaleStyles={{
    textSize: "0.9rem",
    logoTextSize: "1.25rem",
    textColor: "black",
    activeTextColor: "white",
    background: "white",
    activeBg: "#27AE60",
    ButtonColor: "#3A4F39",
  }}
  user={user}
/>
  1. Use other components and Enjoy!

List Of Components

The project contains a set of 7 Nav and Sidebar components where each component got specific usage, design, props and more configurations to use, you find bellow the details of each component:

Description

LinkExplorer is a responsive React/Next functional component for a navigation bar.

Screenshot

Usage

 import UserProfileImage from "my_image_source1"
 import {HomeIcon, AboutIcon} from "my_icons_source2"
 import YourLogoComponent from "my_image_source3"

 //? stands for optional element
 const LinkExplorerProps = {
   Style: {
     textColor: '#333333',
     ?activeBg: '#f0f0f0',
     ?activeTextColor: '#007bff',
     ?background: '#ffffff',
     textSize: '16px',
     ?HoverTextColor: '#555555',
     ?HoverBgColor: '#f0f0f0',
     ?BackgroundColor: '#ffffff',
     ?ActiveTextColor: '#007bff',
     ?BorderColor: '#dddddd',
     ?ButtonColor: '#3498db',
   },
   links: [
     { name: 'Home', link: '/home' },
     { name: 'About', link: '/about' },
     // Add more links as needed
   ],
   LogoInf: { ?title: 'Company: GDG Algiers', logoIcon: YourLogoComponent },
   menuType: 'Burger',
   loggedIn: false,
   loginRoute: '/login',
   SignInRoute: '/signin',
   User: {
     image: UserProfileImage,
     ?name: 'Okba ALLAOUA',
     ?additionalInfo?: "I am the GDG Open source team leader"
     ?role: "Manager",
   },
 };
 
 <LinkExplorer {...LinkExplorerProps} />

Description

EdgeSidebar is a responsive React functional component for a side navigation bar.

Screenshot

Usage

  import {HomeIcon, AboutIcon, PageIcon, InfoIcon} from "my_image_source1"
  import UserProfileImage from "my_image_source2"

  //? stands for optional element
  const EdgeSidebarProps = {
    user: {
      image: UserProfileImage,
      ?name: 'Rayan ALLALI',
      ?role: 'Admin',
      ?additionalInfo: "GDG Algiers Open Source Team Lead"
    },
    links: [
      {
        ?icon: HomeIcon,
        name: 'Home',
        link: [
          { ?icon: PageIcon, name: 'Page 1', link: '/page1' },
          { ?icon: PageIcon, name: 'Page 2', link: '/page2' },
        ],
        currentLink: "/"
      },
      {
        ?icon: AboutIcon,
        name: 'About',
        link: [{ ?icon: InfoIcon, name: 'About Us', link: '/about' }],
        currentLink: "/about"
      },
    ],
    generaleStyles: {
      textColor: '#333333',
      ?activeBg: '#f0f0f0',
      ?activeTextColor: '#007bff',
      ?background: '#ffffff',
      textSize: '16px',
      ?HoverTextColor: '#555555',
      ?HoverBgColor: '#f0f0f0',
      ?BackgroundColor: '#ffffff',
      ?ActiveTextColor: '#007bff',
      ?BorderColor: '#dddddd',
      ?ButtonColor: '#3498db',
    },
  };
  
  <EdgeSidebar {...EdgeSidebarProps} />

Description

EdgeNavbar is a responsive React functional component for a navigation bar.

Screenshot

Usage

import LogoImage from "my_image_source1"
import UserProfileImage from "my_image_source2"

//? stands for optional element
const EdgenavbarProps = {
  avatar: { picture: UserProfileImage, link: 'profile' },
  logo: LogoImage,
  isLoggedIn: true,
  loginButton: { text: 'Get started', link: '/login' },
  links: [
    { name: 'Home', link: '/home' },
    { name: 'About', link: '/about' },
  ],
  generaleStyles: {
    textColor: '#333333',
    ?activeBg: '#f0f0f0',
    ?activeTextColor: '#007bff',
    ?background: '#ffffff',
    textSize: '16px',
    ?HoverTextColor: '#555555',
    ?HoverBgColor: '#f0f0f0',
    ?BackgroundColor: '#ffffff',
    ?ActiveTextColor: '#007bff',
    ?BorderColor: '#dddddd',
    ?ButtonColor: '#3498db',
  },
  mobileSettings: { menuType: 'hamburger' },
};

<EdgeNavbar {...EdgenavbarProps} />

Description

SidebarPanel is a responsive React functional component for a side navigation bar.

Screenshot

Usage

 import UserProfileImage from "my_image_source1"
 import {HomeIcon, AboutIcon, NotificationIcon} from "my_icons_source2"
 import YourLogoComponent from "my_image_source3"
 
 //? stands for optional element
 const sidenavbarProps = {
   Style: {
     textColor: '#333333',
     ?activeBg: '#f0f0f0',
     ?activeTextColor: '#007bff',
     ?background: '#ffffff',
     textSize: '16px',
     ?HoverTextColor: '#555555',
     ?HoverBgColor: '#f0f0f0',
     ?BackgroundColor: '#ffffff',
     ?ActiveTextColor: '#007bff',
     ?BorderColor: '#dddddd',
     ?ButtonColor: '#3498db',
   },
   links: [
     { ?icon: HomeIcon, name: 'Home', link: '/home' },
     { ?icon: AboutIcon, name: 'About', link: '/about' },
     // Add more links as needed
   ],
   LogoInf: { title: 'GDG Algiers', logoIcon: YourLogoComponent },
   NotifsLinks: [
     { icon: NotificationIcon, name: 'Notifications', link: '/notifications', notif: 3 },
     // Add more notification links as needed
   ],
   User: {
     image: UserProfileImage,
     ?name: 'Okba ALLAOUA',
     ?additionalInfo: 'GDG Algiers Open Source Team Lead',
     ?role: 'Admin',
   },
 };

 <SidebarPanel {...sidenavbarProps} />

Description

InteractiveNavbar is a responsive React functional component for navigation.

Screenshot

Usage

 import LogoImage from "my_image_source1"
 import {UserProfileImage} from "my_image_source2"
 
 //? stands for optional element
 const InteractiveNavbarProps = {
   Style: {
     textColor: '#333333',
     ?activeBg: '#f0f0f0',
     ?activeTextColor: '#007bff',
     ?background: '#ffffff',
     textSize: '16px',
     ?HoverTextColor: '#555555',
     ?HoverBgColor: '#f0f0f0',
     ?BackgroundColor: '#ffffff',
     ?ActiveTextColor: '#007bff',
     ?BorderColor: '#dddddd',
     ?ButtonColor: '#3498db',
   },
   links: [ //accept one level of hiarchy
     {
       name: 'About',
       link: [], //automatically take the name as route
     },
     {
       name: 'Home',
       link: [
         { name: 'Page 1', link: '/page1' },
         { name: 'Page 2', link: '/page2' },
         { name: 'Page 3', link: '/page2' },
       ],
     },
   ],
   LogoInf: LogoImage,
   menuType: 'Burger',
   loggedIn: true,
   button1: { button: <button>LogIn</button>, link: "/login" },
   button2: { button: <button>SignUo</button>, link: "/signup" },
   userInfo: {
     image: UserProfileImage,
     ?name: 'Okba ALLAOUA',
     ?additionalInfo: 'GDG Algiers Dev Core Team Member',
     ?role: 'Admin',
   },
 };

 <InteractiveNavbar {...InteractiveNavbarProps} />

Description

QuickSidebar is a responsive React functional component for a side navigation bar.

Screenshot

Usage

 import {YourLogoComponent, msg1, msg2, msg3} from "my_image_source"
 
 const QuickSideBarProps = {
   logo: YourLogoComponent,
   Name: 'GDG Algiers',
   links: [
     { icon: msg1, name: 'Home', route: '/home' },
     { icon: msg2, name: 'About', route: '/about' },
     // Add more links as needed
   ],
   Pages: [
     { name: 'Page 1', route: '/page1' },
     { name: 'Page 2', route: '/page2' },
     // Add more pages as needed
   ],
   textSize: '16px',
   Userlinks: [
     { icon: msg3, name: 'Profile', route: '/profile' },
     // Add more user links as needed
   ],
   ActivetextColor: '#007bff',
   ActiveBg: '#f0f0f0',
   textColor: '#333333',
 };

 <QuickSidebar {...QuickSideBarProps} />

Description

SideBarWithSearch is a responsive React functional component for a sidebar with search functionality.

Screenshot

Usage

 import UserProfileImage from "my_image_source1"
 import { HomeIcon, SettingsIcon, OptionsIcon } from "my_image_source2"
 import YourLogoComponent from "my_image_source3"
 
 //? stands for optional element
 const sidebarProps = {
   mainLinks: [
     { ?icon: HomeIcon, name: 'Home', link: '/home' },
     // Add more main links as needed
   ],
   settingsLinks: [
     { ?icon: SettingsIcon, name: 'Settings', link: '/settings' },
     // Add more settings links as needed
   ],
   ?optionsLinks: [
     { ?icon: OptionsIcon, name: 'Options', link: '/options' },
     // Add more options links as needed
   ],
   profileInformation: {
     image: UserProfileImage,
     ?name: 'Rayan ALLALI',
     ?additionalInfo: 'GDG Algiers Dev Core Team Member',
     ?role: 'Admin',
   },
   logo: { ?title: 'Your Company', logoIcon: YourLogoComponent },
   generalStyles: {
     textColor: '#333333',
     ?activeBg: '#f0f0f0',
     ?activeTextColor: '#007bff',
     ?background: '#ffffff',
     textSize: '16px',
     ?HoverTextColor: '#555555',
     ?HoverBgColor: '#f0f0f0',
     ?BackgroundColor: '#ffffff',
     ?ActiveTextColor: '#007bff',
     ?BorderColor: '#dddddd',
     ?ButtonColor: '#3498db',
   },
   logout: () => {
     // Handle logout functionality
   },
 };

 <SideBarWithSearch {...sidebarProps} />

Join our community

Join us in the GDG Algiers' Community Discord and post your question there.

Contribution Guidelines

Thank you for considering contributing to the web navigation package project. We welcome contributions from the community to make this project even better. Please take a moment to review our CONTRIBUTION.md file where the Contribution Guidelines are listed there.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

GDG Algiers - @gdg_algiers - [email protected]

Project Link: https://github.com/GDGAlgiers/web-navigation-package