.other-component
  a.button(href='#') Join now!

  .other-component__image
    img(src='http://www.petsworld.in/blog/wp-content/uploads/2015/03/How-To-Make-Your-Puppy-Gain-Weight.jpg')
  .other-component__content
    h2 Puppies are cute!
    p Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consequat semper viverra nam libero justo laoreet sit. Integer enim neque volutpat ac tincidunt. Justo donec enim diam vulputate ut pharetra sit amet. Volutpat consequat mauris nunc congue nisi vitae. Vitae tortor condimentum lacinia quis vel. Lacinia quis vel eros donec ac odio. Vehicula ipsum a arcu cursus vitae congue mauris rhoncus. Egestas purus viverra accumsan in. Etiam dignissim diam quis enim lobortis scelerisque fermentum dui faucibus. Aliquet enim tortor at auctor urna nunc id cursus metus. Lacus vestibulum sed arcu non odio euismod lacinia at.

    p Augue neque gravida in fermentum et sollicitudin ac. Mauris pharetra et ultrices neque. Tellus in metus vulputate eu scelerisque felis imperdiet proin fermentum. Non quam lacus suspendisse faucibus. Nisi quis eleifend quam adipiscing vitae proin sagittis. Nunc faucibus a pellentesque sit amet. Semper eget duis at tellus at urna condimentum mattis pellentesque. Turpis cursus in hac habitasse platea dictumst quisque. Nullam non nisi est sit amet facilisis. Purus faucibus ornare suspendisse sed nisi lacus sed viverra. Aliquam id diam maecenas ultricies. Eget nunc lobortis mattis aliquam faucibus.
View Compiled
/* other-component component file */
.other-component {
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr;

  &__content {
    margin-left: 20px;
    grid-column: 2;
    grid-row: 1 / span 2; 
  }
  
  &__image {
    grid-row: 2;
  }
}

/* button component file */
.button {
  /* styles that we want to appear on every button by default */
  padding: 10px;
  background: darkgreen;
  color: #fff;
  border: 0;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  
  /* Oh... this is a problem now :( */
  grid-column: 3;
}

/* resets file */
img { width: 100%; }
h2 { margin-top: 0; }

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.