Skip to content

Commit 5388398

Browse files
authored
Merge pull request #41 from IngridFuentes/master
Home Page created
2 parents 623c716 + dd07676 commit 5388398

File tree

5 files changed

+131
-30
lines changed

5 files changed

+131
-30
lines changed

src/App.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import '../src/assets/css/App.css';
2-
import Main from './components/Main/Main';
2+
import HomePage from './components/HomePage/HomePage';
33

44
function App() {
55
return (
66
<div className="App">
7-
<Main />
7+
<HomePage />
88
</div>
99
);
1010
}

src/App.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { render, screen } from '@testing-library/react';
22
import App from './App';
33

4-
test('renders Supported by Women Who Code link', () => {
4+
test('renders title on Home page', () => {
55
render(<App />);
6-
const linkElement = screen.getByText(/Supported by Women Who Code/i);
7-
expect(linkElement).toBeInTheDocument();
8-
});
6+
const titleElement = screen.getByText('Open Source Internships');
7+
expect(titleElement).toBeInTheDocument();
8+
});

src/components/HomePage/HomePage.js

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from "react";
2+
import './Homepage.css';
3+
4+
5+
6+
const HomePage = () => {
7+
8+
return (
9+
10+
<div className="body-style">
11+
<h1 className="title"> Open Source Internships</h1>
12+
<span className="sentence">We are an organization to help you find open source internships</span>
13+
<div className="open-source-line">What Open Source is ... </div>
14+
<div className="open-source-definition">a term that is referred to Open Source Software that is designed to be
15+
publicly accessible meaning that any user can see, modify, and distribute the code.
16+
</div>
17+
<span className="ending-line">We are here to help you!</span>
18+
<button className="button">Start</button>
19+
</div>
20+
)
21+
22+
}
23+
24+
export default HomePage;

src/components/HomePage/Homepage.css

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
.body-style{
2+
margin: 0;
3+
height: 100%;
4+
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+
display: flex;
6+
flex-direction: column;
7+
justify-content: unset;
8+
align-items: center;
9+
}
10+
11+
h1.title{
12+
display: flex;
13+
justify-content: center;
14+
width: 100%;
15+
height: 28px;
16+
font-family: Roboto;
17+
font-style: normal;
18+
font-weight: normal;
19+
font-size: 35px;
20+
line-height: 28px;
21+
color: #4A4747;
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;
26+
}
27+
.sentence{
28+
display: flex;
29+
justify-content: center;
30+
width: 650px;
31+
height: 21px;
32+
font-family: Roboto;
33+
font-style: normal;
34+
font-weight: normal;
35+
font-size: 25px;
36+
line-height: 21px;
37+
color: #5C4949;
38+
margin-top: 45px;
39+
}
40+
.open-source-line{
41+
display: flex;
42+
align-self: flex-start;
43+
width: 250px;
44+
height: 21px;
45+
font-family: Roboto;
46+
font-style: normal;
47+
font-weight: normal;
48+
font-size: 25px;
49+
line-height: 21px;
50+
color: #5C4949;
51+
margin-top: 100px;
52+
margin-left: 150px;
53+
}
54+
55+
.open-source-definition{
56+
display: flex;
57+
text-align: -webkit-center;
58+
width: 750px;
59+
max-width: fit-content;
60+
height: 90px;
61+
max-height: fit-content;
62+
font-family: Roboto;
63+
font-style: normal;
64+
font-weight: normal;
65+
font-size: 22px;
66+
line-height: 23px;
67+
margin-top: 25px;
68+
margin-left: 340px;
69+
color: #5C4949;
70+
border-color: none;
71+
background:#DEE0E4;
72+
border-radius: 5px;
73+
box-shadow: inset 0px 0px 8px;
74+
padding-top: 15px;
75+
}
76+
77+
.ending-line{
78+
display: flex;
79+
justify-content: center;
80+
width: 220px;
81+
height: 21px;
82+
font-family: Roboto;
83+
font-style: normal;
84+
font-weight: normal;
85+
font-size: 22px;
86+
line-height: 21px;
87+
color: #000000;
88+
margin-top: 100px;
89+
}
90+
button.button{
91+
display: flex;
92+
justify-content: center;
93+
width: 149px;
94+
height: 31px;
95+
background: rgba(36, 16, 36, 0.79);
96+
border-radius: 5px;
97+
color: white;
98+
font-size: large;
99+
margin-top: 40px;
100+
margin-bottom: 50px;
101+
}

src/components/Main/Main.js

-24
This file was deleted.

0 commit comments

Comments
 (0)