Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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.

HTML

              
                
              
            
!

CSS

              
                
              
            
!

JS

              
                import React, {Component} from 'react';
import Breadcrumbs from "../../helpers/breadcrumbs";
import history from '../../helpers/history';

class ProductSinglePage extends Component {

    render(){
        console.log( history );

        return (
            <div id="primary" role="main" className="content-area twentyfifteen">
                <div id="main" className="site-main t15wc">
                    <div className="container woocomm__container">
                        <div className="row woocomm__row">
                            <div className="col-xs-12">
                                <div className="woocomm__col">
                                    {/*<div className="kama_breadcrumbs"><span href="https://algaph.com" itemProp="item"><span
                                        itemProp="name">Главная</span></a></span><span className="kb_sep"> / </span>
                                        <span itemProp="itemListElement" itemScope=""
                                              itemType="http://schema.org/ListItem"><a href="https://algaph.com/shop/"
                                                                                       itemProp="item"><span
                                            itemProp="name">Товары</span></a></span><span className="kb_sep"> / </span>
                                        <span itemProp="itemListElement" itemScope=""
                                              itemType="http://schema.org/ListItem"><a
                                            href="https://algaph.com/product-category/cosmeticiviso/"
                                            itemProp="item"><span
                                            itemProp="name">Косметика для лица</span></a></span><span
                                            className="kb_sep"> / </span>
                                        <span className="kb_title">Детский крем</span></div>*/}

                                    <Breadcrumbs />

                                    <div id="product-107" className="post-107 product type-product status-publish has-post-thumbnail product_cat-cosmeticiviso first instock shipping-taxable purchasable product-type-simple">
                                        <div className="good_gallery">
                                            <div className="good_galleryWrap has_galleryNav">
                                                <div className="good__gallerySlider">
                                                    <a href="https://algaph.com/wp-content/uploads/2018/08/5-ml_0001.jpg" className="good__gallerySliderItem image">
                                                        <img alt="alt" src="https://algaph.com/wp-content/uploads/2018/08/5-ml_0001.jpg" className="good__gallerySliderFeaturedImg"/>
                                                    </a>
                                                    <a href="https://algaph.com/wp-content/uploads/2018/07/5-ml_0002.jpg" className="good__gallerySliderItem image">
                                                        <img alt="alt" src="https://algaph.com/wp-content/uploads/2018/07/5-ml_0002.jpg" className="good__gallerySliderFeaturedImg"/>
                                                    </a>
                                                    <a href="https://algaph.com/wp-content/uploads/2018/08/50-ml_0007.jpg" className="good__gallerySliderItem image">
                                                        <img alt="alt" src="https://algaph.com/wp-content/uploads/2018/08/50-ml_0007.jpg" className="good__gallerySliderFeaturedImg"/>
                                                    </a>
                                                    <a href="https://www.youtube.com/watch?v=Df-Wo48P-M8" className="good__gallerySliderItem video slick-slide">
                                                        <img alt="alt" src="https://algaph.com/wp-content/uploads/2018/08/youtube_4.jpg" className="good__gallerySliderFeaturedImg video" video="https://www.youtube.com/watch?v=Df-Wo48P-M8"/>
                                                    </a>
                                                </div>

                                                <div className="good__gallerySliderNav">
                                                    <div className="good__gallerySliderItemNav">
                                                        <img alt="alt" src="https://algaph.com/wp-content/uploads/2018/08/5-ml_0001-150x147.jpg" className="good__gallerySliderFeaturedImgNav"/>
                                                    </div>
                                                    <div className="good__gallerySliderItemNav">
                                                        <img alt="alt" src="https://algaph.com/wp-content/uploads/2018/07/5-ml_0002-150x147.jpg" className="good__gallerySliderFeaturedImgNav"/>
                                                    </div>
                                                    <div className="good__gallerySliderItemNav">
                                                        <img alt="alt" src="https://algaph.com/wp-content/uploads/2018/08/50-ml_0007-150x147.jpg" className="good__gallerySliderFeaturedImgNav"/>
                                                    </div>
                                                    <div className="good__gallerySliderItemNav">
                                                        <img alt="alt" src="https://algaph.com/wp-content/uploads/2018/08/youtube_4.jpg" className="good__gallerySliderFeaturedImgNav"/>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div className="summary entry-summary">
                                        <h1 className="product_title entry-title">Детский крем</h1>
                                        <div className="goodSingle__excerpt">
                                            гипоалергенный крем 5 мл
                                        </div>

                                        <div className="goodSingle__descr">
                                            Гипоаллергенный крем Alga Ph великолепно подойдет для особо
                                            чувствительной нежной кожи. Крем быстро заживляет и увлажняет кожу, а
                                            его состав дает возможность использоваться крем с первых месяцев жизни.
                                        </div>

                                        <div className="goodSingle__table">
                                            <div className="tr">
                                                <div className="th">Цена</div>
                                                <div className="th">Количество</div>
                                                <div className="th">Доставка</div>
                                            </div>
                                            <div className="tr">
                                                <div className="td">
                                                    <div className="price"><span
                                                        className="woocommerce-Price-amount amount">185<span
                                                        className="woocommerce-Price-currencySymbol">грн</span></span>
                                                    </div>
                                                </div>
                                                <div className="td">
                                                    <form className="cart" method="post">
                                                        <div className="quantity__wrap">
                                                            <div className="quantity">
                                                                <label className="screen-reader-text">Количество</label>
                                                                <input type="number" className="input-text qty text"
                                                                       step="1" min="0" max="" name="quantity" defaultValue="1"
                                                                       title="Кол-во" size="4" pattern="[0-9]*"
                                                                       inputMode="numeric"/>
                                                                    <div className="inc button">+</div>
                                                                    <div className="dec button">-</div>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                                <div className="td terms">
                                                    <div className="good_shipping_terms">
                                                        <div className="good_shipping_imgWrap">
                                                            <img src="https://algaph.com/wp-content/uploads/2018/08/shipping-e1535634026174.png"/>
                                                        </div>
                                                        <div className="good_shipping_text">
                                                            Бесплатная при<br/> заказе от 299 грн
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <div className="tr">
                                                <div className="td">&nbsp;</div>
                                                <div className="td">
                                                    <button type="submit" data-product_id="107" data-product_sku="ss"
                                                            data-quantity="1" className="button product_type_simple">В
                                                        корзину
                                                    </button>
                                                </div>
                                                <div className="td">&nbsp;</div>
                                            </div>
                                        </div>
                                        <div className="woocommerce-product-details__short-description">
                                            <p>Крем для</p>
                                        </div>
                                    </div>
                                        <div className="woocommerce-tabs wc-tabs-wrapper">
                                            <ul className="tabs wc-tabs" role="tablist">
                                                <li className="description_tab active">
                                                    <a href="#tab-description">Описание</a>
                                                </li>
                                                <li className="ingredients_tab">
                                                    <a href="#tab-ingredients">Состав</a>
                                                </li>
                                                <li className="usage_tab">
                                                    <a href="#tab-usage">Применение</a>
                                                </li>
                                                <li className="reviews_tab">
                                                    <a href="#tab-reviews">Отзывы (0)</a>
                                                </li>
                                            </ul>



                                            <div className="woocommerce-Tabs-panel woocommerce-Tabs-panel--usage panel entry-content wc-tab" id="tab-usage" style={{background: 'url(&quot;https://algaph.com/wp-content/uploads/2018/08/Nastojka-pri-miome-matki.jpg&quot;) right bottom / auto 385px no-repeat', minHeight: '480px', display: 'none'}}>
                                                <p><strong>Способ нанесения:</strong></p>
                                                <p>
                                                    Крем необходимо нанести тонким слоем на внутреннюю поверхность собственных ладоней,
                                                </p>
                                                <p>
                                                    после чего дайте ему нагреться 15-20 секунд. Теперь крем можно наносить на лицо и тело ребенка.
                                                </p>
                                                <p>
                                                    Особое внимание уделите участкам кожи с явными признаками покраснением или шелушением.
                                                </p>
                                                <p>
                                                    При использовании подгузников, крем <strong><span>Crema</span> <span lang="EN-US">Protettiva</span> <span>dei</span> <span>Piccoli</span></strong> рекомендуется применять ежедневно.
                                                </p>
                                            </div>

                                            <div className="woocommerce-Tabs-panel woocommerce-Tabs-panel--reviews panel entry-content wc-tab" id="tab-reviews" style={{display: 'none'}}>
                                                <div id="reviews" className="woocommerce-Reviews">
                                                    <div id="comments" className="comments">
                                                        <h2 className="woocommerce-Reviews-title">Отзывы</h2>
                                                        <p className="woocommerce-noreviews">Отзывов пока нет.</p>
                                                    </div>

                                                    <div id="review_form_wrapper" className="review_form_wrapper">
                                                        <div id="review_form">
                                                            <div id="respond" className="comment-respond">
                                                                <span id="reply-title" className="comment-reply-title">
                                                                    Будьте первым, кто оставил отзыв на “Детский крем” <small><a id="cancel-comment-reply-link" href="#" style={{display:'none'}}>Отменить ответ</a></small>
                                                                </span>
                                                                <form method="post" id="commentform" className="comment-form" noValidate="">
                                                                    <div className="reply-title-after">Используйте
                                                                        данную форму, чтобы оставить отзыв о товаре или
                                                                        задать вопрос
                                                                    </div>
                                                                    <p className="comment-form-author">
                                                                        <label>Ваше имя &nbsp;<span className="required">*</span></label>
                                                                        <input id="author" name="author" type="text" size="30" aria-required="true" required=""/>
                                                                    </p>
                                                                    <p className="comment-form-email">
                                                                        <label>E-mail &nbsp;<span className="required">*</span></label>
                                                                        <input id="email" name="email" type="email" size="30" aria-required="true" required=""/>
                                                                    </p>
                                                                    <p className="comment-form-comment">
                                                                        <label>Текст сообщения &nbsp;<span className="required">*</span></label>
                                                                        <textarea id="comment" name="comment" cols="45" rows="8"></textarea>
                                                                    </p>
                                                                    <p className="form-submit">
                                                                        <input name="submit" type="submit" id="submit" className="submit" value="Отправить"/>
                                                                        <input type="hidden" name="comment_post_ID" id="comment_post_ID"/>
                                                                        <input type="hidden" name="comment_parent" id="comment_parent"/>
                                                                    </p>
                                                                </form>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div className="clear"></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        );
    }

}

export default ProductSinglePage;
              
            
!
999px

Console