Skip to content
Snippets Groups Projects
Commit a5164e6a authored by Planoetscher Daniel (Student Com20)'s avatar Planoetscher Daniel (Student Com20)
Browse files

intro section now responsive

parent 35f7cfdf
No related branches found
No related tags found
1 merge request!1Adding css
...@@ -45,27 +45,49 @@ body { ...@@ -45,27 +45,49 @@ body {
} }
h1 { h1 {
font-size: 3rem; font-size: 2rem;
font-weight: var(--weight-bold); font-weight: var(--weight-bold);
margin-bottom: 30px; margin-bottom: 20px;
} }
h2 { h2 {
font-size: 2.25rem; font-size: 1.75rem;
font-weight: var(--weight-bold); font-weight: var(--weight-bold);
margin-bottom: 2rem; margin-bottom: 1rem;
} }
h3 { h3 {
font-size: 1.5rem; font-size: 1.25rem;
font-weight: var(--weight-semi-bold); font-weight: var(--weight-semi-bold);
margin-bottom: 1rem; margin-bottom: 0.75rem;
} }
h4 { h4 {
font-size: 1.25rem; font-size: 1rem;
font-weight: var(--weight-semi-bold); font-weight: var(--weight-semi-bold);
margin-bottom: 1rem; margin-bottom: 0.75rem;
}
@media screen and (min-width: 960px) {
h1 {
font-size: 3rem;
margin-bottom: 30px;
}
h2 {
font-size: 2.25rem;
margin-bottom: 2rem;
}
h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
h4 {
font-size: 1.25rem;
margin-bottom: 1rem;
}
} }
.intro-section .intro-container { .intro-section .intro-container {
...@@ -120,6 +142,7 @@ h4 { ...@@ -120,6 +142,7 @@ h4 {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.feature-section .feature-item { .feature-section .feature-item {
padding: 1.5rem 0; padding: 1.5rem 0;
} }
...@@ -168,9 +191,11 @@ h4 { ...@@ -168,9 +191,11 @@ h4 {
margin-right: 0; margin-right: 0;
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.team-section .team-member { .team-section .team-member {
flex-direction: column; flex-direction: column;
} }
.team-section .team-member-info { .team-section .team-member-info {
align-items: center; align-items: center;
text-align: center; text-align: center;
...@@ -242,14 +267,14 @@ a { ...@@ -242,14 +267,14 @@ a {
header { header {
display: flex; display: flex;
align-items: center; align-items: center;
padding-top: 80px; padding: 20px;
padding-left: 90px;
} }
nav a { nav a {
color: var(--body-color); color: var(--body-color);
font-weight: var(--weight-bold); font-weight: var(--weight-bold);
margin-left: 40px; margin-left: 40px;
display: none;
} }
.hero-section { .hero-section {
...@@ -257,10 +282,11 @@ nav a { ...@@ -257,10 +282,11 @@ nav a {
} }
.hero-section .text-container { .hero-section .text-container {
width: 32%;
font-size: 24px;
font-weight: var(--weight-semi-bold); font-weight: var(--weight-semi-bold);
padding-bottom: 160px; position: relative;
z-index: 2;
padding-bottom: 30px;
font-size: 18px;
} }
.hero-section .button-container { .hero-section .button-container {
...@@ -268,35 +294,32 @@ nav a { ...@@ -268,35 +294,32 @@ nav a {
} }
.hero-section .hero-container { .hero-section .hero-container {
height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
} }
.hero-section .preview-container { .hero-section .preview-container {
position: absolute; width: 50%;
right: 0; display: flex;
width: 45%; justify-content: center;
height: 100%; margin: 20px 0;
top: 0; padding: 30px 0;
border-top-right-radius: 25px;
border-bottom-right-radius: 25px;
background: var(--linear-gradient); background: var(--linear-gradient);
border-bottom-left-radius: 50px;
} }
.hero-section .preview-phone { .hero-section .preview-phone {
position: absolute; transform: translate(50%, 0%);
left: 0; width: 75vw;
top: 50%;
width: 300px;
transform: translate(-30%, -50%);
} }
.preview-phone .inner { .preview-phone .inner {
padding-bottom: 177.77777777778%; padding-bottom: 177.77777777778%;
background: #fff; background: #fff;
width: 100%; width: 100%;
border: 10px solid var(--body-color); border: 7px solid var(--body-color);
border-radius: 25px; border-radius: 25px;
box-shadow: 0 0 40px rgba(0, 0, 0, .15); box-shadow: 0 0 40px rgba(0, 0, 0, .15);
} }
...@@ -304,8 +327,8 @@ nav a { ...@@ -304,8 +327,8 @@ nav a {
.preview-phone .inner:before { .preview-phone .inner:before {
content: ' '; content: ' ';
position: absolute; position: absolute;
width: 100px; width: 25%;
height: 25px; height: 16px;
background: var(--body-color); background: var(--body-color);
left: 50%; left: 50%;
top: 2px; top: 2px;
...@@ -313,12 +336,77 @@ nav a { ...@@ -313,12 +336,77 @@ nav a {
transform: translateX(-50%); transform: translateX(-50%);
} }
@media screen and (min-width: 500px) {
.hero-section .preview-container {
right: 0;
height: 100%;
width: 40%;
top: 0;
border-bottom-left-radius: 50px;
position: absolute;
margin: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.hero-section .preview-phone {
left: 0;
top: 50%;
transform: translate(-20%, -50%);
position: absolute;
width: 200px;
}
.hero-section .text-container {
width: 50%;
font-size: 24px;
}
}
@media screen and (min-width: 860px) {
nav a {
display: inline-block;
}
header {
padding-top: 80px;
padding-left: 90px;
}
.hero-section .hero-container {
height: 100vh;
}
.hero-section .preview-phone {
left: 0;
transform: translate(-30%, -50%);
top: 50%;
width: 300px;
}
.hero-section .preview-phone .inner {
border-width: 10px;
}
.hero-section .text-container {
width: 32%;
padding-bottom: 160px;
}
}
@media screen and (min-width: 1280px) { @media screen and (min-width: 1280px) {
body { body {
padding: 5rem 0; padding: 5rem 0;
} }
.hero-section .preview-container {
width: 45%;
}
.hero-section .hero-container { .hero-section .hero-container {
height: calc(100vh - 100px); height: calc(100vh - 100px);
} }
} }
\ No newline at end of file
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
<a href="#contact">Contact</a> <a href="#contact">Contact</a>
</nav> </nav>
</header> </header>
<div class="preview-container">
<div class="preview-phone">
<div class="inner">
</div>
</div>
</div>
<div class="content-container"> <div class="content-container">
<div class="text-container"> <div class="text-container">
<h1>ryoko</h1> <h1>ryoko</h1>
...@@ -40,12 +46,6 @@ ...@@ -40,12 +46,6 @@
</div> </div>
</div> </div>
</div> </div>
<div class="preview-container">
<div class="preview-phone">
<div class="inner">
</div>
</div>
</div>
</section> </section>
<section class="intro-section" id="intro"> <section class="intro-section" id="intro">
<div class="content-container intro-container"> <div class="content-container intro-container">
...@@ -74,7 +74,8 @@ ...@@ -74,7 +74,8 @@
<span class="feature-icon material-icons">event</span> <span class="feature-icon material-icons">event</span>
<h3 class="feature-title">Automatic timetables</h3> <h3 class="feature-title">Automatic timetables</h3>
<div class="feature-description"> <div class="feature-description">
Generate your automatic timetables based on <strong>priorities and depencies</strong> of your tasks Generate your automatic timetables based on <strong>priorities and depencies</strong> of
your tasks
</div> </div>
</div> </div>
<div class="feature-item"> <div class="feature-item">
...@@ -96,7 +97,8 @@ ...@@ -96,7 +97,8 @@
</p> </p>
<div class="team-list"> <div class="team-list">
<div class="team-member"> <div class="team-member">
<img class="team-member-image" src="img/daniel-planoetscher.jpg" width="200" height="200" alt="Daniel Planötscher" /> <img class="team-member-image" src="img/daniel-planoetscher.jpg" width="200" height="200"
alt="Daniel Planötscher" />
<div class="team-member-info"> <div class="team-member-info">
<h3 class="team-member-name">Daniel Planötscher</h3> <h3 class="team-member-name">Daniel Planötscher</h3>
<h4 class="team-member-title">Co-founder &amp; Lead Web Developer</h4> <h4 class="team-member-title">Co-founder &amp; Lead Web Developer</h4>
...@@ -111,7 +113,8 @@ ...@@ -111,7 +113,8 @@
</div> </div>
</div> </div>
<div class="team-member"> <div class="team-member">
<img class="team-member-image" src="img/roland-bernard.jpg" width="200" height="200" alt="Roland Bernard" /> <img class="team-member-image" src="img/roland-bernard.jpg" width="200" height="200"
alt="Roland Bernard" />
<div class="team-member-info"> <div class="team-member-info">
<h3 class="team-member-name">Roland Bernard</h3> <h3 class="team-member-name">Roland Bernard</h3>
<h4 class="team-member-title">Co-founder &amp; Lead Software Engineer</h4> <h4 class="team-member-title">Co-founder &amp; Lead Software Engineer</h4>
...@@ -196,4 +199,4 @@ ...@@ -196,4 +199,4 @@
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment