Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
admin:online-platform-cms:promotions [2021/02/18 16:10] – justas-dambrauskas | admin:online-platform-cms:promotions [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Creating " | ====== Creating " | ||
- | === 1. First step - add styles to a newly created page. Turn on the HTML view by pressing "< >" symbol in the page editor window. Then paste the following code: === | + | === 1. Add styles to a newly created page === |
+ | Turn on the HTML view by pressing "< >" symbol in the page editor window. Then paste the following code: | ||
---- | ---- | ||
< | < | ||
Line 35: | Line 36: | ||
.cms-holder .img_area { | .cms-holder .img_area { | ||
height: 50%; | height: 50%; | ||
+ | overflow: hidden; | ||
} | } | ||
Line 40: | Line 42: | ||
object-fit: cover; | object-fit: cover; | ||
width: 100%; | width: 100%; | ||
- | height: 215px; | ||
border-top-left-radius: | border-top-left-radius: | ||
border-top-right-radius: | border-top-right-radius: | ||
Line 77: | Line 78: | ||
color: var(--main-primary-text); | color: var(--main-primary-text); | ||
border: 0px none; | border: 0px none; | ||
+ | display: inline-flex; | ||
+ | align-items: | ||
} | } | ||
.cms-holder .button: | .cms-holder .button: | ||
background: var(--main-primary); | background: var(--main-primary); | ||
+ | color: var(--main-primary-text); | ||
cursor: pointer; | cursor: pointer; | ||
filter: brightness(85%); | filter: brightness(85%); | ||
+ | } | ||
+ | @media screen and (max-width: 440px) { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
} | } | ||
</ | </ | ||
</ | </ | ||
---- | ---- | ||
- | === 2. Add a page title. Paste the following code below (note: In this example a page title is " | + | === 2. Add a page title === |
+ | Paste the following code below (note: In this example a page title is " | ||
---- | ---- | ||
< | < | ||
Line 95: | Line 114: | ||
</ | </ | ||
---- | ---- | ||
- | === 3.Add a promotions group title. Paste the following code below (note: In this example a promotions group title is "New Customer Offer" | + | === 3.Add a promotions group title === |
+ | Paste the following code below (note: In this example a promotions group title is "New Customer Offer" | ||
---- | ---- | ||
< | < | ||
Line 103: | Line 123: | ||
</ | </ | ||
---- | ---- | ||
- | === 4. Add a grid container, where to place all promotions cards (note: Next step code you need to write inside this code.). Paste the following code below: | + | === 4. Add a grid container |
+ | The container is the place where you will create | ||
---- | ---- | ||
< | < | ||
Line 111: | Line 132: | ||
</ | </ | ||
---- | ---- | ||
- | === 5. Add a single promotion card. Paste the following code inside step four (4) code block: | + | === 5. Add a single promotion card == |
+ | Paste the following code inside step four (4) code block: | ||
---- | ---- | ||
< | < | ||
Line 126: | Line 148: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <a href=" | + | <a href=" |
- | <button type=" | + | More Info |
- | More Info | + | |
- | </ | + | |
</a> | </a> | ||
</ | </ | ||
Line 142: | Line 162: | ||
Change promotion sub-title (note: In this example, a promotion sub-title is " | Change promotion sub-title (note: In this example, a promotion sub-title is " | ||
- | Change link to full promotion description. To change it you need to edit the link in this part of code **<a href=" | + | Change link to full promotion description. To change it you need to edit the link in this part of code **<a href=" |
---- | ---- | ||
- | === 6. Repeat step five (5) as many times as you want to create promotion cards in the created promotions group. | + | === 6. Create more promotion cards === |
+ | Repeat step five (5) as many times as you want to create promotion cards in the created promotions group. | ||
---- | ---- | ||
- | === 7. Follow steps four (4), five(5) and six(6) to create a different group of promotions. | + | === 7. Create other group of promotions === |
+ | Follow steps four (4), five(5) and six(6) to create a different group of promotions. | ||
---- | ---- | ||
====== Full demo code for a promotions page ====== | ====== Full demo code for a promotions page ====== | ||
+ | |||
< | < | ||
< | < | ||
Line 182: | Line 205: | ||
.cms-holder .img_area { | .cms-holder .img_area { | ||
height: 50%; | height: 50%; | ||
+ | overflow: hidden; | ||
} | } | ||
Line 187: | Line 211: | ||
object-fit: cover; | object-fit: cover; | ||
width: 100%; | width: 100%; | ||
- | height: 215px; | ||
border-top-left-radius: | border-top-left-radius: | ||
border-top-right-radius: | border-top-right-radius: | ||
Line 224: | Line 247: | ||
color: var(--main-primary-text); | color: var(--main-primary-text); | ||
border: 0px none; | border: 0px none; | ||
+ | display: inline-flex; | ||
+ | align-items: | ||
} | } | ||
Line 230: | Line 255: | ||
cursor: pointer; | cursor: pointer; | ||
filter: brightness(85%); | filter: brightness(85%); | ||
+ | color: var(--main-primary-text); | ||
+ | } | ||
+ | @media screen and (max-width: 440px) { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
} | } | ||
</ | </ | ||
Line 254: | Line 294: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <a href=" | + | <a href=" |
- | <button type=" | + | |
- | | + | |
- | </ | + | |
- | | + | |
</ | </ | ||
</ | </ | ||
Line 274: | Line 310: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <a href="/app/en/single-promotion"> | + | <a href=" |
- | <button type=" | + | </ |
- | | + | |
- | </ | + | |
- | | + | |
- | | + | |
</ | </ | ||
</ | </ | ||
Line 294: | Line 326: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <a href=" | + | <a href=" |
- | <button type=" | + | </ |
- | | + | |
- | </ | + | |
- | | + | |
- | | + | |
</ | </ | ||
</ | </ | ||
Line 321: | Line 349: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <a href=" | + | <a href=" |
- | <button type=" | + | </ |
- | | + | |
- | </ | + | |
- | | + | |
- | | + | |
</ | </ | ||
</ | </ | ||
Line 341: | Line 365: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <a href=" | + | <a href=" |
- | <button type=" | + | </ |
- | | + | |
- | </ | + | |
- | | + | |
- | | + | |
</ | </ | ||
</ | </ | ||
Line 361: | Line 381: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <a href=" | + | <a href=" |
- | <button type=" | + | </ |
- | | + | |
- | </ | + | |
- | | + | |
- | | + | |
</ | </ | ||
</ | </ | ||
Line 381: | Line 397: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <a href=" | + | <a href=" |
- | <button type=" | + | </ |
- | | + | |
- | </ | + | |
- | | + | |
- | | + | |
</ | </ | ||
</ | </ | ||
Line 401: | Line 413: | ||
</ | </ | ||
<div class=" | <div class=" | ||
- | <a href=" | + | <a href=" |
- | <button type=" | + | </ |
- | | + | |
- | </ | + | |
- | | + | |
- | | + | |
</ | </ | ||
</ | </ | ||
Line 412: | Line 420: | ||
</ | </ | ||
- | ===== Result ===== | + | === Result === |
+ | ---- | ||
{{ : | {{ : | ||
+ | ---- | ||
+ | **✔ Always use HTML view option in the page editor window while doing all steps.** | ||
+ | ---- |