-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #123 from egovernments/DPG-2491
Added LandingPageCrads, MenuCard Molecules
- Loading branch information
Showing
32 changed files
with
1,063 additions
and
32 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@egovernments/digit-ui-components-css", | ||
"version": "0.0.2-beta.29", | ||
"version": "0.0.2-beta.30", | ||
"license": "MIT", | ||
"main": "dist/index.css", | ||
"author": "Jagankumar <[email protected]>", | ||
|
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
144 changes: 144 additions & 0 deletions
144
react/css/src/digitv2/components/landingpagecardV2.scss
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,144 @@ | ||
.digit-landing-page-card { | ||
background-color: theme(digitv2.lightTheme.paper-primary); | ||
box-shadow: theme(digitv2.spacers.spacer0) 1px 2px theme(digitv2.spacers.spacer0) #00000029; | ||
max-width: 30%; | ||
min-width: 15%; | ||
gap: theme(digitv2.spacers.spacer4); | ||
border-radius: theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0); | ||
|
||
@media (max-aspect-ratio: 9/16) { | ||
/* Media query for mobile */ | ||
max-width: 90% | ||
} | ||
|
||
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { | ||
/* Media query for tablets */ | ||
max-width: 60%; | ||
} | ||
|
||
@media (min-aspect-ratio: 3/4) { | ||
/* Media query for desktop */ | ||
max-width: 30%; | ||
} | ||
|
||
.icon-module-header { | ||
display: flex !important; | ||
align-items: center !important; | ||
gap: theme(digitv2.spacers.spacer2); | ||
|
||
.digit-landingpagecard-icon { | ||
display: flex; | ||
align-items: center; | ||
|
||
&.iconBg { | ||
background-color: theme(digitv2.lightTheme.primary-1); | ||
} | ||
} | ||
|
||
svg { | ||
flex-shrink: 0; | ||
} | ||
|
||
.ladingcard-moduleName { | ||
@extend .typography.heading-m; | ||
color: theme(digitv2.lightTheme.primary-2); | ||
overflow: hidden; | ||
word-wrap: break-word; | ||
word-break: break-word; | ||
line-height: normal; | ||
} | ||
|
||
&.left { | ||
justify-content: space-between; | ||
} | ||
} | ||
|
||
.metric-container { | ||
display: flex !important; | ||
align-items: flex-start; | ||
justify-content: space-evenly; | ||
|
||
|
||
&.left { | ||
justify-content: unset; | ||
/*gap: 7.5rem;*/ | ||
} | ||
|
||
.metric-item { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
cursor: pointer; | ||
flex: 1; | ||
|
||
&.left { | ||
align-items: flex-start; | ||
} | ||
|
||
.metric-count { | ||
@extend .typography.heading-m; | ||
color: theme(digitv2.lightTheme.text-primary); | ||
} | ||
|
||
.metric-label { | ||
@extend .typography.body-xs; | ||
overflow: hidden; | ||
word-wrap: break-word; | ||
word-break: break-word; | ||
line-height: normal; | ||
color: theme(digitv2.lightTheme.generic-inputborder); | ||
font-family: theme(digitv2.fontFamily.sans); | ||
font-style: theme(digitv2.fontStyle.normal); | ||
font-weight: theme(digitv2.fontWeight.regular); | ||
line-height: theme(digitv2.lineHeight.lineheight2); | ||
|
||
@media (max-aspect-ratio: 9/16) { | ||
/* Media query for mobile */ | ||
font-size: theme(digitv2.fontSize.body-xs.mobile); | ||
} | ||
|
||
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { | ||
/* Media query for tablets */ | ||
font-size: theme(digitv2.fontSize.body-xs.tablet); | ||
} | ||
|
||
@media (min-aspect-ratio: 3/4) { | ||
/* Media query for desktop */ | ||
font-size: theme(digitv2.fontSize.body-xs.desktop); | ||
} | ||
} | ||
} | ||
} | ||
|
||
.digit-button-teritiary { | ||
justify-content: flex-start; | ||
} | ||
|
||
} | ||
|
||
.digit-landingpage-divider { | ||
width: 100%; | ||
margin: theme(digitv2.spacers.spacer0); | ||
} | ||
|
||
.digit-landing-page-wrapper { | ||
display: flex; | ||
justify-content: flex-start; | ||
flex-wrap: wrap; | ||
|
||
@media (max-aspect-ratio: 9/16) { | ||
/* Media query for mobile */ | ||
flex-direction: column; | ||
gap: theme(digitv2.spacers.spacer4); | ||
} | ||
|
||
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { | ||
/* Media query for tablets */ | ||
gap: theme(digitv2.spacers.spacer5); | ||
} | ||
|
||
@media (min-aspect-ratio: 3/4) { | ||
/* Media query for desktop */ | ||
gap: theme(digitv2.spacers.spacer6); | ||
} | ||
} |
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,92 @@ | ||
.digit-menu-card { | ||
|
||
display: flex; | ||
flex-direction: column; | ||
gap: theme(digitv2.spacers.spacer3); | ||
justify-content: flex-start; | ||
cursor: pointer; | ||
|
||
.icon-menu-header { | ||
|
||
display: flex !important; | ||
align-items: center; | ||
gap: theme(digitv2.spacers.spacer2); | ||
|
||
.digit-menucard-icon { | ||
|
||
@media (max-aspect-ratio: 9/16) { | ||
/* Media query for mobile */ | ||
width: theme(digitv2.spacers.spacer6); | ||
height: theme(digitv2.spacers.spacer6); | ||
} | ||
|
||
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { | ||
/* Media query for tablets */ | ||
width: theme(digitv2.spacers.spacer8); | ||
height: theme(digitv2.spacers.spacer8); | ||
} | ||
|
||
@media (min-aspect-ratio: 3/4) { | ||
/* Media query for desktop */ | ||
width: theme(digitv2.spacers.spacer10); | ||
height: theme(digitv2.spacers.spacer10); | ||
} | ||
} | ||
|
||
svg { | ||
flex-shrink: 0; | ||
} | ||
|
||
.digit-menuacard-menuName { | ||
@extend .typography.heading-m; | ||
line-height: normal; | ||
color: theme(digitv2.lightTheme.primary-2); | ||
} | ||
} | ||
|
||
.digit-menucard-description { | ||
@extend .typography.body-s; | ||
font-family: theme(digitv2.fontFamily.sans); | ||
font-style: theme(digitv2.fontStyle.normal); | ||
font-weight: theme(digitv2.fontWeight.regular); | ||
line-height: theme(digitv2.lineHeight.lineheight2); | ||
|
||
@media (max-aspect-ratio: 9/16) { | ||
/* Media query for mobile */ | ||
font-size: theme(digitv2.fontSize.body-s.mobile); | ||
} | ||
|
||
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { | ||
/* Media query for tablets */ | ||
font-size: theme(digitv2.fontSize.body-s.tablet); | ||
} | ||
|
||
@media (min-aspect-ratio: 3/4) { | ||
/* Media query for desktop */ | ||
font-size: theme(digitv2.fontSize.body-s.desktop); | ||
} | ||
|
||
color: theme(digitv2.lightTheme.text-primary); | ||
} | ||
} | ||
|
||
.digit-menu-card-wrapper{ | ||
display: flex !important; | ||
flex-direction: column; | ||
|
||
@media (max-aspect-ratio: 9/16) { | ||
/* Media query for mobile */ | ||
gap: theme(digitv2.spacers.spacer4); | ||
} | ||
|
||
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) { | ||
/* Media query for tablets */ | ||
gap: theme(digitv2.spacers.spacer5); | ||
} | ||
|
||
@media (min-aspect-ratio: 3/4) { | ||
/* Media query for desktop */ | ||
gap: theme(digitv2.spacers.spacer6); | ||
} | ||
|
||
} |
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
rel='stylesheet' type='text/css'> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/@egovernments/[email protected].29/dist/index.css" | ||
href="https://unpkg.com/@egovernments/[email protected].30/dist/index.css" | ||
/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#00bcd1" /> | ||
|
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
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.