Skip to content

Commit

Permalink
add in fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
sdras committed Jan 20, 2019
1 parent f0b321d commit 7e4b1ef
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
21 changes: 21 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Prata" rel="stylesheet">
<title>Food App</title>
</head>

<body>
<noscript>
<strong>We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>

</html>
3 changes: 1 addition & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ body {
height: $app-height;
width: $app-width;
overflow: hidden;
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
color: white;
margin-top: 60px;
}
</style>
6 changes: 5 additions & 1 deletion src/components/AppGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
ref="itemimg"
>
<img :src="`${item.name}.jpg`" :alt="item.name" :ref="item.name">
<h3>{{ item.name }}</h3>
<h4>{{ item.restaurant }}</h4>
</div>
<app-details v-if="isShowing"></app-details>
</div>
Expand Down Expand Up @@ -118,4 +118,8 @@ export default {
backface-visibility: hidden;
}
}
h4 {
margin-top: 0;
}
</style>
10 changes: 9 additions & 1 deletion src/styles/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
$app-width: 500px;
$app-height: 100vh;
$app-height: 100vh;

body {
font-family: "Avenir", Helvetica, Arial, sans-serif;
}

h1, h2, h3 {
font-family: 'Prata', serif;
}

0 comments on commit 7e4b1ef

Please sign in to comment.