{"id":21274176,"url":"https://github.com/izzyjere/guavasoft.links","last_synced_at":"2025-03-15T12:43:38.113Z","repository":{"id":63035914,"uuid":"564704420","full_name":"izzyjere/GuavaSoft.Links","owner":"izzyjere","description":"Anchor Navigation tool that automatically scrolls a page to an anchor.","archived":false,"fork":false,"pushed_at":"2022-11-11T13:22:22.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T03:13:07.226Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/izzyjere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-11T09:53:40.000Z","updated_at":"2023-04-02T09:38:48.000Z","dependencies_parsed_at":"2022-11-11T14:33:31.376Z","dependency_job_id":null,"html_url":"https://github.com/izzyjere/GuavaSoft.Links","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izzyjere%2FGuavaSoft.Links","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izzyjere%2FGuavaSoft.Links/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izzyjere%2FGuavaSoft.Links/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izzyjere%2FGuavaSoft.Links/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izzyjere","download_url":"https://codeload.github.com/izzyjere/GuavaSoft.Links/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243732252,"owners_count":20338831,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T09:19:15.161Z","updated_at":"2025-03-15T12:43:38.082Z","avatar_url":"https://github.com/izzyjere.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"GuavaSoft Blazor Anchor Navigation Tool built on top of \u003ca target=\"blank\" href=\"https://github.com/DevExpress/Blazor/tree/master/tools/DevExpress.Blazor.AnchorUtils\"\u003eDevExpress Anchor\u003c/a\u003e with no javascript require\n\nThe GuavaSoft Anchor Navigation tool automatically scrolls a page to an anchor in the following instances:\n\n* When an end-user clicks a hyperlink with an anchor;\nThe tool also includes the Blazor **AnchorLink** component. Use this component to create in-page navigation links as needed:\n\n```html\n\u003cAnchorLink class=\"nav-link py-3 px-4\" href=\"#MySection1\"\u003eMy Section 1\u003c/AnchorLink\u003e\n```\n    \nWhen an end-user clicks the link, the page scrolls to the corresponding anchor:\n\n```html\n\u003ch2 id=\"MySection1\"\u003eSection 1\u003c/h2\u003e\n\u003cp\u003eLorem ipsum dolor sit amet...\u003c/p\u003e\n\u003ch2 id=\"MySection2\"\u003eSection 2\u003c/h2\u003e\n\u003cp\u003eQuisque imperdiet risus quis nisl vulputate...\u003c/p\u003e\n```\n\n## Usage\n\nFollow the steps below to add the tool to your Blazor application.\n\n1.  Adding it to your project with nuget\n\n**Package Manager**\n\n```sh\nInstall-Package Guavasoft.Links -Version 1.0.0\n```\n\n**.NET CLI**\n\n```sh\ndotnet add package Guavasoft.Links --version 1.0.0\n```\n**PackageReference**\n\n```sh\n\u003cPackageReference Include=\"Guavasoft.Links\" Version=\"1.0.0\" /\u003e\n```\n\n2. Register the **GuavaSoft.Links** namespace in the _\\_Imports.razor_ file:\n\n```csharp\n@using GuavaSoft.Links\n```\n   \n3. Add the non-visual **AnchorLinkProvider** component to the _Shared/MainLayout.razor_ file:\n(Optional)Provide the OffsetSelector parameter with your  pinned (non-scrollable) header css selector (like .top-row in the standard Blazor project)\n```html\n\u003cdiv class=\"main\"\u003e\n    ...\n    \u003cdiv class=\"content px-4\"\u003e \n        @Body \n    \u003c/div\u003e \n\u003c/div\u003e\n\u003cAnchorLinkProvider OffsetSelector=\".content\" /\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizzyjere%2Fguavasoft.links","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizzyjere%2Fguavasoft.links","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizzyjere%2Fguavasoft.links/lists"}