Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html lang="en" >
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Angular Material style sheet -->
  <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/angular_material/1.1.12/angular-material.min.css">
  <link href="https://fonts.googleapis.com/css?family=Cute+Font" rel="stylesheet">
</head>
<body ng-controller="SubheaderAppCtrl" ng-app="MyApp">
  <!-- Your HTML content here -->
  
  <!--------  Today's theme --------->
  <div layout="row" class="theme" layout-align="center center">D41 Workout Tracker,
42 ToDo List, 43 Food/Drink Menu, 44 Favorites, 45 Info Card, 46 Invoice, 47 Activity Feed, 48 Coming Soon, 49 Notifications, 50 Job Listing, 51 Press Page, 52 Daily UI logo, 53 Header Navigation, 54 Confirm Reservation</div>

  
  <!--------  Working area --------->
  <div  layout="column"  class="working-area subheaderdemoBasicUsage">
    
    <md-toolbar>
      <div class="md-toolbar-tools">
        <div flex="15"><div class="logo-design"></div> </div>
        <div flex="" style="text-align:center">Workout Buddy</div>
        <div flex="25">
          <md-button>
              <md-select name="type" ng-model="project.type">
                <md-option>Tracker</md-option>
                <md-option ng-click="showFeed($event)">Activity Feed</md-option>
                <md-option ng-click="showFeed($event)">Track Food</md-option>
                <md-option ng-click="showInfo($event)">Job Listing</md-option>
                <md-option ng-click="showInfo($event)">Press Page</md-option>
                <md-option ng-click="showNotifications($event)">Notifications</md-option>
              </md-select>
           </md-button>
        </div>
      </div>
    </md-toolbar>
    
    <md-content style="height: 600px;" md-theme="altTheme">
<!-- ---------    Free Workouts   ------------- -->
    <section>
      <md-subheader class="md-primary">Free Workouts</md-subheader>
      <md-list layout-padding="">
        <md-list-item class="md-3-line" ng-repeat="message in messages">
          <md-checkbox flex="5" name="tos" ng-model="project.done" required></md-checkbox>
          <div flex="" class="md-list-item-text">
            <h3>{{message.what}}</h3>
            <h4>{{message.who}}</h4>
            <p>
              {{message.notes}}
            </p>
          </div>
          
          <div flex="5" class="md-list-item-text">
            <h4><span>&#10084;</span></h4>
            <h4>	</h4>
            <md-button ng-click="showInfo($event)" class="infoCard">
              <p> &#9432; </p>
            </md-button>
          </div>
          
          <md-divider></md-divider>
        </md-list-item>
      </md-list>
    </section>
      
<!-- ---------    Paid Workouts ---------   -->
    <section>
      <md-subheader class="md-primary">Paid Workouts</md-subheader>
      <md-list layout-padding="">
        <md-list-item class="md-3-line" ng-repeat="message in messages">
          <md-checkbox flex="5" name="tos" ng-model="project.done" required></md-checkbox>
          <div flex="" class="md-list-item-text">
            <h3>{{message.what}}</h3>
            <h4>{{message.who}}</h4>
            <p>
              {{message.notes}}
            </p>
          </div>
          
          <div flex="5" class="md-list-item-text">
            <h4><span>	&#10084;</span></h4>
            <md-button ng-click="showInvoice($event)" class="infoCard">
              <p> &#36; </p>
            </md-button>
            <md-button ng-click="showInfo($event)" class="infoCard">
              <p> &#9432; </p>
            </md-button>
          </div>
          
          <md-divider></md-divider>
        </md-list-item>
      </md-list>
    </section>
      
<!-- ---------    Book an online Workout    -->
    <section>
      <md-subheader class="md-accent">Real time Online Workouts</md-subheader>
      <md-list layout-padding="">
        <md-list-item class="md-3-line" ng-repeat="message in messages">
          <md-checkbox flex="5" name="tos" ng-model="project.done" required></md-checkbox>
          <div flex="" class="md-list-item-text">
            <h3>{{message.what}}</h3>
            <h4>{{message.who}}</h4>
            <p>
              {{message.notes}}
            </p>
          </div>
          
          <div flex="5" class="md-list-item-text">
            
            <md-button ng-click="showReservation($event)" class="infoCard">
              <img style="width: 20px; height:20px" src="https://www.freeiconspng.com/uploads/reservation-icon-20.png">
            </md-button>
            
          </div>

          <md-divider></md-divider>
        </md-list-item>
      </md-list>
    </section>

<!-- ---------    Coming soon Workouts ---  -->
    <section>
      <md-subheader class="">Coming soon</md-subheader>
      <md-list layout="column" layout-padding="">
        <md-list-item class="md-3-line" ng-repeat="message in messages">
          <img ng-src="https://cdn2.iconfinder.com/data/icons/leto-under-construction/64/1_coming_soon_under_construction_badge_sticker-128.png" class="md-avatar" alt="{{message.who}}">
          <div class="md-list-item-text">
            <h3>{{message.what}}</h3>
            <h4>{{message.who}}</h4>
            <p>
              {{message.notes}}
            </p>
          </div>
        </md-list-item>
      </md-list>
    </section>
  </md-content>
      
  </div>
  
  <!--------  Footer --------->
  <div id="footer_container">
    <div layout="row" layout-align="center center"><h3>Youtube tutorial <a href="https://youtu.be/mm3ZQSW-ZvY" target="_blank"> here!</a></h3></div><br>
    <div layout="row" layout-align="center center">Created by Eleftheria</div>
    <div layout="row" layout-align="center center" class="footer">

        <!-- Linkedin -->
        <a href="https://www.linkedin.com/in/eleftheriabatsou/" target="_blank"><img src="https://image.flaticon.com/icons/svg/39/39714.svg" class="footer_image" alt="linkedin" title="linkedin"></a> ~
        <!-- Codepen -->
        <a href="https://codepen.io/EleftheriaBatsou" target="_blank"><img src="https://image.flaticon.com/icons/svg/51/51767.svg" class="footer_image" alt="codepen" title="codepen"></a> ~
        <!-- Youtube -->
        <a href="https://www.youtube.com/c/EleftheriaBatsou" target="_blank"><img src="https://image.flaticon.com/icons/svg/733/733646.svg" class="footer_image" alt="youtube" title="youtube"></a> ~
        <!-- Twitter -->
        <a href="https://twitter.com/BatsouElef" target="_blank"><img src="https://image.flaticon.com/icons/svg/8/8800.svg" class="footer_image" alt="twitter" title="twitter"></a> ~
        <!-- Github -->
        <a href="https://github.com/EleftheriaBatsou" target="_blank"><img src="https://image.flaticon.com/icons/svg/25/25231.svg" class="footer_image" alt="github" title="github"></a> ~ 
        <!-- Instagram -->
        <a href="https://www.instagram.com/eleftheriabatsou/" target="_blank"><img src="https://image.flaticon.com/icons/svg/69/69366.svg" class="footer_image" alt="instagram" title="instagram"></a> ~
      <!-- Website -->
        <a href="http://www.eleftheriabatsou.com" target="_blank"><img src="https://image.flaticon.com/icons/svg/484/484101.svg" class="footer_image" alt="website" title="website"></a>
    </div>
   </div>
  
  <!--   information about the workout -->
  <script type="text/ng-template" id="dialog.tmpl.html"><md-dialog aria-label="Info Workout">
  <form style="width: 370px;">
    <md-toolbar>
      <div class="md-toolbar-tools">
        <h2>Information Workout</h2>
        <span flex></span>
        <md-button class="md-icon-button" ng-click="cancel()">
          <md-icon md-svg-src="img/icons/ic_close_24px.svg" aria-label="Close dialog"></md-icon>
        </md-button>
      </div>
    </md-toolbar>

    <md-dialog-content>
      <div class="md-dialog-content" >
    <form name="contactForm">
      <md-input-container class="md-block">
        <h2>What is Lorem Ipsum?</h2>
    <p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<p>

<h2>Why do we use it?</h2>
        <p>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>


      </md-input-container>

   
  </form>
</md-dialog>
</script> 
  
  <!--   invoice for paid workout -->
  <script type="text/ng-template" id="dialogInvoice.tmpl.html"><md-dialog aria-label="Info Workout">
  <form style="width: 370px;">
    <md-toolbar>
      <div class="md-toolbar-tools">
        <h2>Invoice</h2>
        <span flex></span>
        <md-button class="md-icon-button" ng-click="cancel()">
          <md-icon md-svg-src="img/icons/ic_close_24px.svg" aria-label="Close dialog"></md-icon>
        </md-button>
      </div>
    </md-toolbar>

    <md-dialog-content>
      <div class="md-dialog-content" >
    <form name="contactForm">
      <md-input-container class="md-block">
        <h2>Thank you for your purchase</h2>
    <p>You just bought a new workout!!<br> Congratulations!!<br><br>
    Post your results and tag us on Twitter or Instagram using the <b>#workoutBuddy</b>.</p>
      </md-input-container>

   
  </form>
</md-dialog>
</script> 
  
  <!--  Header: Activity Feed and Track Food -->
  <script type="text/ng-template" id="dialogFeedAndFood.tmpl.html"><md-dialog aria-label="Info Workout">
  <form style="width: 370px;">
    <md-toolbar>
      <div class="md-toolbar-tools">
        <h2>Feed and Food</h2></div></md-toolbar>
    <h2>Activity Feed</h2>
    <img style="height: 180px " src="https://assets.highcharts.com/images/demo-thumbnails/highcharts/chart-update-default.png">
    <p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<p>

<h2>Track Food</h2>
    <img style="height: 180px " src="https://www.aaghealth.com/blog/wp-content/uploads/2013/11/how-to-track-food-intake.jpg">
        <p>
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).</p>

   
  </form>
</md-dialog>
</script>
  
  <!--  Header: Notification Settings -->
  <script type="text/ng-template" id="dialogNotifications.tmpl.html"><md-dialog aria-label="Info Workout">
  <form style="width: 370px;">
    <md-toolbar>
      <div class="md-toolbar-tools">
        <h2>Notification</h2>
        <span flex></span>
        <md-button class="md-icon-button" ng-click="cancel()">
          <md-icon md-svg-src="img/icons/ic_close_24px.svg" aria-label="Close dialog"></md-icon>
        </md-button>
      </div>
    </md-toolbar>

    <md-dialog-content>
      <div class="md-dialog-content" >
    <form>
      <md-input-container class="md-block">
        <h2>Settings</h2>
        <md-switch class="md-primary" name="special" ng-model="project.updates" required>
          Send me updates.
        </md-switch>
    
        <md-switch class="md-primary" name="special" ng-model="project.notifications" required>
          Allow notifications.
        </md-switch>
    
        <md-switch class="md-primary" name="special" ng-model="project.gdpr" required>
          I am compliance with GDPR.
        </md-switch>
      </md-input-container>

   
  </form>
</md-dialog>
</script>

  
</body>
</html>

              
            
!

CSS

              
                body {
 background-image: linear-gradient(to right bottom, #dc1767, #ac3086, #6f428f, #31457f, #003e60);
  color: white !important;
}

.theme {
  padding: 32px 0;
  margin: auto 32px;
  font-family: 'Pacifico', cursive; 
}

.working-area {
  width: 370px;
  height: 600px;
  margin: 0 auto;
  background-image: linear-gradient(to right bottom, #ff7cb1, #e69ae3, #c3b7ff, #aacfff, #abe1ff);
  border-radius: 8px;
}

.subheaderdemoBasicUsage .face {
  border-radius: 30px;
  border: 1px solid #ddd;
  width: 48px;
  margin: 16px; 
}

.navbar-icon{
  width: 64px;
  height: auto; 
  margin-top: -6px;
}

.logo-design {
  width: 50px;
  height: 50px;
  background-color: #abe1ff;
  
  clip-path: polygon(43% 25%, 36% 13%, 40% 1%, 68% 0%, 72% 15%, 67% 25%, 75% 36%, 99% 36%, 99% 56%, 76% 48%, 72% 68%, 98% 100%, 67% 100%, 59% 79%, 42% 99%, 28% 100%, 42% 69%, 43% 49%, 12% 57%, 13% 44%, 42% 35%);
}

md-select{
  margin-left: -80px !important;

}

md-option{
  padding: 8px !important;
}

h4 span:hover{
  color:pink;
}

.infoCard {
  right: 44px;
}


#footer_container {
  font-family: 'Pacifico', cursive; 
}
.footer .footer_image {
  height: 24px;
  width:24px;
  text-align: center;
  padding: 4px;
 }

.footer .footer_image:hover,
#footer_container a:hover {
  background-color: lightblue;
}
#footer_container a:link,
#footer_container a:active{
  color: #dc1767;
}

              
            
!

JS

              
                angular.module('MyApp', ['ngMaterial', 'ngMessages', 'material.svgAssetsCache'])
.config(function($mdThemingProvider) {
  $mdThemingProvider.theme('altTheme')
    .primaryPalette('purple');
})
.controller('SubheaderAppCtrl', function($scope, $mdDialog) {
    var imagePath = 'img/list/60.jpeg';
    $scope.messages = [
      {
        face : imagePath,
        what: 'Workout - 1',
        who: 'Duration - 90min',
        when: '3:08PM',
        notes: "Calories: 360Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 2',
        who: 'Duration - 80min',
        when: '3:08PM',
        notes: "Calories: 380Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 3',
        who: 'Duration - 60min',
        when: '3:08PM',
        notes: "Calories: 300Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 4',
        who: 'Duration - 65min',
        when: '3:08PM',
        notes: "Calories: 500Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 5',
        who: 'Duration - 30min',
        when: '3:08PM',
        notes: "Calories: 520Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 6',
        who: 'Duration - 20min',
        when: '3:08PM',
        notes: "Calories: 60Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 7',
        who: 'Duration - 10min',
        when: '3:08PM',
        notes: "Calories: 80Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 8',
        who: 'Duration - 25min',
        when: '3:08PM',
        notes: "Calories: 90Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 9',
        who: 'Duration - 15min',
        when: '3:08PM',
        notes: "Calories: 160Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 10',
        who: 'Duration - 35min',
        when: '3:08PM',
        notes: "Calories: 360Kcal"
      },
      {
        face : imagePath,
        what: 'Workout - 11',
        who: 'Duration - 45min',
        when: '3:08PM',
        notes: "Calories: 560Kcal"
      },
    ];
  
    // Info Card
    $scope.showInfo = function(ev) {
      $mdDialog.show({
        controller: DialogController,
        templateUrl: 'dialog.tmpl.html',
        parent: angular.element(document.body),
        targetEvent: ev,
        clickOutsideToClose:true
      })
    };
  
    // Invoice for paid workouts
    $scope.showInvoice = function(ev) {
      $mdDialog.show({
        controller: DialogController,
        templateUrl: 'dialogInvoice.tmpl.html',
        parent: angular.element(document.body),
        targetEvent: ev,
        clickOutsideToClose:true
      })
    };

    function DialogController($scope, $mdDialog) {
      $scope.cancel = function() {
        $mdDialog.cancel();
      };
    }
  
  
    // Confirm Reservation for paid workouts
    $scope.showReservation = function(ev) {
    // Appending dialog to document.body to cover sidenav in docs app
    var confirm = $mdDialog.confirm()
          .title('Book Reservation')
          .textContent('You are about to book an online real time workout')
          .ariaLabel('Lucky day')
          .targetEvent(ev)
          .ok('Yes, book it')
          .cancel('No, I regret it');

    $mdDialog.show(confirm).then(function() {
     
    }, function() {
     
    });
  };
  
    // Activity Feed and Food
    $scope.showFeed = function(ev) {
      $mdDialog.show({
        controller: DialogController,
        templateUrl: 'dialogFeedAndFood.tmpl.html',
        parent: angular.element(document.body),
        targetEvent: ev,
        clickOutsideToClose:true
      })
    };
  
    // Notification Settings
    $scope.showNotifications = function(ev) {
      $mdDialog.show({
        controller: DialogController,
        templateUrl: 'dialogNotifications.tmpl.html',
        parent: angular.element(document.body),
        targetEvent: ev,
        clickOutsideToClose:true
      })
    };
    
  
  
});
              
            
!
999px

Console