Skip to content

Commit 8b64ffd

Browse files
Merge pull request #11 from trisha-thakur/trisha
blogs page complete and shardeum added to events
2 parents 9ac6595 + 04f81fa commit 8b64ffd

File tree

16 files changed

+343
-179
lines changed

16 files changed

+343
-179
lines changed
829 Bytes
Loading

src/assets/images/blog/ai.png

24.6 KB
Loading

src/assets/images/blog/bc.png

25.5 KB
Loading

src/assets/images/blog/box.png

2.47 KB
Loading

src/assets/images/blog/cardImg.png

3.05 KB
Loading

src/assets/images/blog/cardNew.svg

+3
Loading

src/assets/images/blog/file.svg

+3
Loading

src/assets/images/blog/web.png

15.5 KB
Loading
1.29 MB
Loading
1.69 MB
Loading
2 MB
Loading

src/assets/images/events/shardeum.png

23.5 KB
Loading

src/components/Blog/Blog.css

+31
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
.cards {
2+
display: flex;
3+
margin-top: 10%;
4+
}
5+
6+
.card-elements {
7+
position: relative;
8+
margin-right: 80px;
9+
}
10+
11+
.box {
12+
height: 300px;
13+
width: 300px;
14+
/* position: absolute; */
15+
z-index: 1;
16+
}
17+
18+
.card {
19+
height: 300px;
20+
width: 300px;
21+
position: absolute;
22+
z-index: 2;
23+
top: 0px;
24+
left: 0px;
25+
}
26+
27+
.card:hover{
28+
top:50px;
29+
left:0px;
30+
}
31+
132
.medium-widget-article__item {
233
padding: 3px !important;
334
box-sizing: border-box !important;

src/components/Blog/Blog.js

+40-29
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,32 @@
11
import React from "react";
2-
import { Button } from "reactstrap";
2+
import box from "../../assets/images/blog/box.png"
3+
import bc from "../../assets/images/blog/bc.png"
4+
import ai from "../../assets/images/blog/ai.png"
5+
import web from "../../assets/images/blog/web.png"
6+
// import { Button } from "reactstrap";
37

48
import "./Blog.css";
59

610
const Blog = () => {
7-
// useEffect(() => {
8-
// // try {
9-
// // var widget = document.getElementById("medium-widget");
10-
// // if (!!widget) {
11-
// // window.mediumWidget();
12-
// // }
13-
// // } catch (e) {
14-
// // window.location.reload();
15-
// // }
16-
// }, []);
11+
// useEffect(() => {
12+
// // try {
13+
// // var widget = document.getElementById("medium-widget");
14+
// // if (!!widget) {
15+
// // window.mediumWidget();
16+
// // }
17+
// // } catch (e) {
18+
// // window.location.reload();
19+
// // }
20+
// }, []);
1721

18-
return (
19-
<React.Fragment>
20-
<div className="col-12 col-lg-9 mx-auto">
21-
<h1 data-aos="zoom-in-up" style={{ marginTop: "120px" }}>
22-
DataX
23-
</h1>
24-
<p style={{ margin: "30px auto" }}>
22+
return (
23+
<React.Fragment>
24+
<div className="col-12 col-lg-9 mx-auto">
25+
<h1 data-aos="zoom-in-up" style={{ marginTop: "120px" }}>
26+
DataX
27+
</h1>
28+
<hr/>
29+
{/*<p style={{ margin: "30px auto" }}>
2530
A Multidisciplinary Tech Journal sharing codes, concepts, experiences,
2631
and views.
2732
</p>
@@ -30,18 +35,24 @@ const Blog = () => {
3035
Publication Link
3136
</Button>
3237
</a>
33-
<hr />
34-
{/* <div className="col-11 mx-auto mt-5">
35-
<div
36-
data-aos="zoom-in-up"
37-
data-aos-duration="30000"
38-
id="medium-widget"
39-
></div>
40-
</div>
41-
<hr /> */}
38+
<hr />*/}
39+
<div className="cards">
40+
<div className="card-elements" onClick={()=>window.open("https://medium.com/data-science-community-srm/tagged/blockchain")}>
41+
<img src={box} className="box" alt="box"></img>
42+
<img src={bc } className="card" alt="card"></img>
4243
</div>
43-
</React.Fragment>
44-
);
44+
<div className="card-elements" onClick={()=>window.open("https://medium.com/data-science-community-srm/tagged/data-science")}>
45+
<img src={box} className="box" alt="box"></img>
46+
<img src={ai} className="card" alt="card"></img>
47+
</div>
48+
<div className="card-elements" onClick={()=>window.open("https://medium.com/data-science-community-srm/tagged/web-development")}>
49+
<img src={box} className="box" alt="box"></img>
50+
<img src={web} className="card" alt="card"></img>
51+
</div>
52+
</div>
53+
</div>
54+
</React.Fragment>
55+
);
4556
};
4657

4758
export default Blog;

0 commit comments

Comments
 (0)