Skip to content

Commit

Permalink
Optimisation & Members card
Browse files Browse the repository at this point in the history
  • Loading branch information
AsteroidusTv committed Oct 12, 2024
1 parent 5f2ddc7 commit 1452536
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 20 deletions.
Binary file added images/members/aster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<link rel="stylesheet" href="./styles/header.css">
<link rel="stylesheet" href="./styles/home.css">
<link rel="stylesheet" href="./styles/about.css">
<link rel="stylesheet" href="./styles/team.css">

<script src="./scripts/script.js" defer></script>
<title>RecyTech</title>
Expand Down Expand Up @@ -78,7 +79,17 @@ <h2 class="about-title">À propos</h2>
<img class="about-image" src="./images/template.jpg" alt="Reconditionnement d'ordinateurs">
</div>
</section>
<section id="team" class="main-section team"></section>
<section id="team" class="main-section team">
<div class="member-card">
<img src="./images/members/aster.png" alt="Achille Roussel logo" class="member-photo">
<div class="name-role-container">
<h1 class="member-name">Achille Roussel</h1>
<p class="member-role">Chief front-end developer</p>
</div>
<p class="member-description">Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus, doloremque maiores suscipit, accusantium fugit nobis laborum veritatis facilis iusto, reiciendis nulla! Rerum, ipsa reprehenderit est incidunt exercitationem ex molestiae sequi?</p>
<button class="member-button">Visiter</button>
</div>
</section>
<section id="contact" class="main-section contact"></section>
</main>
</body>
Expand Down
2 changes: 0 additions & 2 deletions styles/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@
}

.about-title {
font-family: "Raleway-SemiBold";
color: var(--primary-color);
font-size: 40px;
margin-bottom: 20px;
}

.about-text {
font-family: "Raleway-SemiBold";
color: var(--primary-color);
font-size: 18px;
line-height: 1.6;
Expand Down
2 changes: 0 additions & 2 deletions styles/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
margin-right: -10px;
transform: translateX(-10px);
color: var(--text-color);
font-family: "Raleway-SemiBold";
user-select: none;
-webkit-user-select: none;
}
Expand Down Expand Up @@ -82,7 +81,6 @@

.header-link {
display: flex;
font-family: "Raleway-SemiBold";
font-size: 20px;
text-decoration: none;
color: var(--text-color);
Expand Down
15 changes: 0 additions & 15 deletions styles/home.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
main {
margin-top: var(--header-height);
overflow: hidden; /*temp*/
}

.main-section {
width: 100%;
height: 100vh;
padding-left: 50px;
padding-right: 50px;
}

.product {
display: flex;
gap: 150px;
Expand All @@ -27,7 +15,6 @@ main {
}

.slogan {
font-family: Raleway-SemiBold;
color: var(--secondary-color);
font-size: 55px;
}
Expand Down Expand Up @@ -66,7 +53,6 @@ main {
.buy-text {
color: var(--text-color);
text-shadow: 1px 1px 0px #0000004f;
font-family: Raleway-SemiBold;
font-size: 1.3em;
width: 82.5%;
position: absolute;
Expand All @@ -76,7 +62,6 @@ main {

.buy-button {
background-color: var(--text-color);
font-family: Raleway-SemiBold;
font-size: 30px;
border-radius: 40px;
color: var(--secondary-color);
Expand Down
13 changes: 13 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
padding: 0;
box-sizing: border-box;
scroll-behavior: smooth;
font-family: "Raleway-SemiBold";
}

:root {
Expand All @@ -32,7 +33,19 @@ body.is-hamburger-active {
overflow: hidden;
}

main {
margin-top: var(--header-height);
overflow: hidden; /*temp*/
}

img {
user-select: none;
-webkit-user-select: none;
}

.main-section {
width: 100%;
height: 100vh;
padding-left: 50px;
padding-right: 50px;
}
59 changes: 59 additions & 0 deletions styles/team.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.team {
padding-top: 80px;
}

.member-card {
border-radius: var(--border-radius);
position: relative;
display: flex;
align-items: center;
flex-direction: column;
height: 600px;
width: 25vw;
color: var(--primary-color);
background-color: var(--secondary-color);
}

.member-photo {
/* border: 4px solid var(--primary-color); */
border-radius: var(--border-radius) var(--border-radius) 0px 0px;
width: 100%;
height: 40%;
object-fit: cover;
}

.name-role-container {
border-radius: calc(var(--border-radius) - 15px);
top: 207.5px;
padding: 10px;
position: absolute;
left: 50%;
width: 220px;transform: translateX(-50%);
text-align: center;
color: var(--secondary-color);
background-color: var(--primary-color);
}

.member-description {
margin: 50px 20px 20px 20px;
font-size: 20px;
height: 210px;
}

.member-button {
width: calc(100% - 40px);
border-radius: 40px;
height: 60px;
font-size: 30px;
text-align: center;
color: var(--secondary-color);
background-color: var(--text-color);
cursor: pointer;
transition: 1.2s;
user-select: none;
-webkit-user-select: none;
}

.member-button:hover {
transform: scale(0.95);
}

0 comments on commit 1452536

Please sign in to comment.