Skip to content

Commit

Permalink
Merge pull request #1 from Bounteous-Inc/test-branch
Browse files Browse the repository at this point in the history
Test branch
  • Loading branch information
amoghdaryapurkar authored Oct 28, 2024
2 parents a0014ec + 0ecc9c2 commit 6a03acc
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
helix-importer-ui
helix-importer-ui
blocks/quote/quote.js
4 changes: 2 additions & 2 deletions blocks/cards/cards.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
}

.cards > ul > li {
border: 1px solid #dadada;
border: 1px solid red;
background-color: var(--background-color);
}

.cards .cards-card-body {
margin: 16px;
margin: 19px;
}

.cards .cards-card-image {
Expand Down
48 changes: 48 additions & 0 deletions blocks/quote/_quote.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"definitions": [
{
"title": "Quote",
"id": "quote",
"plugins": {
"xwalk": {
"page": {
"resourceType": "core/franklin/components/block/v1/block",
"template": {
"name": "Quote",
"model": "quote"
}
}
}
}
}
],
"models": [
{
"id": "quote",
"fields": [
{
"component": "reference",
"valueType": "string",
"name": "image",
"label": "Image",
"multi": false
},
{
"component": "text",
"valueType": "string",
"name": "imageAlt",
"label": "Alt",
"value": ""
},
{
"component": "richtext",
"name": "text",
"value": "",
"label": "Text",
"valueType": "string"
}
]
}
],
"filters": []
}
37 changes: 37 additions & 0 deletions blocks/quote/quote.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.quote-container .quote-wrapper {
max-width: unset;
padding: 0;
}

.quote {
position: relative;
padding: 20px 24px;
min-height: 400px;
}

.quote h1 {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
color: var(--background-color);
}

.quote picture {
position: absolute;
z-index: -1;
inset: 0;
object-fit: cover;
box-sizing: border-box;
}

.quote img {
object-fit: cover;
width: 100%;
height: 100%;
}

@media (width >= 900px) {
.quote {
padding: 40px 32px;
}
}
1 change: 1 addition & 0 deletions blocks/quote/quote.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 6a03acc

Please sign in to comment.