Skip to content

Commit

Permalink
section 1 and 4 static done with media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainValls committed Oct 31, 2023
1 parent 1c7d7ec commit 55135a0
Show file tree
Hide file tree
Showing 11 changed files with 502 additions and 339 deletions.
Binary file added public/fonts/Avenir/Avenir Black/Avenir Black.ttf
Binary file not shown.
Binary file added public/fonts/Avenir/Avenir Book/Avenir Book.ttf
Binary file not shown.
Binary file added public/fonts/Avenir/Avenir Heavy/Avenir Heavy.ttf
Binary file not shown.
Binary file added public/fonts/Avenir/Avenir Light/Avenir Light.ttf
Binary file not shown.
Binary file not shown.
188 changes: 188 additions & 0 deletions public/fonts/Avenir/readme.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="refresh" content="5;url=https://fontsgeek.com/avenir-font?ref=readme">
<title>AvenirFontsgeek</title>
<style>
/* -------------------------------------
GLOBAL
------------------------------------- */
* {
margin:0;
padding:0;
font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
font-size: 100%;
line-height: 1.6;
}

img {
max-width: 100%;
}

body {
-webkit-font-smoothing:antialiased;
-webkit-text-size-adjust:none;
width: 100%!important;
height: 100%;
background:#DDD;
}


/* -------------------------------------
ELEMENTS
------------------------------------- */
a {
color: #348eda;
}

.btn-primary, .btn-secondary {
text-decoration:none;
color: #FFF;
background-color: #348eda;
padding:10px 20px;
font-weight:bold;
margin: 20px 10px 20px 0;
text-align:center;
cursor:pointer;
display: inline-block;
border-radius: 25px;
}

.btn-secondary{
background: #aaa;
}

.last {
margin-bottom: 0;
}

.first{
margin-top: 0;
}


/* -------------------------------------
BODY
------------------------------------- */
table.body-wrap {
width: 100%;
padding: 20px;
}

table.body-wrap .container{
border: 1px solid #f0f0f0;
}


/* -------------------------------------
FOOTER
------------------------------------- */
table.footer-wrap {
width: 100%;
clear:both!important;
}

.footer-wrap .container p {
font-size:12px;
color:#666;

}

table.footer-wrap a{
color: #999;
}


/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
h1,h2,h3{
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; line-height: 1.1; margin-bottom:15px; color:#000;
margin: 40px 0 10px;
line-height: 1.2;
font-weight:200;
}

h1 {
font-size: 36px;
}
h2 {
font-size: 28px;
}
h3 {
font-size: 22px;
}

p, ul {
margin-bottom: 10px;
font-weight: normal;
font-size:14px;
}

ul li {
margin-left:5px;
list-style-position: inside;
}

/* ---------------------------------------------------
RESPONSIVENESS
Nuke it from orbit. It's the only way to be sure.
------------------------------------------------------ */

/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
.container {
display:block!important;
max-width:600px!important;
margin:0 auto!important; /* makes it centered */
clear:both!important;
}

/* This should also be a block element, so that it will fill 100% of the .container */
.content {
padding:20px;
max-width:600px;
margin:0 auto;
display:block;
}

/* Let's make sure tables in the content area are 100% wide */
.content table {
width: 100%;
}

</style>
</head>

<body bgcolor="#f6f6f6">

<!-- body -->
<table class="body-wrap">
<tr>
<td></td>
<td class="container" bgcolor="#FFFFFF">

<!-- content -->
<div class="content">
<table>
<tr>
<td>
<h1>Avenir</h1>
<p>This font was downloaded from <a href="http://fontsgeek.com?ref=readme">fontsgeek.com</a> . You can visit <a href="http://fontsgeek.com?ref=readme">fontsgeek.com</a> for thousands of free fonts.</p>
<p><a href="http://fontsgeek.com/avenir-font?ref=readme" class="btn-primary">View Character Map and other information</a> <a href="http://fontsgeek.com?ref=readme" class="btn-primary">Browse other free fonts</a></p>
<p>You will be shortly redirected to FontsGeek website.</p>
</td>
</tr>
</table>
</div>
<!-- /content -->

</td>
<td></td>
</tr>
</table>
<!-- /body -->

</body>
</html>
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Kickoff 2023</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
79 changes: 72 additions & 7 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,80 @@

.section-four {
height: 100vh;
background-color: white;
color: black;
background-size: cover;
background-position: center;
background-image: url("../public/assets/background_02.png");
color: white;
}

.container-one {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.container-four {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
}

.logo-osrd-big {
height: 17rem;
}

.logo-date {
height: 4rem;
}

.logo-titre {
height: 3rem;
}

p {
text-align: center;
}

h2 {
font-size: 5rem;
}

.footer {
position: fixed;
bottom: 0;
height: 2rem;
width: auto;
display: flex;
padding: 0.5rem;
}
.footer div {
justify-content: space-evenly;
}
.footer img {
height: 2rem;
}

@media screen and (max-width: 1024px) {
p {
padding: 0.5rem;
}
.logo-osrd-big {
height: 13rem;
padding: 0.5rem;
}
.logo-date {
height: 2rem;
padding: 0.5rem;
}
.logo-titre {
height: 4rem;
padding: 0.5rem;
}
h2 {
font-size: 3rem;
}
}
71 changes: 64 additions & 7 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,27 @@ function App() {
<>
<section className="section-one">
<div className="container-one">
<img
src="/assets/logo-kickoff/OSRD-kickoff-programme-logo-kickoff.svg"
alt="logo"
className="logo-osrd-big"
></img>
<img
src="/assets/logo-kickoff/OSRD-kickoff-programme-titre-kickoff.svg"
alt="date"
className="logo-titre"
></img>
<img
src="/assets/logo-kickoff/OSRD-kickoff-programme-date-kickoff.svg"
alt="date"
className="logo-date"
></img>

<img src="./assets/logo-kickoff/OSRD-kickoff-programme-logo-kickoff.svg" alt="logo"></img>

<div>Date</div>
<div>
<p>
Présentation des versions Short Term DCM et Etudes Exploitation du
programme OSRD
Présentation des versions <b>Short Term DCM</b> et{" "}
<b>Etudes Exploitation</b> du
<b>programme</b> OSRD
</p>{" "}
</div>
<div>
Expand All @@ -33,10 +46,54 @@ function App() {
</div>
<div>75014 Paris</div>
<div>Le lieu</div>
<img src="./assets/plan/OSRD-kickoff-programme-plan-event.svg" alt="plan"></img>
<img
src="./assets/plan/OSRD-kickoff-programme-plan-event.svg"
alt="plan"
></img>
</section>
<section className="section-three">SECTION 3</section>
<section className="section-four">SECTION 4</section>
<section className="section-four">
<div className="container-four">
{" "}
<div>
<h2>La suite</h2>
</div>
<div>
<p>
Pour plus d'informations, <br></br>
cliquez sur :
</p>
<a href="https://osrd.fr/fr/">
{" "}
<img
src="/assets/logos/OSRD-kickoff-programme-logo-OSRD.svg"
alt="osrd-logo"
></img>
</a>
</div>
</div>
</section>
<div>
<div className="footer">
<div>
<img
src="/assets/logos/OSRD-kickoff-programme-logo-GOUV.svg"
alt="logo-gouv"
></img>
<img
src="/assets/logos/OSRD-kickoff-programme-logo-UE.svg"
alt="logo-ue"
></img>
</div>

<div>
<img
src="/assets/logos/OSRD-kickoff-programme-logo-SNCF.svg"
alt="logo-sncf"
></img>
</div>
</div>
</div>
</>
);
}
Expand Down
13 changes: 4 additions & 9 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: "Avenir";
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
@font-face {
font-family: "Avenir";
src: url("../public/fonts/Avenir/AvenirRegular/AvenirRegular.ttf");
}

Loading

0 comments on commit 55135a0

Please sign in to comment.