Add mobile styles.

This commit is contained in:
BenjaminToby 2021-05-25 11:23:13 +01:00
parent 930985302a
commit b3c079e090
2 changed files with 141 additions and 9 deletions

View File

@ -10,7 +10,7 @@
<title>Tben Design</title>
<meta name="description" content="Web/Graphic/Motion Designer, UI UX Designer, Frontend Web Developer">
<link rel="shortcut icon" type="image/x-icon" href="/images-dw/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800|Satisfy|Niconne|Rancho" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Poppins:400,500,700,800|Satisfy" rel="stylesheet">
<link rel="stylesheet" href="main.css">
</head>
@ -21,7 +21,7 @@
<header>
<a class="nav-link-block" style="border: none;"><span style="font-family:'Satisfy'">Tben</span>design</a>
<nav style="float:right;">
<nav>
<ul>
<li class="navlink-li"><a href="#" class="navlink">About Me</a></li>
<li class="navlink-li"><a href="#" class="navlink">My Work</a></li>
@ -29,6 +29,11 @@
<li class="navlink-li"><button class="nav-cta-button">Let's Talk</button></li>
</ul>
</nav>
<div class="hamburger">
<div class="hamburger-line"></div>
<div class="hamburger-line"></div>
</div>
</header>
@ -37,7 +42,7 @@
<section class="hero-section">
<div class="container-1200px">
<div class="column-50">
<h1>Hi. I'm <span class="my-name">Benjamin Toby</span>&nbsp;.<br>And I design great stuff.</h1>
<h1>Hi. I'm <span class="my-name">Benjamin&nbsp;Toby</span>&nbsp;.<br>And I design great stuff.</h1>
<h2 class="hero-subtext">
<a href="#" class="hero-content-link" id="ui-ux-design">UI UX Design</a>,
<a href="#" class="hero-content-link" id="web-design">Web Design</a>,
@ -52,13 +57,13 @@
</div>
<div>
<h3 style="font-size:16px;font-weight:500;color:white;margin:0;">Find me on Linkedin</h3>
<h3 class="linkedin-cta-text">Find me on Linkedin</h3>
</div>
</div>
</a>
</div>
<div class="column-50 centered-content" style="perspective:600px;">
<div class="column-50 centered-content" style="perspective:600px;z-index:-1;">
<div class="face-wrapper" id="my-face-wrapper"> <div id="my-face"></div> </div>
</div>
</div>

133
main.css
View File

@ -156,9 +156,7 @@ input:focus {
/*................................................... classes and IDs */
/*................................................... General classes and IDs */
.container-1200px {
width: 100%;
max-width: 1200px;
@ -177,6 +175,9 @@ input:focus {
}
/*................................................... Nav */
.nav-link-block {
font-size: 30px;
font-weight: 800;
@ -221,6 +222,21 @@ input:focus {
padding: 10px 25px;
}
.hamburger {
display: none;
cursor: pointer;
}
.hamburger-line {
width: 30px;
height: 3px;
background-color: black;
}
/*................................................... Hero Section */
.my-name {
font-family: "Satisfy";
color: #3C60DE;
@ -283,6 +299,117 @@ input:focus {
justify-content: center;
}
.linkedin-cta-text {
font-size: 16px;
font-weight: 500;
color: white;
margin: 0;
}
/*.................................................................................................................. Mobile Styles */
@media (max-width: 800px) {
.column-50 {
width: 100%;
}
.container-1200px {
flex-direction: column;
}
nav {
display: none;
}
.hamburger {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
padding: 10px;
width: 40px;
height: 40px;
}
.hamburger:hover {
padding: 18px 10px;
}
.hamburger-line {
}
.hero-section {
padding-top: 40px;
}
#my-face {
right: -20vw;
}
}
@media (max-width: 600px) {
h1 {
font-size: 40px;
}
.hero-content-link {
font-size: 20px;
}
.linkedin-cta-text {
font-size: 14px;
}
.linkedin-block {
padding: 7px 15px 7px 7px;
}
#my-face {
right: -20vw;
margin-top: 0;
}
.face-wrapper {
}
}