Skip to content

Commit

Permalink
add layout to landing page
Browse files Browse the repository at this point in the history
arranged elements into basic layout. relates #4
  • Loading branch information
lucysabin committed May 22, 2017
1 parent 927b14e commit ff0bcb6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
14 changes: 14 additions & 0 deletions css/landing.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.landing_header {
background: grey;
display: flex;
flex-direction: row;
justify-content: space-between;
}

.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 10em;
}
29 changes: 17 additions & 12 deletions landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,32 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="./css/main.css" type="text/css">
<link rel="stylesheet" href="./css/landing.css" type="text/css">
<title>Document</title>
</head>
<body>

<form action="./logameal.html">
<input type="submit" value="Log a meal" />
</form>
<header class="landing_header">

<form action="./calendar.html">
<input type="submit" value="Calendar view" />
</form>
<div class="landing_header_menu">

<form action="./settings.html">
<input type="submit" value="Settings" />
</form>
<a href="calendar.html">Calendar</a></br>
<a href="settings.html">Settings</a>

<form action="./login.html">
<input type="submit" value="Log out" />
</form>
</div>

<div class="landing_logout">
<a href="./login.html">Log out</a>
</div>

</header>

<div class="container">

<h1 class="landing_greeting">Hello, Kim.</h1>
<a href="logameal.html" class="landing_logameal">Log a meal</a>

</div>

</body>
</html>

0 comments on commit ff0bcb6

Please sign in to comment.