-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7a2c00
commit 37294a2
Showing
49 changed files
with
10,041 additions
and
3,596 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,72 @@ | ||
import { AppBannerTextComponent } from './shared/components/commons/app-banner-text/app-banner-text.component'; | ||
import { AppContentSectionComponent } from './shared/components/commons/app-content-section/app-content-section.component'; | ||
import { AppFeatureButtonComponent } from './shared/components/commons/app-feature-button/app-feature-button.component'; | ||
import { AppFeatureCardComponent } from "./shared/components/commons/app-feature-card/app-feature-card.component"; | ||
import { AppFeatureCardComponent } from './shared/components/commons/app-feature-card/app-feature-card.component'; | ||
import { AppFooterComponentComponent } from './shared/components/commons/app-footer-component/app-footer-component.component'; | ||
import { AppHeaderComponentComponent } from './shared/components/commons/app-header-component/app-header-component.component'; | ||
import { Component } from '@angular/core'; | ||
import { RouterModule } from '@angular/router'; | ||
|
||
@Component({ | ||
imports: [RouterModule, AppHeaderComponentComponent, AppFooterComponentComponent, AppFeatureButtonComponent, AppContentSectionComponent, AppBannerTextComponent, AppFeatureCardComponent], | ||
imports: [ | ||
RouterModule, | ||
AppHeaderComponentComponent, | ||
AppFooterComponentComponent, | ||
AppFeatureButtonComponent, | ||
AppContentSectionComponent, | ||
AppBannerTextComponent, | ||
AppFeatureCardComponent, | ||
], | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrl: './app.component.scss', | ||
providers: [ | ||
] | ||
providers: [], | ||
}) | ||
export class AppComponent { | ||
title = 'Ngx Primer | Angular Primtives Component Library'; | ||
features = [ | ||
{ | ||
title: "Accessible", | ||
description: "All components follow the accessibility guidelines set out by the Primer Design System to ensure a better user experience." | ||
}, | ||
title: 'Accessible', | ||
description: | ||
'All components follow the accessibility guidelines set out by the Primer Design System to ensure a better user experience.', | ||
}, | ||
{ | ||
title: "Customizable", | ||
description: "Tailor the components' appearance and behavior using Angular's flexible input properties and directives." | ||
}, | ||
title: 'Customizable', | ||
description: | ||
"Tailor the components' appearance and behavior using Angular's flexible input properties and directives.", | ||
}, | ||
{ | ||
title: "Responsive", | ||
description: "The library is designed to be responsive and work seamlessly across all device types and screen sizes." | ||
title: 'Responsive', | ||
description: | ||
'The library is designed to be responsive and work seamlessly across all device types and screen sizes.', | ||
}, | ||
{ | ||
title: "Themeable", | ||
description: "Easily switch between light and dark modes, as well as apply custom themes to your components." | ||
title: 'Themeable', | ||
description: | ||
'Easily switch between light and dark modes, as well as apply custom themes to your components.', | ||
}, | ||
{ | ||
title: "Signal API", | ||
description: "Leverage Angular's Signal API to create custom events and handle them in your application, for highly reactive, optimized performance.", | ||
} | ||
title: 'Signal API', | ||
description: | ||
"Leverage Angular's Signal API to create custom events and handle them in your application, for highly reactive, optimized performance.", | ||
}, | ||
]; | ||
|
||
hyperlinks = [ | ||
{ | ||
text: "Get Started", | ||
text: 'Get Started', | ||
hyperlink: true, | ||
target: "get-started", | ||
target: 'get-started', | ||
}, | ||
{ | ||
text: "Quick Start", | ||
text: 'Quick Start', | ||
hyperlink: true, | ||
target: "quick-start", | ||
target: 'quick-start', | ||
}, | ||
{ | ||
text: "Api Reference", | ||
text: 'Api Reference', | ||
hyperlink: true, | ||
target: "api-reference", | ||
target: 'api-reference', | ||
}, | ||
] | ||
]; | ||
} |
14 changes: 10 additions & 4 deletions
14
...ntations/src/app/shared/components/commons/app-banner-text/app-banner-text.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
<h1 class="h-full text-[36px] md:text-[48px] lg:text-[72px] leading-[1.5] md:leading-[2] font-bold text-foreground-brand"> | ||
<h1 | ||
class="h-full text-[36px] md:text-[48px] lg:text-[72px] leading-[1.5] md:leading-[2] font-bold text-foreground-brand" | ||
> | ||
{{ brand() }} | ||
</h1> | ||
<h2 class="text-[24px] md:text-[36px] lg:text-[48px] leading-[1.5] font-bold text-gray-300"> | ||
<h2 | ||
class="text-[24px] md:text-[36px] lg:text-[48px] leading-[1.5] font-bold text-gray-300" | ||
> | ||
{{ tagline() }} | ||
</h2> | ||
<h3 class="text-[20px] md:text-[24px] lg:text-[28px] leading-[1.5] font-bold text-[#F637E3]"> | ||
<h3 | ||
class="text-[20px] md:text-[24px] lg:text-[28px] leading-[1.5] font-bold text-[#F637E3]" | ||
> | ||
{{ subtle() }} | ||
</h3> | ||
</h3> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
.../src/app/shared/components/commons/app-content-section/app-content-section.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<section class="container mx-auto px-6 md:px-12 lg:px-24 py-12 md:py-24 flex flex-col md:flex-row"> | ||
<section | ||
class="container mx-auto px-6 md:px-12 lg:px-24 py-12 md:py-24 flex flex-col md:flex-row" | ||
> | ||
<ng-content /> | ||
</section> | ||
</section> |
12 changes: 7 additions & 5 deletions
12
...ns/src/app/shared/components/commons/app-feature-button/app-feature-button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
@if (!hyperlink()) { | ||
<button | ||
class="bg-[#0546f1] font-semibold text-gray-100 text-xs sm:text-sm xl:text-md p-2 sm:py-2 sm:px-2 md:px-4 md:py-2 rounded-lg md:rounded-xl"> | ||
<button | ||
class="bg-[#0546f1] font-semibold text-gray-100 text-xs sm:text-sm xl:text-md p-2 sm:py-2 sm:px-2 md:px-4 md:py-2 rounded-lg md:rounded-xl" | ||
> | ||
{{ buttonText }} | ||
</button> | ||
} @else { | ||
<a | ||
<a | ||
[routerLink]="hyperlinkTarget()" | ||
class="bg-[#0546f1]/100 font-semibold text-xs sm:text-sm xl:text-md p-2 sm:py-2 sm:px-2 md:px-4 md:py-2 rounded-lg md:rounded-xl"> | ||
class="bg-[#0546f1]/100 font-semibold text-xs sm:text-sm xl:text-md p-2 sm:py-2 sm:px-2 md:px-4 md:py-2 rounded-lg md:rounded-xl" | ||
> | ||
{{ buttonText }} | ||
</a> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
...ations/src/app/shared/components/commons/app-feature-card/app-feature-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<div class="bg-black bg-opacity-30 rounded-lg p-6 flex flex-col gap-4 h-full"> | ||
<h3 class="text-[16px] md:text-[20px] font-semibold text-gray-500 leading-[1.1] mb-4 md:mb-8">{{ item()?.title }}</h3> | ||
<h3 | ||
class="text-[16px] md:text-[20px] font-semibold text-gray-500 leading-[1.1] mb-4 md:mb-8" | ||
> | ||
{{ item()?.title }} | ||
</h3> | ||
<p class="text-gray-700 text-sm leading-[1.1] font-semibold"> | ||
{{ item()?.description }} | ||
</p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
</div> | ||
</div> | ||
</div> | ||
</header> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.