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.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

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.


                <div id="mount"></div>
<a class="nl" href=""></a>


                @import url(,300,700);

html, body, div, span, h1, h2, h3, p, a, form, nav, li, ul {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	vertical-align: baseline;

body {
  background: #5b802e;
  font-family: 'Roboto Condensed', sans-serif;

.next-holiday {
  max-width: 1000px;
  margin: 40px auto;
  color: #fff;
  .loading {
    text-align: center;
  .content {
    position: relative;
  .next {
    font-size: 30px;
    font-weight: 100;
    text-transform: uppercase;
    color: #bad6b1;
    text-align: left;
  .reason {
    text-align: center;
    font-size: 60px;
    border-top: 5px solid #7aa04b;
    border-bottom: 5px solid #7aa04b;
    background-color: #628438;
    padding: 20px 0;
  .date {
    position: absolute;
    right: 0;
    top: 0;
    >div {
      display: inline-block;
      margin: 5px;
    .month {
      border-left: 2px solid #d2d2d2;
      text-transform: uppercase;
      padding-left: 10px;
  .type {
    float: right;
    font-size: 26px;
    font-weight: 100;
    text-transform: uppercase;
    color: #bad6b1;
    padding: 6px 20px;
    background-color: #628438;

.nl {
  position: fixed;
  right: 0;
  bottom: 0;
  font-family: sans-serif;
  text-decoration: none;
  padding: 4px 8px 0 8px;
  color: #bbbbbb;
  background-color: #3a3a3a;
  font-size: 16px;
  z-index: 99999999;


                const getURL = year => `${year}`

const months = ['Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre']
const days = ['Domingo', 'Lunes', 'Martes', 'Miercoles', 'Jueves', 'Viernes', 'Sabado']
const dayOfWeek = (day, month, year) => days[new Date(year, month, day).getDay()]

class NextHoliday extends React.Component {
    this.state = {
      loading: true,
      year: (new Date()).getFullYear()
  setNext(holidays) {
    const now = new Date()
    const today = {
      day: now.getDate(),
      month: now.getMonth() + 1

    let holiday = holidays.find(h => 
      h.mes === today.month && h.dia > || h.mes > today.month

    if (!holiday){
      holiday = holidays[0];
      loading: false,
  componentDidMount() {
    axios.get(getURL(this.state.year)).then(({data}) => this.setNext(data))
  render() {
    const {loading, holiday, year} = this.state
    return (
      <div className="next-holiday">
        {loading ? <h1 className="loading">Buscando ...</h1>
          <div className="content">
            <div className="next">Próximo feriado</div>
            <div className="reason">{holiday.motivo}</div>
            <div className="date">
              <div className="weekday">{dayOfWeek(holiday.dia, holiday.mes-1, year)}</div>
              <div className="day">{holiday.dia}</div>
              <div className="month">{months[holiday.mes-1]}</div>
            <div className="type">{holiday.tipo}</div>
ReactDOM.render(<NextHoliday/>, document.getElementById('mount'));