Top Banner
Formula X wearepropeople.com
35

Formula x

May 08, 2015

Download

Technology

Stefan Nistor
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Formula x

Formula X

wearepropeople.com

Page 2: Formula x

About usWe are a Full Service Digital Agency

We work with Stanford University, Infoblox, Maersk, UNICEF, Amnesty International, Samsung, Badgeville, Apigee, etc.

We are on the market since 2000

We Activate in 8 countries with over 170 professionals

70 % of our projects are on the MIGHTY Drupal.

WE ARE PROPEOPLE!

Page 3: Formula x

➢ Frontend development

○ No base theme

○ Responsive design

○ Diamond grid

➢ Backend development

○ Panels everywhere

○ Social media

○ Search

○ Google analytics, events tracker

Agenda

Page 4: Formula x

ResponsiveFrontend

Page 5: Formula x

ResponsiveFrontend

Page 6: Formula x

Say No! for base theme

Frontend

theme.info

name = Formulaxdescription = Formulax custom themepackage = Coreversion = VERSIONcore = 7.x

stylesheets[all][] = css/styles.cssstylesheets[print][] = css/print.css

breakpoints[mobile] = (min-width: 0px)breakpoints[desktop] = (min-width: 768px)

scripts[] = js/response.min.js

; Panels layoutsplugins[panels][layouts] = plugins/layouts

version = "1.0"project = 'Formula X'

Page 7: Formula x

Say No! for base theme

Frontend

● No CSS and JS overriding

● No loading of unused CSS and JS files

Page 8: Formula x

Panels everywhere

Layouts

Page 9: Formula x

Panels everywhere

<div class="two-col">

<div class="container">

<div class="panel-col-first panel-panel">

<div class="panel-col-first-inner">

<?php print $content['left']; ?>

<div class="panel-first-bottom panel-panel">

<?php print $content['left-bottom']; ?>

</div>

</div>

</div>

<div class="panel-col-last panel-panel">

<div class="panel-col-top panel-panel">

<?php print $content['top']; ?>

</div>

<?php print $content['right']; ?>

</div>

</div>

</div>

Page 10: Formula x

Grid logic

Page 11: Formula x

Grid logic

Page 12: Formula x

CSS Logic

.product-grid .views-row a {

display: inline-block;

position: relative;

overflow: hidden;

width: 170px;

height: 170px;

border: 8px solid white;

}

.product-grid .views-row img {

width: 240px;

height: auto;

}

Step 1

Page 13: Formula x

CSS Logic

.product-grid .views-row a {

display: inline-block;

position: relative;

overflow: hidden;

width: 170px;

height: 170px;

border: 8px solid white;

transform: rotate(45deg);

-ms-transform: rotate(45deg);

-webkit-transform: rotate(45deg);

-moz-transform: rotate(45deg);

-o-transform: rotate(45deg);

transform-origin: left top;

-ms-transform-origin: left top;

-webkit-transform-origin: left top;

}

.product-grid .views-row img {

width: 240px;

height: auto;

}

Step 2

Page 14: Formula x

CSS Logic

.product-grid .views-row a {

...

}

.product-grid .views-row img {

width: 240px;

height: auto;

position: absolute;

top: 85px;

left: -85px;

transform: rotate(-45deg);

-ms-transform: rotate(-45deg);

-webkit-transform: rotate(-45deg);

-moz-transform: rotate(-45deg);

-o-transform: rotate(-45deg);

transform-origin: left top;

-ms-transform-origin: left top;

-webkit-transform-origin: left top;

}

Step 3

Page 15: Formula x

CSS Logic

.product-grid .views-row a {

...

}

.product-grid .views-row img {

width: 240px;

height: auto;

position: absolute;

top: 85px;

left: -85px;

transform: rotate(-45deg);

-ms-transform: rotate(-45deg);

-webkit-transform: rotate(-45deg);

-moz-transform: rotate(-45deg);

-o-transform: rotate(-45deg);

transform-origin: left top;

-ms-transform-origin: left top;

-webkit-transform-origin: left top;

}

Step 4

Page 16: Formula x

CSS Logic

.product-grid .views-row a {

margin-left: 124px;

//for even rows with js

}

Step 5

Page 17: Formula x

Backend development

➢ Backend development

○ Panels everywhere

○ Social media

○ Search

○ Google analytics

Page 18: Formula x

Search

Search by keyword

Page 19: Formula x

Search

Modules

● search_api

○ search_api_views

● search_api_solr

● search_api_acquia

Page 20: Formula x

Search

Search API

Page 21: Formula x

Search

Search logic

Search views

Apache Solr

Search page

Render nodes

Build query

Displayresults

get parameters

● node--frmx_product--search-result.tpl.php● node--manicure_img--search-result.tpl.php● node--palette_img--search-result.tpl.php● node--social_content--search-result.tpl.php

Page 22: Formula x

SearchSearch by keyword results

Page 23: Formula x

Search

Search by color

Page 24: Formula x

Search

Search by color results

Page 25: Formula x

Social Media

Page 26: Formula x

Social MediaSing into popup

Page 27: Formula x

Social Media

Module HybridAuth

Page 28: Formula x

PanelsModal + minipanels

Page 29: Formula x

Panels

Modal + minipanels<?php

/**

* A modal login callback.

*/

function frmx_nm_page_callback($js = NULL, $node = NULL) {

// Fall back if $js is not set.

if (!$js) {

drupal_goto('node/' . $node->nid);

}

ctools_include('modal');

ctools_include('ajax');

ctools_include('context');

$context = ctools_context_create('node', $node);

$context->identifier = t('This node');

$context->keyword = 'node';

$contexts = array('panel-node' => $context);

$output[] = ctools_modal_command_display('Content', frmx_nm_panel_mini($node,

'node_modal', $contexts));

print ajax_render($output);

exit;

}

Page 30: Formula x

Google, Events Tracker

Page 31: Formula x

Google, Events Tracker

Page 32: Formula x

Google, Events Tracker

Page 33: Formula x

Google, Events Tracker

Page 34: Formula x

Google, Events Tracker

Page 35: Formula x

Thank You !!