add waterfall pic wall
This commit is contained in:
parent
086b2087b1
commit
4695dea933
@ -13,9 +13,33 @@ const WaterfallItem = ({ data, onLoad }) => {
|
||||
return (
|
||||
<div className="waterfallItem" ref={ref}>
|
||||
<div className="project__content__main__container">
|
||||
<div style={{ display: 'flex', flexDirection: 'row', justifyContent:'space-between' }}>
|
||||
<h3 style={{ fontFamily: "itrFontMedium", fontSize: '25px', color: "#fff", marginBottom: 12 }}>{data.title}</h3>
|
||||
<h3 style={{ fontFamily: "itrFontMedium", fontSize: '25px', color: "#fff", marginBottom: 12 }}>{data.sub}</h3>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
justifyContent: "space-between",
|
||||
}}
|
||||
>
|
||||
<h3
|
||||
style={{
|
||||
fontFamily: "itrFontMedium",
|
||||
fontSize: "25px",
|
||||
color: "#fff",
|
||||
marginBottom: 12,
|
||||
}}
|
||||
>
|
||||
{data.title}
|
||||
</h3>
|
||||
<h3
|
||||
style={{
|
||||
fontFamily: "itrFontMedium",
|
||||
fontSize: "25px",
|
||||
color: "#fff",
|
||||
marginBottom: 12,
|
||||
}}
|
||||
>
|
||||
{data.sub}
|
||||
</h3>
|
||||
</div>
|
||||
<div className="project_item_content">
|
||||
<Image
|
||||
@ -24,10 +48,11 @@ const WaterfallItem = ({ data, onLoad }) => {
|
||||
onLoad(sizeRef.current.size);
|
||||
}, 500);
|
||||
}}
|
||||
alt="asd"
|
||||
onError={setTimeout(() => {
|
||||
onLoad(sizeRef.current.size);
|
||||
}, 500)}
|
||||
onError={() =>
|
||||
setTimeout(() => {
|
||||
onLoad(sizeRef.current.size);
|
||||
}, 500)
|
||||
}
|
||||
width={"100%"}
|
||||
src={data.img}
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user