Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My mess of a site #24

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
First commit, test layout and slider function
  • Loading branch information
chrisphillers committed Sep 8, 2018
commit b289adda07aa9158bbedf3f8b4a599a76a2725d1
52 changes: 52 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Second try</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Encode+Sans:700" rel="stylesheet">

</head>

<body>
<div class="app">
<header class="nav">
<div class="nav__item">
<p>HAMBURGER</p>
</div>
</header>

<h1 class="slideb"></h1>
<ul class="slideb__items">
<li>wefe</li>
<li>wef</li>
<li>wef</li>
</ul>

<div class="body__content">
<p>SOME TEXT HERE</p>
</div>


<div class="slideout">

</div>

<footer class="footer">
<div class="footer__logo">

<span class="dot">.</span>
<span class="logo">CP</span>




</div>
</footer>

</div>
</body>
</html>
170 changes: 170 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
* {
box-sizing: border-box;
}

body{
display: flex;
font-family: 'Encode Sans', sans-serif;
margin: 0;
background: black;
min-height: 100vh;
color:white;
}

body

.app {
display: flex;
flex:1;
flex-direction: column;
}


.nav{

display: flex;
justify-content: flex-start;
align-items: flex-start;
}



/* .slideb {
position: absolute;
top: 50%;
left:150px;
width: 200px;
transform: translatex(-50%) translatey(-50%);

}

.slideb a {
display: block;
color: #000000;
text-decoration: none;
}
*/

:hover .slideout {
bottom: 150%;

}

.slideout {
position: fixed;
bottom: -150%;
width: 100%;
height: 150%;
background-color: white ;
transition:bottom 2s;

}

/*
position: fixed;
top: 0px;
left: -300px;
width: 300px;
height: 100%;
background-color: #f8cede ;
transition: left 1s;
*/

.body__content{
display:flex;
flex:1;





}

.body__content h1{
font-size: 64px;

}

.footer{
display:flex;
justify-content: flex-end;
align-items: flex-end;

}

.footer__logo {



}

.dot {
margin: 0;
font-size: 100px ;

animation: fadein 2s infinite;
}

.logo {

margin: 0;
font-size: 100px ;



}










/*
bc
font-size: 64px;
line-height: 1.2;

body__content a {
text-decoration: none;
color: #ffffff;
position: relative;
}

body__content img {
position: absolute;
top: -100px;
left: -100px;
width: 400px;
opacity: 0 ;
transition: opacity 1s;
z-index: 2;
pointer-events: none;
}

body__content a:hover img {
opacity: 1;


}

*/



@keyframes fadein {
0% {
opacity: 0;
}
50% {
opacity: 1;
}
100% {
opacity: 0;
}

}