Skip to content

Commit

Permalink
Merge pull request #19 from shamalijadhav/feature/component-creation
Browse files Browse the repository at this point in the history
Feature/component creation
  • Loading branch information
Sm1pleScr1pt authored Jun 18, 2024
2 parents 638531e + 197bf3f commit 96ce91e
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
99 changes: 99 additions & 0 deletions blocks/calculator/calculator.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.calculator-section-css .calculator-wrapper .calculator >div >div p {
font-size: 2rem;
font-family: "Nunito-Regular";
font-weight: bold;
margin: 0;
}

.calculator-section-css .default-content-wrapper p {
font-size: 20px;
font-family: "Nunito-Regular";
color: #666666;
margin-top: 0;
}

.calculator-section-css .columns-wrapper .columns{
position: relative;
}

.calculator-section-css .columns-wrapper .columns >div >div{
width: 100%;
height: 150px;
overflow: hidden;
border-radius: 32px;
}
.calculator-section-css .columns-wrapper .columns img{
border-radius: 32px;
}

.calculator-section-css img:hover {
transition: transform 0.3s ease-in-out;
transform: scale(1.2);
}

.calculator-section-css .columns-wrapper .columns h4{
top: 10%;
position: absolute;
font-size: 1.5rem;
color: #ffffff;
padding-left: 20px;
font-family: "Nunito-Regular";
}

.calculator-section-css .columns-wrapper .columns .button-container a{
font-size: 14px;
padding: 15px 18px;
background: #F26841;
color: #ffffff;
border-radius: 8px;
position: absolute;
top: 40%;
margin-left: 20px;
}

@media screen and (max-width: 767.99px) {
.calculator-section-css .calculator-wrapper .calculator >div >div p {
font-size: 18px;
font-weight: bold;
margin: 0;
}

.calculator-section-css .default-content-wrapper p {
font-size: 14px;
color: #666666;
margin-top: 0;
}
.calculator-section-css .columns-wrapper .columns img {
width: 100%;
height: 110px;
border-radius: 16px;
}
.calculator-section-css .columns-wrapper .columns > div > div {
position: relative;
}
.calculator-section-css .columns-wrapper .columns h4{
top: 0%;
position: absolute;
font-size: 1rem;
color: #ffffff;
padding-left: 20px;
font-family: "Nunito-Regular";
}

.calculator-section-css .columns-wrapper .columns .button-container a{
font-size: 14px;
padding: 9px 11px;
background: #F26841;
color: #ffffff;
border-radius: 8px;
position: absolute;
top: 25%;
margin-left: 20px;
}
.calculator-section-css .columns-wrapper .columns > div > div p:first-child{
margin: 0;
}
}



7 changes: 7 additions & 0 deletions component-models.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
"name": "alt",
"value": "Default alt",
"label": "Alt Text"
},
{
"component": "text",
"valueType": "string",
"name": "href",
"value": "",
"label": "Link"
}
]
},
Expand Down

0 comments on commit 96ce91e

Please sign in to comment.