Skip to content

Instantly share code, notes, and snippets.

@mathewsanders
Last active February 20, 2016 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathewsanders/98e87c01b302afb696b2 to your computer and use it in GitHub Desktop.
Save mathewsanders/98e87c01b302afb696b2 to your computer and use it in GitHub Desktop.
Design in the browser, activity 3: extract repeating elements
<!-- template code -->
<template>
<div class="cafe-card">
<h1>Cafe Grumpy</h1>
<p class="description">Hip local coffeehouse chain serving a range of house-roasted brews in a relaxed setting.</p>
<dl class="address">
<dt>Address</dt>
<dd>224 W 20th St, New York, NY 10011</dd>
</dl>
<div class="map"></div>
</div>
</template>
<!-- style code -->
<style scoped>
.cafe-card {
display: inline-block;
margin: 1em;
padding: 1em;
padding-top: 1.5em;
width: 14em;
height: 23em;
background: white;
border: 1px solid #C0C0C0;
position: relative;
text-align: left;
}
/* remaining style declarations ommited for readability */
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment