Skip to content

Instantly share code, notes, and snippets.

View whistlerbrad's full-sized avatar

Brad whistlerbrad

View GitHub Profile
@whistlerbrad
whistlerbrad / gallery.html
Last active July 17, 2020 21:44
Grid based lookbook photo gallery
import SwiftUI
import PlaygroundSupport
struct Desktop: View {
var body: some View {
ZStack {
// Image(uiImage: #imageLiteral(resourceName: "IMG_6281.JPG"))
Color(UIColor.systemBlue)
macOS()
}
@whistlerbrad
whistlerbrad / call-to-action.liquid
Created May 9, 2020 03:55
Pipeline - Call to Action section
{%- assign alignment = section.settings.alignment -%}
{%- assign heading = section.settings.title -%}
<div data-section-id="{{ section.id }}" class="{{ section.settings.cta_bg_color }} {{section.settings.alignment}}" style="padding:{{ section.settings.section_padding | times:2 }}em">
{%- if heading != blank -%}
{% case section.settings.heading_style %}
{% when 3 %}
<h1 class="title--flex">{{ heading }}</h1>
{% when 2 %}
@whistlerbrad
whistlerbrad / filename
Last active May 5, 2020 22:05
Broadcast 1.x Testimonials with heading
index-testimonials-heading
@whistlerbrad
whistlerbrad / settings_data.json
Created May 5, 2020 18:45
Debut sample surf store
{
"current": {
"color_text": "#3d4246",
"color_body_text": "#69727b",
"color_sale_text": "#557b97",
"color_button": "#557b97",
"color_button_text": "#fff",
"color_small_button_text_border": "#3d4246",
"color_text_field_text": "#000",
"color_text_field_border": "#949494",
@whistlerbrad
whistlerbrad / header.liquid
Last active April 30, 2020 02:05
Duel logos for Pipeline (mobile/desktop) tested with v4.5.1 - Two files in this GIST - header.liquid and a new file nav-contents-2.liquid
{%- assign transparent_header = false -%}
{%- if template contains 'collection' and collection.image and section.settings.transparent_collection -%}
{%- assign transparent_header = true -%}
{%- elsif template contains 'article' and article.image and section.settings.transparent_article -%}
{%- assign transparent_header = true -%}
{%- elsif template contains 'blog' and section.settings.transparent_blog -%}
{%- assign transparent_header = true -%}
{%- elsif template contains 'page' and section.settings.transparent_page -%}
{%- assign transparent_header = true -%}
@whistlerbrad
whistlerbrad / index-look
Created April 8, 2020 14:06
Broadcast index-look template
"index-look": {
"type": "index-look",
"blocks": {
},
"block_order": [
],
"settings": {
}
},
@whistlerbrad
whistlerbrad / index-columns-custom.liquid
Last active August 30, 2019 17:22
Without lazy-load - From Pipeline 3.1
<div class="homepage-columns {{ section.settings.homepage_columns_color }}">
<div class="wrapper">
{% if section.settings.title != blank %}
<h4 class="home__subtitle">{{ section.settings.title | escape }}</h4>
{% endif %}
<div class="grid {% unless section.blocks.size == 5 %}grid-uniform{% endunless %}">
{%- assign grid_item_width = 'large--one-third medium--one-third' -%}
{%- assign image_size = '530x' -%}
{% case section.blocks.size %}
@whistlerbrad
whistlerbrad / settings_data.json
Created June 8, 2019 21:28
Solution - Fixed version
{
"current": {
"color_account_bg": "#f3f3f3",
"color_account_text": "#656565",
"color_header_bg": "#ffffff",
"color_header_text": "#656565",
"color_body_bg": "#ffffff",
"color_body_text": "#656565",
"color_primary": "#585e71",
"color_splash": "#3d5e8c",