cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation


Save Automatically?

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.

              <body ng-app="newsApp">
  <div class="wrapper container-fluid" ng-controller="mainController">

    <section class="main" >
      <div class="basenews">
      <div class="row text-center">
        <h1 class=" col-md-6">Camper news </h1>
        <h3 class="col-md-6">Free code camp</h3>
        <input class="style-4" type="text" name="search" value="Search" placeholder="Search" ng-model='search.headline'>

      <div class="row">
      <div class="col-lg-3 col-md-4 col-sm-6 holder" ng-repeat="news in stories | filter:search">
      <div class="story row">
        <div class="headline">
          <a class="" ng-href="{{news.link}}"><span> {{news.headline}}</span></a>
        <div class="foto col-lg-5 col-md-6 col-sm-6">
          <div class="">
            <a ng-href="https://www.freecodecamp.com/{{news.author.username}}"><img class="img-rounded" ng-src="{{news.author.picture}}" alt="author picture" width="120" height="120" /></a>

      <div class="info col-lg-7 col-md-6 col-sm-6">
            <a ng-href="https://www.freecodecamp.com/{{news.author.username}}">@ {{news.author.username}}</a>
          <div class="time" title="Posted {{news.timePosted | date:'d MMMM y H:mm:ss'}}">
              <p class="time">{{news.timePosted | amCalendar}}</p>
          <p class="time" am-time-ago="news.timePosted"></p>
      <small>Like {{news.rank}}</small>

  <!-- <script src="//localhost:35729/livereload.js"></script> -->
  /*outline:1px solid red;*/

html {
  margin: 0 auto;
  width: 100%;
  background-color: #3e3e3e;
  background-color: #a7ffeb;
  font-family: monospace;
  color: #000;
  margin-top: 10px;
  margin-top: 15px;
  color: #000;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #E91E63;
  margin: 15px auto;
  max-width: 900px;
.basenews h1{
  font-family: cursive;

@media (min-width:991px){
    text-align: right;
    text-align: left;
    padding-top: 13px;
  padding: 15px;
  position: relative;
  max-width: 320px;
  margin: 5px auto;
  min-height: 245px;
  border-radius: 5px;
  background-color: #00bfa5;
  transition: 0.2s;
  box-shadow: -2px 2px rgba(50,50,50,0.5);
  transform: translateY(-5px);
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 10px;
  background-color: rgba(224, 224, 224, 0.62);
  border-top-left-radius: 5px;
  padding: 10px;
  font-size: 1.3em;
  word-wrap: break-word;
  height: 100px;
  background-color: #fff;
  line-height: 1.65;
  margin-left: -10px;
  margin-left: 10px;
.time {
  font-size: 0.9em;
input {
  color: #000;
input[type="text"] {
  display: block;
  margin:0 auto;
  padding-left: 30px;
  width: 10%;
  min-width: 150px;
  font-family: sans-serif;
  font-size: 18px;
  font-size: 2em;
  appearance: none;
  box-shadow: none;
  /*border-radius: none;*/
  border-radius: 10em;
  border: none;
input[type="text"]:focus {
  outline: none;
  width: 40%;
  min-width: 250px;
  background-color: #E91E63;
              var app = angular.module('newsApp', [ 'ngResource', 'angularMoment']);

app.factory('newsService', function($resource) {
  return $resource('https://www.freecodecamp.com/news/hot');

app.controller('mainController', function($scope,newsService) {
console.log('Angular mainController');
var news=  newsService.query().$promise.then(function(a){

  $scope.stories = a;

Loading ..................