Skip to content

Instantly share code, notes, and snippets.

View coliveravenegas's full-sized avatar

Carlos Olivera Venegas coliveravenegas

  • crehana.com
  • Lima, Peru
View GitHub Profile
<div id="AfiliateLanding" class="fixPaddingAnchor">
<style>
.AfiliateBanner{
background-image: url("{% static "img/afiliate/mobile_background.jpg" %}")
}
@media (min-width: 768px){
.AfiliateBanner{
background-image: url("{% static "img/afiliate/tablet_background.jpg" %}")
}
}
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var path = require('path');
const common = {
entry: {
//JavascriptFiles
"bundles": "./crehana/frontdev/jsx/bundles.js",
"bundle-detail": "./crehana/frontdev/jsx/bundle-detail.js",
"catalog": "./crehana/frontdev/jsx/catalog.js",
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var path = require('path');
const common = {
entry: {
//JavascriptFiles
"bundles": "./crehana/frontdev/jsx/bundles.js",
"bundle-detail": "./crehana/frontdev/jsx/bundle-detail.js",
"catalog": "./crehana/frontdev/jsx/catalog.js",
/**Start Background Guide*/
position: relative;
&::after {
content: "";
background-image: url('https://image.ibb.co/cWwVfa/footer_nuevo.png');
opacity: 0.3;
top: 0;
left: 0;
bottom: 0;
right: 0;
var $ = require('zepto-browserify').$;
var getCookie = function(name) {
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = $.trim(cookies[i]);
// Does this cookie string begin with the name we want?
if (cookie.substring(0, name.length + 1) == (name + '=')) {
import React, {
PropTypes,
} from 'react';
import {csrftoken} from './djangotoken'; //Here we import the previous created file
const DjangoCSRFToken = () => {
return (
<input type="hidden" name="csrfmiddlewaretoken" value={csrftoken} />
);
import React, {
Component,
PropTypes,
} from 'react';
import DjangoCSRFToken from './DjangoCSRFToken';
class MyForm extends Component {
render() {
var React = require('react');
var Input = require('./Input');
var $ = require('zepto-browserify').$;
var validator = require('validator');
var cx = require('classnames');
require('../../../../scss/components/core/signup_form/SignUpForm.scss');
var SimpleRegisterForm = React.createClass({
#et-secondary-menu {
width: 100%;
}
#et-secondary-menu .ubermenu-main {
border: none;
background: #000 !important;
}
#SecondaryMenu {
background-color: black;
import React, { Component } from 'react';
import { TextAreaField } from 'common/components/Form';
import { RemoveButton } from 'common/components/buttons';
class Criterio extends Component {
_onChange = (value) => {
const {
criterio,
onChange,