Skip to content

Commit

Permalink
adding header files and some assets
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaOlas committed Oct 28, 2021
1 parent aa1b4ef commit 5ae9889
Show file tree
Hide file tree
Showing 13 changed files with 95 additions and 16 deletions.
Binary file added logo_WIN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/App.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.body {
background-color: #2a9d8f;
height: 100vh;
}
16 changes: 14 additions & 2 deletions src/components/App.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
import React from 'react';
import Header from './Header';
import ContactForm from './contactForm';
import WinSquad from './squadPictures';
import styles from './about.module.css';
import './App.css';

function App() {
return (
<div>
<ContactForm />
<div className={styles.body}>
<Header />
<div>
<h1>À propos de nous</h1>
</div>
<div className="winSquad">
<WinSquad />
<div className="Form">
<ContactForm />
</div>
</div>
</div>
);
}
Expand Down
13 changes: 13 additions & 0 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from 'react';
import logo from './logo_WIN.png';
import styles from './Header.module.css';

function Header() {
return (
<div className={styles.headerItems}>
<img className={styles.logo} src={logo} alt="logo" />
</div>
);
}

export default Header;
8 changes: 8 additions & 0 deletions src/components/Header.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.headerItems {
justify-items: center;
}
.logo {
height: 10vh;
width: auto;
border-radius: 3vh;
}
18 changes: 17 additions & 1 deletion src/components/about.module.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
.body {
background-color: #2a9d8f;
height: 100vh;
}
.contactForm {
background-color: #2a9d8f;
}
.membersPictures {
.squad {
background-color: #e9c46a;
height: 50vh;
display: flex;
text-align: center;
flex-direction: column;
justify-content: space-evenly;
}
li {
display: none;
}
.pictures {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}
.membersPictures {
height: 15vh;
width: auto;
border-radius: 3vh;
}
Binary file added src/components/assets/citrouille.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/assets/citrouilleMan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/assets/epouvantail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/components/assets/witch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 18 additions & 13 deletions src/components/contactForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,25 @@ import styles from './about.module.css';

function ContactForm() {
return (
<div className={styles.body}>
<h1>ABOUT</h1>
<div className={styles.contactForm}>
<h1>Contact us !</h1>
<form>
<label>
Nom :
<input type="text" name="name" />
</label>
<input type="submit" value="Envoyer" />
</form>
</div>
<div className={styles.contactForm}>
<h1>Contact us !</h1>
<form>
<label>
<select>
<option value="Question">Une question à poser</option>
<option value="Proposition">De quoi nous améliorer</option>
<option selected value="Dites-nous tout">
Faites un choix
</option>
</select>
Nom :
<input type="text" />
Message :
<input type="text" />
</label>
<input type="submit" value="Envoyer" onClick="Thanks for ur message" />
</form>
</div>
);
}

export default ContactForm;
Binary file added src/components/logo_WIN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions src/components/squadPictures.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import React from 'react';
import styles from './about.module.css';
import citrouille from './assets/citrouille.png';
import citrouilleMan from './assets/citrouilleMan.png';
import epouvantail from './assets/epouvantail.png';
import witch from './assets/witch.png';

function WinSquad() {
return (
<div className={styles.squad}>
<h2>WIN SQUAD</h2>
<div className={styles.pictures}>
<img className={styles.membersPictures} src={citrouille} alt="citrouille" />
<img className={styles.membersPictures} src={citrouilleMan} alt="citrouilleMan" />
</div>
<div className={styles.pictures}>
<img className={styles.membersPictures} src={epouvantail} alt="epouvantail" />
<img className={styles.membersPictures} src={witch} alt="sorcière" />
</div>
</div>
);
}

export default WinSquad;

0 comments on commit 5ae9889

Please sign in to comment.