Browse Source

Sessão 2 - 31/01

master
eduveks 4 years ago
parent
commit
12f41534e7
22 changed files with 31 additions and 15 deletions
  1. BIN
      storage/database/listing_item/image/1-CdLhR5TM.png
  2. BIN
      storage/database/listing_item/image/1-CdLhR5TM___form.png
  3. BIN
      storage/database/listing_item/image/1-CdLhR5TM___search.png
  4. BIN
      storage/database/listing_item/image/2-nMl7DBD9.png
  5. BIN
      storage/database/listing_item/image/2-nMl7DBD9___form.png
  6. BIN
      storage/database/listing_item/image/2-nMl7DBD9___search.png
  7. BIN
      storage/database/listing_item/image/3-xlODvLd0.png
  8. BIN
      storage/database/listing_item/image/3-xlODvLd0___form.png
  9. BIN
      storage/database/listing_item/image/3-xlODvLd0___search.png
  10. BIN
      storage/database/listing_item/image/4-GdRW6zB1.png
  11. BIN
      storage/database/listing_item/image/4-GdRW6zB1___form.png
  12. BIN
      storage/database/listing_item/image/4-GdRW6zB1___search.png
  13. BIN
      storage/database/listing_item/image/5-aGpzZA6L.png
  14. BIN
      storage/database/listing_item/image/5-aGpzZA6L___form.png
  15. BIN
      storage/database/listing_item/image/5-aGpzZA6L___search.png
  16. BIN
      storage/database/listing_item/image/Samasthiti-EH6geF7G.png
  17. BIN
      storage/database/listing_item/image/Samasthiti-EH6geF7G___form.png
  18. BIN
      storage/database/listing_item/image/Samasthiti-EH6geF7G___search.png
  19. +1
    -0
      website/package.json
  20. +18
    -9
      website/src/components/Listing/Item/index.js
  21. +2
    -2
      website/src/components/Listing/index.js
  22. +10
    -4
      website/src/components/Listing/index.less

BIN
storage/database/listing_item/image/1-CdLhR5TM.png View File

Before After
Width: 144  |  Height: 495  |  Size: 33 KiB

BIN
storage/database/listing_item/image/1-CdLhR5TM___form.png View File

Before After
Width: 116  |  Height: 400  |  Size: 32 KiB

BIN
storage/database/listing_item/image/1-CdLhR5TM___search.png View File

Before After
Width: 58  |  Height: 200  |  Size: 9.2 KiB

BIN
storage/database/listing_item/image/2-nMl7DBD9.png View File

Before After
Width: 146  |  Height: 495  |  Size: 27 KiB

BIN
storage/database/listing_item/image/2-nMl7DBD9___form.png View File

Before After
Width: 117  |  Height: 400  |  Size: 25 KiB

BIN
storage/database/listing_item/image/2-nMl7DBD9___search.png View File

Before After
Width: 58  |  Height: 200  |  Size: 6.8 KiB

BIN
storage/database/listing_item/image/3-xlODvLd0.png View File

Before After
Width: 177  |  Height: 495  |  Size: 33 KiB

BIN
storage/database/listing_item/image/3-xlODvLd0___form.png View File

Before After
Width: 143  |  Height: 400  |  Size: 30 KiB

BIN
storage/database/listing_item/image/3-xlODvLd0___search.png View File

Before After
Width: 71  |  Height: 200  |  Size: 8.4 KiB

BIN
storage/database/listing_item/image/4-GdRW6zB1.png View File

Before After
Width: 366  |  Height: 495  |  Size: 32 KiB

BIN
storage/database/listing_item/image/4-GdRW6zB1___form.png View File

Before After
Width: 295  |  Height: 400  |  Size: 30 KiB

BIN
storage/database/listing_item/image/4-GdRW6zB1___search.png View File

Before After
Width: 147  |  Height: 200  |  Size: 8.2 KiB

BIN
storage/database/listing_item/image/5-aGpzZA6L.png View File

Before After
Width: 284  |  Height: 495  |  Size: 29 KiB

BIN
storage/database/listing_item/image/5-aGpzZA6L___form.png View File

Before After
Width: 229  |  Height: 400  |  Size: 28 KiB

BIN
storage/database/listing_item/image/5-aGpzZA6L___search.png View File

Before After
Width: 114  |  Height: 200  |  Size: 7.6 KiB

BIN
storage/database/listing_item/image/Samasthiti-EH6geF7G.png View File

Before After
Width: 116  |  Height: 495  |  Size: 29 KiB

BIN
storage/database/listing_item/image/Samasthiti-EH6geF7G___form.png View File

Before After
Width: 93  |  Height: 400  |  Size: 28 KiB

BIN
storage/database/listing_item/image/Samasthiti-EH6geF7G___search.png View File

Before After
Width: 46  |  Height: 200  |  Size: 7.7 KiB

+ 1
- 0
website/package.json View File

@ -14,6 +14,7 @@
"classnames": "^2.2.6",
"customize-cra": "^1.0.0",
"import": "0.0.6",
"jquery": "^3.6.0",
"less-loader": "^6.2.0",
"react": "^16.13.1",
"react-app-rewired": "^2.1.6",


+ 18
- 9
website/src/components/Listing/Item/index.js View File

@ -5,15 +5,22 @@ import './index.less';
export default ({ section, type, image, image_title, image_alt, title, content, link }) => {
let layout = null;
if (type === 'YOUR-CUSTOM-TYPE-HERE') {
layout = (
<li className="listing__item__YOUR-CUSTOM-TYPE-HERE">
<div className={`listing__item__YOUR-CUSTOM-TYPE-HERE__content`}>
<h1>{title}</h1>
if (type === 'surya-namaskar-a') {
layout = (<>
<Col>
<img src={`/images/${section}/${image}`} alt={ image_alt } title={ image_title } />
<div dangerouslySetInnerHTML={{ __html: content }}></div>
</div>
</li>
<h1>{title}</h1>
</Col>
{ /*
<li className="listing_item" style={{ backgroundImage: `url(/images/${section}/${image})` }}>
<div className={`item__${type}`}>
<h1>{title}</h1>
<div dangerouslySetInnerHTML={{ __html: content }}></div>
</div>
</li>
*/ }
</>
);
} else if(type === 'OTHER-CUSTOM-TYPE-HERE') {
layout = (
@ -23,9 +30,11 @@ export default ({ section, type, image, image_title, image_alt, title, content,
);
} else {
layout = (
<li className="listing_item" style={{ backgroundImage: `url(/images/${section}/${image})` }}>
<div className={`item__${type}`}>
<li className="listing__item__YOUR-CUSTOM-TYPE-HERE">
teste
<div className={`listing__item__YOUR-CUSTOM-TYPE-HERE__content`}>
<h1>{title}</h1>
<img src={`/images/${section}/${image}`} alt={ image_alt } title={ image_title } />
<div dangerouslySetInnerHTML={{ __html: content }}></div>
</div>
</li>


+ 2
- 2
website/src/components/Listing/index.js View File

@ -22,9 +22,9 @@ export default ({section, type, image, image_title, image_alt, title, content, i
</div>
);
if (type === 'YOUR-CUSTOM-TYPE-HERE') {
if (type === 'surya-namaskar-a') {
listLayout = (
<Row className={`listing__${type}`} justify="start">
<Row className={`listing__${type}`}>
{ children }
</Row>
);


+ 10
- 4
website/src/components/Listing/index.less View File

@ -28,9 +28,15 @@
font-size: 1.2em;
}
> div > ul {
list-style-type: none;
margin: 0;
padding: 0;
&__surya-namaskar#a {
padding: 100px;
background: blue;
@media only screen and (min-width: 600px) {
background: red;
}
img {
width: 100%;
height: auto;
}
}
}

Loading…
Cancel
Save