Skip to content

Commit 806b6b9

Browse files
committed
adding flexbox- fixing issues
1 parent 662f7f0 commit 806b6b9

File tree

2 files changed

+42
-47
lines changed

2 files changed

+42
-47
lines changed

src/components/HomePage/HomePage.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ const HomePage = () => {
77

88
return (
99

10-
<div>
10+
<div className="body-style">
1111
<h1 className="title"> Open Source Internships</h1>
12-
<div className="line"></div>
1312
<span className="sentence">We are an organization to help you find open source internships</span>
1413
<span className="open-source-line">What Open Source is ... </span>
15-
<span className="box"></span>
1614
<div className="open-source-definition">a term that is referred to Open Source Software that is designed to be
1715
publicly accessible meaning that any user can see, modify, and distribute the code.
1816
</div>

src/components/HomePage/Homepage.css

+41-44
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
1-
html, body {
1+
.body-style{
22
margin: 0;
33
height: 100%;
44
background: radial-gradient(111.36% 277.12% at -7.7% 2.76%, rgba(135, 55, 103, 0.74499) 0%, rgba(54, 55, 79, 0.74499) 0.02%, rgba(198, 209, 211, 0.889953) 9.88%, rgba(215, 231, 243, 0) 61.62%, #A98C9D 99.84%, rgba(204, 142, 179, 0) 120%, #ab8e9f 100%);
5-
}
6-
.line{
7-
position: absolute;
8-
width: 99.6%;
9-
height: 0px;
10-
border: 3px solid #BBBBBB;
11-
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
12-
margin-top: 75px;
13-
}
5+
display: flex;
6+
flex-direction: column;
7+
justify-content: unset;
8+
align-items: center;
9+
}
10+
1411
h1.title{
15-
position: absolute;
16-
width: 450px;
12+
display: flex;
13+
justify-content: center;
14+
width: 100%;
1715
height: 28px;
1816
font-family: Roboto;
1917
font-style: normal;
2018
font-weight: normal;
2119
font-size: 35px;
2220
line-height: 28px;
2321
color: #4A4747;
24-
margin: 20px;
25-
margin-block-start: 0.98em;
26-
margin-block-end: 0.98em;
27-
margin-inline-start: 520px;
28-
margin-inline-end: 550px;
22+
border-bottom: 3px solid #BBBBBB;
23+
box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
24+
margin-top: 25px;
25+
padding-bottom: 50px;
2926
}
3027
.sentence{
31-
position: absolute;
28+
display: flex;
29+
justify-content: center;
3230
width: 650px;
3331
height: 21px;
3432
font-family: Roboto;
@@ -37,11 +35,10 @@ html, body {
3735
font-size: 25px;
3836
line-height: 21px;
3937
color: #5C4949;
40-
margin-top: 110px;
41-
margin-left: -295px;
38+
margin-top: 45px;
4239
}
4340
.open-source-line{
44-
position: absolute;
41+
display: flex;
4542
width: 250px;
4643
height: 21px;
4744
font-family: Roboto;
@@ -50,35 +47,34 @@ html, body {
5047
font-size: 25px;
5148
line-height: 21px;
5249
color: #5C4949;
53-
margin-top: 190px;
54-
margin-left: -550px;
55-
}
56-
.box{
57-
position: absolute;
58-
width: 730px;
59-
height: 120px;
60-
background: #DEE0E4;
61-
box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
62-
border-radius: 5px;
63-
margin-top: 240px;
64-
margin-left: -250px;
50+
margin-top: 100px;
51+
margin-left: -820px;
6552
}
53+
6654
.open-source-definition{
67-
position: absolute;
68-
width: 720px;
69-
height: 32px;
55+
display: flex;
56+
width: 750px;
57+
max-width: fit-content;
58+
height: 90px;
59+
max-height: fit-content;
7060
font-family: Roboto;
7161
font-style: normal;
7262
font-weight: normal;
7363
font-size: 22px;
7464
line-height: 23px;
75-
margin-top: 270px;
76-
margin-left: 480px;
65+
margin-top: 25px;
66+
margin-left: 380px;
7767
color: #5C4949;
68+
border-color: none;
69+
background:#DEE0E4;
70+
border-radius: 5px;
71+
box-shadow: inset 0px 0px 8px;
72+
padding-top: 15px;
7873
}
7974

8075
.ending-line{
81-
position: absolute;
76+
display: flex;
77+
justify-content: center;
8278
width: 220px;
8379
height: 21px;
8480
font-family: Roboto;
@@ -87,16 +83,17 @@ html, body {
8783
font-size: 22px;
8884
line-height: 21px;
8985
color: #000000;
90-
margin-top: 480px;
91-
margin-left: -118px;
86+
margin-top: 100px;
9287
}
9388
button.button{
94-
position: absolute;
89+
display: flex;
90+
justify-content: center;
9591
width: 149px;
9692
height: 31px;
9793
background: rgba(36, 16, 36, 0.79);
9894
border-radius: 5px;
9995
color: white;
100-
margin-top: 530px;
101-
margin-left: -75px;
96+
font-size: large;
97+
margin-top: 40px;
98+
margin-bottom: 50px;
10299
}

0 commit comments

Comments
 (0)