sdga-ui 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deploy.yml +15 -1
- package/README.md +16 -24
- package/css/dga-ui.css +4146 -1055
- package/css/dga-ui.css.map +1 -1
- package/demo-angular/README.md +34 -2
- package/demo-angular/angular.json +6 -1
- package/demo-angular/package-lock.json +191 -50
- package/demo-angular/package.json +14 -11
- package/demo-angular/public/404.html +35 -0
- package/demo-angular/public/i18n/ar.json +50 -0
- package/demo-angular/public/i18n/en.json +50 -0
- package/demo-angular/src/app/app.routes.ts +12 -4
- package/demo-angular/src/app/app.ts +8 -2
- package/demo-angular/src/app/views/alerts/alerts.component.html +10 -10
- package/demo-angular/src/app/views/alerts/alerts.component.ts +10 -10
- package/demo-angular/src/app/views/buttons/buttons.component.html +23 -23
- package/demo-angular/src/app/views/buttons/buttons.component.ts +14 -14
- package/demo-angular/src/app/views/cards/cards.component.html +6 -6
- package/demo-angular/src/app/views/cards/cards.component.ts +10 -10
- package/demo-angular/src/app/views/contexts/contexts.component.html +204 -0
- package/demo-angular/src/app/views/contexts/contexts.component.ts +10 -0
- package/demo-angular/src/app/views/footer/footer.html +282 -0
- package/demo-angular/src/app/views/footer/footer.spec.ts +23 -0
- package/demo-angular/src/app/views/footer/footer.ts +142 -0
- package/demo-angular/src/app/views/header/header.html +1 -0
- package/demo-angular/src/app/views/header/header.scss +0 -0
- package/demo-angular/src/app/views/header/header.spec.ts +23 -0
- package/demo-angular/src/app/views/header/header.ts +11 -0
- package/demo-angular/src/app/views/home/home.component.html +0 -5
- package/demo-angular/src/app/views/links/links.component.html +11 -130
- package/demo-angular/src/app/views/links/links.component.scss +1 -50
- package/demo-angular/src/app/views/links/links.component.ts +5 -109
- package/demo-angular/src/app/views/toasts/toasts.component.html +7 -7
- package/demo-angular/src/app/views/toasts/toasts.component.ts +7 -7
- package/demo-angular/src/index.html +15 -1
- package/package.json +3 -2
- package/sdga-ui/README.md +45 -0
- package/sdga-ui/content/docs/components/alerts.mdx +475 -0
- package/sdga-ui/content/docs/index.mdx +239 -0
- package/sdga-ui/next.config.mjs +10 -0
- package/sdga-ui/package-lock.json +5851 -0
- package/sdga-ui/package.json +32 -0
- package/sdga-ui/postcss.config.mjs +5 -0
- package/sdga-ui/source.config.ts +27 -0
- package/sdga-ui/src/app/(home)/layout.tsx +6 -0
- package/sdga-ui/src/app/(home)/page.tsx +202 -0
- package/sdga-ui/src/app/api/search/route.ts +7 -0
- package/sdga-ui/src/app/docs/[[...slug]]/page.tsx +54 -0
- package/sdga-ui/src/app/docs/layout.tsx +11 -0
- package/sdga-ui/src/app/global.css +3 -0
- package/sdga-ui/src/app/layout.tsx +25 -0
- package/sdga-ui/src/app/llms-full.txt/route.ts +10 -0
- package/sdga-ui/src/app/og/docs/[...slug]/route.tsx +34 -0
- package/sdga-ui/src/app/sdga-scoped.css +7 -0
- package/sdga-ui/src/components/sdga-preview.tsx +105 -0
- package/sdga-ui/src/lib/layout.shared.tsx +9 -0
- package/sdga-ui/src/lib/source.ts +27 -0
- package/sdga-ui/src/mdx-components.tsx +9 -0
- package/sdga-ui/tsconfig.json +46 -0
- package/theme/_variables.scss +7 -5
- package/theme/components/_buttons.scss +105 -0
- package/theme/components/_cards.scss +0 -1
- package/theme/components/_pagination.scss +2 -2
- package/theme/config/_base.scss +4 -33
- package/theme/config/_contexts.scss +471 -0
- package/theme/customizations/_alerts.scss +105 -125
- package/theme/customizations/_badges.scss +15 -0
- package/theme/customizations/_buttons.scss +288 -146
- package/theme/customizations/_cards.scss +52 -0
- package/theme/customizations/_contexts.scss +432 -0
- package/theme/customizations/_footer.scss +83 -0
- package/theme/customizations/_links.scss +88 -84
- package/theme/customizations/_toasts.scss +81 -101
- package/theme/dga-ui.scss +3 -2
- package/demo-angular/src/app/views/bootstrap/bootstrap.component.html +0 -14
- package/demo-angular/src/app/views/bootstrap/bootstrap.component.scss +0 -91
- package/demo-angular/src/app/views/bootstrap/bootstrap.component.ts +0 -23
- package/theme/customizations/_utilities.scss +0 -138
- /package/demo-angular/{public/.nojekyll → src/app/views/footer/footer.scss} +0 -0
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div class="card" tabindex="0">
|
|
12
12
|
<div class="card-body">
|
|
13
13
|
<h5 class="card-title">
|
|
14
|
-
<i class="
|
|
14
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
15
15
|
</h5>
|
|
16
16
|
<h6 class="card-subtitle mb-2">{{ 'cards.card_title' | translate }}</h6>
|
|
17
17
|
<p class="card-text">{{ 'cards.card_text' | translate }}</p>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<div class="card disabled" tabindex="0">
|
|
50
50
|
<div class="card-body">
|
|
51
51
|
<h5 class="card-title">
|
|
52
|
-
<i class="
|
|
52
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
53
53
|
<input class="card-title-checked form-check-input ripple" disabled type="checkbox" value="" id="check1" aria-label="{{ 'cards.select_card' | translate }}">
|
|
54
54
|
</h5>
|
|
55
55
|
<h6 class="card-subtitle mb-2">{{ 'cards.card_title' | translate }}</h6>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
<div class="card" tabindex="0" [class.expanded]="isExpanded(1)">
|
|
89
89
|
<div class="card-body">
|
|
90
90
|
<h5 class="card-title">
|
|
91
|
-
<i class="
|
|
91
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
92
92
|
<input class="card-title-checked form-check-input ripple" type="checkbox" value="" id="check3" aria-label="{{ 'cards.select_card' | translate }}">
|
|
93
93
|
</h5>
|
|
94
94
|
<h6 class="card-subtitle mb-2">{{ 'cards.expandable_title' | translate }}</h6>
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
<div class="card-footer">
|
|
109
|
-
<i class="
|
|
109
|
+
<i class="bi card-expanded-icon" [class.bi-chevron-up]="isExpanded(1)" [class.bi-chevron-down]="!isExpanded(1)" (click)="toggleCard(1)"></i>
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
112
|
</div>
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
<div class="card" tabindex="0" [class.expanded]="isExpanded(2)">
|
|
123
123
|
<div class="card-body">
|
|
124
124
|
<h5 class="card-title">
|
|
125
|
-
<i class="
|
|
125
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
126
126
|
</h5>
|
|
127
127
|
<h6 class="card-subtitle mb-2">{{ 'cards.expandable_title' | translate }}</h6>
|
|
128
128
|
<p class="card-text">{{ 'cards.expandable_text' | translate }}</p>
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
<div class="card-footer">
|
|
146
|
-
<i class="
|
|
146
|
+
<i class="bi card-expanded-icon" [class.bi-chevron-up]="isExpanded(2)" [class.bi-chevron-down]="!isExpanded(2)" (click)="toggleCard(2)"></i>
|
|
147
147
|
</div>
|
|
148
148
|
</div>
|
|
149
149
|
</div>
|
|
@@ -32,7 +32,7 @@ export class CardsComponent {
|
|
|
32
32
|
cardWithIconCode = `<div class="card" tabindex="0">
|
|
33
33
|
<div class="card-body">
|
|
34
34
|
<h5 class="card-title">
|
|
35
|
-
<i class="
|
|
35
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
36
36
|
</h5>
|
|
37
37
|
<h6 class="card-subtitle mb-2">Card Title</h6>
|
|
38
38
|
<p class="card-text">This is a sample card text that describes the content.</p>
|
|
@@ -64,7 +64,7 @@ export class CardsComponent {
|
|
|
64
64
|
disabledCardCode = `<div class="card disabled" tabindex="0">
|
|
65
65
|
<div class="card-body">
|
|
66
66
|
<h5 class="card-title">
|
|
67
|
-
<i class="
|
|
67
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
68
68
|
<input class="card-title-checked form-check-input ripple"
|
|
69
69
|
disabled
|
|
70
70
|
type="checkbox"
|
|
@@ -102,7 +102,7 @@ export class CardsComponent {
|
|
|
102
102
|
expandableCardHtmlCode = `<div class="card" tabindex="0" [class.expanded]="isExpanded(1)">
|
|
103
103
|
<div class="card-body">
|
|
104
104
|
<h5 class="card-title">
|
|
105
|
-
<i class="
|
|
105
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
106
106
|
<input class="card-title-checked form-check-input ripple"
|
|
107
107
|
type="checkbox"
|
|
108
108
|
value=""
|
|
@@ -124,9 +124,9 @@ export class CardsComponent {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
<div class="card-footer">
|
|
127
|
-
<i class="
|
|
128
|
-
[class.
|
|
129
|
-
[class.
|
|
127
|
+
<i class="bi card-expanded-icon"
|
|
128
|
+
[class.bi-chevron-up]="isExpanded(1)"
|
|
129
|
+
[class.bi-chevron-down]="!isExpanded(1)"
|
|
130
130
|
(click)="toggleCard(1)"></i>
|
|
131
131
|
</div>
|
|
132
132
|
</div>
|
|
@@ -163,7 +163,7 @@ export class CardsComponent {
|
|
|
163
163
|
expandableCardSimpleHtmlCode = `<div class="card" tabindex="0" [class.expanded]="isExpanded(2)">
|
|
164
164
|
<div class="card-body">
|
|
165
165
|
<h5 class="card-title">
|
|
166
|
-
<i class="
|
|
166
|
+
<i class="bi bi-check-circle card-title-icon"></i>
|
|
167
167
|
</h5>
|
|
168
168
|
<h6 class="card-subtitle mb-2">Expandable Card Title</h6>
|
|
169
169
|
<p class="card-text">Click the arrow to see more details.</p>
|
|
@@ -184,9 +184,9 @@ export class CardsComponent {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
<div class="card-footer">
|
|
187
|
-
<i class="
|
|
188
|
-
[class.
|
|
189
|
-
[class.
|
|
187
|
+
<i class="bi card-expanded-icon"
|
|
188
|
+
[class.bi-chevron-up]="isExpanded(2)"
|
|
189
|
+
[class.bi-chevron-down]="!isExpanded(2)"
|
|
190
190
|
(click)="toggleCard(2)"></i>
|
|
191
191
|
</div>
|
|
192
192
|
</div>
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
<!-- Context-Aware Theming Demo -->
|
|
2
|
+
<div class="container py-5">
|
|
3
|
+
<h1 class="mb-5">Context-Aware Theming System</h1>
|
|
4
|
+
<p class="lead mb-5">
|
|
5
|
+
Components automatically adapt their colors based on the background context.
|
|
6
|
+
Simply wrap content in context classes like <code>.on-primary</code>, <code>.on-dark</code>, etc.
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
<!-- Default Context (Light Background) -->
|
|
10
|
+
<section class="mb-5">
|
|
11
|
+
<h2>Default Context</h2>
|
|
12
|
+
<div class="p-4 border rounded">
|
|
13
|
+
<p class="mb-3">This is the default light background context.</p>
|
|
14
|
+
<div class="d-flex gap-2 mb-3">
|
|
15
|
+
<button class="btn btn-primary">Primary Button</button>
|
|
16
|
+
<button class="btn btn-secondary">Secondary Button</button>
|
|
17
|
+
<button class="btn btn-outline-primary">Outline Button</button>
|
|
18
|
+
</div>
|
|
19
|
+
<p class="mb-2">
|
|
20
|
+
<a href="#" class="me-3">Regular Link</a>
|
|
21
|
+
<a href="#" class="link-primary">Primary Link</a>
|
|
22
|
+
</p>
|
|
23
|
+
<input type="text" class="form-control" placeholder="Input field">
|
|
24
|
+
</div>
|
|
25
|
+
</section>
|
|
26
|
+
|
|
27
|
+
<!-- On Primary Context -->
|
|
28
|
+
<section class="mb-5">
|
|
29
|
+
<h2>On Primary Context</h2>
|
|
30
|
+
<div class="on-primary p-4 rounded context-section">
|
|
31
|
+
<h3>Content on Primary Background</h3>
|
|
32
|
+
<p class="mb-3">All components automatically adapt to white/light colors for better contrast.</p>
|
|
33
|
+
<div class="d-flex gap-2 mb-3">
|
|
34
|
+
<button class="btn btn-primary">Primary Button</button>
|
|
35
|
+
<button class="btn btn-secondary">Secondary Button</button>
|
|
36
|
+
<button class="btn btn-outline-primary">Outline Button</button>
|
|
37
|
+
</div>
|
|
38
|
+
<p class="mb-3">
|
|
39
|
+
<a href="#" class="me-3">Regular Link</a>
|
|
40
|
+
<span class="text-muted">Muted text adapts too</span>
|
|
41
|
+
</p>
|
|
42
|
+
<input type="text" class="form-control" placeholder="Input field adapts">
|
|
43
|
+
|
|
44
|
+
<div class="card mt-3 on-light">
|
|
45
|
+
<div class="card-body">
|
|
46
|
+
<h5 class="card-title">Card in Primary Context</h5>
|
|
47
|
+
<p class="card-text">Cards have subtle transparency to blend with the background.</p>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</section>
|
|
52
|
+
|
|
53
|
+
<!-- On Dark Context -->
|
|
54
|
+
<section class="mb-5">
|
|
55
|
+
<h2>On Dark Context</h2>
|
|
56
|
+
<div class="on-dark p-4 rounded context-section">
|
|
57
|
+
<h3>Content on Dark Background</h3>
|
|
58
|
+
<p class="mb-3">Perfect for dark mode or dark sections. All components adapt automatically.</p>
|
|
59
|
+
<div class="d-flex gap-2 mb-3">
|
|
60
|
+
<button class="btn btn-primary">Primary Button</button>
|
|
61
|
+
<button class="btn btn-secondary">Secondary Button</button>
|
|
62
|
+
<button class="btn btn-outline-primary">Outline Button</button>
|
|
63
|
+
</div>
|
|
64
|
+
<p class="mb-3">
|
|
65
|
+
<a href="#" class="me-3">Regular Link</a>
|
|
66
|
+
<span class="text-muted">Muted text is readable</span>
|
|
67
|
+
</p>
|
|
68
|
+
<input type="text" class="form-control mb-3" placeholder="Form fields work great">
|
|
69
|
+
<select class="form-select">
|
|
70
|
+
<option>Select options adapt too</option>
|
|
71
|
+
<option>Option 2</option>
|
|
72
|
+
</select>
|
|
73
|
+
</div>
|
|
74
|
+
</section>
|
|
75
|
+
|
|
76
|
+
<!-- On Danger Context -->
|
|
77
|
+
<section class="mb-5">
|
|
78
|
+
<h2>On Danger Context</h2>
|
|
79
|
+
<div class="on-danger p-4 rounded context-section">
|
|
80
|
+
<h3>Critical Alerts or Warnings</h3>
|
|
81
|
+
<p class="mb-3">Use for error states, critical warnings, or important notices.</p>
|
|
82
|
+
<div class="d-flex gap-2 mb-3">
|
|
83
|
+
<button class="btn btn-primary">Primary Action</button>
|
|
84
|
+
<button class="btn btn-secondary">Secondary Action</button>
|
|
85
|
+
<button class="btn btn-outline-primary">Outline Action</button>
|
|
86
|
+
</div>
|
|
87
|
+
<div class="alert alert-warning mb-0">
|
|
88
|
+
<strong>Warning!</strong> Even alerts adapt to the context.
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</section>
|
|
92
|
+
|
|
93
|
+
<!-- On Success Context -->
|
|
94
|
+
<section class="mb-5">
|
|
95
|
+
<h2>On Success Context</h2>
|
|
96
|
+
<div class="on-success p-4 rounded context-section">
|
|
97
|
+
<h3>Success Messages or Confirmation</h3>
|
|
98
|
+
<p class="mb-3">Perfect for success states, completed actions, or positive feedback.</p>
|
|
99
|
+
<div class="d-flex gap-2 mb-3">
|
|
100
|
+
<button class="btn btn-primary">Continue</button>
|
|
101
|
+
<button class="btn btn-outline-primary">View Details</button>
|
|
102
|
+
</div>
|
|
103
|
+
<p class="mb-0">
|
|
104
|
+
<a href="#">Learn more about this success</a>
|
|
105
|
+
</p>
|
|
106
|
+
</div>
|
|
107
|
+
</section>
|
|
108
|
+
|
|
109
|
+
<!-- On Warning Context -->
|
|
110
|
+
<section class="mb-5">
|
|
111
|
+
<h2>On Warning Context</h2>
|
|
112
|
+
<div class="on-warning p-4 rounded context-section">
|
|
113
|
+
<h3>Warning or Attention Needed</h3>
|
|
114
|
+
<p class="mb-3">Note: Uses dark text for better contrast on yellow/warning background.</p>
|
|
115
|
+
<div class="d-flex gap-2 mb-3">
|
|
116
|
+
<button class="btn btn-primary">Take Action</button>
|
|
117
|
+
<button class="btn btn-secondary">Dismiss</button>
|
|
118
|
+
</div>
|
|
119
|
+
<input type="text" class="form-control" placeholder="Dark text on warning background">
|
|
120
|
+
</div>
|
|
121
|
+
</section>
|
|
122
|
+
|
|
123
|
+
<!-- On Light Context -->
|
|
124
|
+
<section class="mb-5">
|
|
125
|
+
<h2>On Light Context</h2>
|
|
126
|
+
<div class="on-light p-4 rounded context-section">
|
|
127
|
+
<h3>Subtle Light Background</h3>
|
|
128
|
+
<p class="mb-3">Slightly different from default - useful for sections, sidebars, or panels.</p>
|
|
129
|
+
<div class="d-flex gap-2 mb-3">
|
|
130
|
+
<button class="btn btn-primary">Primary Button</button>
|
|
131
|
+
<button class="btn btn-secondary">Secondary Button</button>
|
|
132
|
+
<button class="btn btn-outline-primary">Outline Button</button>
|
|
133
|
+
</div>
|
|
134
|
+
<p class="mb-3">
|
|
135
|
+
<a href="#">Links maintain primary color</a>
|
|
136
|
+
<span class="text-muted ms-3">Muted text for less emphasis</span>
|
|
137
|
+
</p>
|
|
138
|
+
<div class="row g-2">
|
|
139
|
+
<div class="col">
|
|
140
|
+
<input type="text" class="form-control" placeholder="First name">
|
|
141
|
+
</div>
|
|
142
|
+
<div class="col">
|
|
143
|
+
<input type="text" class="form-control" placeholder="Last name">
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
</section>
|
|
148
|
+
|
|
149
|
+
<!-- Nested Contexts Example -->
|
|
150
|
+
<section class="mb-5">
|
|
151
|
+
<h2>Nested Contexts</h2>
|
|
152
|
+
<div class="on-primary p-4 rounded">
|
|
153
|
+
<h3>Primary Background</h3>
|
|
154
|
+
<p class="mb-3">You can nest different contexts for complex layouts.</p>
|
|
155
|
+
<button class="btn btn-primary me-2">Button on Primary</button>
|
|
156
|
+
|
|
157
|
+
<div class="on-light p-3 rounded mt-3">
|
|
158
|
+
<h4>Light Context Inside Primary</h4>
|
|
159
|
+
<p class="mb-2">This light section is nested inside the primary background.</p>
|
|
160
|
+
<button class="btn btn-primary">Button on Light</button>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
</section>
|
|
164
|
+
|
|
165
|
+
<!-- Usage Guide -->
|
|
166
|
+
<section class="mt-5 p-4 bg-light rounded">
|
|
167
|
+
<h2>How to Use</h2>
|
|
168
|
+
<div class="row">
|
|
169
|
+
<div class="col-md-6">
|
|
170
|
+
<h4>Available Context Classes:</h4>
|
|
171
|
+
<ul>
|
|
172
|
+
<li><code>.on-primary</code> - White text on primary color</li>
|
|
173
|
+
<li><code>.on-dark</code> - White text on dark background</li>
|
|
174
|
+
<li><code>.on-danger</code> - White text on danger/error color</li>
|
|
175
|
+
<li><code>.on-success</code> - White text on success color</li>
|
|
176
|
+
<li><code>.on-warning</code> - Dark text on warning color</li>
|
|
177
|
+
<li><code>.on-light</code> - Dark text on light background</li>
|
|
178
|
+
</ul>
|
|
179
|
+
</div>
|
|
180
|
+
<div class="col-md-6">
|
|
181
|
+
<h4>What Adapts Automatically:</h4>
|
|
182
|
+
<ul>
|
|
183
|
+
<li>✅ Buttons (all variants)</li>
|
|
184
|
+
<li>✅ Links</li>
|
|
185
|
+
<li>✅ Form inputs and selects</li>
|
|
186
|
+
<li>✅ Text colors</li>
|
|
187
|
+
<li>✅ Border colors</li>
|
|
188
|
+
<li>✅ Cards and alerts</li>
|
|
189
|
+
<li>✅ Tables and badges</li>
|
|
190
|
+
</ul>
|
|
191
|
+
</div>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
<div class="mt-4">
|
|
195
|
+
<h4>Example Code:</h4>
|
|
196
|
+
<pre class="bg-dark text-white p-3 rounded"><code><div class="on-primary p-4">
|
|
197
|
+
<h3>Content adapts automatically</h3>
|
|
198
|
+
<button class="btn btn-primary">Primary Button</button>
|
|
199
|
+
<a href="#">Link</a>
|
|
200
|
+
<input type="text" class="form-control" placeholder="Input">
|
|
201
|
+
</div></code></pre>
|
|
202
|
+
</div>
|
|
203
|
+
</section>
|
|
204
|
+
</div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-buttons',
|
|
6
|
+
imports: [TranslateModule],
|
|
7
|
+
templateUrl: './contexts.component.html',
|
|
8
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
9
|
+
})
|
|
10
|
+
export class ContextsComponent {}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
<footer class="dga-footer on-primary">
|
|
2
|
+
<div class="container-fluid">
|
|
3
|
+
<!-- Main Footer Content -->
|
|
4
|
+
<div class="row dga-list-group-container">
|
|
5
|
+
<!-- Footer Link Groups (5 columns) -->
|
|
6
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
7
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
8
|
+
<ul class="list-unstyled">
|
|
9
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
10
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
11
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
12
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
13
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
14
|
+
</ul>
|
|
15
|
+
</div>
|
|
16
|
+
|
|
17
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
18
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
19
|
+
<ul class="list-unstyled">
|
|
20
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
21
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
22
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
23
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
24
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
25
|
+
</ul>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
29
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
30
|
+
<ul class="list-unstyled">
|
|
31
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
32
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
33
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
34
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
35
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
36
|
+
</ul>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
40
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
41
|
+
<ul class="list-unstyled">
|
|
42
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
43
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
44
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
45
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
46
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
47
|
+
</ul>
|
|
48
|
+
</div>
|
|
49
|
+
|
|
50
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
51
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
52
|
+
<ul class="list-unstyled">
|
|
53
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
54
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
55
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
56
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
57
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
58
|
+
</ul>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<!-- Social Media & Accessibility -->
|
|
62
|
+
<div class="col-12 col-lg-auto">
|
|
63
|
+
<div class="dga-social-container">
|
|
64
|
+
<!-- Social Media -->
|
|
65
|
+
<div>
|
|
66
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Social Media</h6>
|
|
67
|
+
<div class="d-flex gap-2 flex-wrap">
|
|
68
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="Download">
|
|
69
|
+
<i class="bi bi-twitter"></i>
|
|
70
|
+
</button>
|
|
71
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="Download">
|
|
72
|
+
<i class="bi bi-facebook"></i>
|
|
73
|
+
</button>
|
|
74
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="Download">
|
|
75
|
+
<i class="bi bi-instagram"></i>
|
|
76
|
+
</button>
|
|
77
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="Download">
|
|
78
|
+
<i class="bi bi-linkedin"></i>
|
|
79
|
+
</button>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<!-- Accessibility Tools -->
|
|
84
|
+
<div>
|
|
85
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Accessibility Tools</h6>
|
|
86
|
+
<div class="d-flex gap-2 flex-wrap">
|
|
87
|
+
<button class="btn btn-outline-secondary btn-icon">
|
|
88
|
+
<i class="bi bi-eye"></i>
|
|
89
|
+
</button>
|
|
90
|
+
<button class="btn btn-outline-secondary btn-icon">
|
|
91
|
+
<i class="bi bi-volume-up"></i>
|
|
92
|
+
</button>
|
|
93
|
+
<button class="btn btn-outline-secondary btn-icon">
|
|
94
|
+
<i class="bi bi-universal-access"></i>
|
|
95
|
+
</button>
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
|
|
102
|
+
<!-- Bottom Footer -->
|
|
103
|
+
<div class="dga-footer-bottom">
|
|
104
|
+
<div class="row g-4 align-items-center">
|
|
105
|
+
<div class="col-lg-8">
|
|
106
|
+
<!-- Footer Links Row -->
|
|
107
|
+
<div class="dga-footer-bottom-links">
|
|
108
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
109
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
110
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
111
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
112
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
113
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
114
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
115
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
116
|
+
</div>
|
|
117
|
+
|
|
118
|
+
<!-- Copyright -->
|
|
119
|
+
<div class="dga-footer-copyright">
|
|
120
|
+
<p class="fw-semibold small mb-2">All Right Reserved For Digital Government Authority © 2024</p>
|
|
121
|
+
<div class="dga-footer-copyright-links">
|
|
122
|
+
<a href="#" class="link-neutral small">Terms and Conditions</a>
|
|
123
|
+
<a href="#" class="link-neutral small">Privacy Policy</a>
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
<!-- Logos -->
|
|
129
|
+
<div class="col-lg-4">
|
|
130
|
+
<div class="dga-logo-container">
|
|
131
|
+
<img src="https://placehold.co/125x42" alt="logo">
|
|
132
|
+
<img src="https://placehold.co/125x42" alt="logo">
|
|
133
|
+
</div>
|
|
134
|
+
</div>
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
</div>
|
|
138
|
+
</footer>
|
|
139
|
+
|
|
140
|
+
<app-code-example [htmlCode]="primaryFooterCode"></app-code-example>
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
<footer class="dga-footer on-secondary">
|
|
144
|
+
<div class="container-fluid">
|
|
145
|
+
<!-- Main Footer Content -->
|
|
146
|
+
<div class="row dga-list-group-container">
|
|
147
|
+
<!-- Footer Link Groups (5 columns) -->
|
|
148
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
149
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
150
|
+
<ul class="list-unstyled">
|
|
151
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
152
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
153
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
154
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
155
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
156
|
+
</ul>
|
|
157
|
+
</div>
|
|
158
|
+
|
|
159
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
160
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
161
|
+
<ul class="list-unstyled">
|
|
162
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
163
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
164
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
165
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
166
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
167
|
+
</ul>
|
|
168
|
+
</div>
|
|
169
|
+
|
|
170
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
171
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
172
|
+
<ul class="list-unstyled">
|
|
173
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
174
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
175
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
176
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
177
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
178
|
+
</ul>
|
|
179
|
+
</div>
|
|
180
|
+
|
|
181
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
182
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
183
|
+
<ul class="list-unstyled">
|
|
184
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
185
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
186
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
187
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
188
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
189
|
+
</ul>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<div class="col-6 col-md-4 col-lg dga-link-group">
|
|
193
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Group Label</h6>
|
|
194
|
+
<ul class="list-unstyled">
|
|
195
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
196
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
197
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
198
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
199
|
+
<li class="mb-2"><a href="#" class="link-neutral small">Footer Link</a></li>
|
|
200
|
+
</ul>
|
|
201
|
+
</div>
|
|
202
|
+
|
|
203
|
+
<!-- Social Media & Accessibility -->
|
|
204
|
+
<div class="col-12 col-lg-auto">
|
|
205
|
+
<div class="dga-social-container">
|
|
206
|
+
<!-- Social Media -->
|
|
207
|
+
<div>
|
|
208
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Social Media</h6>
|
|
209
|
+
<div class="d-flex gap-2 flex-wrap">
|
|
210
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="Download">
|
|
211
|
+
<i class="bi bi-twitter"></i>
|
|
212
|
+
</button>
|
|
213
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="Download">
|
|
214
|
+
<i class="bi bi-facebook"></i>
|
|
215
|
+
</button>
|
|
216
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="Download">
|
|
217
|
+
<i class="bi bi-instagram"></i>
|
|
218
|
+
</button>
|
|
219
|
+
<button type="button" class="btn btn-outline-secondary btn-icon" aria-label="Download">
|
|
220
|
+
<i class="bi bi-linkedin"></i>
|
|
221
|
+
</button>
|
|
222
|
+
</div>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<!-- Accessibility Tools -->
|
|
226
|
+
<div>
|
|
227
|
+
<h6 class="border-bottom border-white border-opacity-25 pb-2 mb-3">Accessibility Tools</h6>
|
|
228
|
+
<div class="d-flex gap-2 flex-wrap">
|
|
229
|
+
<button class="btn btn-outline-secondary btn-icon">
|
|
230
|
+
<i class="bi bi-eye"></i>
|
|
231
|
+
</button>
|
|
232
|
+
<button class="btn btn-outline-secondary btn-icon">
|
|
233
|
+
<i class="bi bi-volume-up"></i>
|
|
234
|
+
</button>
|
|
235
|
+
<button class="btn btn-outline-secondary btn-icon">
|
|
236
|
+
<i class="bi bi-universal-access"></i>
|
|
237
|
+
</button>
|
|
238
|
+
</div>
|
|
239
|
+
</div>
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
|
|
244
|
+
<!-- Bottom Footer -->
|
|
245
|
+
<div class="dga-footer-bottom">
|
|
246
|
+
<div class="row g-4 align-items-center">
|
|
247
|
+
<div class="col-lg-8">
|
|
248
|
+
<!-- Footer Links Row -->
|
|
249
|
+
<div class="dga-footer-bottom-links">
|
|
250
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
251
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
252
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
253
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
254
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
255
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
256
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
257
|
+
<a href="#" class="link-neutral text-decoration-underline small">Footer Link</a>
|
|
258
|
+
</div>
|
|
259
|
+
|
|
260
|
+
<!-- Copyright -->
|
|
261
|
+
<div class="dga-footer-copyright">
|
|
262
|
+
<p class="fw-semibold small mb-2">All Right Reserved For Digital Government Authority © 2024</p>
|
|
263
|
+
<div class="dga-footer-copyright-links">
|
|
264
|
+
<a href="#" class="link-neutral small">Terms and Conditions</a>
|
|
265
|
+
<a href="#" class="link-neutral small">Privacy Policy</a>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
|
|
270
|
+
<!-- Logos -->
|
|
271
|
+
<div class="col-lg-4">
|
|
272
|
+
<div class="dga-logo-container">
|
|
273
|
+
<img src="https://placehold.co/125x42" alt="logo">
|
|
274
|
+
<img src="https://placehold.co/125x42" alt="logo">
|
|
275
|
+
</div>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
</footer>
|
|
281
|
+
|
|
282
|
+
<app-code-example [htmlCode]="secondaryFooterCode"></app-code-example>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { Footer } from './footer';
|
|
4
|
+
|
|
5
|
+
describe('Footer', () => {
|
|
6
|
+
let component: Footer;
|
|
7
|
+
let fixture: ComponentFixture<Footer>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
imports: [Footer]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(Footer);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
await fixture.whenStable();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|