-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(model-ad): create a footer component and add it to the MODEL-AD …
…app (#2689)
- Loading branch information
1 parent
850dea7
commit e60570b
Showing
34 changed files
with
1,211 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
@use 'sass:map'; | ||
@use '@angular/material' as mat; | ||
@use 'libs/model-ad/themes/src/fonts' as fonts; | ||
@use 'libs/model-ad/themes/src/palettes' as palettes; | ||
@use 'libs/model-ad/themes/src/index' as model-ad; | ||
|
||
@include mat.typography-hierarchy(fonts.$lato); | ||
@include mat.core(); | ||
|
||
$primary: mat.define-palette(palettes.$dark-blue-palette, 600); | ||
$accent: mat.define-palette(palettes.$accent-purple-palette, 400); | ||
|
||
$theme: mat.define-light-theme( | ||
( | ||
color: ( | ||
primary: $primary, | ||
accent: $accent, | ||
), | ||
typography: fonts.$lato, | ||
density: 0, | ||
is-dark: false, | ||
) | ||
); | ||
|
||
// Add custom palettes used in figma to the theme | ||
$theme: map.deep-merge( | ||
$theme, | ||
( | ||
color: ( | ||
figma: palettes.$figma-collection, | ||
), | ||
) | ||
); | ||
|
||
// Emit theme-dependent styles for common features used across multiple components. | ||
@include mat.core-theme($theme); | ||
|
||
// Emit styles for MatButton based on `$theme`. | ||
@include mat.button-theme($theme); | ||
|
||
// Include the theme mixins for other components you use here. | ||
@include model-ad.theme($theme); | ||
|
||
:root { | ||
--color-btn-primary: #39bde7; | ||
--color-btn-disabled: #ebebe4; | ||
--color-btn-shadow: rgba(196, 196, 196, 1); | ||
} |
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 +1,8 @@ | ||
<app-nx-welcome></app-nx-welcome> <router-outlet></router-outlet> | ||
<model-ad-footer | ||
appVersion="1.0" | ||
dataUpdatedOn="today" | ||
privacyPolicyUrl="https://google.com" | ||
termsOfUseUrl="https://google.com" | ||
apiDocsUrl="https://google.com" | ||
/> |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* TEAM */ | ||
|
||
/* THANKS */ | ||
|
||
/* SITE */ | ||
Last update: 2024/05/29 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
User-agent: * |
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 +1,4 @@ | ||
/* You can add global styles to this file, and also import other style files */ | ||
@use 'libs/model-ad/styles/src/index'; | ||
|
||
@use 'app-theme'; |
Empty file.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
# model-ad-styles |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "model-ad-styles", | ||
"$schema": "../../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "libs/model-ad/styles/src", | ||
"projectType": "library", | ||
"generators": {}, | ||
"targets": {}, | ||
"tags": [ | ||
"type:styles", | ||
"scope:model-ad", | ||
"language:typescript" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@use 'libs/shared/typescript/styles/src/index'; | ||
|
||
@use './lib/constants'; | ||
@use './lib/general'; |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// See https://github.com/angular/components/blob/master/src/material/core/style/_variables.scss | ||
|
||
// Global constants | ||
$pi: 3.14159264; | ||
$padding-test: 20px; | ||
|
||
// Figma variables | ||
$dl-size-size-large: 144px; | ||
$dl-size-size-small: 48px; | ||
$dl-size-size-medium: 96px; | ||
$dl-size-size-xlarge: 192px; | ||
$dl-size-size-xsmall: 16px; | ||
$dl-space-space-unit: 16px; | ||
$dl-size-size-xxlarge: 288px; | ||
$dl-size-size-maxwidth: 1400px; | ||
$dl-radius-radius-round: 50%; | ||
$dl-space-space-halfunit: 8px; | ||
$dl-space-space-sixunits: 96px; | ||
$dl-space-space-twounits: 32px; | ||
$dl-radius-radius-radius2: 2px; | ||
$dl-radius-radius-radius4: 4px; | ||
$dl-radius-radius-radius8: 8px; | ||
$dl-space-space-fiveunits: 80px; | ||
$dl-space-space-fourunits: 64px; | ||
$dl-radius-radius-radius16: 16px; | ||
$dl-space-space-threeunits: 48px; | ||
$dl-space-space-oneandhalfunits: 24px; | ||
|
||
// Breakpoints from https://getbootstrap.com/docs/5.0/layout/breakpoints/ | ||
$sm-breakpoint: 576px; | ||
$md-breakpoint: 768px; | ||
$lg-breakpoint: 992px; | ||
$xl-breakpoint: 1200px; | ||
$xxl-breakpoint: 1400px; | ||
|
||
// Dimensions of component | ||
$navbar-height: 68px; | ||
$navbar-height-tall: 240px; | ||
$footer-height: 259px; |
Oops, something went wrong.