Skip to content

Commit

Permalink
Merge branch 'feature/component-creation' of https://github.com/shama…
Browse files Browse the repository at this point in the history
…lijadhav/piramalfinance into feature/component-creation
  • Loading branch information
Arpittiwaii committed Jun 18, 2024
2 parents 70553cf + fa079de commit 22cfeda
Show file tree
Hide file tree
Showing 11 changed files with 213 additions and 10 deletions.
File renamed without changes.
Empty file.
109 changes: 103 additions & 6 deletions blocks/loanproducts/loanproducts.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,108 @@
.box-shadow-css .default-content-wrapper h2 {
font-size: 1.875rem;
line-height: 2.25rem;
font-weight: 800;
.loan-products-main {
background-color: var(--gradient-gray-light);
}

.box-shadow-css .columns-wrapper .columns > div > div {
.loan-products-main .columns-wrapper .columns > div > div {
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(255 255 255 / 1);
border-radius: 1rem;
cursor: pointer;
box-shadow: 0px 4px 12px rgba(51, 51, 51, 0.08);
}

.loan-products-main .columns-wrapper .columns > div > div:hover {
box-shadow: 0px 32px 32px rgba(0, 0, 0, 0.08),
0px 0px 32px rgba(0, 0, 0, 0.12), 0px 0px 1px rgba(0, 0, 0, 0.2);
}

@media (width >= 360px) {
.loan-products-main .loanproducts-wrapper .loanproducts p {
font-size: 1.25rem;
line-height: 1.75rem;
}

.loan-products-main .columns-wrapper .columns > div {
flex-wrap: wrap;
flex-direction: row;
gap: 0.9rem;
margin-top: 0.9rem;
}

.loan-products-main .columns-wrapper .columns > div > div {
flex-direction: column;
width: 30%;
padding: 1.3rem 0;
}

.loan-products-main .columns-wrapper .columns > div > div img {
height: 3rem;
}

.loan-products-main .columns-wrapper .columns > div > div > p {
margin: 0;
font-size: 0.67rem;
text-align: center;
line-height: 1rem;
padding: 0 0.8rem;
font-weight: 700;
}
}

@media (width >= 600px) {
.loan-products-main .loanproducts-wrapper .loanproducts p {
font-size: 1.25rem;
line-height: 1.75rem;
}

.loan-products-main .columns-wrapper .columns > div {
flex-wrap: nowrap;
gap: 1.5rem;
margin-top: 1.5rem;
}

.loan-products-main .columns-wrapper .columns > div > div {
flex-direction: row;
padding: 0.5rem;
}

.loan-products-main .columns-wrapper .columns > div > div > p {
font-size: 1rem;
line-height: 1.4rem;
font-weight: 700;
margin-left: 1rem;
padding: 0;
}

.loan-products-main .columns-wrapper .columns > div > div img {
height: 5rem;
}
}

@media (width >= 900px) {
.loan-products-main .loanproducts-wrapper .loanproducts p {
font-size: 1.875rem;
line-height: 2.25rem;
font-weight: 800;
}

.loan-products-main .columns-wrapper .columns > div {
gap: 1.5rem;
margin-top: 1.5rem;
}

.loan-products-main .columns-wrapper .columns > div > div {
padding: 1.4rem 0.5rem;
}

.loan-products-main .columns-wrapper .columns > div > div img {
height: 5rem;
}

.loan-products-main .columns-wrapper .columns > div > div > p {
font-size: 1.125rem;
line-height: 1.75rem;
font-weight: 700;
margin-left: 1rem;
}
}
Empty file added blocks/our-media/our-media.css
Empty file.
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions blocks/xf/xf.js

This file was deleted.

60 changes: 60 additions & 0 deletions component-definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,66 @@
}
}
}
},
{
"title": "Download Piramal",
"id": "downloadpiramal",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Download Piramal",
"model": "downloadpiramal"
}
}
}
}
},
{
"title": "Piramal Since",
"id": "piramalsince",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Piramal Since",
"model": "piramalsince"
}
}
}
}
},
{
"title": "Our Media",
"id": "ourmedia",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Our Media",
"model": "ourmedia"
}
}
}
}
},
{
"title": "Choose Us",
"id": "chooseus",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Choose Us",
"model": "chooseus"
}
}
}
}
}
]
}
Expand Down
6 changes: 5 additions & 1 deletion component-filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@
"cards",
"columns",
"loanproducts",
"calculator"
"calculator",
"downloadpiramal",
"piramalsince",
"ourmedia",
"chooseus"
]
},
{
Expand Down
44 changes: 44 additions & 0 deletions component-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,49 @@
"valueType": "string"
}
]
},
{
"id": "downloadpiramal",
"fields": [
{
"component": "richtext",
"name": "rte",
"label": "Rich-Text Field",
"valueType": "string"
}
]
},
{
"id": "piramalsince",
"fields": [
{
"component": "richtext",
"name": "rte",
"label": "Rich-Text Field",
"valueType": "string"
}
]
},
{
"id": "ourmedia",
"fields": [
{
"component": "richtext",
"name": "rte",
"label": "Rich-Text Field",
"valueType": "string"
}
]
},
{
"id": "chooseus",
"fields": [
{
"component": "richtext",
"name": "rte",
"label": "Rich-Text Field",
"valueType": "string"
}
]
}
]
1 change: 1 addition & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
--light-color: #eee;
--dark-color: #ccc;
--text-color: black;
--gradient-gray-light: #ebeef050;

/* fonts */
--body-font-family: roboto, roboto-fallback;
Expand Down

0 comments on commit 22cfeda

Please sign in to comment.