diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f42cf6a --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.json linguist-language=jsonc \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a638c16 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# OS generated files # +###################### +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db +node_modules/ + +# Shopify CLI files +.shopify/ + +## Release files +release +*.zip diff --git a/.shopifyignore b/.shopifyignore new file mode 100644 index 0000000..7ca8f7c --- /dev/null +++ b/.shopifyignore @@ -0,0 +1,3 @@ +# Shopify no sirve archivos dentro de subcarpetas de assets. +# Las fuentes que usa el tema están en la raíz de assets. +assets/fonts/** diff --git a/.theme-check.yml b/.theme-check.yml new file mode 100644 index 0000000..f9576a6 --- /dev/null +++ b/.theme-check.yml @@ -0,0 +1 @@ +extends: theme-check:recommended diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..1910b17 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,1489 @@ +# AGENTS.md + +🚨 MANDATORY: YOU MUST CALL "learn_shopify_api" ONCE WHEN WORKING WITH LIQUID THEMES. + +Use the [Shopify AI Toolkit](https://shopify.dev/docs/apps/build/ai-toolkit) for all Shopify API and platform work. If missing, install it in the agent host per that page (or `npx skills add Shopify/shopify-ai-toolkit --list` for skill-compatible hosts). + +## Theme Architecture + +**Key principles: focus on generating snippets, blocks, and sections; users may create templates using the theme editor** + +### Directory structure + +``` +. +├── assets # Stores static assets (CSS, JS, images, fonts, etc.) +├── blocks # Reusable, nestable, customizable components +├── config # Global theme settings and customization options +├── layout # Top-level wrappers for pages (layout templates) +├── locales # Translation files for theme internationalization +├── sections # Modular full-width page components +├── snippets # Reusable Liquid code or HTML fragments +└── templates # Templates combining sections and blocks to define page structures +``` + +#### `sections` + +- Sections are `.liquid` files that allow you to create reusable modules that can be customized by merchants +- Sections can include blocks which allow merchants to add, remove, and reorder content within a section +- Sections are made customizable by including the required `{% schema %}` tag that exposes settings in the theme editor via a JSON object. Validate that JSON object using the `schemas/section.json` JSON schema +- Examples of sections: hero banners, product grids, testimonials, featured collections + +#### `blocks` + +- Blocks are `.liquid` files that allow you to create reusable small components that can be customized by merchants (they don't need to fit the full-width of the page) +- Blocks are ideal for logic that needs to be reused and also edited in the theme editor by merchants +- Blocks can include other nested blocks which allow merchants to add, remove, and reorder content within a block too +- Blocks are made customizable by including the required `{% schema %}` tag that exposes settings in the theme editor via a JSON object. Validate that JSON object using the `schemas/theme_block.json` JSON schema +- Blocks must have the `{% doc %}` tag as the header if you directly/staticly render them in other file via `{% content_for 'block', id: '42', type: 'block_name' %}` +- Examples of blocks: individual testimonials, slides in a carousel, feature items + +#### `snippets` + +- Snippets are reusable code fragments rendered in blocks, sections, and layouts files via the `render` tag +- Snippets are ideal for logic that needs to be reused but not directly edited in the theme editor by merchants +- Snippets accept parameters when rendered for dynamic behavior +- Snippets must have the `{% doc %}` tag as the header +- Examples of sections: buttons, meta-tags, css-variables, and form elements + +#### `layout` + +- Defines the overall HTML structure of the site, including `` and ``, and wraps other templates to provide a consistent frame +- Contains repeated global elements like navigation, cart drawer, footer, and usually includes CSS/JS assets and meta tags +- Must include `{{ content_for_header }}` to inject Shopify scripts in the `` and `{{ content_for_layout }}` to render the page content + +#### `config` + +- `config/settings_schema.json` is a JSON file that defines schema for global theme settings. Validate the shape shape of this JSON file using the `schemas/theme_settings.json` JSON schema +- `config/settings_data.json` is JSON file that holds the data for the settings defined by `config/settings_schema.json` + +#### `assets` + +- Contains static files like CSS, JavaScript, and images—including compiled and optimized assets—referenced in templates via the `asset_url` filter +- Keep it here only `critical.css` and static files necessary for every page, otherwise prefer the usage of the `{% stylesheet %}` and `{% javascript %}` tags + +#### `locales` + +- Stores translation files organized by language code (e.g., `en.default.json`, `fr.json`) to localize all user-facing theme content and editor strings +- Enables multi-language support by providing translations accessible via filters like `{{ 'key' | t }}` in Liquid for proper internationalization +- Validate `locales` JSON files using the `schemas/translations.json` JSON schema + +#### `templates` + +- JSON file that define the structure, ordering, and which sections and blocks appear on each page type, allowing merchants to customize layouts without code changes + +### CSS & JavaScript + +- Write CSS and JavaScript per components using the `{% stylesheet %}` and `{% javascript %}` tags +- Note: `{% stylesheet %}` and `{% javascript %}` are only supported in `snippets/`, `blocks/`, and `sections/` + +### LiquidDoc + +Snippets and blocks (when blocks are statically rendered) must include the LiquidDoc header that documents the purpose of the file and required parameters. Example: + +```liquid +{% doc %} + Renders a responsive image that might be wrapped in a link. + + @param {image} image - The image to be rendered + @param {string} [url] - An optional destination URL for the image + + @example + {% render 'image', image: product.featured_image %} +{% enddoc %} + +{{ image | image_url: width: 200, height: 200 | image_tag }} +``` + +## The `{% schema %}` tag on blocks and sections + +**Key principles: follow the "Good practices" and "Validate the `{% schema %}` content" using JSON schemas** + +### Good practices + +When defining the `{% schema %}` tag on sections and blocks, follow these guidelines to use the values: + +**Single property settings**: For settings that correspond to a single CSS property, use CSS variables: +```liquid +
+ Example +
+ +{% stylesheet %} + .collection { + gap: var(--gap); + } +{% endstylesheet %} + +{% schema %} +{ + "settings": [{ + "type": "range", + "label": "gap", + "id": "gap", + "min": 0, + "max": 100, + "unit": "px", + "default": 0, + }] +} +{% endschema %} +``` + +**Multiple property settings**: For settings that control multiple CSS properties, use CSS classes: +```liquid +
+ Example +
+ +{% stylesheet %} + .collection--full-width { + /* multiple styles */ + } + .collection--narrow { + /* multiple styles */ + } +{% endstylesheet %} + +{% schema %} +{ + "settings": [{ + "type": "select", + "id": "layout", + "label": "layout", + "values": [ + { "value": "collection--full-width", "label": "t:options.full" }, + { "value": "collection--narrow", "label": "t:options.narrow" } + ] + }] +} +{% endschema %} +``` + +#### Mobile layouts + +If you need to create a mobile layout and you want the merchant to be able to select one or two columns, use a select input: + +```liquid +{% schema %} +{ + "type": "select", + "id": "columns_mobile", + "label": "Columns on mobile", + "options": [ + { "value": 1, "label": "1" }, + { "value": "2", "label": "2" } + ] +} +{% endschema %} +``` + +## Liquid + +### Liquid delimiters + +- **`{{ ... }}`**: Output – prints a value. +- **`{{- ... -}}`**: Output, trims whitespace around the value. +- **`{% ... %}`**: Logic/control tag (if, for, assign, etc.), does not print anything, no whitespace trim. +- **`{%- ... -%}`**: Logic/control tag, trims whitespace around the tag. + +**Tip:** +Adding a dash (`-`) after `{%`/`{{` or before `%}`/`}}` trims spaces or newlines next to the tag. + +**Examples:** +- `{{- product.title -}}` → print value, remove surrounding spaces or lines. +- `{%- if available -%}In stock{%- endif -%}` → logic, removes extra spaces/lines. + +### Liquid operators + +**Comparison operators:** +- == +- != +- > +- < +- >= +- <= + +**Logical operators:** +- `or` +- `and` +- `contains` - checks if a string contains a substring, or if an array contains a string + +#### Comparison and comparison tags + +**Key condition principles:** +- For simplificity, ALWAYS use nested `if` conditions when the logic requires more than one logical operator +- Parentheses are not supported in Liquid +- Ternary conditionals are not supported in Liquid, so always use `{% if cond %}` + +**Basic comparison example:** +```liquid +{% if product.title == "Awesome Shoes" %} + These shoes are awesome! +{% endif %} +``` + +**Multiple Conditions:** +```liquid +{% if product.type == "Shirt" or product.type == "Shoes" %} + This is a shirt or a pair of shoes. +{% endif %} +``` + +**Contains Usage:** +- For strings: `{% if product.title contains "Pack" %}` +- For arrays: `{% if product.tags contains "Hello" %}` +- Note: `contains` only works with strings, not objects in arrays + +**{% elsif %} (used inside if/unless only)** +```liquid +{% if a %} + ... +{% elsif b %} + ... +{% endif %} +``` + +**{% unless %}** +```liquid +{% unless condition %} + ... +{% endunless %} +``` + +**{% case %}** +```liquid +{% case variable %} + {% when 'a' %} + a + {% when 'b' %} + b + {% else %} + other +{% endcase %} +``` + +**{% else %} (used inside if, unless, case, or for)** +```liquid +{% if product.available %} + In stock +{% else %} + Sold out +{% endif %} +``` +_or inside a for loop:_ +```liquid +{% for item in collection.products %} + {{ item.title }} +{% else %} + No products found. +{% endfor %} +``` + +#### Variables and variable tags + +```liquid +{% assign my_variable = 'value' %} + +{% capture my_variable %} + Contents of variable +{% endcapture %} + +{% increment counter %} +{% decrement counter %} +``` + +### Liquid filters + +You can chain filters in Liquid, passing the result of one filter as the input to the next. + +See these filters: + +- `upcase`: `{{ string | upcase }}` returns a **string** +- `split`: `{{ string | split: string }}` returns an **array** (as we may notice in the docs, `split` receives a string as its argument) +- `last`: `{{ array | last }}` returns **untyped** + +Each filter can pass its return value to the next filter as long as the types match. + +For example, `upcase` returns a string, which is suitable input for `split`, which then produces an array for `last` to use. + +Here's how the filters are executed step by step to eventually return `"WORLD"`: + +```liquid +{{ "hello world" | upcase | split: " " | last }} +``` + +- First, `"hello world"` is converted to uppercase: `"HELLO WORLD"`, which is a string +- Next, `split` can act on strings, so it splits the value by space into an array: `["HELLO", "WORLD"]` +- Finally, the `last` filter work with array, so `"WORLD"` is returned + +#### Array +- `compact`: `{{ array | compact }}` returns `array` +- `concat`: `{{ array | concat: array }}` returns `array` +- `find`: `{{ array | find: string, string }}` returns `untyped` +- `find_index`: `{{ array | find_index: string, string }}` returns `number` +- `first`: `{{ array | first }}` returns `untyped` +- `has`: `{{ array | has: string, string }}` returns `boolean` +- `join`: `{{ array | join }}` returns `string` +- `last`: `{{ array | last }}` returns `untyped` +- `map`: `{{ array | map: string }}` returns `array` +- `reject`: `{{ array | reject: string, string }}` returns `array` +- `reverse`: `{{ array | reverse }}` returns `array` +- `size`: `{{ variable | size }}` returns `number` +- `sort`: `{{ array | sort }}` returns `array` +- `sort_natural`: `{{ array | sort_natural }}` returns `array` +- `sum`: `{{ array | sum }}` returns `number` +- `uniq`: `{{ array | uniq }}` returns `array` +- `where`: `{{ array | where: string, string }}` returns `array` + +#### Cart +- `item_count_for_variant`: `{{ cart | item_count_for_variant: {variant_id} }}` returns `number` +- `line_items_for`: `{{ cart | line_items_for: object }}` returns `array` + +#### Collection +- `link_to_type`: `{{ string | link_to_type }}` returns `string` +- `link_to_vendor`: `{{ string | link_to_vendor }}` returns `string` +- `sort_by`: `{{ string | sort_by: string }}` returns `string` +- `url_for_type`: `{{ string | url_for_type }}` returns `string` +- `url_for_vendor`: `{{ string | url_for_vendor }}` returns `string` +- `within`: `{{ string | within: collection }}` returns `string` +- `highlight_active_tag`: `{{ string | highlight_active_tag }}` returns `string` + +#### Color +- `brightness_difference`: `{{ string | brightness_difference: string }}` returns `number` +- `color_brightness`: `{{ string | color_brightness }}` returns `number` +- `color_contrast`: `{{ string | color_contrast: string }}` returns `number` +- `color_darken`: `{{ string | color_darken: number }}` returns `string` +- `color_desaturate`: `{{ string | color_desaturate: number }}` returns `string` +- `color_difference`: `{{ string | color_difference: string }}` returns `number` +- `color_extract`: `{{ string | color_extract: string }}` returns `number` +- `color_lighten`: `{{ string | color_lighten: number }}` returns `string` +- `color_mix`: `{{ string | color_mix: string, number }}` returns `string` +- `color_modify`: `{{ string | color_modify: string, number }}` returns `string` +- `color_saturate`: `{{ string | color_saturate: number }}` returns `string` +- `color_to_hex`: `{{ string | color_to_hex }}` returns `string` +- `color_to_hsl`: `{{ string | color_to_hsl }}` returns `string` +- `color_to_oklch`: `{{ string | color_to_oklch }}` returns `string` +- `color_to_rgb`: `{{ string | color_to_rgb }}` returns `string` +- `hex_to_rgba`: `{{ string | hex_to_rgba }}` returns `string` + +#### Customer +- `customer_login_link`: `{{ string | customer_login_link }}` returns `string` +- `customer_logout_link`: `{{ string | customer_logout_link }}` returns `string` +- `customer_register_link`: `{{ string | customer_register_link }}` returns `string` +- `avatar`: `{{ customer | avatar }}` returns `string` +- `login_button`: `{{ shop | login_button }}` returns `string` + +#### Date +- `date`: `{{ date | date: string }}` returns `string` + +#### Default +- `default_errors`: `{{ string | default_errors }}` returns `string` +- `default`: `{{ variable | default: variable }}` returns `untyped` +- `default_pagination`: `{{ paginate | default_pagination }}` returns `string` + +#### Font +- `font_face`: `{{ font | font_face }}` returns `string` +- `font_modify`: `{{ font | font_modify: string, string }}` returns `font` +- `font_url`: `{{ font | font_url }}` returns `string` + +#### Format +- `date`: `{{ string | date: string }}` returns `string` +- `json`: `{{ variable | json }}` returns `string` +- `structured_data`: `{{ variable | structured_data }}` returns `string` +- `unit_price_with_measurement`: `{{ number | unit_price_with_measurement: unit_price_measurement }}` returns `string` +- `weight_with_unit`: `{{ number | weight_with_unit }}` returns `string` + +#### Hosted_file +- `asset_img_url`: `{{ string | asset_img_url }}` returns `string` +- `asset_url`: `{{ string | asset_url }}` returns `string` +- `file_img_url`: `{{ string | file_img_url }}` returns `string` +- `file_url`: `{{ string | file_url }}` returns `string` +- `global_asset_url`: `{{ string | global_asset_url }}` returns `string` +- `shopify_asset_url`: `{{ string | shopify_asset_url }}` returns `string` + +#### Html +- `time_tag`: `{{ string | time_tag: string }}` returns `string` +- `inline_asset_content`: `{{ asset_name | inline_asset_content }}` returns `string` +- `highlight`: `{{ string | highlight: string }}` returns `string` +- `link_to`: `{{ string | link_to: string }}` returns `string` +- `placeholder_svg_tag`: `{{ string | placeholder_svg_tag }}` returns `string` +- `preload_tag`: `{{ string | preload_tag: as: string }}` returns `string` +- `script_tag`: `{{ string | script_tag }}` returns `string` +- `stylesheet_tag`: `{{ string | stylesheet_tag }}` returns `string` + +#### Localization +- `currency_selector`: `{{ form | currency_selector }}` returns `string` +- `translate`: `{{ string | t }}` returns `string` +- `format_address`: `{{ address | format_address }}` returns `string` + +#### Math +- `abs`: `{{ number | abs }}` returns `number` +- `at_least`: `{{ number | at_least }}` returns `number` +- `at_most`: `{{ number | at_most }}` returns `number` +- `ceil`: `{{ number | ceil }}` returns `number` +- `divided_by`: `{{ number | divided_by: number }}` returns `number` +- `floor`: `{{ number | floor }}` returns `number` +- `minus`: `{{ number | minus: number }}` returns `number` +- `modulo`: `{{ number | modulo: number }}` returns `number` +- `plus`: `{{ number | plus: number }}` returns `number` +- `round`: `{{ number | round }}` returns `number` +- `times`: `{{ number | times: number }}` returns `number` + +#### Media +- `external_video_tag`: `{{ variable | external_video_tag }}` returns `string` +- `external_video_url`: `{{ media | external_video_url: attribute: string }}` returns `string` +- `image_tag`: `{{ string | image_tag }}` returns `string` +- `media_tag`: `{{ media | media_tag }}` returns `string` +- `model_viewer_tag`: `{{ media | model_viewer_tag }}` returns `string` +- `video_tag`: `{{ media | video_tag }}` returns `string` +- `article_img_url`: `{{ variable | article_img_url }}` returns `string` +- `collection_img_url`: `{{ variable | collection_img_url }}` returns `string` +- `image_url`: `{{ variable | image_url: width: number, height: number }}` returns `string` +- `img_tag`: `{{ string | img_tag }}` returns `string` +- `img_url`: `{{ variable | img_url }}` returns `string` +- `product_img_url`: `{{ variable | product_img_url }}` returns `string` + +#### Metafield +- `metafield_tag`: `{{ metafield | metafield_tag }}` returns `string` +- `metafield_text`: `{{ metafield | metafield_text }}` returns `string` + +#### Money +- `money`: `{{ number | money }}` returns `string` +- `money_with_currency`: `{{ number | money_with_currency }}` returns `string` +- `money_without_currency`: `{{ number | money_without_currency }}` returns `string` +- `money_without_trailing_zeros`: `{{ number | money_without_trailing_zeros }}` returns `string` + +#### Payment +- `payment_button`: `{{ form | payment_button }}` returns `string` +- `payment_terms`: `{{ form | payment_terms }}` returns `string` +- `payment_type_img_url`: `{{ string | payment_type_img_url }}` returns `string` +- `payment_type_svg_tag`: `{{ string | payment_type_svg_tag }}` returns `string` + +#### String +- `blake3`: `{{ string | blake3 }}` returns `string` +- `hmac_sha1`: `{{ string | hmac_sha1: string }}` returns `string` +- `hmac_sha256`: `{{ string | hmac_sha256: string }}` returns `string` +- `md5`: `{{ string | md5 }}` returns `string` +- `sha1`: `{{ string | sha1: string }}` returns `string` +- `sha256`: `{{ string | sha256: string }}` returns `string` +- `append`: `{{ string | append: string }}` returns `string` +- `base64_decode`: `{{ string | base64_decode }}` returns `string` +- `base64_encode`: `{{ string | base64_encode }}` returns `string` +- `base64_url_safe_decode`: `{{ string | base64_url_safe_decode }}` returns `string` +- `base64_url_safe_encode`: `{{ string | base64_url_safe_encode }}` returns `string` +- `capitalize`: `{{ string | capitalize }}` returns `string` +- `downcase`: `{{ string | downcase }}` returns `string` +- `escape`: `{{ string | escape }}` returns `string` +- `escape_once`: `{{ string | escape_once }}` returns `string` +- `lstrip`: `{{ string | lstrip }}` returns `string` +- `newline_to_br`: `{{ string | newline_to_br }}` returns `string` +- `prepend`: `{{ string | prepend: string }}` returns `string` +- `remove`: `{{ string | remove: string }}` returns `string` +- `remove_first`: `{{ string | remove_first: string }}` returns `string` +- `remove_last`: `{{ string | remove_last: string }}` returns `string` +- `replace`: `{{ string | replace: string, string }}` returns `string` +- `replace_first`: `{{ string | replace_first: string, string }}` returns `string` +- `replace_last`: `{{ string | replace_last: string, string }}` returns `string` +- `rstrip`: `{{ string | rstrip }}` returns `string` +- `slice`: `{{ string | slice }}` returns `string` +- `split`: `{{ string | split: string }}` returns `array` +- `strip`: `{{ string | strip }}` returns `string` +- `strip_html`: `{{ string | strip_html }}` returns `string` +- `strip_newlines`: `{{ string | strip_newlines }}` returns `string` +- `truncate`: `{{ string | truncate: number }}` returns `string` +- `truncatewords`: `{{ string | truncatewords: number }}` returns `string` +- `upcase`: `{{ string | upcase }}` returns `string` +- `url_decode`: `{{ string | url_decode }}` returns `string` +- `url_encode`: `{{ string | url_encode }}` returns `string` +- `camelize`: `{{ string | camelize }}` returns `string` +- `handleize`: `{{ string | handleize }}` returns `string` +- `url_escape`: `{{ string | url_escape }}` returns `string` +- `url_param_escape`: `{{ string | url_param_escape }}` returns `string` +- `pluralize`: `{{ number | pluralize: string, string }}` returns `string` + +#### Tag +- `link_to_add_tag`: `{{ string | link_to_add_tag }}` returns `string` +- `link_to_remove_tag`: `{{ string | link_to_remove_tag }}` returns `string` +- `link_to_tag`: `{{ string | link_to_tag }}` returns `string` + +### Liquid objects + +#### Global objects +- `collections` +- `pages` +- `all_products` +- `articles` +- `blogs` +- `cart` +- `closest` +- `content_for_header` +- `customer` +- `images` +- `linklists` +- `localization` +- `metaobjects` +- `request` +- `routes` +- `shop` +- `theme` +- `settings` +- `template` +- `additional_checkout_buttons` +- `all_country_option_tags` +- `canonical_url` +- `content_for_additional_checkout_buttons` +- `content_for_index` +- `content_for_layout` +- `country_option_tags` +- `current_page` +- `handle` +- `page_description` +- `page_image` +- `page_title` +- `powered_by_link` +- `scripts` + +#### `/article` page +- `article` +- `blog` + +#### `/blog` page +- `blog` +- `current_tags` + +#### `/cart` page +- `cart` + +#### `/checkout` page +- `checkout` + +#### `/collection` page +- `collection` +- `current_tags` + +#### `/customers/account` page +- `customer` + +#### `/customers/addresses` page +- `customer` + +#### `/customers/order` page +- `customer` +- `order` + +#### `/gift_card.liquid` page +- `gift_card` +- `recipient` + +#### `/metaobject` page +- `metaobject` + +#### `/page` page +- `page` + +#### `/product` page +- `product` +- `remote_product` + +#### `/robots.txt.liquid` page +- `robots` + +#### `/search` page +- `search` +### Liquid tags + + +#### content_for +The `content_for` tag requires a type parameter to differentiate between rendering a number of theme blocks (`'blocks'`) and a single static block (`'block'`). + + +Syntax: +``` +{% content_for 'blocks' %} +{% content_for 'block', type: "slide", id: "slide-1" %} +``` + +#### form +Because there are many different form types available in Shopify themes, the `form` tag requires a type. Depending on the +form type, an additional parameter might be required. You can specify the following form types: + +- [`activate_customer_password`](https://shopify.dev/docs/api/liquid/tags/form#form-activate_customer_password) +- [`cart`](https://shopify.dev/docs/api/liquid/tags/form#form-cart) +- [`contact`](https://shopify.dev/docs/api/liquid/tags/form#form-contact) +- [`create_customer`](https://shopify.dev/docs/api/liquid/tags/form#form-create_customer) +- [`currency`](https://shopify.dev/docs/api/liquid/tags/form#form-currency) +- [`customer`](https://shopify.dev/docs/api/liquid/tags/form#form-customer) +- [`customer_address`](https://shopify.dev/docs/api/liquid/tags/form#form-customer_address) +- [`customer_login`](https://shopify.dev/docs/api/liquid/tags/form#form-customer_login) +- [`guest_login`](https://shopify.dev/docs/api/liquid/tags/form#form-guest_login) +- [`localization`](https://shopify.dev/docs/api/liquid/tags/form#form-localization) +- [`new_comment`](https://shopify.dev/docs/api/liquid/tags/form#form-new_comment) +- [`product`](https://shopify.dev/docs/api/liquid/tags/form#form-product) +- [`recover_customer_password`](https://shopify.dev/docs/api/liquid/tags/form#form-recover_customer_password) +- [`reset_customer_password`](https://shopify.dev/docs/api/liquid/tags/form#form-reset_customer_password) +- [`storefront_password`](https://shopify.dev/docs/api/liquid/tags/form#form-storefront_password) + + +Syntax: +``` +{% form 'form_type' %} + content +{% endform %} +``` + +#### layout + +Syntax: +``` +{% layout name %} +``` + +#### assign +You can create variables of any [basic type](https://shopify.dev/docs/api/liquid/basics#types), [object](https://shopify.dev/docs/api/liquid/objects), or object property. + +> Caution: +> Predefined Liquid objects can be overridden by variables with the same name. +> To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name. + + +Syntax: +``` +{% assign variable_name = value %} +``` + +#### break + +Syntax: +``` +{% break %} +``` + +#### capture +You can create complex strings with Liquid logic and variables. + +> Caution: +> Predefined Liquid objects can be overridden by variables with the same name. +> To make sure that you can access all Liquid objects, make sure that your variable name doesn't match a predefined object's name. + + +Syntax: +``` +{% capture variable %} + value +{% endcapture %} +``` + +#### case + +Syntax: +``` +{% case variable %} + {% when first_value %} + first_expression + {% when second_value %} + second_expression + {% else %} + third_expression +{% endcase %} +``` + +#### comment +Any text inside `comment` tags won't be output, and any Liquid code will be parsed, but not executed. + + +Syntax: +``` +{% comment %} + content +{% endcomment %} +``` + +#### continue + +Syntax: +``` +{% continue %} +``` + +#### cycle +The `cycle` tag must be used inside a `for` loop. + +> Tip: +> Use the `cycle` tag to output text in a predictable pattern. For example, to apply odd/even classes to rows in a table. + + +Syntax: +``` +{% cycle string, string, ... %} +``` + +#### decrement +Variables that are declared with `decrement` are unique to the [layout](/themes/architecture/layouts), [template](/themes/architecture/templates), +or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across +[snippets](/themes/architecture/snippets) included in the file. + +Similarly, variables that are created with `decrement` are independent from those created with [`assign`](https://shopify.dev/docs/api/liquid/tags/assign) +and [`capture`](https://shopify.dev/docs/api/liquid/tags/capture). However, `decrement` and [`increment`](https://shopify.dev/docs/api/liquid/tags/increment) share +variables. + + +Syntax: +``` +{% decrement variable_name %} +``` + +#### doc +The `doc` tag allows developers to include documentation within Liquid +templates. Any content inside `doc` tags is not rendered or outputted. +Liquid code inside will be parsed but not executed. This facilitates +tooling support for features like code completion, linting, and inline +documentation. + +For detailed documentation syntax and examples, see the +[`LiquidDoc` reference](https://shopify.dev/docs/storefronts/themes/tools/liquid-doc). + + +Syntax: +``` +{% doc %} + Renders a message. + + @param {string} foo - A string value. + @param {string} [bar] - An optional string value. + + @example + {% render 'message', foo: 'Hello', bar: 'World' %} +{% enddoc %} +``` + +#### echo +Using the `echo` tag is the same as wrapping an expression in curly brackets (`{{` and `}}`). However, unlike the curly +bracket method, you can use the `echo` tag inside [`liquid` tags](https://shopify.dev/docs/api/liquid/tags/liquid). + +> Tip: +> You can use [filters](https://shopify.dev/docs/api/liquid/filters) on expressions inside `echo` tags. + + +Syntax: +``` +{% liquid + echo expression +%} +``` + +#### for +You can do a maximum of 50 iterations with a `for` loop. If you need to iterate over more than 50 items, then use the +[`paginate` tag](https://shopify.dev/docs/api/liquid/tags/paginate) to split the items over multiple pages. + +> Tip: +> Every `for` loop has an associated [`forloop` object](https://shopify.dev/docs/api/liquid/objects/forloop) with information about the loop. + + +Syntax: +``` +{% for variable in array %} + expression +{% endfor %} +``` + +#### if + +Syntax: +``` +{% if condition %} + expression +{% endif %} +``` + +#### increment +Variables that are declared with `increment` are unique to the [layout](/themes/architecture/layouts), [template](/themes/architecture/templates), +or [section](/themes/architecture/sections) file that they're created in. However, the variable is shared across +[snippets](/themes/architecture/snippets) included in the file. + +Similarly, variables that are created with `increment` are independent from those created with [`assign`](https://shopify.dev/docs/api/liquid/tags/assign) +and [`capture`](https://shopify.dev/docs/api/liquid/tags/capture). However, `increment` and [`decrement`](https://shopify.dev/docs/api/liquid/tags/decrement) share +variables. + + +Syntax: +``` +{% increment variable_name %} +``` + +#### raw + +Syntax: +``` +{% raw %} + expression +{% endraw %} +``` + +#### render +Inside snippets and app blocks, you can't directly access variables that are [created](https://shopify.dev/docs/api/liquid/tags/variable-tags) outside +of the snippet or app block. However, you can [specify variables as parameters](https://shopify.dev/docs/api/liquid/tags/render#render-passing-variables-to-a-snippet) +to pass outside variables to snippets. + +While you can't directly access created variables, you can access global objects, as well as any objects that are +directly accessible outside the snippet or app block. For example, a snippet or app block inside the [product template](/themes/architecture/templates/product) +can access the [`product` object](https://shopify.dev/docs/api/liquid/objects/product), and a snippet or app block inside a [section](/themes/architecture/sections) +can access the [`section` object](https://shopify.dev/docs/api/liquid/objects/section). + +Outside a snippet or app block, you can't access variables created inside the snippet or app block. + +> Note: +> When you render a snippet using the `render` tag, you can't use the [`include` tag](https://shopify.dev/docs/api/liquid/tags/include) +> inside the snippet. + + +Syntax: +``` +{% render 'filename' %} +``` + +#### tablerow +The `tablerow` tag must be wrapped in HTML `` and `
` tags. + +> Tip: +> Every `tablerow` loop has an associated [`tablerowloop` object](https://shopify.dev/docs/api/liquid/objects/tablerowloop) with information about the loop. + + +Syntax: +``` +{% tablerow variable in array %} + expression +{% endtablerow %} +``` + +#### unless +> Tip: +> Similar to the [`if` tag](https://shopify.dev/docs/api/liquid/tags/if), you can use `elsif` to add more conditions to an `unless` tag. + + +Syntax: +``` +{% unless condition %} + expression +{% endunless %} +``` + +#### paginate +Because [`for` loops](https://shopify.dev/docs/api/liquid/tags/for) are limited to 50 iterations per page, you need to use the `paginate` tag to +iterate over an array that has more than 50 items. The following arrays can be paginated: + +- [`article.comments`](https://shopify.dev/docs/api/liquid/objects/article#article-comments) +- [`blog.articles`](https://shopify.dev/docs/api/liquid/objects/blog#blog-articles) +- [`collections`](https://shopify.dev/docs/api/liquid/objects/collections) +- [`collection.products`](https://shopify.dev/docs/api/liquid/objects/collection#collection-products) +- [`customer.addresses`](https://shopify.dev/docs/api/liquid/objects/customer#customer-addresses) +- [`customer.orders`](https://shopify.dev/docs/api/liquid/objects/customer#customer-orders) +- [`metaobject_definition.values`](https://shopify.dev/docs/api/liquid/objects/metaobject_definition#metaobject_definition-values) +- [`pages`](https://shopify.dev/docs/api/liquid/objects/pages) +- [`product.variants`](https://shopify.dev/docs/api/liquid/objects/product#variants) +- [`search.results`](https://shopify.dev/docs/api/liquid/objects/search#search-results) +- [`article_list` settings](/themes/architecture/settings/input-settings#article_list) +- [`collection_list` settings](/themes/architecture/settings/input-settings#collection_list) +- [`product_list` settings](/themes/architecture/settings/input-settings#product_list) + +Within the `paginate` tag, you have access to the [`paginate` object](https://shopify.dev/docs/api/liquid/objects/paginate). You can use this +object, or the [`default_pagination` filter](https://shopify.dev/docs/api/liquid/filters/default_pagination), to build page navigation. + +> Note: +> The `paginate` tag allows the user to paginate to the 25,000th item in the array and no further. To reach items further in +> the array the array should be filtered further before paginating. See +> [Pagination Limits](/themes/best-practices/performance/platform#pagination-limits) for more information. + + +Syntax: +``` +{% paginate array by page_size %} + {% for item in array %} + forloop_content + {% endfor %} +{% endpaginate %} +``` + +#### javascript +Each section, block or snippet can have only one `{% javascript %}` tag. + +To learn more about how JavaScript that's defined between the `javascript` tags is loaded and run, refer to the documentation for [javascript tags](/storefronts/themes/best-practices/javascript-and-stylesheet-tags#javascript). +> Caution: +> Liquid isn't rendered inside of `{% javascript %}` tags. Including Liquid code can cause syntax errors. + + +Syntax: +``` +{% javascript %} + javascript_code +{% endjavascript %} +``` + +#### section +Rendering a section with the `section` tag renders a section statically. To learn more about sections and how to use +them in your theme, refer to [Render a section](/themes/architecture/sections#render-a-section). + + +Syntax: +``` +{% section 'name' %} +``` + +#### stylesheet +Each section, block or snippet can have only one `{% stylesheet %}` tag. + +To learn more about how CSS that's defined between the `stylesheet` tags is loaded and run, refer to the documentation for [stylesheet tags](/storefronts/themes/best-practices/javascript-and-stylesheet-tags#stylesheet). +> Caution: +> Liquid isn't rendered inside of `{% stylesheet %}` tags. Including Liquid code can cause syntax errors. + + +Syntax: +``` +{% stylesheet %} + css_styles +{% endstylesheet %} +``` + +#### sections +Use this tag to render section groups as part of the theme's [layout](/themes/architecture/layouts) content. Place the `sections` tag where you want to render it in the layout. + +To learn more about section groups and how to use them in your theme, refer to [Section groups](/themes/architecture/section-groups#usage). + + +Syntax: +``` +{% sections 'name' %} +``` + +#### style +> Note: +> If you reference [color settings](/themes/architecture/settings/input-settings#color) inside `style` tags, then +> the associated CSS rules will update as the setting is changed in the theme editor, without a page refresh. + + +Syntax: +``` +{% style %} + CSS_rules +{% endstyle %} +``` + +#### else +You can use the `else` tag with the following tags: + +- [`case`](https://shopify.dev/docs/api/liquid/tags/case) +- [`if`](https://shopify.dev/docs/api/liquid/tags/if) +- [`unless`](https://shopify.dev/docs/api/liquid/tags/unless) + + +Syntax: +``` +{% else %} + expression +``` + +#### else + +Syntax: +``` +{% for variable in array %} + first_expression +{% else %} + second_expression +{% endfor %} +``` + +#### liquid +Because the tags don't have delimeters, each tag needs to be on its own line. + +> Tip: +> Use the [`echo` tag](https://shopify.dev/docs/api/liquid/tags/echo) to output an expression inside `liquid` tags. + + +Syntax: +``` +{% liquid + expression +%} +``` + + +## Translation development standards + +### Translation requirements + +- **Every user-facing text** must use translation filters. +- **Update `locales/en.default.json`** with all new keys. +- **Use descriptive, hierarchical keys** for organization. +- **Only add English text**; translators handle other languages. + +### Translation filter usage + +**Use `{{ 'key' | t }}` for all text:** + +```liquid + +

{{ 'sections.featured_collection.title' | t }}

+

{{ 'sections.featured_collection.description' | t }}

+ + + +

Featured Collection

+

Check out our best products

+ +``` + +### Translation with variables + +**Use variables for interpolation:** + +```liquid + +

{{ 'products.price_range' | t: min: product.price_min | money, max: product.price_max | money }}

+

{{ 'general.pagination.page' | t: page: paginate.current_page, pages: paginate.pages }}

+``` + +**Corresponding keys in locale files:** + +```json +{ + "products": { + "price_range": "From {{ min }} to {{ max }}" + }, + "general": { + "pagination": { + "page": "Page {{ page }} of {{ pages }}" + } + } +} +``` + +### Best practices + +**Content guidelines:** +- Write clear, concise text. +- **Use sentence case** for all user-facing text, including titles, headings, and button labels (capitalize only the first word and proper nouns; e.g., `Featured collection` → `Featured collection`, not `Featured Collection`). +- Be consistent with terminology. +- Consider character limits for UI elements. + +**Variable usage:** +- Use interpolation rather than appending strings together. +- Prioritize clarity over brevity for variable naming. +- Escape variables unless they output HTML: `{{ variable | escape }}`. + + +## Localization standards + +Auto-attached when working in `locales/` directory. + +### File structure + +``` +locales/ +├── en.default.json # English (required) +├── en.default.schema.json # English (required) +├── es.json # Spanish +├── est.schema.json # Spanish +├── fr.json # French +├── frt.schema.json # French +└── pt-BR.json # Portuguese +└── pt-BR..schema.json # Portuguese +``` + +#### Locale files + +Locale files are JSON files containing translations for all the text strings used throughout a Shopify theme and its editor. They let merchants easily update and localize repeated words and phrases, making it possible to translate store content and settings into multiple languages for international customers. These files provide a centralized way to manage and edit translations. + +**Example:** +```json +{ + "general": { + "cart": "Cart", + "checkout": "Checkout" + }, + "products": { + "add_to_cart": "Add to Cart" + } +} +``` + +#### Schema locale files + +Schema locale files, saved with a .schema.json extension, store translation strings specifically for theme editor setting schemas. They follow a structured organization—category, group, and description—to give context to each translation, enabling accurate localization of editor content. Schema locale files must use the IETF language tag format in their naming, such as en-GB.schema.json for British English or fr-CA.schema.json for Canadian French. + +**Example:** +```json +{ + "products": { + "card": { + "description": "Product card layout" + } + } +} +``` + +### Key organization + +**Hierarchical structure:** +```json +{ + "general": { + "meta": { + "title": "{{ shop_name }}", + "description": "{{ shop_description }}" + }, + "accessibility": { + "skip_to_content": "Skip to content", + "close": "Close" + } + }, + "products": { + "add_to_cart": "Add to cart", + "quick_view": "Quick view", + "price": { + "regular": "Regular price", + "sale": "Sale price", + "unit": "Unit price" + } + } +} +``` +**Usage** +```liquid +{{ 'general.meta.title' | t: shop_name: shop.name }} +{{ 'general.meta.description' | t: shop_description: shop.description }} +``` + +### Translation guidelines + +**Key naming:** +- Use descriptive, hierarchical keys +- Maximum 3 levels deep +- Use snake_case for key names +- Group related translations + +**Content rules:** +- Keep text concise for UI elements +- Use variables for dynamic content +- Consider character limits +- Maintain consistent terminology + +## Examples per kind of asset + +### `snippet` + +```liquid +{% doc %} + Renders a responsive image that might be wrapped in a link. + + When `width`, `height` and `crop` are provided, the image will be rendered + with a fixed aspect ratio. + + Serves as an example of how to use the `image_url` filter and `image_tag` filter + as well as how you can use LiquidDoc to document your code. + + @param {image} image - The image to be rendered + @param {string} [url] - An optional destination URL for the image + @param {string} [css_class] - Optional class to be added to the image wrapper + @param {number} [width] - The highest resolution width of the image to be rendered + @param {number} [height] - The highest resolution height of the image to be rendered + @param {string} [crop] - The crop position of the image + + @example + {% render 'image', image: product.featured_image %} + {% render 'image', image: product.featured_image, url: product.url %} + {% render 'image', + css_class: 'product__image', + image: product.featured_image, + url: product.url, + width: 1200, + height: 800, + crop: 'center', + %} +{% enddoc %} + +{% liquid + unless height + assign width = width | default: image.width + endunless + + if url + assign wrapper = 'a' + else + assign wrapper = 'div' + endif +%} + +<{{ wrapper }} + class="image {{ css_class }}" + {% if url %} + href="{{ url }}" + {% endif %} +> + {{ image | image_url: width: width, height: height, crop: crop | image_tag }} + + +{% stylesheet %} + .image { + display: block; + position: relative; + overflow: hidden; + width: 100%; + height: auto; + } + + .image > img { + width: 100%; + height: auto; + } +{% endstylesheet %} + +{% javascript %} + function doSomething() { + // example + } + doSomething() +{% endjavascript %} + +``` + +### `block` + +#### Text + +```liquid +{% doc %} + Renders a text block. + + @example + {% content_for 'block', type: 'text', id: 'text' %} +{% enddoc %} + +
+ {{ block.settings.text }} +
+ +{% stylesheet %} + .text { + text-align: var(--text-align); + } + .text--title { + font-size: 2rem; + font-weight: 700; + } + .text--subtitle { + font-size: 1.5rem; + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:general.text", + "settings": [ + { + "type": "text", + "id": "text", + "label": "t:labels.text", + "default": "Text" + }, + { + "type": "select", + "id": "text_style", + "label": "t:labels.text_style", + "options": [ + { "value": "text--title", "label": "t:options.text_style.title" }, + { "value": "text--subtitle", "label": "t:options.text_style.subtitle" }, + { "value": "text--normal", "label": "t:options.text_style.normal" } + ], + "default": "text--title" + }, + { + "type": "text_alignment", + "id": "alignment", + "label": "t:labels.alignment", + "default": "left" + } + ], + "presets": [{ "name": "t:general.text" }] +} +{% endschema %} +``` + +#### Group + +```liquid +{% doc %} + Renders a group of blocks with configurable layout direction, gap and + alignment. + + All settings apply to only one dimension to reduce configuration complexity. + + This component is a wrapper concerned only with rendering its children in + the specified layout direction with appropriate padding and alignment. + + @example + {% content_for 'block', type: 'group', id: 'group' %} +{% enddoc %} + +
+ {% content_for 'blocks' %} +
+ +{% stylesheet %} + .group { + display: flex; + flex-wrap: nowrap; + overflow: hidden; + width: 100%; + } + .group--horizontal { + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 0 var(--padding); + } + .group--vertical { + flex-direction: column; + align-items: var(--alignment); + padding: var(--padding) 0; + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:general.group", + "blocks": [{ "type": "@theme" }], + "settings": [ + { + "type": "select", + "id": "layout_direction", + "label": "t:labels.layout_direction", + "default": "group--vertical", + "options": [ + { "value": "group--horizontal", "label": "t:options.direction.horizontal" }, + { "value": "group--vertical", "label": "t:options.direction.vertical" } + ] + }, + { + "visible_if": "{{ block.settings.layout_direction == 'group--vertical' }}", + "type": "select", + "id": "alignment", + "label": "t:labels.alignment", + "default": "flex-start", + "options": [ + { "value": "flex-start", "label": "t:options.alignment.left" }, + { "value": "center", "label": "t:options.alignment.center" }, + { "value": "flex-end", "label": "t:options.alignment.right" } + ] + }, + { + "type": "range", + "id": "padding", + "label": "t:labels.padding", + "default": 0, + "min": 0, + "max": 200, + "step": 2, + "unit": "px" + } + ], + "presets": [ + { + "name": "t:general.column", + "category": "t:general.layout", + "settings": { + "layout_direction": "group--vertical", + "alignment": "flex-start", + "padding": 0 + } + }, + { + "name": "t:general.row", + "category": "t:general.layout", + "settings": { + "layout_direction": "group--horizontal", + "padding": 0 + } + } + ] +} +{% endschema %} +``` + +### `section` + +```liquid +
+ {% if section.settings.background_image %} +
+ {{ section.settings.background_image | image_url: width: 2000 | image_tag }} +
+ {% endif %} + +
+ {% content_for 'blocks' %} +
+
+ +{% stylesheet %} + .example-section { + position: relative; + overflow: hidden; + width: 100%; + } + .example-section__background { + position: absolute; + width: 100%; + height: 100%; + z-index: -1; + overflow: hidden; + } + .example-section__background img { + position: absolute; + width: 100%; + height: auto; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } + .example-section__content { + display: grid; + grid-template-columns: var(--content-grid); + } + + .example-section__content > * { + grid-column: 2; + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:general.custom_section", + "blocks": [{ "type": "@theme" }], + "settings": [ + { + "type": "image_picker", + "id": "background_image", + "label": "t:labels.background" + } + ], + "presets": [ + { + "name": "t:general.custom_section" + } + ] +} +{% endschema %} +``` + diff --git a/CLAUDE.md b/CLAUDE.md new file mode 120000 index 0000000..1fa7e0b --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +C:/laragon/www/season/nuevo-theme/AGENTS.md \ No newline at end of file diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..2ac6ce6 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,132 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, caste, color, religion, or sexual +identity and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +- Focusing on what is best not just for us as individuals, but for the overall + community + +Examples of unacceptable behavior include: + +- The use of sexualized language or imagery, and sexual attention or advances of + any kind +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, + without their explicit permission +- Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official email address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at +opensource@shopify.com. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series of +actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or permanent +ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within the +community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.1, available at +[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. + +Community Impact Guidelines were inspired by +[Mozilla's code of conduct enforcement ladder][Mozilla CoC]. + +For answers to common questions about this code of conduct, see the FAQ at +[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at +[https://www.contributor-covenant.org/translations][translations]. + +[homepage]: https://www.contributor-covenant.org +[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html +[Mozilla CoC]: https://github.com/mozilla/diversity +[FAQ]: https://www.contributor-covenant.org/faq +[translations]: https://www.contributor-covenant.org/translations diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..0877f74 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,24 @@ +# Contributing to Skeleton Theme + +## How to contribute + +We ❤️ pull requests. If you'd like to fix a bug, contribute a feature, or just correct a typo, feel free to do so, as long as you follow our [Code of Conduct](./CODE_OF_CONDUCT.md). + +If you're thinking of adding a new feature or proposing a new pattern across the theme, please consider opening an issue first. This will allow us to discuss your idea, ensure it aligns with the project's direction, and potentially save you some time. + +For your contribution to be accepted, you'll need to sign the [Shopify Contributor License Agreement (CLA)](https://cla.shopify.com/). + +## Standards + +* This codebase must be minimalist, not a fully featured theme. +* This theme must provide a common foundational starting point for most developers. +* Do not include or reference legacy or non-recommended features. +* All changes must preserve the principles defined in the README. + +## Steps to contribute + +1. Fork the repository: [https://github.com/Shopify/skeleton-theme/fork](https://github.com/Shopify/skeleton-theme/fork) +2. Create your feature branch: `git checkout -b my-new-feature` +3. Commit your changes: `git commit -am 'Add some feature'` +4. Push to your branch: `git push origin my-new-feature` +5. Create a new Pull Request diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..611b31d --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,9 @@ +Copyright (c) 2018-present Shopify Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, sell and/or create derivative works of the Software or any part thereof, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The rights granted above may only be exercised to develop themes that integrate or interoperate with Shopify software or services, and, if applicable, to distribute, offer for sale or otherwise make available any such themes via the Shopify Theme Store. All other uses of the Software are strictly prohibited. + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index e69de29..e7935cd 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,160 @@ +

+
+ logo +
+ Shopify Skeleton Theme +

+ +A minimal, carefully structured Shopify theme designed to help you quickly get started. Designed with modularity, maintainability, and Shopify's best practices in mind. + +

+ License + CI +

+ +## Getting started + +### Prerequisites + +Before starting, ensure you have the latest Shopify CLI installed: + +- [Shopify CLI](https://shopify.dev/docs/api/shopify-cli) – helps you download, upload, preview themes, and streamline your workflows + +If you use VS Code: + +- [Shopify Liquid VS Code Extension](https://shopify.dev/docs/storefronts/themes/tools/shopify-liquid-vscode) – provides syntax highlighting, linting, inline documentation, and auto-completion specifically designed for Liquid templates + +### Clone + +Clone this repository using Git or Shopify CLI: + +```bash +git clone git@github.com:Shopify/skeleton-theme.git +# or +shopify theme init +``` + +### Preview + +Preview this theme using Shopify CLI: + +```bash +shopify theme dev +``` + +## Theme architecture + +```bash +. +├── assets # Stores static assets (CSS, JS, images, fonts, etc.) +├── blocks # Reusable, nestable, customizable UI components +├── config # Global theme settings and customization options +├── layout # Top-level wrappers for pages (layout templates) +├── locales # Translation files for theme internationalization +├── sections # Modular full-width page components +├── snippets # Reusable Liquid code or HTML fragments +└── templates # Templates combining sections to define page structures +``` + +To learn more, refer to the [theme architecture documentation](https://shopify.dev/docs/storefronts/themes/architecture). + +### Templates + +[Templates](https://shopify.dev/docs/storefronts/themes/architecture/templates#template-types) control what's rendered on each type of page in a theme. + +The Skeleton Theme scaffolds [JSON templates](https://shopify.dev/docs/storefronts/themes/architecture/templates/json-templates) to make it easy for merchants to customize their store. + +None of the template types are required, and not all of them are included in the Skeleton Theme. Refer to the [template types reference](https://shopify.dev/docs/storefronts/themes/architecture/templates#template-types) for a full list. + +### Sections + +[Sections](https://shopify.dev/docs/storefronts/themes/architecture/sections) are Liquid files that allow you to create reusable modules of content that can be customized by merchants. They can also include blocks which allow merchants to add, remove, and reorder content within a section. + +Sections are made customizable by including a `{% schema %}` in the body. For more information, refer to the [section schema documentation](https://shopify.dev/docs/storefronts/themes/architecture/sections/section-schema). + +### Blocks + +[Blocks](https://shopify.dev/docs/storefronts/themes/architecture/blocks) let developers create flexible layouts by breaking down sections into smaller, reusable pieces of Liquid. Each block has its own set of settings, and can be added, removed, and reordered within a section. + +Blocks are made customizable by including a `{% schema %}` in the body. For more information, refer to the [block schema documentation](https://shopify.dev/docs/storefronts/themes/architecture/blocks/theme-blocks/schema). + +## Schemas + +When developing components defined by schema settings, we recommend these guidelines to simplify your code: + +- **Single property settings**: For settings that correspond to a single CSS property, use CSS variables: + + ```liquid +
+ ... +
+ + {% stylesheet %} + .collection { + gap: var(--gap); + } + {% endstylesheet %} + + {% schema %} + { + "settings": [{ + "type": "range", + "label": "gap", + "id": "gap", + "min": 0, + "max": 100, + "unit": "px", + "default": 0, + }] + } + {% endschema %} + ``` + +- **Multiple property settings**: For settings that control multiple CSS properties, use CSS classes: + + ```liquid +
+ ... +
+ + {% stylesheet %} + .collection--full-width { + /* multiple styles */ + } + .collection--narrow { + /* multiple styles */ + } + {% endstylesheet %} + + {% schema %} + { + "settings": [{ + "type": "select", + "id": "layout", + "label": "layout", + "values": [ + { "value": "collection--full-width", "label": "t:options.full" }, + { "value": "collection--narrow", "label": "t:options.narrow" } + ] + }] + } + {% endschema %} + ``` + +## CSS & JavaScript + +For CSS and JavaScript, we recommend using the [`{% stylesheet %}`](https://shopify.dev/docs/api/liquid/tags#stylesheet) and [`{% javascript %}`](https://shopify.dev/docs/api/liquid/tags/javascript) tags. They can be included multiple times, but the code will only appear once. + +### `critical.css` + +The Skeleton Theme explicitly separates essential CSS necessary for every page into a dedicated `critical.css` file. + +## Contributing + +We're excited for your contributions to the Skeleton Theme! This repository aims to remain as lean, lightweight, and fundamental as possible, and we kindly ask your contributions to align with this intention. + +Visit our [CONTRIBUTING.md](./CONTRIBUTING.md) for a detailed overview of our process, guidelines, and recommendations. + +## License + +Skeleton Theme is open-sourced under the [MIT](./LICENSE.md) License. diff --git a/assets/Capa_1.avif b/assets/Capa_1.avif new file mode 100644 index 0000000..9e53e40 Binary files /dev/null and b/assets/Capa_1.avif differ diff --git a/assets/anime.min.js b/assets/anime.min.js new file mode 100644 index 0000000..904bcc5 --- /dev/null +++ b/assets/anime.min.js @@ -0,0 +1,7 @@ +/** + * Anime.js - UMD minified bundle + * @version v4.2.2 + * @license MIT + * @copyright 2025 - Julian Garnier + */ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).anime={})}(this,function(t){"use strict";const e="undefined"!=typeof window,s=e?window:null,i=e?document:null,r={replace:0,none:1,blend:2},n=Symbol(),o=Symbol(),a=Symbol(),h=Symbol(),l=Symbol(),c=Symbol(),d=1e-11,u=1e12,p=1e3,m="",f=(()=>{const t=new Map;return t.set("x","translateX"),t.set("y","translateY"),t.set("z","translateZ"),t})(),g=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","matrix","matrix3d","perspective"],y=g.reduce((t,e)=>({...t,[e]:e+"("}),{}),_=()=>{},v=/(^#([\da-f]{3}){1,2}$)|(^#([\da-f]{4}){1,2}$)/i,b=/rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/i,S=/rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,w=/hsl\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*\)/i,T=/hsla\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)\s*\)/i,x=/[-+]?\d*\.?\d+(?:e[-+]?\d)?/gi,k=/^([-+]?\d*\.?\d+(?:e[-+]?\d+)?)([a-z]+|%)$/i,$=/([a-z])([A-Z])/g,C=/(\w+)(\([^)]+\)+)/g,E=/(\*=|\+=|-=)/,D=/var\(\s*(--[\w-]+)(?:\s*,\s*([^)]+))?\s*\)/,B={id:null,keyframes:null,playbackEase:null,playbackRate:1,frameRate:120,loop:0,reversed:!1,alternate:!1,autoplay:!0,persist:!1,duration:p,delay:0,loopDelay:0,ease:"out(2)",composition:r.replace,modifier:t=>t,onBegin:_,onBeforeUpdate:_,onUpdate:_,onLoop:_,onPause:_,onComplete:_,onRender:_},L={current:null,root:i},N={defaults:B,precision:4,timeScale:1,tickThreshold:200},A={version:"4.2.2",engine:null};e&&(s.AnimeJS||(s.AnimeJS=[]),s.AnimeJS.push(A));const F=t=>t.replace($,"$1-$2").toLowerCase(),P=(t,e)=>0===t.indexOf(e),O=Date.now,R=Array.isArray,M=t=>t&&t.constructor===Object,z=t=>"number"==typeof t&&!isNaN(t),I=t=>"string"==typeof t,Y=t=>"function"==typeof t,X=t=>void 0===t,V=t=>X(t)||null===t,W=t=>e&&t instanceof SVGElement,H=t=>v.test(t),U=t=>P(t,"rgb"),q=t=>P(t,"hsl"),j=t=>!N.defaults.hasOwnProperty(t),G=["opacity","rotate","overflow","color"],Q=t=>I(t)?parseFloat(t):t,Z=Math.pow,J=Math.sqrt,K=Math.sin,tt=Math.cos,et=Math.abs,st=Math.exp,it=Math.ceil,rt=Math.floor,nt=Math.asin,ot=Math.max,at=Math.atan2,ht=Math.PI,lt=Math.round,ct=(t,e,s)=>ts?s:t,dt={},ut=(t,e)=>{if(e<0)return t;if(!e)return lt(t);let s=dt[e];return s||(s=dt[e]=10**e),lt(t*s)/s},pt=(t,e)=>R(e)?e.reduce((e,s)=>et(s-t)t+(e-t)*s,ft=t=>t===1/0?u:t===-1/0?-u:t,gt=t=>t<=d?d:ft(ut(t,11)),yt=t=>R(t)?[...t]:t,_t=(t,e)=>{const s={...t};for(let i in e){const r=t[i];s[i]=X(r)?e[i]:r}return s},vt=(t,e,s,i="_prev",r="_next")=>{let n=t._head,o=r;for(s&&(n=t._tail,o=i);n;){const t=n[o];e(n),n=t}},bt=(t,e,s="_prev",i="_next")=>{const r=e[s],n=e[i];r?r[i]=n:t._head=n,n?n[s]=r:t._tail=r,e[s]=null,e[i]=null},St=(t,e,s,i="_prev",r="_next")=>{let n=t._tail;for(;n&&s&&s(n,e);)n=n[i];const o=n?n[r]:t._head;n?n[r]=e:t._head=e,o?o[i]=e:t._tail=e,e[i]=n,e[r]=o},wt=(t,e,s)=>(s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+6*(e-t)*s:s<.5?e:s<2/3?t+(e-t)*(2/3-s)*6:t),Tt=(t,e)=>X(t)?e:t,xt=(t,e,s,i,r)=>{let n;if(Y(t))n=()=>{const r=t(e,s,i);return isNaN(+r)?r||0:+r};else{if(!I(t)||!P(t,"var("))return t;n=()=>{const s=t.match(D),i=s[1],r=s[2];let n=getComputedStyle(e)?.getPropertyValue(i);return n&&n.trim()!==m||!r||(n=r.trim()),n||0}}return r&&(r.func=n),n()},kt=(t,e)=>t[o]?t[a]&&((t,e)=>{if(G.includes(e))return!1;if(t.getAttribute(e)||e in t){if("scale"===e){const e=t.parentNode;return e&&"filter"===e.tagName}return!0}})(t,e)?1:g.includes(e)||f.get(e)?3:P(e,"--")?4:e in t.style?2:e in t?0:1:0,$t=(t,e,s)=>{const i=t.style[e];i&&s&&(s[e]=i);const r=i||getComputedStyle(t[c]||t).getPropertyValue(e);return"auto"===r?"0":r},Ct=(t,e,s,i)=>{const r=X(s)?kt(t,e):s;return 0===r?t[e]||0:1===r?t.getAttribute(e):3===r?((t,e,s)=>{const i=t.style.transform;let r;if(i){const n=t[h];let o;for(;o=C.exec(i);){const t=o[1],i=o[2].slice(1,-1);n[t]=i,t===e&&(r=i,s&&(s[e]=i))}}return i&&!X(r)?r:P(e,"scale")?"1":P(e,"rotate")||P(e,"skew")?"0deg":"0px"})(t,e,i):4===r?$t(t,e,i).trimStart():$t(t,e,i)},Et=(t,e,s)=>"-"===s?t-e:"+"===s?t+e:t*e,Dt=(t,e)=>{if(e.t=0,e.n=0,e.u=null,e.o=null,e.d=null,e.s=null,!t)return e;const s=+t;if(isNaN(s)){let s=t;"="===s[1]&&(e.o=s[0],s=s.slice(2));const n=!s.includes(" ")&&k.exec(s);if(n)return e.t=1,e.n=+n[1],e.u=n[2],e;if(e.o)return e.n=+s,e;if(H(r=s)||U(r)||q(r))return e.t=2,e.d=U(i=s)?(t=>{const e=b.exec(t)||S.exec(t),s=X(e[4])?1:+e[4];return[+e[1],+e[2],+e[3],s]})(i):H(i)?(t=>{const e=t.length,s=4===e||5===e;return[+("0x"+t[1]+t[s?1:2]),+("0x"+t[s?2:3]+t[s?2:4]),+("0x"+t[s?3:5]+t[s?3:6]),5===e||9===e?+(+("0x"+t[s?4:7]+t[s?4:8])/255).toFixed(3):1]})(i):q(i)?(t=>{const e=w.exec(t)||T.exec(t),s=+e[1]/360,i=+e[2]/100,r=+e[3]/100,n=X(e[4])?1:+e[4];let o,a,h;if(0===i)o=a=h=r;else{const t=r<.5?r*(1+i):r+i-r*i,e=2*r-t;o=ut(255*wt(e,t,s+1/3),0),a=ut(255*wt(e,t,s),0),h=ut(255*wt(e,t,s-1/3),0)}return[o,a,h,n]})(i):[0,0,0,1],e;{const t=s.match(x);return e.t=3,e.d=t?t.map(Number):[],e.s=s.split(x)||[],e}}var i,r;return e.n=s,e},Bt=(t,e)=>(e.t=t._valueType,e.n=t._toNumber,e.u=t._unit,e.o=null,e.d=yt(t._toNumbers),e.s=yt(t._strings),e),Lt={t:0,n:0,u:null,o:null,d:null,s:null},Nt=(t,e,s,i,n)=>{const o=t.parent,a=t.duration,l=t.completed,c=t.iterationDuration,u=t.iterationCount,p=t._currentIteration,f=t._loopDelay,g=t._reversed,_=t._alternate,v=t._hasChildren,b=t._delay,S=t._currentTime,w=b+c,T=e-b,x=ct(S,-b,a),k=ct(T,-b,a),$=T-S,C=k>0,E=k>=a,D=a<=d,B=2===n;let L=0,A=T,F=0;if(u>1){const e=~~(k/(c+(E?0:f)));t._currentIteration=ct(e,0,u),E&&t._currentIteration--,L=t._currentIteration%2,A=k%(c+f)||0}const P=g^(_&&L),O=t._ease;let R=E?P?0:a:P?c-A:A;O&&(R=c*O(R/c)||0);const M=(o?o.backwards:T=b&&e<=w||e<=b&&x>b||e>=w&&x!==a)||R>=w&&x!==a||R<=b&&x>0||e<=x&&x===a&&l||E&&!l&&D){if(C&&(t.computeDeltaTime(x),s||t.onBeforeUpdate(t)),!v){const e=B||(M?-1*$:$)>=N.tickThreshold,n=t._offset+(o?o._offset:0)+b+R;let a,l,c,d,u=t._head,p=0;for(;u;){const t=u._composition,s=u._currentTime,o=u._changeDuration,f=u._absoluteStartTime+u._changeDuration,g=u._nextRep,_=u._prevRep,v=t!==r.none;if((e||(s!==o||n<=f+(g?g._delay:0))&&(0!==s||n>=u._absoluteStartTime))&&(!v||!u._isOverridden&&(!u._isOverlapped||n<=f)&&(!g||g._isOverridden||n<=g._absoluteStartTime)&&(!_||_._isOverridden||n>=_._absoluteStartTime+_._changeDuration+u._delay))){const e=u._currentTime=ct(R-u._startTime,0,o),s=u._ease(e/u._updateDuration),n=u._modifier,m=u._valueType,f=u._tweenType,g=0===f,y=0===m,_=y&&g||0===s||1===s?-1:N.precision;let b,S;if(y)b=S=n(ut(mt(u._fromNumber,u._toNumber,s),_));else if(1===m)S=n(ut(mt(u._fromNumber,u._toNumber,s),_)),b=`${S}${u._unit}`;else if(2===m){const t=u._fromNumbers,e=u._toNumbers,i=ut(ct(n(mt(t[0],e[0],s)),0,255),0),r=ut(ct(n(mt(t[1],e[1],s)),0,255),0),o=ut(ct(n(mt(t[2],e[2],s)),0,255),0),a=ct(n(ut(mt(t[3],e[3],s),_)),0,1);if(b=`rgba(${i},${r},${o},${a})`,v){const t=u._numbers;t[0]=i,t[1]=r,t[2]=o,t[3]=a}}else if(3===m){b=u._strings[0];for(let t=0,e=u._toNumbers.length;t0&&!l||M&&T<=d&&l)&&(t.onComplete(t),t.completed=!M):C&&E?u===1/0?t._startTime+=t.duration:t._currentIteration>=u-1&&(t.paused=!0,l||v||(t.completed=!0,s||o&&(M||!o.began)||(t.onComplete(t),t._resolve(t)))):t.completed=!1,F},At=(t,e,s,i,r)=>{const n=t._currentIteration;if(Nt(t,e,s,i,r),t._hasChildren){const o=t,a=o.backwards,h=i?e:o._iterationTime,l=O();let c=0,u=!0;if(!i&&o._currentIteration!==n){const t=o.iterationDuration;vt(o,e=>{if(a){const i=e.duration,r=e._offset+e._delay;s||!(i<=d)||r&&r+i!==t||e.onComplete(e)}else!e.completed&&!e.backwards&&e._currentTime{const e=ut((h-t._offset)*t._speed,12),n=t._fps=o.duration&&(o.paused=!0,o.completed||(o.completed=!0,s||(o.onComplete(o),o._resolve(o))))}},Ft={},Pt=(t,e,s)=>{if(3===s)return f.get(t)||t;if(2===s||1===s&&W(e)&&t in e.style){const e=Ft[t];if(e)return e;{const e=t?F(t):t;return Ft[t]=e,e}}return t},Ot=t=>{if(t._hasChildren)vt(t,Ot,!0);else{const e=t;e.pause(),vt(e,t=>{const s=t.property,i=t.target;if(i[o]){const r=i.style,n=t._inlineValue,o=V(n)||n===m;if(3===t._tweenType){const e=i[h];if(o?delete e[s]:e[s]=n,t._renderTransforms)if(Object.keys(e).length){let t=m;for(let s in e)t+=y[s]+e[s]+") ";r.transform=t}else r.removeProperty("transform")}else o?r.removeProperty(F(s)):r[s]=n;e._tail===t&&e.targets.forEach(t=>{t.getAttribute&&t.getAttribute("style")===m&&t.removeAttribute("style")})}})}return t};class Rt{constructor(t=0){this.deltaTime=0,this._currentTime=t,this._elapsedTime=t,this._startTime=t,this._lastTime=t,this._scheduledTime=0,this._frameDuration=ut(p/120,0),this._fps=120,this._speed=1,this._hasChildren=!1,this._head=null,this._tail=null}get fps(){return this._fps}set fps(t){const e=this._frameDuration,s=+t,i=se?requestAnimationFrame:setImmediate)(),It=(()=>e?cancelAnimationFrame:clearImmediate)();class Yt extends Rt{constructor(t){super(t),this.useDefaultMainLoop=!0,this.pauseOnDocumentHidden=!0,this.defaults=B,this.paused=!0,this.reqId=0}update(){const t=this._currentTime=O();if(this.requestTick(t)){this.computeDeltaTime(t);const e=this._speed,s=this._fps;let i=this._head;for(;i;){const r=i._next;i.paused?(bt(this,i),this._hasChildren=!!this._tail,i._running=!1,i.completed&&!i._cancelled&&i.cancel()):At(i,(t-i._startTime)*i._speed*e,0,0,i._fpst.resetTime()),this.wake()}get speed(){return this._speed*(1===N.timeScale?1:p)}set speed(t){this._speed=t*N.timeScale,vt(this,t=>t.speed=t._speed)}get timeUnit(){return 1===N.timeScale?"ms":"s"}set timeUnit(t){const e="s"===t,s=e?.001:1;if(N.timeScale!==s){N.timeScale=s,N.tickThreshold=200*s;const t=e?.001:p;this.defaults.duration*=t,this._speed*=t}}get precision(){return N.precision}set precision(t){N.precision=t}}const Xt=(()=>{const t=new Yt(O());return e&&(A.engine=t,i.addEventListener("visibilitychange",()=>{t.pauseOnDocumentHidden&&(i.hidden?t.pause():t.resume())})),t})(),Vt=()=>{Xt._head?(Xt.reqId=zt(Vt),Xt.update()):Xt.reqId=0},Wt=()=>(It(Xt.reqId),Xt.reqId=0,Xt),Ht={_rep:new WeakMap,_add:new Map},Ut=(t,e,s="_rep")=>{const i=Ht[s];let r=i.get(t);return r||(r={},i.set(t,r)),r[e]?r[e]:r[e]={_head:null,_tail:null}},qt=(t,e)=>t._isOverridden||t._absoluteStartTime>e._absoluteStartTime,jt=t=>{t._isOverlapped=1,t._isOverridden=1,t._changeDuration=d,t._currentTime=d},Gt=(t,e)=>{const s=t._composition;if(s===r.replace){const s=t._absoluteStartTime;St(e,t,qt,"_prevRep","_nextRep");const i=t._prevRep;if(i){const e=i.parent,r=i._absoluteStartTime+i._changeDuration;if(t.parent.id!==e.id&&e.iterationCount>1&&r+(e.duration-e.iterationDuration)>s){jt(i);let t=i._prevRep;for(;t&&t.parent.id===e.id;)jt(t),t=t._prevRep}const n=s-t._delay;if(r>n){const t=i._startTime,e=r-(t+i._updateDuration),s=ut(n-e-t,12);i._changeDuration=s,i._currentTime=s,i._isOverlapped=1,s{t._isOverlapped||(o=!1)}),o){const t=e.parent;if(t){let s=!0;vt(t,t=>{t!==e&&vt(t,t=>{t._isOverlapped||(s=!1)})}),s&&t.cancel()}else e.cancel()}}}else if(s===r.blend){const e=Ut(t.target,t.property,"_add"),s=(t=>{let e=Mt.animation;return e||(e={duration:d,computeDeltaTime:_,_offset:0,_delay:0,_head:null,_tail:null},Mt.animation=e,Mt.update=()=>{t.forEach(t=>{for(let e in t){const s=t[e],i=s._head;if(i){const t=i._valueType,e=3===t||2===t?yt(i._fromNumbers):null;let r=i._fromNumber,n=s._tail;for(;n&&n!==i;){if(e)for(let t=0,s=n._numbers.length;t{t._fromNumbers[s]=i._fromNumbers[s]-e,t._toNumbers[s]=0}),i._fromNumbers=e}St(e,t,null,"_prevAdd","_nextAdd")}return t},Qt=t=>{const e=t._composition;if(e!==r.none){const s=t.target,i=t.property,n=Ht._rep.get(s)[i];if(bt(n,t,"_prevRep","_nextRep"),e===r.blend){const e=Ht._add,r=e.get(s);if(!r)return;const n=r[i],o=Mt.animation;bt(n,t,"_prevAdd","_nextAdd");const a=n._head;if(a&&a===n._tail){bt(n,a,"_prevAdd","_nextAdd"),bt(o,a);let t=!0;for(let e in r)if(r[e]._head){t=!1;break}t&&e.delete(s)}}}return t},Zt=(t,e,s)=>{let i=!1;return vt(e,r=>{const n=r.target;if(t.includes(n)){const t=r.property,o=r._tweenType,a=Pt(s,n,o);(!a||a&&a===t)&&(r.parent._tail===r&&3===r._tweenType&&r._prev&&3===r._prev._tweenType&&(r._prev._renderTransforms=1),bt(e,r),Qt(r),i=!0)}},!0),i},Jt=(t,e,s)=>{const i=e||Xt;let r;if(i._hasChildren){let e=0;vt(i,n=>{if(!n._hasChildren)if(r=Zt(t,n,s),r&&!n._head)n.cancel(),bt(i,n);else{const t=n._offset+n._delay+n.duration;t>e&&(e=t)}n._head?Jt(t,n,s):n._hasChildren=!1},!0),X(i.iterationDuration)||(i.iterationDuration=e)}else r=Zt(t,i,s);r&&!i._head&&(i._hasChildren=!1,i.cancel&&i.cancel())},Kt=t=>(t.paused=!0,t.began=!1,t.completed=!1,t),te=t=>t._cancelled?(t._hasChildren?vt(t,te):vt(t,t=>{t._composition!==r.none&&Gt(t,Ut(t.target,t.property))}),t._cancelled=0,t):t;let ee=0;class se extends Rt{constructor(t={},e=null,s=0){super(0);const{id:i,delay:r,duration:n,reversed:o,alternate:a,loop:h,loopDelay:l,autoplay:c,frameRate:u,playbackRate:p,onComplete:m,onLoop:f,onPause:g,onBegin:y,onBeforeUpdate:v,onUpdate:b}=t;L.current&&L.current.register(this);const S=e?0:Xt._elapsedTime,w=e?e.defaults:N.defaults,T=Y(r)||X(r)?w.delay:+r,x=Y(n)||X(n)?1/0:+n,k=Tt(h,w.loop),$=Tt(l,w.loopDelay),C=!0===k||k===1/0||k<0?1/0:k+1;let E=0;e?E=s:(Xt.reqId||Xt.requestTick(O()),E=(Xt._elapsedTime-Xt._startTime)*N.timeScale),this.id=X(i)?++ee:i,this.parent=e,this.duration=ft((x+$)*C-$)||d,this.backwards=!1,this.paused=!0,this.began=!1,this.completed=!1,this.onBegin=y||w.onBegin,this.onBeforeUpdate=v||w.onBeforeUpdate,this.onUpdate=b||w.onUpdate,this.onLoop=f||w.onLoop,this.onPause=g||w.onPause,this.onComplete=m||w.onComplete,this.iterationDuration=x,this.iterationCount=C,this._autoplay=!e&&Tt(c,w.autoplay),this._offset=E,this._delay=T,this._loopDelay=$,this._iterationTime=0,this._currentIteration=0,this._resolve=_,this._running=!1,this._reversed=+Tt(o,w.reversed),this._reverse=this._reversed,this._cancelled=0,this._alternate=Tt(a,w.alternate),this._prev=null,this._next=null,this._elapsedTime=S,this._startTime=S,this._lastTime=S,this._fps=Tt(u,w.frameRate),this._speed=Tt(p,w.playbackRate)}get cancelled(){return!!this._cancelled}set cancelled(t){t?this.cancel():this.reset(!0).play()}get currentTime(){return ct(ut(this._currentTime,N.precision),-this._delay,this.duration)}set currentTime(t){const e=this.paused;this.pause().seek(+t),e||this.resume()}get iterationCurrentTime(){return ut(this._iterationTime,N.precision)}set iterationCurrentTime(t){this.currentTime=this.iterationDuration*this._currentIteration+t}get progress(){return ct(ut(this._currentTime/this.duration,10),0,1)}set progress(t){this.currentTime=this.duration*t}get iterationProgress(){return ct(ut(this._iterationTime/this.iterationDuration,10),0,1)}set iterationProgress(t){const e=this.iterationDuration;this.currentTime=e*this._currentIteration+e*t}get currentIteration(){return this._currentIteration}set currentIteration(t){this.currentTime=this.iterationDuration*ct(+t,0,this.iterationCount-1)}get reversed(){return!!this._reversed}set reversed(t){t?this.reverse():this.play()}get speed(){return super.speed}set speed(t){super.speed=t,this.resetTime()}reset(t=!1){return te(this),this._reversed&&!this._reverse&&(this.reversed=!1),this._iterationTime=this.iterationDuration,At(this,0,1,~~t,2),Kt(this),this._hasChildren&&vt(this,Kt),this}init(t=!1){this.fps=this._fps,this.speed=this._speed,!t&&this._hasChildren&&At(this,this.duration,1,~~t,2),this.reset(t);const e=this._autoplay;return!0===e?this.resume():e&&!X(e.linked)&&e.link(this),this}resetTime(){const t=1/(this._speed*Xt._speed);return this._startTime=O()-(this._currentTime+this._delay)*t,this}pause(){return this.paused||(this.paused=!0,this.onPause(this)),this}resume(){return this.paused?(this.paused=!1,this.duration<=d&&!this._hasChildren?At(this,d,0,0,2):(this._running||(St(Xt,this),Xt._hasChildren=!0,this._running=!0),this.resetTime(),this._startTime-=12,Xt.wake()),this):this}restart(){return this.reset().resume()}seek(t,e=0,s=0){te(this),this.completed=!1;const i=this.paused;return this.paused=!0,At(this,t+this._delay,~~e,~~s,1),i?this:this.resume()}alternate(){const t=this._reversed,e=this.iterationCount,s=this.iterationDuration,i=e===1/0?rt(u/s):e;return this._reversed=+(!this._alternate||i%2?!t:t),e===1/0?this.iterationProgress=this._reversed?1-this.iterationProgress:this.iterationProgress:this.seek(s*i-this._currentTime),this.resetTime(),this}play(){return this._reversed&&this.alternate(),this.resume()}reverse(){return this._reversed||this.alternate(),this.resume()}cancel(){return this._hasChildren?vt(this,t=>t.cancel(),!0):vt(this,Qt),this._cancelled=1,this.pause()}stretch(t){const e=this.duration,s=gt(t);if(e===s)return this;const i=t/e,r=t<=d;return this.duration=r?d:s,this.iterationDuration=r?d:gt(this.iterationDuration*i),this._offset*=i,this._delay*=i,this._loopDelay*=i,this}revert(){At(this,0,1,0,1);const t=this._autoplay;return t&&t.linked&&t.linked===this&&t.revert(),this.cancel()}complete(){return this.seek(this.duration).cancel()}then(t=_){const e=this.then,s=()=>{this.then=null,t(this),this.then=e,this._resolve=_};return new Promise(t=>(this._resolve=()=>t(s()),this.completed&&this._resolve(),this))}}function ie(t){const e=I(t)?L.root.querySelectorAll(t):t;if(e instanceof NodeList||e instanceof HTMLCollection)return e}function re(t){if(V(t))return[];if(!e)return R(t)&&t.flat(1/0)||[t];if(R(t)){const e=t.flat(1/0),s=[];for(let t=0,i=e.length;t{const n=e.u,o=e.n;if(1===e.t&&n===s)return e;const a=o+n+s,h=ae[a];if(X(h)||r){let r;if(n in oe)r=o*oe[n]/oe[s];else{const e=100,a=t.cloneNode(),h=t.parentNode,l=h&&h!==i?h:i.body;l.appendChild(a);const c=a.style;c.width=e+n;const d=a.offsetWidth||e;c.width=e+s;const u=d/(a.offsetWidth||e);l.removeChild(a),r=u*o}e.n=r,ae[a]=r}else e.n=h;return e.t,e.u=s,e},le=t=>t,ce=(t=1.68)=>e=>Z(e,+t),de={in:t=>e=>t(e),out:t=>e=>1-t(1-e),inOut:t=>e=>e<.5?t(2*e)/2:1-t(-2*e+2)/2,outIn:t=>e=>e<.5?(1-t(1-2*e))/2:(t(2*e-1)+1)/2},ue=ht/2,pe=2*ht,me={[m]:ce,Quad:ce(2),Cubic:ce(3),Quart:ce(4),Quint:ce(5),Sine:t=>1-tt(t*ue),Circ:t=>1-J(1-t*t),Expo:t=>t?Z(2,10*t-10):0,Bounce:t=>{let e,s=4;for(;t<((e=Z(2,--s))-1)/11;);return 1/Z(4,3-s)-7.5625*Z((3*e-2)/22-t,2)},Back:(t=1.7)=>e=>(+t+1)*e*e*e-+t*e*e,Elastic:(t=1,e=.3)=>{const s=ct(+t,1,10),i=ct(+e,d,2),r=i/pe*nt(1/s),n=pe/i;return t=>0===t||1===t?t:-s*Z(2,-10*(1-t))*K((1-t-r)*n)}},fe=(()=>{const t={linear:le,none:le};for(let e in de)for(let s in me){const i=me[s],r=de[e];t[e+s]=s===m||"Back"===s||"Elastic"===s?(t,e)=>r(i(t,e)):r(i)}return t})(),ge={linear:le,none:le},ye=t=>{if(ge[t])return ge[t];if(t.indexOf("(")<=-1){const e=de[t]||t.includes("Back")||t.includes("Elastic")?fe[t]():fe[t];return e?ge[t]=e:le}{const e=t.slice(0,-1).split("("),s=fe[e[0]];return s?ge[t]=s(...e[1].split(",")):le}},_e=["steps(","irregular(","linear(","cubicBezier("],ve=t=>{if(I(t))for(let e=0,s=_e.length;e{const s={};if(R(t)){const e=[].concat(...t.map(t=>Object.keys(t))).filter(j);for(let i=0,r=e.length;i{const e={};for(let s in t){const i=t[s];j(s)?s===r&&(e.to=i):e[s]=i}return e});s[r]=n}}else{const i=Tt(e.duration,N.defaults.duration),r=Object.keys(t).map(e=>({o:parseFloat(e)/100,p:t[e]})).sort((t,e)=>t.o-e.o);r.forEach(t=>{const e=t.o,r=t.p;for(let t in r)if(j(t)){let n=s[t];n||(n=s[t]=[]);const o=e*i;let a=n.length,h=n[a-1];const l={to:r[t]};let c=0;for(let t=0;t=p?r.none:X(v)?S.composition:v,B=this._offset+(s?s._offset:0);x&&(g.parent=this);let L=NaN,A=NaN,F=0,P=0;for(let t=0;t2&&e?(Ce=[],h.forEach((t,e)=>{e?1===e?(ke[1]=t,Ce.push(ke)):Ce.push(t):ke[0]=t})):Ce=h}else xe[0]=h,Ce=xe;let f=null,g=null,y=NaN,_=0,v=0;for(let t=Ce.length;v1?xt($,e,i,c)/t:$),e,i,c),w=xt(Tt(Ee.delay,v?0:C),e,i,c),T=xt(Tt(Ee.composition,D),e,i,c),x=z(T)?T:r[T],L=Ee.modifier||E,N=!X(u),A=!X(l),O=R(l),I=O||N&&A,Y=g?_+w:w,W=ut(B+Y,12);P||!N&&!O||(P=1);let H=g;if(x!==r.none){f||(f=Ut(e,a));let t=f._head;for(;t&&!t._isOverridden&&t._absoluteStartTime<=W;)if(H=t,t=t._nextRep,t&&t._absoluteStartTime>=W)for(;t;)jt(t),t=t._nextRep}if(I?(Dt(O?xt(l[0],e,i,c):u,be),Dt(O?xt(l[1],e,i,c,Te):l,Se),0===be.t&&(H?1===H._valueType&&(be.t=1,be.u=H._unit):(Dt(Ct(e,a,o,we),Lt),1===Lt.t&&(be.t=1,be.u=Lt.u)))):(A?Dt(l,Se):g?Bt(g,Se):Dt(s&&H&&H.parent.parent===s?H._value:Ct(e,a,o,we),Se),N?Dt(u,be):g?Bt(g,be):Dt(s&&H&&H.parent.parent===s?H._value:Ct(e,a,o,we),be)),be.o&&(be.n=Et(H?H._toNumber:Dt(Ct(e,a,o,we),Lt).n,be.n,be.o)),Se.o&&(Se.n=Et(be.n,Se.n,Se.o)),be.t!==Se.t)if(3===be.t||3===Se.t){const t=3===be.t?be:Se,e=3===be.t?Se:be;e.t=3,e.s=yt(t.s),e.d=t.d.map(()=>e.n)}else if(1===be.t||1===Se.t){const t=1===be.t?be:Se,e=1===be.t?Se:be;e.t=1,e.u=t.u}else if(2===be.t||2===Se.t){const t=2===be.t?be:Se,e=2===be.t?Se:be;e.t=2,e.s=t.s,e.d=[0,0,0,1]}if(be.u!==Se.u){let t=Se.u?be:Se;t=he(e,t,Se.u?Se.u:be.u,!1)}if(Se.d&&be.d&&Se.d.length!==be.d.length){const t=be.d.length>Se.d.length?be:Se,e=t===be?Se:be;e.d=t.d.map((t,s)=>X(e.d[s])?0:e.d[s]),e.s=yt(t.s)}const U=ut(+S||d,12);let q=we[a];V(q)||(we[a]=null);const j={parent:this,id:De++,property:a,target:e,_value:null,_func:Te.func,_ease:ve(b),_fromNumbers:yt(be.d),_toNumbers:yt(Se.d),_strings:yt(Se.s),_fromNumber:be.n,_toNumber:Se.n,_numbers:yt(be.d),_number:be.n,_unit:Se.u,_modifier:L,_currentTime:0,_startTime:Y,_delay:+w,_updateDuration:U,_changeDuration:U,_absoluteStartTime:W,_tweenType:o,_valueType:Se.t,_composition:x,_isOverlapped:0,_isOverridden:0,_renderTransforms:0,_inlineValue:q,_prevRep:null,_nextRep:null,_prevAdd:null,_nextAdd:null,_prev:null,_next:null};x!==r.none&&Gt(j,f),isNaN(y)&&(y=j._startTime),_=ut(Y+U,12),g=j,F++,St(this,j)}(isNaN(A)||yL)&&(L=_),3===o&&(p=F-v,m=F)}if(!isNaN(p)){let t=0;vt(this,e=>{t>=p&&t{t.id===e.id&&(t._renderTransforms=1)})),t++})}}l||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation."),A?(vt(this,t=>{t._startTime-t._delay||(t._delay-=A),t._startTime-=A}),L-=A):A=0,L||(L=d,this.iterationCount=0),this.targets=h,this.duration=L===d?d:ft((L+this._loopDelay)*this.iterationCount-this._loopDelay)||d,this.onRender=b||S.onRender,this._ease=T,this._delay=A,this.iterationDuration=L,!this._autoplay&&P&&this.onRender(this)}stretch(t){const e=this.duration;if(e===gt(t))return this;const s=t/e;return vt(this,t=>{t._updateDuration=gt(t._updateDuration*s),t._changeDuration=gt(t._changeDuration*s),t._currentTime*=s,t._startTime*=s,t._absoluteStartTime*=s}),super.stretch(t)}refresh(){return vt(this,t=>{const e=t._func;if(e){const s=Ct(t.target,t.property,t._tweenType);Dt(s,Lt),Dt(e(),Se),t._fromNumbers=yt(Lt.d),t._fromNumber=Lt.n,t._toNumbers=yt(Se.d),t._strings=yt(Se.s),t._toNumber=Se.o?Et(Lt.n,Se.n,Se.o):Se.n}}),this.duration===d&&this.restart(),this}revert(){return super.revert(),Ot(this)}then(t){return super.then(t)}}const Le={_head:null,_tail:null},Ne=(t,e,s)=>{let i,r=Le._head;for(;r;){const n=r._next,o=r.$el===t,a=!e||r.property===e,h=!s||r.parent===s;if(o&&a&&h){i=r.animation;try{i.commitStyles()}catch{}i.cancel(),bt(Le,r);const t=r.parent;t&&(t._completed++,t.animations.length===t._completed&&(t.completed=!0,t.paused=!0,t.muteCallbacks||(t.onComplete(t),t._resolve(t))))}r=n}return i},Ae=(t,e,s,i,r)=>{const n=e.animate(i,r),o=r.delay+ +r.duration*r.iterations;n.playbackRate=t._speed,t.paused&&n.pause(),t.duration{Ne(e,s,t)};return n.oncancel=a,n.onremove=a,t.persist||(n.onfinish=a),n};function Fe(t,e,s){const i=ne(t);if(!i.length)return;const[r]=i,n=kt(r,e),o=Pt(e,r,n);let a=Ct(r,o);if(X(s))return a;if(Dt(a,Lt),0===Lt.t||1===Lt.t){if(!1===s)return Lt.n;{const t=he(r,Lt,s,!1);return`${ut(t.n,N.precision)}${t.u}`}}}const Pe=(t,e)=>{if(!X(e))return e.duration=d,e.composition=Tt(e.composition,r.none),new Be(t,e,null,0,!0).resume()},Oe=(t,e,s)=>{const i=re(t);for(let t=0,r=i.length;t{let s=t.iterationDuration;if(s===d&&(s=0),X(e))return s;if(z(+e))return+e;const i=e,r=t?t.labels:null,n=!V(r),o=((t,e)=>{if(P(e,"<")){const s="<"===e[1],i=t._tail,r=i?i._offset+i._delay:0;return s?r:r+i.duration}})(t,i),a=!X(o),h=E.exec(i);if(h){const t=h[0],e=i.split(t),l=n&&e[0]?r[e[0]]:s,c=a?o:n?l:s,d=+e[1];return Et(c,d,t[0])}return a?o:n?X(r[i])?s:r[i]:s};function Me(t,e,s,i,r,n){const o=z(t.duration)&&t.duration<=d?s-d:s;At(e,o,1,1,1);const a=i?new Be(i,t,e,o,!1,r,n):new se(t,e,o);return a.init(!0),St(e,a),vt(e,t=>{const s=t._offset+t._delay+t.duration;s>e.iterationDuration&&(e.iterationDuration=s)}),e.duration=function(t){return ft((t.iterationDuration+t._loopDelay)*t.iterationCount-t._loopDelay)||d}(e),e}class ze extends se{constructor(t={}){super(t,null,0),this.duration=0,this.labels={};const e=t.defaults,s=N.defaults;this.defaults=e?_t(e,s):s,this.onRender=t.onRender||s.onRender;const i=Tt(t.playbackEase,s.playbackEase);this._ease=i?ve(i):null,this.iterationDuration=0}add(t,e,s){const i=M(e),r=M(t);if(i||r){if(this._hasChildren=!0,i){const i=e;if(Y(s)){const e=s,r=re(t),n=this.duration,o=this.iterationDuration,a=i.id;let h=0;const l=r.length;r.forEach(t=>{const s={...i};this.duration=n,this.iterationDuration=o,X(a)||(s.id=a+"-"+h),Me(s,this,Re(this,e(t,h,l,this)),t,h,l),h++})}else Me(i,this,Re(this,s),t)}else Me(t,this,Re(this,e));return this.init(!0)}}sync(t,e){if(X(t)||t&&X(t.pause))return this;t.pause();const s=+(t.effect?t.effect.getTiming().duration:t.duration);return this.add(t,{currentTime:[0,s],duration:s,ease:"linear"},e)}set(t,e,s){return X(e)?this:(e.duration=d,e.composition=r.replace,this.add(t,e,s))}call(t,e){return X(t)||t&&!Y(t)?this:this.add({duration:0,onComplete:()=>t(this)},e)}label(t,e){return X(t)||t&&!I(t)||(this.labels[t]=Re(this,e)),this}remove(t,e){return Jt(re(t),this,e),this}stretch(t){const e=this.duration;if(e===gt(t))return this;const s=t/e,i=this.labels;vt(this,t=>t.stretch(t.duration*s));for(let t in i)i[t]*=s;return super.stretch(t)}refresh(){return vt(this,t=>{t.refresh&&t.refresh()}),this}revert(){return super.revert(),vt(this,t=>t.revert,!0),Ot(this)}then(t){return super.then(t)}}class Ie{constructor(t,e){L.current&&L.current.register(this);const s=()=>{if(this.callbacks.completed)return;let t=!0;for(let e in this.animations)if(!this.animations[e].paused&&t){t=!1;break}t&&this.callbacks.complete()},i={onBegin:()=>{this.callbacks.completed&&this.callbacks.reset(),this.callbacks.play()},onComplete:s,onPause:s},n={v:1,autoplay:!1},o={};if(this.targets=[],this.animations={},this.callbacks=null,!X(t)&&!X(e)){for(let t in e){const s=e[t];j(t)?o[t]=s:P(t,"on")?n[t]=s:i[t]=s}this.callbacks=new Be({v:0},n);for(let e in o){const s=o[e],n=M(s);let a={},h="+=0";if(n){const t=s.unit;I(t)&&(h+=t)}else a.duration=s;a[e]=n?_t({to:h},s):h;const l=_t(i,a);l.composition=r.replace,l.autoplay=!1;const c=this.animations[e]=new Be(t,l,null,0,!1).init();this.targets.length||this.targets.push(...c.targets),this[e]=(t,e,s)=>{const i=c._head;if(X(t)&&i){const t=i._numbers;return t&&t.length?t:i._modifier(i._number)}return vt(c,e=>{if(R(t))for(let s=0,i=t.length;si+(t-e)/(s-e)*(r-i);var Xe=Object.freeze({__proto__:null,clamp:ct,damp:(t,e,s,i)=>i?1===i?e:mt(t,e,1-Math.exp(-i*s*.1)):t,degToRad:t=>t*Math.PI/180,lerp:mt,mapRange:Ye,padEnd:(t,e,s)=>`${t}`.padEnd(e,s),padStart:(t,e,s)=>`${t}`.padStart(e,s),radToDeg:t=>180*t/Math.PI,round:ut,roundPad:(t,e)=>(+t).toFixed(e),snap:pt,wrap:(t,e,s)=>((t-e)%(s-e)+(s-e))%(s-e)+e});const Ve=10*p;class We{constructor(t={}){const e=!X(t.bounce)||!X(t.duration);this.timeStep=.02,this.restThreshold=5e-4,this.restDuration=200,this.maxDuration=6e4,this.maxRestSteps=this.restDuration/this.timeStep/p,this.maxIterations=this.maxDuration/this.timeStep/p,this.bn=ct(Tt(t.bounce,.5),-1,1),this.pd=ct(Tt(t.duration,628),10*N.timeScale,Ve*N.timeScale),this.m=ct(Tt(t.mass,1),1,Ve),this.s=ct(Tt(t.stiffness,100),d,Ve),this.d=ct(Tt(t.damping,10),d,Ve),this.v=ct(Tt(t.velocity,0),-1e4,Ve),this.w0=0,this.zeta=0,this.wd=0,this.b=0,this.completed=!1,this.solverDuration=0,this.settlingDuration=0,this.parent=null,this.onComplete=t.onComplete||_,e&&this.calculateSDFromBD(),this.compute(),this.ease=t=>{const e=t*this.settlingDuration,s=this.completed,i=this.pd;return e>=i&&!s&&(this.completed=!0,this.onComplete(this.parent)),e=0?this.d=4*(1-this.bn)*ht/t:this.d=4*ht/(t*(1+this.bn)),this.s=ut(ct(this.s,d,Ve),3),this.d=ut(ct(this.d,d,300),3)}calculateBDFromSD(){const t=2*ht/J(this.s);this.pd=t*(1===N.timeScale?p:1);const e=this.d/(2*J(this.s));this.bn=e<=1?1-this.d*t/(4*ht):4*ht/(this.d*t)-1,this.bn=ut(ct(this.bn,-1,1),3),this.pd=ut(ct(this.pd,10*N.timeScale,Ve*N.timeScale),3)}compute(){const{maxRestSteps:t,maxIterations:e,restThreshold:s,timeStep:i,m:r,d:n,s:o,v:a}=this,h=this.w0=ct(J(o/r),d,p),l=this.zeta=n/(2*J(o*r));l<1?(this.wd=h*J(1-l*l),this.b=(l*h-a)/this.wd):1===l?(this.wd=0,this.b=-a+h):(this.wd=h*J(l*l-1),this.b=(l*h-a)/this.wd);let c=0,u=0,m=0;for(;u<=t&&m<=e;)et(1-this.solve(c))new We(t),Ue=t=>(console.warn("createSpring() is deprecated use spring() instead"),new We(t)),qe=t=>{t.cancelable&&t.preventDefault()};class je{constructor(t){this.el=t,this.zIndex=0,this.parentElement=null,this.classList={add:_,remove:_}}get x(){return this.el.x||0}set x(t){this.el.x=t}get y(){return this.el.y||0}set y(t){this.el.y=t}get width(){return this.el.width||0}set width(t){this.el.width=t}get height(){return this.el.height||0}set height(t){this.el.height=t}getBoundingClientRect(){return{top:this.y,right:this.x,bottom:this.y+this.height,left:this.x+this.width}}}class Ge{constructor(t){this.$el=t,this.inlineTransforms=[],this.point=new DOMPoint,this.inversedMatrix=this.getMatrix().inverse()}normalizePoint(t,e){return this.point.x=t,this.point.y=e,this.point.matrixTransform(this.inversedMatrix)}traverseUp(t){let e=this.$el.parentElement,s=0;for(;e&&e!==i;)t(e,s),e=e.parentElement,s++}getMatrix(){const t=new DOMMatrix;return this.traverseUp(e=>{const s=getComputedStyle(e).transform;if(s){const e=new DOMMatrix(s);t.preMultiplySelf(e)}}),t}remove(){this.traverseUp((t,e)=>{this.inlineTransforms[e]=t.style.transform,t.style.transform="none"})}revert(){this.traverseUp((t,e)=>{const s=this.inlineTransforms[e];""===s?t.style.removeProperty("transform"):t.style.transform=s})}}const Qe=(t,e)=>t&&Y(t)?t(e):t;let Ze=0;class Je{constructor(t,e={}){if(!t)return;L.current&&L.current.register(this);const r=e.x,n=e.y,o=e.trigger,a=e.modifier,h=e.releaseEase,l=h&&ve(h),c=!X(h)&&!X(h.ease),d=M(r)&&!X(r.mapTo)?r.mapTo:"translateX",p=M(n)&&!X(n.mapTo)?n.mapTo:"translateY",m=Qe(e.container,this);this.containerArray=R(m)?m:null,this.$container=m&&!this.containerArray?re(m)[0]:i.body,this.useWin=this.$container===i.body,this.$scrollContainer=this.useWin?s:this.$container,this.$target=M(t)?new je(t):re(t)[0],this.$trigger=re(o||t)[0],this.fixed="fixed"===Fe(this.$target,"position"),this.isFinePointer=!0,this.containerPadding=[0,0,0,0],this.containerFriction=0,this.releaseContainerFriction=0,this.snapX=0,this.snapY=0,this.scrollSpeed=0,this.scrollThreshold=0,this.dragSpeed=0,this.dragThreshold=3,this.maxVelocity=0,this.minVelocity=0,this.velocityMultiplier=0,this.cursor=!1,this.releaseXSpring=c?h:He({mass:Tt(e.releaseMass,1),stiffness:Tt(e.releaseStiffness,80),damping:Tt(e.releaseDamping,20)}),this.releaseYSpring=c?h:He({mass:Tt(e.releaseMass,1),stiffness:Tt(e.releaseStiffness,80),damping:Tt(e.releaseDamping,20)}),this.releaseEase=l||fe.outQuint,this.hasReleaseSpring=c,this.onGrab=e.onGrab||_,this.onDrag=e.onDrag||_,this.onRelease=e.onRelease||_,this.onUpdate=e.onUpdate||_,this.onSettle=e.onSettle||_,this.onSnap=e.onSnap||_,this.onResize=e.onResize||_,this.onAfterResize=e.onAfterResize||_,this.disabled=[0,0];const f={};if(a&&(f.modifier=a),X(r)||!0===r)f[d]=0;else if(M(r)){const t=r,e={};t.modifier&&(e.modifier=t.modifier),t.composition&&(e.composition=t.composition),f[d]=e}else!1===r&&(f[d]=0,this.disabled[0]=1);if(X(n)||!0===n)f[p]=0;else if(M(n)){const t=n,e={};t.modifier&&(e.modifier=t.modifier),t.composition&&(e.composition=t.composition),f[p]=e}else!1===n&&(f[p]=0,this.disabled[1]=1);this.animate=new Ie(this.$target,f),this.xProp=d,this.yProp=p,this.destX=0,this.destY=0,this.deltaX=0,this.deltaY=0,this.scroll={x:0,y:0},this.coords=[this.x,this.y,0,0],this.snapped=[0,0],this.pointer=[0,0,0,0,0,0,0,0],this.scrollView=[0,0],this.dragArea=[0,0,0,0],this.containerBounds=[-u,u,u,-u],this.scrollBounds=[0,0,0,0],this.targetBounds=[0,0,0,0],this.window=[0,0],this.velocityStack=[0,0,0],this.velocityStackIndex=0,this.velocityTime=O(),this.velocity=0,this.angle=0,this.cursorStyles=null,this.triggerStyles=null,this.bodyStyles=null,this.targetStyles=null,this.touchActionStyles=null,this.transforms=new Ge(this.$target),this.overshootCoords={x:0,y:0},this.overshootTicker=new se({autoplay:!1,onUpdate:()=>{this.updated=!0,this.manual=!0,this.disabled[0]||this.animate[this.xProp](this.overshootCoords.x,1),this.disabled[1]||this.animate[this.yProp](this.overshootCoords.y,1)},onComplete:()=>{this.manual=!1,this.disabled[0]||this.animate[this.xProp](this.overshootCoords.x,0),this.disabled[1]||this.animate[this.yProp](this.overshootCoords.y,0)}},null,0).init(),this.updateTicker=new se({autoplay:!1,onUpdate:()=>this.update()},null,0).init(),this.contained=!X(m),this.manual=!1,this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.enabled=!1,this.initialized=!1,this.activeProp=this.disabled[1]?d:p,this.animate.callbacks.onRender=()=>{const t=this.updated,e=!(this.grabbed&&t)&&this.released,s=this.x,i=this.y,r=s-this.coords[2],n=i-this.coords[3];this.deltaX=r,this.deltaY=n,this.coords[2]=s,this.coords[3]=i,t&&(r||n)&&this.onUpdate(this),e?(this.computeVelocity(r,n),this.angle=at(n,r)):this.updated=!1},this.animate.callbacks.onComplete=()=>{!this.grabbed&&this.released&&(this.released=!1),this.manual||(this.deltaX=0,this.deltaY=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.onSettle(this))},this.resizeTicker=new se({autoplay:!1,duration:150*N.timeScale,onComplete:()=>{this.onResize(this),this.refresh(),this.onAfterResize(this)}}).init(),this.parameters=e,this.resizeObserver=new ResizeObserver(()=>{this.initialized?this.resizeTicker.restart():this.initialized=!0}),this.enable(),this.refresh(),this.resizeObserver.observe(this.$container),M(t)||this.resizeObserver.observe(this.$target)}computeVelocity(t,e){const s=this.velocityTime,i=O(),r=i-s;if(r<17)return this.velocity;this.velocityTime=i;const n=this.velocityStack,o=this.velocityMultiplier,a=this.minVelocity,h=this.maxVelocity,l=this.velocityStackIndex;n[l]=ut(ct(J(t*t+e*e)/r*o,a,h),5);const c=ot(n[0],n[1],n[2]);return this.velocity=c,this.velocityStackIndex=(l+1)%3,c}setX(t,e=!1){if(this.disabled[0])return;const s=ut(t,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!e,this.destX=s,this.snapped[0]=pt(s,this.snapX),this.animate[this.xProp](s,0),this.manual=!1,this}setY(t,e=!1){if(this.disabled[1])return;const s=ut(t,5);return this.overshootTicker.pause(),this.manual=!0,this.updated=!e,this.destY=s,this.snapped[1]=pt(s,this.snapY),this.animate[this.yProp](s,0),this.manual=!1,this}get x(){return ut(this.animate[this.xProp](),N.precision)}set x(t){this.setX(t,!1)}get y(){return ut(this.animate[this.yProp](),N.precision)}set y(t){this.setY(t,!1)}get progressX(){return Ye(this.x,this.containerBounds[3],this.containerBounds[1],0,1)}set progressX(t){this.setX(Ye(t,0,1,this.containerBounds[3],this.containerBounds[1]),!1)}get progressY(){return Ye(this.y,this.containerBounds[0],this.containerBounds[2],0,1)}set progressY(t){this.setY(Ye(t,0,1,this.containerBounds[0],this.containerBounds[2]),!1)}updateScrollCoords(){const t=ut(this.useWin?s.scrollX:this.$container.scrollLeft,0),e=ut(this.useWin?s.scrollY:this.$container.scrollTop,0),[i,r,n,o]=this.containerPadding,a=this.scrollThreshold;this.scroll.x=t,this.scroll.y=e,this.scrollBounds[0]=e-this.targetBounds[0]+i-a,this.scrollBounds[1]=t-this.targetBounds[1]-r+a,this.scrollBounds[2]=e-this.targetBounds[2]-n+a,this.scrollBounds[3]=t-this.targetBounds[3]+o-a}updateBoundingValues(){const t=this.$container;if(!t)return;const e=this.x,r=this.y,n=this.coords[2],o=this.coords[3];this.coords[2]=0,this.coords[3]=0,this.setX(0,!0),this.setY(0,!0),this.transforms.remove();const a=this.window[0]=s.innerWidth,h=this.window[1]=s.innerHeight,l=this.useWin,c=t.scrollWidth,d=t.scrollHeight,u=this.fixed,p=t.getBoundingClientRect(),[m,f,g,y]=this.containerPadding;this.dragArea[0]=l?0:p.left,this.dragArea[1]=l?0:p.top,this.scrollView[0]=l?ct(c,a,c):c,this.scrollView[1]=l?ct(d,h,d):d,this.updateScrollCoords();const{width:_,height:v,left:b,top:S,right:w,bottom:T}=t.getBoundingClientRect();this.dragArea[2]=ut(l?ct(_,a,a):_,0),this.dragArea[3]=ut(l?ct(v,h,h):v,0);const x=Fe(t,"overflow"),k="visible"===x,$="hidden"===x;if(this.canScroll=!u&&this.contained&&(t===i.body&&k||!$&&!k)&&(c>this.dragArea[2]+y-f||d>this.dragArea[3]+m-g)&&(!this.containerArray||this.containerArray&&!R(this.containerArray)),this.contained){const e=this.scroll.x,s=this.scroll.y,i=this.canScroll,r=this.$target.getBoundingClientRect(),n=i?l?0:t.scrollLeft:0,o=i?l?0:t.scrollTop:0,c=i?this.scrollView[0]-n-_:0,d=i?this.scrollView[1]-o-v:0;this.targetBounds[0]=ut(r.top+s-(l?0:S),0),this.targetBounds[1]=ut(r.right+e-(l?a:w),0),this.targetBounds[2]=ut(r.bottom+s-(l?h:T),0),this.targetBounds[3]=ut(r.left+e-(l?0:b),0),this.containerArray?(this.containerBounds[0]=this.containerArray[0]+m,this.containerBounds[1]=this.containerArray[1]-f,this.containerBounds[2]=this.containerArray[2]-g,this.containerBounds[3]=this.containerArray[3]+y):(this.containerBounds[0]=-ut(r.top-(u?ct(S,0,h):S)+o-m,0),this.containerBounds[1]=-ut(r.right-(u?ct(w,0,a):w)-c+f,0),this.containerBounds[2]=-ut(r.bottom-(u?ct(T,0,h):T)-d+g,0),this.containerBounds[3]=-ut(r.left-(u?ct(b,0,a):b)+n-y,0))}this.transforms.revert(),this.coords[2]=n,this.coords[3]=o,this.setX(e,!0),this.setY(r,!0)}isOutOfBounds(t,e,s){if(!this.contained)return 0;const[i,r,n,o]=t,[a,h]=this.disabled,l=!a&&er,c=!h&&sn;return l&&!c?1:!l&&c?2:l&&c?3:0}refresh(){const t=this.parameters,e=t.x,r=t.y,n=Qe(t.container,this),o=Qe(t.containerPadding,this)||0,a=R(o)?o:[o,o,o,o],h=this.x,l=this.y,c=Qe(t.cursor,this),d={onHover:"grab",onGrab:"grabbing"};if(c){const{onHover:t,onGrab:e}=c;t&&(d.onHover=t),e&&(d.onGrab=e)}const u=Qe(t.dragThreshold,this),p={mouse:3,touch:7};if(z(u))p.mouse=u,p.touch=u;else if(u){const{mouse:t,touch:e}=u;X(t)||(p.mouse=t),X(e)||(p.touch=e)}this.containerArray=R(n)?n:null,this.$container=n&&!this.containerArray?re(n)[0]:i.body,this.useWin=this.$container===i.body,this.$scrollContainer=this.useWin?s:this.$container,this.isFinePointer=matchMedia("(pointer:fine)").matches,this.containerPadding=Tt(a,[0,0,0,0]),this.containerFriction=ct(Tt(Qe(t.containerFriction,this),.8),0,1),this.releaseContainerFriction=ct(Tt(Qe(t.releaseContainerFriction,this),this.containerFriction),0,1),this.snapX=Qe(M(e)&&!X(e.snap)?e.snap:t.snap,this),this.snapY=Qe(M(r)&&!X(r.snap)?r.snap:t.snap,this),this.scrollSpeed=Tt(Qe(t.scrollSpeed,this),1.5),this.scrollThreshold=Tt(Qe(t.scrollThreshold,this),20),this.dragSpeed=Tt(Qe(t.dragSpeed,this),1),this.dragThreshold=this.isFinePointer?p.mouse:p.touch,this.minVelocity=Tt(Qe(t.minVelocity,this),0),this.maxVelocity=Tt(Qe(t.maxVelocity,this),50),this.velocityMultiplier=Tt(Qe(t.velocityMultiplier,this),1),this.cursor=!1!==c&&d,this.updateBoundingValues();const[m,f,g,y]=this.containerBounds;this.setX(ct(h,y,f),!0),this.setY(ct(l,m,g),!0)}update(){if(this.updateScrollCoords(),this.canScroll){const[t,e,s,i]=this.containerPadding,[r,n]=this.scrollView,o=this.dragArea[2],a=this.dragArea[3],h=this.scroll.x,l=this.scroll.y,c=this.$container.scrollWidth,d=this.$container.scrollHeight,u=this.useWin?ct(c,this.window[0],c):c,p=this.useWin?ct(d,this.window[1],d):d,m=r-u,f=n-p;this.dragged&&m>0&&(this.coords[0]-=m,this.scrollView[0]=u),this.dragged&&f>0&&(this.coords[1]-=f,this.scrollView[1]=p);const g=10*this.scrollSpeed,y=this.scrollThreshold,[_,v]=this.coords,[b,S,w,T]=this.scrollBounds,x=ut(ct((v-b+t)/y,-1,0)*g,0),k=ut(ct((_-S-e)/y,0,1)*g,0),$=ut(ct((v-w-s)/y,0,1)*g,0),C=ut(ct((_-T+i)/y,-1,0)*g,0);if(x||$||C||k){const[t,e]=this.disabled;let s=h,i=l;t||(s=ut(ct(h+(C||k),0,r-o),0),this.coords[0]-=h-s),e||(i=ut(ct(l+(x||$),0,n-a),0),this.coords[1]-=l-i),this.useWin?this.$scrollContainer.scrollBy(-(h-s),-(l-i)):this.$scrollContainer.scrollTo(s,i)}}const[t,e,s,i]=this.containerBounds,[r,n,o,a,h,l]=this.pointer;this.coords[0]+=(r-h)*this.dragSpeed,this.coords[1]+=(n-l)*this.dragSpeed,this.pointer[4]=r,this.pointer[5]=n;const[c,d]=this.coords,[u,p]=this.snapped,m=(1-this.containerFriction)*this.dragSpeed;this.setX(c>e?e+(c-e)*m:cs?s+(d-s)*m:d{this.canScroll=!1,this.$scrollContainer.scrollTo(n.x,n.y)}}).init().then(()=>{this.canScroll=a})}return this}handleHover(){this.isFinePointer&&this.cursor&&!this.cursorStyles&&(this.cursorStyles=Pe(this.$trigger,{cursor:this.cursor.onHover}))}animateInView(t,e=0,s=fe.inOutQuad){this.stop(),this.updateBoundingValues();const i=this.x,r=this.y,[n,o,a,h]=this.containerPadding,l=this.scroll.y-this.targetBounds[0]+n+e,c=this.scroll.x-this.targetBounds[1]-o-e,d=this.scroll.y-this.targetBounds[2]-a-e,u=this.scroll.x-this.targetBounds[3]+h+e,p=this.isOutOfBounds([l,c,d,u],i,r);if(p){const[e,n]=this.disabled,o=ct(pt(i,this.snapX),u,c),a=ct(pt(r,this.snapY),l,d),h=X(t)?350*N.timeScale:t;e||1!==p&&3!==p||this.animate[this.xProp](o,h,s),n||2!==p&&3!==p||this.animate[this.yProp](a,h,s)}return this}handleDown(t){const e=t.target;if(this.grabbed||"range"===e.type)return;t.stopPropagation(),this.grabbed=!0,this.released=!1,this.stop(),this.updateBoundingValues();const s=t.changedTouches,r=s?s[0].clientX:t.clientX,n=s?s[0].clientY:t.clientY,{x:o,y:a}=this.transforms.normalizePoint(r,n),[h,l,c,d]=this.containerBounds,u=(1-this.containerFriction)*this.dragSpeed,p=this.x,m=this.y;this.coords[0]=this.coords[2]=u?p>l?l+(p-l)/u:pc?c+(m-c)/u:mZe?f:Ze)+1,this.targetStyles=Pe(this.$target,{zIndex:Ze}),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.isFinePointer&&this.cursor&&(this.bodyStyles=Pe(i.body,{cursor:this.cursor.onGrab})),this.scrollInView(100,0,fe.out(3)),this.onGrab(this),i.addEventListener("touchmove",this),i.addEventListener("touchend",this),i.addEventListener("touchcancel",this),i.addEventListener("mousemove",this),i.addEventListener("mouseup",this),i.addEventListener("selectstart",this)}handleMove(t){if(!this.grabbed)return;const e=t.changedTouches,s=e?e[0].clientX:t.clientX,i=e?e[0].clientY:t.clientY,{x:r,y:n}=this.transforms.normalizePoint(s,i),o=r-this.pointer[6],a=n-this.pointer[7];let h=t.target,l=!1,c=!1,d=!1;for(;e&&h&&h!==this.$trigger;){const t=Fe(h,"overflow-y");if("hidden"!==t&&"visible"!==t){const{scrollTop:t,scrollHeight:e,clientHeight:s}=h;if(e>s){d=!0,l=t<=3,c=t>=e-s-3;break}}h=h.parentElement}d&&(!l&&!c||l&&a<0||c&&a>0)?(this.pointer[0]=r,this.pointer[1]=n,this.pointer[2]=r,this.pointer[3]=n,this.pointer[4]=r,this.pointer[5]=n,this.pointer[6]=r,this.pointer[7]=n):(qe(t),this.triggerStyles||(this.triggerStyles=Pe(this.$trigger,{pointerEvents:"none"})),this.$trigger.addEventListener("touchstart",qe,{passive:!1}),this.$trigger.addEventListener("touchmove",qe,{passive:!1}),this.$trigger.addEventListener("touchend",qe),(this.dragged||!this.disabled[0]&&et(o)>this.dragThreshold||!this.disabled[1]&&et(a)>this.dragThreshold)&&(this.updateTicker.resume(),this.pointer[2]=this.pointer[0],this.pointer[3]=this.pointer[1],this.pointer[0]=r,this.pointer[1]=n,this.dragged=!0,this.released=!1,this.onDrag(this)))}handleUp(){if(!this.grabbed)return;this.updateTicker.pause(),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.bodyStyles&&(this.bodyStyles.revert(),this.bodyStyles=null);const[t,e]=this.disabled,[s,n,o,a,h,l]=this.pointer,[c,d,u,p]=this.containerBounds,[m,f]=this.snapped,g=this.releaseXSpring,y=this.releaseYSpring,_=this.releaseEase,v=this.hasReleaseSpring,b=this.overshootCoords,S=this.x,w=this.y,T=this.computeVelocity(s-h,n-l),x=this.angle=at(n-a,s-o),k=150*T,$=(1-this.releaseContainerFriction)*this.dragSpeed,C=S+tt(x)*k,E=w+K(x)*k,D=C>d?d+(C-d)*$:Cu?u+(E-u)*$:Ed?-1:1:Sz&&(z=P)}if(!e){const e=A===u?w>u?-1:1:wz&&(z=O)}if(!v&&F&&$&&(P||O)){const t=r.blend;new Be(b,{x:{to:D,duration:.65*P},y:{to:B,duration:.65*O},ease:_,composition:t}).init(),new Be(b,{x:{to:L,duration:P},y:{to:A,duration:O},ease:_,composition:t}).init(),this.overshootTicker.stretch(ot(P,O)).restart()}else t||this.animate[this.xProp](L,P,R),e||this.animate[this.yProp](A,O,M);this.scrollInView(z,this.scrollThreshold,_);let I=!1;L!==m&&(this.snapped[0]=L,this.snapX&&(I=!0)),A!==f&&this.snapY&&(this.snapped[1]=A,this.snapY&&(I=!0)),I&&this.onSnap(this),this.grabbed=!1,this.dragged=!1,this.updated=!0,this.released=!0,this.onRelease(this),this.$trigger.removeEventListener("touchstart",qe),this.$trigger.removeEventListener("touchmove",qe),this.$trigger.removeEventListener("touchend",qe),i.removeEventListener("touchmove",this),i.removeEventListener("touchend",this),i.removeEventListener("touchcancel",this),i.removeEventListener("mousemove",this),i.removeEventListener("mouseup",this),i.removeEventListener("selectstart",this)}reset(){return this.stop(),this.resizeTicker.pause(),this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.setX(0,!0),this.setY(0,!0),this.coords[0]=0,this.coords[1]=0,this.pointer[0]=0,this.pointer[1]=0,this.pointer[2]=0,this.pointer[3]=0,this.pointer[4]=0,this.pointer[5]=0,this.pointer[6]=0,this.pointer[7]=0,this.velocity=0,this.velocityStack[0]=0,this.velocityStack[1]=0,this.velocityStack[2]=0,this.velocityStackIndex=0,this.angle=0,this}enable(){return this.enabled||(this.enabled=!0,this.$target.classList.remove("is-disabled"),this.touchActionStyles=Pe(this.$trigger,{touchAction:this.disabled[0]?"pan-x":this.disabled[1]?"pan-y":"none"}),this.$trigger.addEventListener("touchstart",this,{passive:!0}),this.$trigger.addEventListener("mousedown",this,{passive:!0}),this.$trigger.addEventListener("mouseenter",this)),this}disable(){return this.enabled=!1,this.grabbed=!1,this.dragged=!1,this.updated=!1,this.released=!1,this.canScroll=!1,this.touchActionStyles.revert(),this.cursorStyles&&(this.cursorStyles.revert(),this.cursorStyles=null),this.triggerStyles&&(this.triggerStyles.revert(),this.triggerStyles=null),this.bodyStyles&&(this.bodyStyles.revert(),this.bodyStyles=null),this.targetStyles&&(this.targetStyles.revert(),this.targetStyles=null),this.$target.classList.add("is-disabled"),this.$trigger.removeEventListener("touchstart",this),this.$trigger.removeEventListener("mousedown",this),this.$trigger.removeEventListener("mouseenter",this),i.removeEventListener("touchmove",this),i.removeEventListener("touchend",this),i.removeEventListener("touchcancel",this),i.removeEventListener("mousemove",this),i.removeEventListener("mouseup",this),i.removeEventListener("selectstart",this),this}revert(){return this.reset(),this.disable(),this.$target.classList.remove("is-disabled"),this.updateTicker.revert(),this.overshootTicker.revert(),this.resizeTicker.revert(),this.animate.revert(),this.resizeObserver.disconnect(),this}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":this.handleDown(t);break;case"mousemove":case"touchmove":this.handleMove(t);break;case"mouseup":case"touchend":case"touchcancel":this.handleUp();break;case"mouseenter":this.handleHover();break;case"selectstart":qe(t)}}}const Ke=(t=_)=>new se({duration:1*N.timeScale,onComplete:t},null,0).resume(),ts=t=>{let e;return(...s)=>{let i,r,n,o;e&&(i=e.currentIteration,r=e.iterationProgress,n=e.reversed,o=e._alternate,e.revert());const a=t(...s);return a&&!Y(a)&&a.revert&&(e=a),X(r)||(e.currentIteration=i,e.iterationProgress=(o&&i%2?!n:n)?1-r:r),a||_}};class es{constructor(t={}){L.current&&L.current.register(this);const e=t.root;let r=i;e&&(r=e.current||e.nativeElement||re(e)[0]||i);const n=t.defaults,o=N.defaults,a=t.mediaQueries;if(this.defaults=n?_t(n,o):o,this.root=r,this.constructors=[],this.revertConstructors=[],this.revertibles=[],this.constructorsOnce=[],this.revertConstructorsOnce=[],this.revertiblesOnce=[],this.once=!1,this.onceIndex=0,this.methods={},this.matches={},this.mediaQueryLists={},this.data={},a)for(let t in a){const e=s.matchMedia(a[t]);this.mediaQueryLists[t]=e,e.addEventListener("change",this)}}register(t){(this.once?this.revertiblesOnce:this.revertibles).push(t)}execute(t){let e=L.current,s=L.root,i=N.defaults;L.current=this,L.root=this.root,N.defaults=this.defaults;const r=this.mediaQueryLists;for(let t in r)this.matches[t]=r[t].matches;const n=t(this);return L.current=e,L.root=s,N.defaults=i,n}refresh(){return this.onceIndex=0,this.execute(()=>{let t=this.revertibles.length,e=this.revertConstructors.length;for(;t--;)this.revertibles[t].revert();for(;e--;)this.revertConstructors[e](this);this.revertibles.length=0,this.revertConstructors.length=0,this.constructors.forEach(t=>{const e=t(this);Y(e)&&this.revertConstructors.push(e)})}),this}add(t,e){if(this.once=!1,Y(t)){const e=t;this.constructors.push(e),this.execute(()=>{const t=e(this);Y(t)&&this.revertConstructors.push(t)})}else this.methods[t]=(...t)=>this.execute(()=>e(...t));return this}addOnce(t){if(this.once=!0,Y(t)){const e=this.onceIndex++;if(this.constructorsOnce[e])return this;const s=t;this.constructorsOnce[e]=s,this.execute(()=>{const t=s(this);Y(t)&&this.revertConstructorsOnce.push(t)})}return this}keepTime(t){this.once=!0;const e=this.onceIndex++,s=this.constructorsOnce[e];if(Y(s))return s(this);const i=ts(t);let r;return this.constructorsOnce[e]=i,this.execute(()=>{r=i(this)}),r}handleEvent(t){"change"===t.type&&this.refresh()}revert(){const t=this.revertibles,e=this.revertConstructors,s=this.revertiblesOnce,i=this.revertConstructorsOnce,r=this.mediaQueryLists;let n=t.length,o=e.length,a=s.length,h=i.length;for(;n--;)t[n].revert();for(;o--;)e[o](this);for(;a--;)s[a].revert();for(;h--;)i[h](this);for(let t in r)r[t].removeEventListener("change",this);t.length=0,e.length=0,this.constructors.length=0,s.length=0,i.length=0,this.constructorsOnce.length=0,this.onceIndex=0,this.matches={},this.methods={},this.mediaQueryLists={},this.data={}}}const ss=(t,e)=>t&&Y(t)?t(e):t,is=new Map;class rs{constructor(t){this.element=t,this.useWin=this.element===i.body,this.winWidth=0,this.winHeight=0,this.width=0,this.height=0,this.left=0,this.top=0,this.scale=1,this.zIndex=0,this.scrollX=0,this.scrollY=0,this.prevScrollX=0,this.prevScrollY=0,this.scrollWidth=0,this.scrollHeight=0,this.velocity=0,this.backwardX=!1,this.backwardY=!1,this.scrollTicker=new se({autoplay:!1,onBegin:()=>this.dataTimer.resume(),onUpdate:()=>{const t=this.backwardX||this.backwardY;vt(this,t=>t.handleScroll(),t)},onComplete:()=>this.dataTimer.pause()}).init(),this.dataTimer=new se({autoplay:!1,frameRate:30,onUpdate:t=>{const e=t.deltaTime,s=this.prevScrollX,i=this.prevScrollY,r=this.scrollX,n=this.scrollY,o=s-r,a=i-n;this.prevScrollX=r,this.prevScrollY=n,o&&(this.backwardX=s>r),a&&(this.backwardY=i>n),this.velocity=ut(e>0?Math.sqrt(o*o+a*a)/e:0,5)}}).init(),this.resizeTicker=new se({autoplay:!1,duration:250*N.timeScale,onComplete:()=>{this.updateWindowBounds(),this.refreshScrollObservers(),this.handleScroll()}}).init(),this.wakeTicker=new se({autoplay:!1,duration:500*N.timeScale,onBegin:()=>{this.scrollTicker.resume()},onComplete:()=>{this.scrollTicker.pause()}}).init(),this._head=null,this._tail=null,this.updateScrollCoords(),this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll(),this.resizeObserver=new ResizeObserver(()=>this.resizeTicker.restart()),this.resizeObserver.observe(this.element),(this.useWin?s:this.element).addEventListener("scroll",this,!1)}updateScrollCoords(){const t=this.useWin,e=this.element;this.scrollX=ut(t?s.scrollX:e.scrollLeft,0),this.scrollY=ut(t?s.scrollY:e.scrollTop,0)}updateWindowBounds(){this.winWidth=s.innerWidth,this.winHeight=(()=>{const t=i.createElement("div");i.body.appendChild(t),t.style.height="100lvh";const e=t.offsetHeight;return i.body.removeChild(t),e})()}updateBounds(){const t=getComputedStyle(this.element),e=this.element;let s,i;if(this.scrollWidth=e.scrollWidth+parseFloat(t.marginLeft)+parseFloat(t.marginRight),this.scrollHeight=e.scrollHeight+parseFloat(t.marginTop)+parseFloat(t.marginBottom),this.updateWindowBounds(),this.useWin)s=this.winWidth,i=this.winHeight;else{const t=e.getBoundingClientRect();s=e.clientWidth,i=e.clientHeight,this.top=t.top,this.left=t.left,this.scale=t.width?s/t.width:t.height?i/t.height:1}this.width=s,this.height=i}refreshScrollObservers(){vt(this,t=>{t._debug&&t.removeDebug()}),this.updateBounds(),vt(this,t=>{t.refresh(),t._debug&&t.debug()})}refresh(){this.updateWindowBounds(),this.updateBounds(),this.refreshScrollObservers(),this.handleScroll()}handleScroll(){this.updateScrollCoords(),this.wakeTicker.restart()}handleEvent(t){"scroll"===t.type&&this.handleScroll()}revert(){this.scrollTicker.cancel(),this.dataTimer.cancel(),this.resizeTicker.cancel(),this.wakeTicker.cancel(),this.resizeObserver.disconnect(),(this.useWin?s:this.element).removeEventListener("scroll",this),is.delete(this.element)}}const ns=(t,e,s,i,r)=>{const n="min"===e,o="max"===e,a="top"===e||"left"===e||"start"===e||n?0:"bottom"===e||"right"===e||"end"===e||o?"100%":"center"===e?"50%":e,{n:h,u:l}=Dt(a,Lt);let c=h;return"%"===l?c=h/100*s:l&&(c=he(t,Lt,"px",!0).n),o&&i<0&&(c+=i),n&&r>0&&(c+=r),c},os=(t,e,s,i,r)=>{let n;if(I(e)){const o=E.exec(e);if(o){const a=o[0],h=a[0],l=e.split(a),c="min"===l[0],d="max"===l[0],u=ns(t,l[0],s,i,r),p=ns(t,l[1],s,i,r);if(c){const e=Et(ns(t,"min",s),p,h);n=eu?u:e}else n=Et(u,p,h)}else n=ns(t,e,s,i,r)}else n=e;return ut(n,0)},as=t=>{let e;const s=t.targets;for(let t=0,i=s.length;t()=>{const e=this.linked;return e&&e[t]?e[t]():null}):null,l=a&&h.length>2;this.index=hs++,this.id=X(t.id)?this.index:t.id,this.container=(t=>{const e=t&&re(t)[0]||i.body;let s=is.get(e);return s||(s=new rs(e),is.set(e,s)),s})(t.container),this.target=null,this.linked=null,this.repeat=null,this.horizontal=null,this.enter=null,this.leave=null,this.sync=n||o||!!h,this.syncEase=n?s:null,this.syncSmooth=o?!0===e||r?1:e:null,this.onSyncEnter=h&&!l&&h[0]?h[0]:_,this.onSyncLeave=h&&!l&&h[1]?h[1]:_,this.onSyncEnterForward=h&&l&&h[0]?h[0]:_,this.onSyncLeaveForward=h&&l&&h[1]?h[1]:_,this.onSyncEnterBackward=h&&l&&h[2]?h[2]:_,this.onSyncLeaveBackward=h&&l&&h[3]?h[3]:_,this.onEnter=t.onEnter||_,this.onLeave=t.onLeave||_,this.onEnterForward=t.onEnterForward||_,this.onLeaveForward=t.onLeaveForward||_,this.onEnterBackward=t.onEnterBackward||_,this.onLeaveBackward=t.onLeaveBackward||_,this.onUpdate=t.onUpdate||_,this.onSyncComplete=t.onSyncComplete||_,this.reverted=!1,this.ready=!1,this.completed=!1,this.began=!1,this.isInView=!1,this.forceEnter=!1,this.hasEntered=!1,this.offset=0,this.offsetStart=0,this.offsetEnd=0,this.distance=0,this.prevProgress=0,this.thresholds=["start","end","end","start"],this.coords=[0,0,0,0],this.debugStyles=null,this.$debug=null,this._params=t,this._debug=Tt(t.debug,!1),this._next=null,this._prev=null,St(this.container,this),Ke(()=>{if(!this.reverted){if(!this.target){const e=re(t.target)[0];this.target=e||i.body,this.refresh()}this._debug&&this.debug()}})}link(t){if(t&&(t.pause(),this.linked=t,X(t)||(t.persist=!0),!this._params.target)){let e;X(t.targets)?vt(t,t=>{t.targets&&!e&&(e=as(t))}):e=as(t),this.target=e||i.body,this.refresh()}return this}get velocity(){return this.container.velocity}get backward(){return this.horizontal?this.container.backwardX:this.container.backwardY}get scroll(){return this.horizontal?this.container.scrollX:this.container.scrollY}get progress(){const t=(this.scroll-this.offsetStart)/this.distance;return t===1/0||isNaN(t)?0:ut(ct(t,0,1),6)}refresh(){this.ready=!0,this.reverted=!1;const t=this._params;return this.repeat=Tt(ss(t.repeat,this),!0),this.horizontal="x"===Tt(ss(t.axis,this),"y"),this.enter=Tt(ss(t.enter,this),"end start"),this.leave=Tt(ss(t.leave,this),"start end"),this.updateBounds(),this.handleScroll(),this}removeDebug(){return this.$debug&&(this.$debug.parentNode.removeChild(this.$debug),this.$debug=null),this.debugStyles&&(this.debugStyles.revert(),this.$debug=null),this}debug(){this.removeDebug();const t=this.container,e=this.horizontal,s=t.element.querySelector(":scope > .animejs-onscroll-debug"),r=i.createElement("div"),n=i.createElement("div"),o=i.createElement("div"),a=ls[this.index%ls.length],h=t.useWin,l=h?t.winWidth:t.width,c=h?t.winHeight:t.height,d=t.scrollWidth,u=t.scrollHeight,p=this.container.width>360?320:260,m=e?0:10,f=e?10:0,g=e?24:p/2,y=e?g:15,_=e?60:g,v=e?_:y,b=e?"repeat-x":"repeat-y",S=t=>e?"0px "+t+"px":t+"px 2px",w=t=>`linear-gradient(${e?90:0}deg, ${t} 2px, transparent 1px)`,T=(t,e,s,i,r)=>`position:${t};left:${e}px;top:${s}px;width:${i}px;height:${r}px;`;r.style.cssText=`${T("absolute",m,f,e?d:p,e?p:u)}\n pointer-events: none;\n z-index: ${this.container.zIndex++};\n display: flex;\n flex-direction: ${e?"column":"row"};\n filter: drop-shadow(0px 1px 0px rgba(0,0,0,.75));\n `,n.style.cssText=`${T("sticky",0,0,e?l:g,e?g:c)}`,s||(n.style.cssText+=`background:\n ${w("#FFFF")}${S(g-10)} / 100px 100px ${b},\n ${w("#FFF8")}${S(g-10)} / 10px 10px ${b};\n `),o.style.cssText=`${T("relative",0,0,e?d:g,e?g:u)}`,s||(o.style.cssText+=`background:\n ${w("#FFFF")}${S(0)} / ${e?"100px 10px":"10px 100px"} ${b},\n ${w("#FFF8")}${S(0)} / ${e?"10px 0px":"0px 10px"} ${b};\n `);const x=[" enter: "," leave: "];this.coords.forEach((t,s)=>{const r=s>1,h=(r?0:this.offset)+t,m=s%2,f=h(r?e?l:c:e?d:u)-v,b=(r?m&&!f:!m&&!f)||g,S=i.createElement("div"),w=i.createElement("div"),k=e?b?"right":"left":b?"bottom":"top",$=b?(e?_:y)+(r?e?-1:g?0:-2:e?-1:-2):e?1:0;w.innerHTML=`${this.id}${x[m]}${this.thresholds[s]}`,S.style.cssText=`${T("absolute",0,0,_,y)}\n display: flex;\n flex-direction: ${e?"column":"row"};\n justify-content: flex-${r?"start":"end"};\n align-items: flex-${b?"end":"start"};\n border-${k}: 2px solid ${a};\n `,w.style.cssText=`\n overflow: hidden;\n max-width: ${p/2-10}px;\n height: ${y};\n margin-${e?b?"right":"left":b?"bottom":"top"}: -2px;\n padding: 1px;\n font-family: ui-monospace, monospace;\n font-size: 10px;\n letter-spacing: -.025em;\n line-height: 9px;\n font-weight: 600;\n text-align: ${e&&b||!e&&!r?"right":"left"};\n white-space: pre;\n text-overflow: ellipsis;\n color: ${m?a:"rgba(0,0,0,.75)"};\n background-color: ${m?"rgba(0,0,0,.65)":a};\n border: 2px solid ${m?a:"transparent"};\n border-${e?b?"top-left":"top-right":b?"top-left":"bottom-left"}-radius: 5px;\n border-${e?b?"bottom-left":"bottom-right":b?"top-right":"bottom-right"}-radius: 5px;\n `,S.appendChild(w);let C=h-$+(e?1:0);S.style[e?"left":"top"]=`${C}px`,(r?n:o).appendChild(S)}),r.appendChild(n),r.appendChild(o),t.element.appendChild(r),s||r.classList.add("animejs-onscroll-debug"),this.$debug=r,"static"===Fe(t.element,"position")&&(this.debugStyles=Pe(t.element,{position:"relative "}))}updateBounds(){let t;this._debug&&this.removeDebug();const e=this.target,s=this.container,r=this.horizontal,n=this.linked;let o,a=e;for(n&&(o=n.currentTime,n.seek(0,!0)),a.parentElement;a&&a!==s.element&&a!==i.body;){const e="sticky"===Fe(a,"position")&&Pe(a,{position:"static"});a=a.parentElement,e&&(t||(t=[]),t.push(e))}const h=e.getBoundingClientRect(),l=s.scale,c=(r?h.left+s.scrollX-s.left:h.top+s.scrollY-s.top)*l,d=(r?h.width:h.height)*l,u=r?s.width:s.height,p=(r?s.scrollWidth:s.scrollHeight)-u,m=this.enter,f=this.leave;let g="start",y="end",_="end",v="start";if(I(m)){const t=m.split(" ");_=t[0],g=t.length>1?t[1]:g}else if(M(m)){const t=m;X(t.container)||(_=t.container),X(t.target)||(g=t.target)}else z(m)&&(_=m);if(I(f)){const t=f.split(" ");v=t[0],y=t.length>1?t[1]:y}else if(M(f)){const t=f;X(t.container)||(v=t.container),X(t.target)||(y=t.target)}else z(f)&&(v=f);const b=os(e,g,d),S=os(e,y,d),w=b+c-u,T=S+c-p,x=os(e,_,u,w,T),k=os(e,v,u,w,T),$=b+c-x,C=S+c-k,E=C-$;this.offset=c,this.offsetStart=$,this.offsetEnd=C,this.distance=E<=0?0:E,this.thresholds=[g,y,_,v],this.coords=[b,S,x,k],t&&t.forEach(t=>t.revert()),n&&n.seek(o,!0),this._debug&&this.debug()}handleScroll(){if(!this.ready)return;const t=this.linked,e=this.sync,s=this.syncEase,i=this.syncSmooth,r=t&&(s||i),n=this.horizontal,o=this.container,a=this.scroll,h=a<=this.offsetStart,l=a>=this.offsetEnd,c=!h&&!l,d=a===this.offsetStart||a===this.offsetEnd,u=!this.hasEntered&&d,p=this._debug&&this.$debug;let m=!1,f=!1,g=this.progress;if(h&&this.began&&(this.began=!1),g>0&&!this.began&&(this.began=!0),r){const e=t.progress;if(i&&z(i)){if(i<1){const t=1e-4,s=eg&&!g?-t:0;g=ut(mt(e,g,mt(.01,.2,i))+s,6)}}else s&&(g=s(g));m=g!==this.prevProgress,f=1===e,m&&!f&&i&&e&&o.wakeTicker.restart()}if(p){const t=n?o.scrollY:o.scrollX;p.style[n?"top":"left"]=t+10+"px"}(c&&!this.isInView||u&&!this.forceEnter&&!this.hasEntered)&&(c&&(this.isInView=!0),this.forceEnter&&this.hasEntered?c&&(this.forceEnter=!1):(p&&c&&(p.style.zIndex=""+this.container.zIndex++),this.onSyncEnter(this),this.onEnter(this),this.backward?(this.onSyncEnterBackward(this),this.onEnterBackward(this)):(this.onSyncEnterForward(this),this.onEnterForward(this)),this.hasEntered=!0,u&&(this.forceEnter=!0))),(c||!c&&this.isInView)&&(m=!0),m&&(r&&t.seek(t.duration*g),this.onUpdate(this)),!c&&this.isInView&&(this.isInView=!1,this.onSyncLeave(this),this.onLeave(this),this.backward?(this.onSyncLeaveBackward(this),this.onLeaveBackward(this)):(this.onSyncLeaveForward(this),this.onLeaveForward(this)),e&&!i&&(f=!0)),g>=1&&this.began&&!this.completed&&(e&&f||!e)&&(e&&this.onSyncComplete(this),this.completed=!0,(!this.repeat&&!t||!this.repeat&&t&&t.completed)&&this.revert()),g<1&&this.completed&&(this.completed=!1),this.prevProgress=g}revert(){if(this.reverted)return;const t=this.container;return bt(t,this),t._head||t.revert(),this._debug&&this.removeDebug(),this.reverted=!0,this.ready=!1,this}}const ds=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t,us=(t=.5,e=0,s=.5,i=1)=>t===e&&s===i?le:r=>0===r||1===r?r:ds(((t,e,s)=>{let i,r,n=0,o=1,a=0;do{r=n+(o-n)/2,i=ds(r,e,s)-t,i>0?o=r:n=r}while(et(i)>1e-7&&++a<100);return r})(r,t,s),e,i),ps=(t=10,e)=>{const s=e?it:rt;return e=>s(ct(e,0,1)*t)*(1/t)},ms=(...t)=>{const e=t.length;if(!e)return le;const s=e-1,i=t[0],r=t[s],n=[0],o=[Q(i)];for(let e=1;e{const s=[0],i=t-1;for(let t=1;t(...e)=>{const s=t(...e);return new Proxy(_,{apply:(t,e,[i])=>s(i),get:(t,e)=>vs((...t)=>{const i=_s[e](...t);return t=>i(s(t))})})},bs=(t,e,s=0)=>{const i=(...t)=>(t.length(...s)=>e?e=>t(...s,e):e=>t(e,...s))(e,s)):e)(...t);return _s[t]||(_s[t]=i),i},Ss=bs("roundPad",ys.roundPad),ws=bs("padStart",ys.padStart),Ts=bs("padEnd",ys.padEnd),xs=bs("wrap",ys.wrap),ks=bs("mapRange",ys.mapRange),$s=bs("degToRad",ys.degToRad),Cs=bs("radToDeg",ys.radToDeg),Es=bs("snap",ys.snap),Ds=bs("clamp",ys.clamp),Bs=bs("round",ys.round),Ls=bs("lerp",ys.lerp,1),Ns=bs("damp",ys.damp,1),As=(t=0,e=1,s=0)=>{const i=10**s;return Math.floor((Math.random()*(e-t+1/i)+t)*i)/i};let Fs=0;const Ps=(t,e=0,s=1,i=0)=>{let r=void 0===t?Fs++:t;return(t=e,n=s,o=i)=>{r+=1831565813,r=Math.imul(r^r>>>15,1|r),r^=r+Math.imul(r^r>>>7,61|r);const a=10**o;return Math.floor((((r^r>>>14)>>>0)/4294967296*(n-t+1/a)+t)*a)/a}},Os=t=>t[As(0,t.length-1)],Rs=t=>{let e,s,i=t.length;for(;i;)s=As(0,--i),e=t[i],t[i]=t[s],t[s]=e;return t},Ms=(t,e={})=>{let s=[],i=0;const r=e.from,n=e.reversed,o=e.ease,a=!X(o),h=a&&!X(o.ease)?o.ease:a?ve(o):null,l=e.grid,c=e.axis,d=e.total,u=X(r)||0===r||"first"===r,p="center"===r,f="last"===r,g="random"===r,y=R(t),_=e.use,v=Q(y?t[0]:t),b=y?Q(t[1]):0,S=k.exec((y?t[1]:t)+m),w=e.start||0+(y?v:0);let T=u?0:z(r)?r:0;return(t,r,o,a)=>{const[u]=ne(t),m=X(d)?o:d,x=!X(_)&&(Y(_)?_(u,r,m):Ct(u,_)),k=z(x)||I(x)&&z(+x)?+x:r;if(p&&(T=(m-1)/2),f&&(T=m-1),!s.length){for(let t=0;th(t/i)*i)),n&&(s=s.map(t=>c?t<0?-1*t:-t:et(i-t))),g&&(s=Rs(s))}const $=y?(b-v)/i:v;let C=(a?Re(a,X(e.start)?a.iterationDuration:w):w)+($*ut(s[k],2)||0);return e.modifier&&(C=e.modifier(C)),S&&(C=`${C}${S[2]}`),C}};var zs=Object.freeze({__proto__:null,$:ne,clamp:Ds,cleanInlineStyles:Ot,createSeededRandom:Ps,damp:Ns,degToRad:$s,get:Fe,keepTime:ts,lerp:Ls,mapRange:ks,padEnd:Ts,padStart:ws,radToDeg:Cs,random:As,randomPick:Os,remove:Oe,round:Bs,roundPad:Ss,set:Pe,shuffle:Rs,snap:Es,stagger:Ms,sync:Ke,wrap:xs});const Is=t=>{const e=re(t)[0];return e&&W(e)?e:console.warn(`${t} is not a valid SVGGeometryElement`)},Ys=(t,e,s,i,r)=>{const n=s+i,o=r?Math.max(0,Math.min(n,e)):(n%e+e)%e;return t.getPointAtLength(o)},Xs=(t,e,s=0)=>i=>{const r=+t.getTotalLength(),n=i[a],o=t.getCTM(),h=0===s;return{from:0,to:r,modifier:i=>{const a=i+s*r;if("a"===e){const e=Ys(t,r,a,-1,h),s=Ys(t,r,a,1,h);return 180*at(s.y-e.y,s.x-e.x)/ht}{const s=Ys(t,r,a,0,h);return"x"===e?n||!o?s.x:s.x*o.a+s.y*o.c+o.e:n||!o?s.y:s.x*o.b+s.y*o.d+o.f}}}},Vs=(t,e=0)=>{const s=Is(t);if(s)return{translateX:Xs(s,"x",e),translateY:Xs(s,"y",e),rotate:Xs(s,"a",e)}},Ws=(t,e=0,s=0)=>re(t).map(t=>((t,e,s)=>{const i=p,r=getComputedStyle(t),n=r.strokeLinecap,o="non-scaling-stroke"===r.vectorEffect?t:null;let a=n;const h=new Proxy(t,{get(t,e){const s=t[e];return e===c?t:"setAttribute"===e?(...e)=>{if("draw"===e[0]){const s=e[1].split(" "),r=+s[0],h=+s[1],l=(t=>{let e=1;if(t&&t.getCTM){const s=t.getCTM();s&&(e=(J(s.a*s.a+s.b*s.b)+J(s.c*s.c+s.d*s.d))/2)}return e})(o),c=-1e3*r*l,d=h*i*l+c,u=i*l+(0===r&&1===h||1===r&&0===h?0:10*l)-d;if("butt"!==n){const e=r===h?"butt":n;a!==e&&(t.style.strokeLinecap=`${e}`,a=e)}t.setAttribute("stroke-dashoffset",`${c}`),t.setAttribute("stroke-dasharray",`${d} ${u}`)}return Reflect.apply(s,t,e)}:Y(s)?(...e)=>Reflect.apply(s,t,e):s}});return"1000"!==t.getAttribute("pathLength")&&(t.setAttribute("pathLength","1000"),h.setAttribute("draw",`${e} ${s}`)),h})(t,e,s)),Hs=(t,e=.33)=>s=>{if(!(s.tagName||"").toLowerCase().match(/^(path|polygon|polyline)$/))throw new Error(`Can't morph a <${s.tagName}> SVG element. Use , or .`);const i=Is(t);if(!i)throw new Error("Can't morph to an invalid target. 'path2' must resolve to an existing , or SVG element.");if(!(i.tagName||"").toLowerCase().match(/^(path|polygon|polyline)$/))throw new Error(`Can't morph a <${i.tagName}> SVG element. Use , or .`);const r="path"===s.tagName,n=r?" ":",",o=s[l];o&&s.setAttribute(r?"d":"points",o);let a="",h="";if(e){const t=s.getTotalLength(),o=i.getTotalLength(),l=Math.max(Math.ceil(t*e),Math.ceil(o*e));for(let e=0;et.isWordLike||" "===t.segment||z(+t.segment),oi=t=>t.setAttribute("aria-hidden","true"),ai=(t,e)=>[...t.querySelectorAll(`[data-${e}]:not([data-${e}] [data-${e}])`)],hi={line:"#00D672",word:"#FF4B4B",char:"#5A87FF"},li=t=>{if(!t.childElementCount&&!t.textContent.trim()){const e=t.parentElement;t.remove(),e&&li(e)}},ci=(t,e,s)=>{const i=t.getAttribute(ei);(null!==i&&+i!==e||"BR"===t.tagName)&&s.add(t);let r=t.childElementCount;for(;r--;)ci(t.children[r],e,s);return s},di=(t,e={})=>{let s="";const i=I(e.class)?` class="${e.class}"`:"",r=Tt(e.clone,!1),n=Tt(e.wrap,!1),o=n?!0===n?"clip":n:!!r&&"clip";return n&&(s+=``),s+=``,r?(s+="{value}",s+=`{value}`):s+="{value}",s+="",n&&(s+=""),s},ui=(t,e,s,i,r,n,o,a,h)=>{const l=r===Js,c=r===ti,d=`_${r}_`,u=Y(t)?t(s):t,p=l?"block":"inline-block";ri.innerHTML=u.replace(js,``).replace(Gs,`${c?h:l?o:a}`);const m=ri.content,f=m.firstElementChild,g=m.querySelector(`[data-${r}]`)||f,y=m.querySelectorAll(`i.${d}`),_=y.length;if(_){f.style.display=p,g.style.display=p,g.setAttribute(ei,`${o}`),l||(g.setAttribute("data-word",`${a}`),c&&g.setAttribute("data-char",`${h}`));let t=_;for(;t--;){const e=y[t],i=e.parentElement;i.style.display=p,l?i.innerHTML=s.innerHTML:i.replaceChild(s.cloneNode(!0),e)}e.push(g),i.appendChild(m)}else console.warn('The expression "{value}" is missing from the provided template.');return n&&(f.style.outline=`1px dotted ${hi[r]}`),f};class pi{constructor(t,s={}){si||(si=qs?new qs([],{granularity:Ks}):{segment:t=>{const e=[],s=t.split(Qs);for(let t=0,i=s.length;t[...t].map(t=>({segment:t}))}),!ri&&e&&(ri=i.createElement("template")),L.current&&L.current.register(this);const{words:r,chars:n,lines:o,accessible:a,includeSpaces:h,debug:l}=s,c=(t=R(t)?t[0]:t)&&t.nodeType?t:(ie(t)||[])[0],d=!0===o?{}:o,u=!0===r||X(r)?{}:r,p=!0===n?{}:n;this.debug=Tt(l,!1),this.includeSpaces=Tt(h,!1),this.accessible=Tt(a,!0),this.linesOnly=d&&!u&&!p,this.lineTemplate=M(d)?di(Js,d):d,this.wordTemplate=M(u)||this.linesOnly?di(Ks,u):u,this.charTemplate=M(p)?di(ti,p):p,this.$target=c,this.html=c&&c.innerHTML,this.lines=[],this.words=[],this.chars=[],this.effects=[],this.effectsCleanups=[],this.cache=null,this.ready=!1,this.width=0,this.resizeTimeout=null;const m=()=>this.html&&(d||u||p)&&this.split();this.resizeObserver=new ResizeObserver(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{const t=c.offsetWidth;t!==this.width&&(this.width=t,m())},150)}),this.lineTemplate&&!this.ready?i.fonts.ready.then(m):m(),c?this.resizeObserver.observe(c):console.warn("No Text Splitter target found.")}addEffect(t){if(!Y(t))return console.warn("Effect must return a function.");const e=ts(t);return this.effects.push(e),this.ready&&(this.effectsCleanups[this.effects.length-1]=e(this)),this}revert(){return clearTimeout(this.resizeTimeout),this.lines.length=this.words.length=this.chars.length=0,this.resizeObserver.disconnect(),this.effectsCleanups.forEach(t=>Y(t)?t(this):t.revert&&t.revert()),this.$target.innerHTML=this.html,this}splitNode(t){const e=this.wordTemplate,s=this.charTemplate,r=this.includeSpaces,n=this.debug,o=t.nodeType;if(3===o){const o=t.nodeValue;if(o.trim()){const a=[],h=this.words,l=this.chars,c=si.segment(o),d=i.createDocumentFragment();let u=null;for(const t of c){const e=t.segment,s=ni(t);if(!u||s&&u&&ni(u))a.push(e);else{const t=a.length-1;a[t].includes(" ")||e.includes(" ")?a.push(e):a[t]+=e}u=t}for(let t=0,o=a.length;tY(t)&&t(this)),s||(t&&(e.innerHTML=this.html,this.words.length=this.chars.length=0),this.splitNode(e),this.cache=e.innerHTML),h&&(s&&(e.innerHTML=this.cache),this.lines.length=0,n&&(this.words=ai(e,Ks))),o&&(h||n)&&(this.chars=ai(e,ti));const l=this.words.length?this.words:this.chars;let c,d=0;for(let t=0,e=l.length;t.5*i&&d++,e.setAttribute(ei,`${d}`);const r=e.querySelectorAll(`[${ei}]`);let n=r.length;for(;n--;)r[n].setAttribute(ei,`${d}`);c=s}if(h){const t=i.createDocumentFragment(),s=new Set,a=[];for(let t=0;t{const e=t.parentElement;e&&s.add(e),t.remove()}),a.push(i)}s.forEach(li);for(let e=0,s=a.length;ethis.effectsCleanups[e]=t(this)),this}refresh(){this.split(!0)}}const mi=(t,e)=>new pi(t,e),fi=(t,e)=>(console.warn("text.split() is deprecated, import splitText() directly, or text.splitText()"),new pi(t,e));var gi=Object.freeze({__proto__:null,TextSplitter:pi,split:fi,splitText:mi});const yi=(t,e=100)=>{const s=[];for(let i=0;i<=e;i++)s.push(ut(t(i/e),4));return`linear(${s.join(", ")})`},_i={},vi=t=>{let e=_i[t];if(e)return e;if(e="linear",I(t)){if(P(t,"linear")||P(t,"cubic-")||P(t,"steps")||P(t,"ease"))e=t;else if(P(t,"cubicB"))e=F(t);else{const s=ye(t);Y(s)&&(e=s===le?"linear":yi(s))}_i[t]=e}else if(Y(t)){const s=yi(t);s&&(e=s)}else t.ease&&(e=yi(t.ease));return e},bi=["x","y","z"],Si=["perspective","width","height","margin","padding","top","right","bottom","left","borderWidth","fontSize","borderRadius",...bi],wi=(()=>[...bi,...g.filter(t=>["X","Y","Z"].some(e=>t.endsWith(e)))])();let Ti=null;const xi=(t,e,s,i,r)=>{let n=I(e)?e:xt(e,s,i,r);return z(n)?Si.includes(t)||P(t,"translate")?`${n}px`:P(t,"rotate")||P(t,"skew")?`${n}deg`:`${n}`:n},ki=(t,e,s,i,r,n)=>{let o="0";const a=X(i)?getComputedStyle(t)[e]:xi(e,i,t,r,n);return o=X(s)?R(i)?i.map(s=>xi(e,s,t,r,n)):a:[xi(e,s,t,r,n),a],o};class $i{constructor(t,s){L.current&&L.current.register(this),V(Ti)&&(!e||!X(CSS)&&Object.hasOwnProperty.call(CSS,"registerProperty")?(g.forEach(t=>{const e=P(t,"skew"),s=P(t,"scale"),i=P(t,"rotate"),r=P(t,"translate"),n=i||e,o=n?"":s?"":r?"":"*";try{CSS.registerProperty({name:"--"+t,syntax:o,inherits:!1,initialValue:r?"0px":n?"0deg":s?"1":"0"})}catch{}}),Ti=!0):Ti=!1);const i=ne(t),r=i.length;r||console.warn("No target found. Make sure the element you're trying to animate is accessible before creating your animation.");const n=Tt(s.ease,vi(N.defaults.ease)),o=n.ease&&n,a=Tt(s.autoplay,N.defaults.autoplay),l=!(!a||!a.link)&&a,c=s.alternate&&!0===s.alternate,d=s.reversed&&!0===s.reversed,u=Tt(s.loop,N.defaults.loop),v=!0===u||u===1/0?1/0:z(u)?u+1:1,b=c?d?"alternate-reverse":"alternate":d?"reverse":"normal",S=vi(n),w=1===N.timeScale?1:p;this.targets=i,this.animations=[],this.controlAnimation=null,this.onComplete=s.onComplete||N.defaults.onComplete,this.duration=0,this.muteCallbacks=!1,this.completed=!1,this.paused=!a||!1!==l,this.reversed=d,this.persist=Tt(s.persist,N.defaults.persist),this.autoplay=a,this._speed=Tt(s.playbackRate,N.defaults.playbackRate),this._resolve=_,this._completed=0,this._inlineStyles=[],i.forEach((t,e)=>{const i=t[h],a=wi.some(t=>s.hasOwnProperty(t)),l=t.style,c=this._inlineStyles[e]={},d=(o?o.settlingDuration:xt(Tt(s.duration,N.defaults.duration),t,e,r))*w,u=xt(Tt(s.delay,N.defaults.delay),t,e,r)*w,p=Tt(s.composition,"replace");for(let o in s){if(!j(o))continue;const h={},m={iterations:v,direction:b,fill:"both",easing:S,duration:d,delay:u,composite:p},y=s[o],_=!!a&&(g.includes(o)?o:f.get(o)),T=_?"transform":o;let x;if(c[T]||(c[T]=l[T]),M(y)){const s=y,a=Tt(s.ease,n),c=a.ease&&a,f=s.to,g=s.from;if(m.duration=(c?c.settlingDuration:xt(Tt(s.duration,d),t,e,r))*w,m.delay=xt(Tt(s.delay,u),t,e,r)*w,m.composite=Tt(s.composition,p),m.easing=vi(a),x=ki(t,o,g,f,e,r),_?(h[`--${_}`]=x,i[_]=x):h[o]=ki(t,o,g,f,e,r),Ae(this,t,o,h,m),!X(g))if(_){const t=`--${_}`;l.setProperty(t,h[t][0])}else l[o]=h[o][0]}else x=R(y)?y.map(s=>xi(o,s,t,e,r)):xi(o,y,t,e,r),_?(h[`--${_}`]=x,i[_]=x):h[o]=x,Ae(this,t,o,h,m)}if(a){let t=m;for(let e in i)t+=`${y[e]}var(--${e})) `;l.transform=t}}),l&&this.autoplay.link(this)}forEach(t){const e=I(t)?e=>e[t]():t;return this.animations.forEach(e),this}get speed(){return this._speed}set speed(t){this._speed=+t,this.forEach(e=>e.playbackRate=t)}get currentTime(){const t=this.controlAnimation,e=N.timeScale;return this.completed?this.duration:t?+t.currentTime*(1===e?1:e):0}set currentTime(t){const e=t*(1===N.timeScale?1:p);this.forEach(t=>{!this.persist&&e>=this.duration&&t.play(),t.currentTime=e})}get progress(){return this.currentTime/this.duration}set progress(t){this.forEach(e=>e.currentTime=t*this.duration||0)}resume(){return this.paused?(this.paused=!1,this.forEach("play")):this}pause(){return this.paused?this:(this.paused=!0,this.forEach("pause"))}alternate(){return this.reversed=!this.reversed,this.forEach("reverse"),this.paused&&this.forEach("pause"),this}play(){return this.reversed&&this.alternate(),this.resume()}reverse(){return this.reversed||this.alternate(),this.resume()}seek(t,e=!1){return e&&(this.muteCallbacks=!0),t{const s=t.style,i=this._inlineStyles[e];for(let t in i){const e=i[t];X(e)||e===m?s.removeProperty(F(t)):s[t]=e}t.getAttribute("style")===m&&t.removeAttribute("style")}),this}then(t=_){const e=this.then,s=()=>{this.then=null,t(this),this.then=e,this._resolve=_};return new Promise(t=>(this._resolve=()=>t(s()),this.completed&&this._resolve(),this))}}const Ci={animate:(t,e)=>new $i(t,e),convertEase:yi};t.$=ne,t.Animatable=Ie,t.Draggable=Je,t.JSAnimation=Be,t.Scope=es,t.ScrollObserver=cs,t.Spring=We,t.TextSplitter=pi,t.Timeline=ze,t.Timer=se,t.WAAPIAnimation=$i,t.animate=(t,e)=>new Be(t,e,null,0,!1).init(),t.clamp=Ds,t.cleanInlineStyles=Ot,t.createAnimatable=(t,e)=>new Ie(t,e),t.createDraggable=(t,e)=>new Je(t,e),t.createDrawable=Ws,t.createMotionPath=Vs,t.createScope=t=>new es(t),t.createSeededRandom=Ps,t.createSpring=Ue,t.createTimeline=t=>new ze(t).init(),t.createTimer=t=>new se(t,null,0).init(),t.cubicBezier=us,t.damp=Ns,t.degToRad=$s,t.eases=fe,t.easings=gs,t.engine=Xt,t.get=Fe,t.irregular=fs,t.keepTime=ts,t.lerp=Ls,t.linear=ms,t.mapRange=ks,t.morphTo=Hs,t.onScroll=(t={})=>new cs(t),t.padEnd=Ts,t.padStart=ws,t.radToDeg=Cs,t.random=As,t.randomPick=Os,t.remove=Oe,t.round=Bs,t.roundPad=Ss,t.scrollContainers=is,t.set=Pe,t.shuffle=Rs,t.snap=Es,t.split=fi,t.splitText=mi,t.spring=He,t.stagger=Ms,t.steps=ps,t.svg=Us,t.sync=Ke,t.text=gi,t.utils=zs,t.waapi=Ci,t.wrap=xs}); diff --git a/assets/archivo-bold.ttf b/assets/archivo-bold.ttf new file mode 100644 index 0000000..c1799c9 Binary files /dev/null and b/assets/archivo-bold.ttf differ diff --git a/assets/archivo-light.ttf b/assets/archivo-light.ttf new file mode 100644 index 0000000..a1a6900 Binary files /dev/null and b/assets/archivo-light.ttf differ diff --git a/assets/archivo-medium.ttf b/assets/archivo-medium.ttf new file mode 100644 index 0000000..ff48872 Binary files /dev/null and b/assets/archivo-medium.ttf differ diff --git a/assets/archivo-regular.ttf b/assets/archivo-regular.ttf new file mode 100644 index 0000000..e8fbe17 Binary files /dev/null and b/assets/archivo-regular.ttf differ diff --git a/assets/bestsellers-promo.avif b/assets/bestsellers-promo.avif new file mode 100644 index 0000000..4507c4a Binary files /dev/null and b/assets/bestsellers-promo.avif differ diff --git a/assets/critical.css b/assets/critical.css new file mode 100644 index 0000000..4d7bb40 --- /dev/null +++ b/assets/critical.css @@ -0,0 +1,123 @@ +/** Critical CSS for the theme. This file is included on every page. */ + +/* Reset styles inspired by https://www.joshwcomeau.com/css/custom-css-reset/ */ +* { + box-sizing: border-box; + margin: 0; +} + +body { + display: flex; + flex-direction: column; + margin: 0; + min-height: 100svh; +} + +html:has(dialog[scroll-lock][open], details[scroll-lock][open]) { + overflow: hidden; +} + +img, +picture, +video, +canvas, +svg { + display: block; + max-width: 100%; + height: auto; +} + +input, +textarea, +select { + font: inherit; + border-radius: var(--style-border-radius-inputs); +} + +select { + background-color: var(--color-background); + color: currentcolor; +} + +dialog { + background-color: var(--color-background); + color: var(--color-foreground); +} + +p { + text-wrap: pretty; +} +p, +h1, +h2, +h3, +h4, +h5, +h6 { + overflow-wrap: break-word; +} + +p:empty { + display: none; +} + +:is(p, h1, h2, h3, h4, h5, h6):first-child, +:empty:first-child + :where(p, h1, h2, h3, h4, h5, h6) { + margin-block-start: 0; +} + +:is(p, h1, h2, h3, h4, h5, h6):last-child, +:where(p, h1, h2, h3, h4, h5, h6) + :has(+ :empty:last-child) { + margin-block-end: 0; +} + +/** Theme styles below */ +body { + font-family: Archivo, sans-serif; + background-color: var(--color-background); + color: var(--color-foreground); +} + +/** Section layout utilities */ + +/** + * Setup a grid that enables both full-width and constrained layouts + * depending on the class of the child elements. + * + * By default, a minimum content margin is set on the left and right + * sides of the section and the content is centered in the viewport to + * not exceed the maximum page width. + * + * When a child element is given the `full-width` class, it will span + * the entire viewport. + */ +.shopify-section { + --content-width: min( + calc(var(--page-width) - var(--page-margin) * 2), + calc(100% - var(--page-margin) * 2) + ); + --content-margin: minmax(var(--page-margin), 1fr); + --content-grid: var(--content-margin) var(--content-width) var(--content-margin); + + /* This is required to make elements work as background images */ + position: relative; + grid-template-columns: var(--content-grid); + display: grid; + width: 100%; +} + +/* Child elements, by default, are constrained to the central column of the grid. */ +.shopify-section > * { + grid-column: 2; +} + +/* Child elements that use the full-width utility class span the entire viewport. */ +.shopify-section > .full-width { + grid-column: 1 / -1; +} + +@media (prefers-reduced-motion: no-preference) { + html.motion #MainContent > .shopify-section { + opacity: 0; + } +} diff --git a/assets/distributors-blob.avif b/assets/distributors-blob.avif new file mode 100644 index 0000000..35ff8da Binary files /dev/null and b/assets/distributors-blob.avif differ diff --git a/assets/distributors-photo.avif b/assets/distributors-photo.avif new file mode 100644 index 0000000..8f289b4 Binary files /dev/null and b/assets/distributors-photo.avif differ diff --git a/assets/distributors-wordmark.svg b/assets/distributors-wordmark.svg new file mode 100644 index 0000000..07e118f --- /dev/null +++ b/assets/distributors-wordmark.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/footer-facebook.svg b/assets/footer-facebook.svg new file mode 100644 index 0000000..42e254e --- /dev/null +++ b/assets/footer-facebook.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/footer-instagram.svg b/assets/footer-instagram.svg new file mode 100644 index 0000000..203ee27 --- /dev/null +++ b/assets/footer-instagram.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/assets/footer-linkedin.svg b/assets/footer-linkedin.svg new file mode 100644 index 0000000..15ccad6 --- /dev/null +++ b/assets/footer-linkedin.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/assets/home-video-op.mp4 b/assets/home-video-op.mp4 new file mode 100644 index 0000000..6896629 Binary files /dev/null and b/assets/home-video-op.mp4 differ diff --git a/assets/icon-account.svg b/assets/icon-account.svg new file mode 100644 index 0000000..5c523a3 --- /dev/null +++ b/assets/icon-account.svg @@ -0,0 +1,6 @@ + + + + diff --git a/assets/icon-arrow-slider.svg b/assets/icon-arrow-slider.svg new file mode 100644 index 0000000..74ab868 --- /dev/null +++ b/assets/icon-arrow-slider.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/icon-bag.svg b/assets/icon-bag.svg new file mode 100644 index 0000000..72e4ea3 --- /dev/null +++ b/assets/icon-bag.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/icon-caret-down.svg b/assets/icon-caret-down.svg new file mode 100644 index 0000000..59eae9f --- /dev/null +++ b/assets/icon-caret-down.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/icon-cart.svg b/assets/icon-cart.svg new file mode 100644 index 0000000..0a8d0a9 --- /dev/null +++ b/assets/icon-cart.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/assets/icon-facebook.svg b/assets/icon-facebook.svg new file mode 100644 index 0000000..6521663 --- /dev/null +++ b/assets/icon-facebook.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/icon-heart.svg b/assets/icon-heart.svg new file mode 100644 index 0000000..89a3175 --- /dev/null +++ b/assets/icon-heart.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/icon-instagram.svg b/assets/icon-instagram.svg new file mode 100644 index 0000000..eda4f45 --- /dev/null +++ b/assets/icon-instagram.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/assets/icon-linkedin.svg b/assets/icon-linkedin.svg new file mode 100644 index 0000000..1d0f504 --- /dev/null +++ b/assets/icon-linkedin.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/assets/icon-marquee-card.svg b/assets/icon-marquee-card.svg new file mode 100644 index 0000000..8342500 --- /dev/null +++ b/assets/icon-marquee-card.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/assets/icon-marquee-guarantee.svg b/assets/icon-marquee-guarantee.svg new file mode 100644 index 0000000..196c065 --- /dev/null +++ b/assets/icon-marquee-guarantee.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/assets/icon-marquee-shipping.svg b/assets/icon-marquee-shipping.svg new file mode 100644 index 0000000..8634c08 --- /dev/null +++ b/assets/icon-marquee-shipping.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/assets/icon-marquee-wallet-flap.svg b/assets/icon-marquee-wallet-flap.svg new file mode 100644 index 0000000..2ed6e35 --- /dev/null +++ b/assets/icon-marquee-wallet-flap.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/icon-marquee-wallet-mark.svg b/assets/icon-marquee-wallet-mark.svg new file mode 100644 index 0000000..aeac5fb --- /dev/null +++ b/assets/icon-marquee-wallet-mark.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/icon-marquee-wallet.svg b/assets/icon-marquee-wallet.svg new file mode 100644 index 0000000..33abfbd --- /dev/null +++ b/assets/icon-marquee-wallet.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/assets/icon-menu.svg b/assets/icon-menu.svg new file mode 100644 index 0000000..0614f71 --- /dev/null +++ b/assets/icon-menu.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/icon-plus.svg b/assets/icon-plus.svg new file mode 100644 index 0000000..79480d5 --- /dev/null +++ b/assets/icon-plus.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/icon-ribbon.svg b/assets/icon-ribbon.svg new file mode 100644 index 0000000..d5ec0bc --- /dev/null +++ b/assets/icon-ribbon.svg @@ -0,0 +1,3 @@ + + + diff --git a/assets/icon-search.svg b/assets/icon-search.svg new file mode 100644 index 0000000..176bdf1 --- /dev/null +++ b/assets/icon-search.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/icon-star.svg b/assets/icon-star.svg new file mode 100644 index 0000000..25179ba --- /dev/null +++ b/assets/icon-star.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/icon-user.svg b/assets/icon-user.svg new file mode 100644 index 0000000..dd94803 --- /dev/null +++ b/assets/icon-user.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/learn-cover-1.avif b/assets/learn-cover-1.avif new file mode 100644 index 0000000..3d93c1d Binary files /dev/null and b/assets/learn-cover-1.avif differ diff --git a/assets/learn-cover-2.avif b/assets/learn-cover-2.avif new file mode 100644 index 0000000..cfe2e92 Binary files /dev/null and b/assets/learn-cover-2.avif differ diff --git a/assets/learn-cover-4.avif b/assets/learn-cover-4.avif new file mode 100644 index 0000000..ede78c0 Binary files /dev/null and b/assets/learn-cover-4.avif differ diff --git a/assets/learn-cover-5.avif b/assets/learn-cover-5.avif new file mode 100644 index 0000000..11f6094 Binary files /dev/null and b/assets/learn-cover-5.avif differ diff --git a/assets/learn-shape-left.avif b/assets/learn-shape-left.avif new file mode 100644 index 0000000..764fada Binary files /dev/null and b/assets/learn-shape-left.avif differ diff --git a/assets/learn-shape-right.avif b/assets/learn-shape-right.avif new file mode 100644 index 0000000..6d71125 Binary files /dev/null and b/assets/learn-shape-right.avif differ diff --git a/assets/logo-seasons.svg b/assets/logo-seasons.svg new file mode 100644 index 0000000..6db9343 --- /dev/null +++ b/assets/logo-seasons.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/assets/mascara-video.avif b/assets/mascara-video.avif new file mode 100644 index 0000000..9cd2377 Binary files /dev/null and b/assets/mascara-video.avif differ diff --git a/assets/mascara-vido-mobile.avif b/assets/mascara-vido-mobile.avif new file mode 100644 index 0000000..aa2b8f4 Binary files /dev/null and b/assets/mascara-vido-mobile.avif differ diff --git a/assets/routine-hidrata.avif b/assets/routine-hidrata.avif new file mode 100644 index 0000000..c23b530 Binary files /dev/null and b/assets/routine-hidrata.avif differ diff --git a/assets/routine-limpia.avif b/assets/routine-limpia.avif new file mode 100644 index 0000000..5cd25b9 Binary files /dev/null and b/assets/routine-limpia.avif differ diff --git a/assets/routine-photo.avif b/assets/routine-photo.avif new file mode 100644 index 0000000..e8ce662 Binary files /dev/null and b/assets/routine-photo.avif differ diff --git a/assets/routine-protege.avif b/assets/routine-protege.avif new file mode 100644 index 0000000..cf8c690 Binary files /dev/null and b/assets/routine-protege.avif differ diff --git a/assets/routine-trata.avif b/assets/routine-trata.avif new file mode 100644 index 0000000..43e88c5 Binary files /dev/null and b/assets/routine-trata.avif differ diff --git a/assets/scroll-motion.js b/assets/scroll-motion.js new file mode 100644 index 0000000..8a84034 --- /dev/null +++ b/assets/scroll-motion.js @@ -0,0 +1,117 @@ +(() => { + if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return; + if (window.Shopify && window.Shopify.designMode) return; + if (!window.anime || typeof window.anime.animate !== 'function' || typeof window.anime.onScroll !== 'function') return; + + const { animate, onScroll, set } = window.anime; + const sections = [...document.querySelectorAll('#MainContent > .shopify-section')]; + + if (!sections.length) return; + + document.documentElement.classList.add('motion'); + + const presets = [ + { y: 48, x: 0, scale: 1 }, + { y: 28, x: 40, scale: 1 }, + { y: 32, x: 0, scale: 0.97 }, + { y: 24, x: -36, scale: 1 }, + ]; + + const running = new WeakMap(); + const phase = new WeakMap(); + + const stop = (section) => { + const current = running.get(section); + if (!current) return; + if (typeof current.cancel === 'function') current.cancel(); + else if (typeof current.pause === 'function') current.pause(); + running.delete(section); + }; + + const presetFor = (section, direction) => { + const base = presets[Number(section.dataset.motionIndex) % presets.length]; + return { + x: base.x * direction, + y: base.y * direction, + scale: base.scale, + }; + }; + + const play = (section, from, to, duration, ease) => { + stop(section); + set(section, from); + const animation = animate(section, { + x: to.x, + y: to.y, + scale: to.scale, + opacity: to.opacity, + duration, + ease, + }); + running.set(section, animation); + return animation; + }; + + const show = (section, direction) => { + if (phase.get(section) === 'in') return; + phase.set(section, 'in'); + section.style.pointerEvents = ''; + const from = presetFor(section, direction); + play(section, { + x: from.x, + y: from.y, + scale: from.scale, + opacity: 0, + }, { + x: 0, + y: 0, + scale: 1, + opacity: 1, + }, 800, 'outCubic'); + }; + + const hide = (section, direction) => { + if (phase.get(section) === 'out') return; + phase.set(section, 'out'); + section.style.pointerEvents = 'none'; + const to = presetFor(section, direction); + play(section, { + x: 0, + y: 0, + scale: 1, + opacity: 1, + }, { + x: to.x, + y: to.y, + scale: to.scale, + opacity: 0, + }, 550, 'inCubic'); + }; + + sections.forEach((section, index) => { + section.dataset.motionIndex = String(index); + + onScroll({ + target: section, + axis: 'y', + repeat: true, + enter: 'bottom top', + leave: 'top bottom', + onEnterForward: () => show(section, 1), + onLeaveForward: () => hide(section, -1), + onEnterBackward: () => show(section, -1), + onLeaveBackward: () => hide(section, 1), + }); + }); + + const revealVisible = () => { + const viewHeight = window.innerHeight || document.documentElement.clientHeight; + sections.forEach((section) => { + const box = section.getBoundingClientRect(); + const visible = box.bottom > viewHeight * 0.08 && box.top < viewHeight * 0.92; + if (visible) show(section, 1); + }); + }; + + revealVisible(); +})(); diff --git a/assets/shoppy-x-ray.svg b/assets/shoppy-x-ray.svg new file mode 100644 index 0000000..6937b3c --- /dev/null +++ b/assets/shoppy-x-ray.svg @@ -0,0 +1 @@ + diff --git a/assets/signup-arrow.svg b/assets/signup-arrow.svg new file mode 100644 index 0000000..74ab868 --- /dev/null +++ b/assets/signup-arrow.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/signup-glow.avif b/assets/signup-glow.avif new file mode 100644 index 0000000..feea0e3 Binary files /dev/null and b/assets/signup-glow.avif differ diff --git a/assets/signup-mask-3.svg b/assets/signup-mask-3.svg new file mode 100644 index 0000000..06e177a --- /dev/null +++ b/assets/signup-mask-3.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/assets/signup-orb.avif b/assets/signup-orb.avif new file mode 100644 index 0000000..ff4a0bb Binary files /dev/null and b/assets/signup-orb.avif differ diff --git a/assets/skin-match-blob-blue.avif b/assets/skin-match-blob-blue.avif new file mode 100644 index 0000000..1ecc670 Binary files /dev/null and b/assets/skin-match-blob-blue.avif differ diff --git a/assets/skin-match-lilac.avif b/assets/skin-match-lilac.avif new file mode 100644 index 0000000..6d71125 Binary files /dev/null and b/assets/skin-match-lilac.avif differ diff --git a/assets/skin-match-mint.avif b/assets/skin-match-mint.avif new file mode 100644 index 0000000..75b5e11 Binary files /dev/null and b/assets/skin-match-mint.avif differ diff --git a/assets/skin-match-peach.avif b/assets/skin-match-peach.avif new file mode 100644 index 0000000..e5d5382 Binary files /dev/null and b/assets/skin-match-peach.avif differ diff --git a/assets/skin-match-photo-cheek.avif b/assets/skin-match-photo-cheek.avif new file mode 100644 index 0000000..cb988e9 Binary files /dev/null and b/assets/skin-match-photo-cheek.avif differ diff --git a/assets/skin-match-photo-dropper.avif b/assets/skin-match-photo-dropper.avif new file mode 100644 index 0000000..6944cf8 Binary files /dev/null and b/assets/skin-match-photo-dropper.avif differ diff --git a/assets/skin-match-photo-jar.avif b/assets/skin-match-photo-jar.avif new file mode 100644 index 0000000..dcd8d9d Binary files /dev/null and b/assets/skin-match-photo-jar.avif differ diff --git a/assets/skin-match-photo-serum.avif b/assets/skin-match-photo-serum.avif new file mode 100644 index 0000000..b937b78 Binary files /dev/null and b/assets/skin-match-photo-serum.avif differ diff --git a/assets/tailwind.css b/assets/tailwind.css new file mode 100644 index 0000000..877f6d1 --- /dev/null +++ b/assets/tailwind.css @@ -0,0 +1 @@ +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.top-full{top:100%}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.col-span-5{grid-column:span 5/span 5}.col-start-1{grid-column-start:1}.col-start-2{grid-column-start:2}.col-start-4{grid-column-start:4}.col-start-5{grid-column-start:5}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.m-0{margin:0}.mr-5{margin-right:1.25rem}.mr-\[50px\]{margin-right:50px}.mt-\[15px\]{margin-top:15px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-10{width:2.5rem;height:2.5rem}.size-\[10px\]{width:10px;height:10px}.size-\[30px\]{width:30px;height:30px}.size-\[45px\]{width:45px;height:45px}.h-4{height:1rem}.h-\[50px\]{height:50px}.h-\[55px\]{height:55px}.h-auto{height:auto}.w-\[223px\]{width:223px}.w-full{width:100%}.min-w-0{min-width:0}.min-w-4{min-width:1rem}.min-w-\[220px\]{min-width:220px}.max-w-\[699px\]{max-width:699px}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-\[auto_minmax\(0\2c 699px\)_1fr_auto_auto\]{grid-template-columns:auto minmax(0,699px) 1fr auto auto}.grid-cols-subgrid{grid-template-columns:subgrid}.grid-rows-subgrid{grid-template-rows:subgrid}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-center{align-items:center}.justify-center{justify-content:center}.gap-10{gap:2.5rem}.gap-2\.5{gap:.625rem}.gap-5{gap:1.25rem}.gap-\[15px\]{gap:15px}.gap-\[50px\]{gap:50px}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.border{border-width:1px}.border-0{border-width:0}.border-solid{border-style:solid}.border-black{--tw-border-opacity:1;border-color:rgb(0 0 0/var(--tw-border-opacity,1))}.bg-black\/40{background-color:rgba(0,0,0,.4)}.bg-brand-cloud{--tw-bg-opacity:1;background-color:rgb(248 248 248/var(--tw-bg-opacity,1))}.bg-brand-mint{--tw-bg-opacity:1;background-color:rgb(157 214 199/var(--tw-bg-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.p-0{padding:0}.p-2{padding:.5rem}.p-\[5px\]{padding:5px}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-\[100px\]{padding-left:100px;padding-right:100px}.px-\[3px\]{padding-left:3px;padding-right:3px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pt-\[15px\]{padding-top:15px}.text-center{text-align:center}.font-sans{font-family:Archivo,sans-serif}.text-\[10px\]{font-size:10px}.text-\[14px\]{font-size:14px}.text-\[16px\]{font-size:16px}.text-\[20px\]{font-size:20px}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.italic{font-style:italic}.leading-none{line-height:1}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.no-underline{text-decoration-line:none}.shadow-\[0_12px_40px_rgba\(0\2c 0\2c 0\2c 0\.08\)\]{--tw-shadow:0 12px 40px rgba(0,0,0,.08);--tw-shadow-colored:0 12px 40px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.placeholder\:font-light::-moz-placeholder{font-weight:300}.placeholder\:font-light::placeholder{font-weight:300}.placeholder\:text-brand-placeholder::-moz-placeholder{--tw-text-opacity:1;color:rgb(191 189 190/var(--tw-text-opacity,1))}.placeholder\:text-brand-placeholder::placeholder{--tw-text-opacity:1;color:rgb(191 189 190/var(--tw-text-opacity,1))}.hover\:bg-brand-cloud:hover{--tw-bg-opacity:1;background-color:rgb(248 248 248/var(--tw-bg-opacity,1))}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-offset-4:focus-visible{outline-offset:4px}.focus-visible\:outline-black:focus-visible{outline-color:#000}@media (max-width:1439px){.xxl\:mr-8{margin-right:2rem}.xxl\:gap-6{gap:1.5rem}.xxl\:gap-8{gap:2rem}.xxl\:px-10{padding-left:2.5rem;padding-right:2.5rem}}@media (max-width:1119px){.xl\:text-\[14px\]{font-size:14px}} \ No newline at end of file diff --git a/assets/testimonials-bag.svg b/assets/testimonials-bag.svg new file mode 100644 index 0000000..e2775ee --- /dev/null +++ b/assets/testimonials-bag.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/assets/testimonials-blob.avif b/assets/testimonials-blob.avif new file mode 100644 index 0000000..53cb09b Binary files /dev/null and b/assets/testimonials-blob.avif differ diff --git a/blocks/group.liquid b/blocks/group.liquid new file mode 100644 index 0000000..baea31c --- /dev/null +++ b/blocks/group.liquid @@ -0,0 +1,105 @@ +{% doc %} + Renders a group of blocks with configurable layout direction, gap and + alignment. + + All settings apply to only one dimension to reduce configuration complexity. + + This component is a wrapper concerned only with rendering its children in + the specified layout direction with appropriate padding and alignment. + + @example + {% content_for 'block', type: 'group', id: 'group' %} +{% enddoc %} + +
+ {% content_for 'blocks' %} +
+ +{% stylesheet %} + .group { + display: flex; + flex-wrap: nowrap; + overflow: hidden; + width: 100%; + } + + .group--horizontal { + flex-direction: row; + justify-content: space-between; + align-items: center; + padding: 0 var(--padding); + } + + .group--vertical { + flex-direction: column; + align-items: var(--alignment); + padding: var(--padding) 0; + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:general.group", + "blocks": [{ "type": "@theme" }], + "settings": [ + { + "type": "select", + "id": "layout_direction", + "label": "t:labels.layout_direction", + "default": "group--vertical", + "options": [ + { "value": "group--horizontal", "label": "t:options.direction.horizontal" }, + { "value": "group--vertical", "label": "t:options.direction.vertical" } + ] + }, + { + "visible_if": "{{ block.settings.layout_direction == 'group--vertical' }}", + "type": "select", + "id": "alignment", + "label": "t:labels.alignment", + "default": "flex-start", + "options": [ + { "value": "flex-start", "label": "t:options.alignment.left" }, + { "value": "center", "label": "t:options.alignment.center" }, + { "value": "flex-end", "label": "t:options.alignment.right" } + ] + }, + { + "type": "range", + "id": "padding", + "label": "t:labels.padding", + "default": 0, + "min": 0, + "max": 200, + "step": 2, + "unit": "px" + } + ], + "presets": [ + { + "name": "t:general.column", + "category": "t:general.layout", + "settings": { + "layout_direction": "group--vertical", + "alignment": "flex-start", + "padding": 0 + } + }, + { + "name": "t:general.row", + "category": "t:general.layout", + "settings": { + "layout_direction": "group--horizontal", + "padding": 0 + } + } + ] +} +{% endschema %} diff --git a/blocks/text.liquid b/blocks/text.liquid new file mode 100644 index 0000000..b985c38 --- /dev/null +++ b/blocks/text.liquid @@ -0,0 +1,59 @@ +{% doc %} + Renders a text block. + + @example + {% content_for 'block', type: 'text', id: 'text' %} +{% enddoc %} + +
+ {{ block.settings.text }} +
+ +{% stylesheet %} + .text { + text-align: var(--text-align); + } + .text--title { + font-size: 2rem; + font-weight: 700; + } + .text--subtitle { + font-size: 1.5rem; + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:general.text", + "settings": [ + { + "type": "text", + "id": "text", + "label": "t:labels.text", + "default": "Text" + }, + { + "type": "select", + "id": "text_style", + "label": "t:labels.text_style", + "options": [ + { "value": "text--title", "label": "t:options.text_style.title" }, + { "value": "text--subtitle", "label": "t:options.text_style.subtitle" }, + { "value": "text--normal", "label": "t:options.text_style.normal" } + ], + "default": "text--title" + }, + { + "type": "text_alignment", + "id": "alignment", + "label": "t:labels.alignment", + "default": "left" + } + ], + "presets": [{ "name": "t:general.text" }] +} +{% endschema %} diff --git a/config/settings_data.json b/config/settings_data.json new file mode 100644 index 0000000..512f358 --- /dev/null +++ b/config/settings_data.json @@ -0,0 +1,12 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "current": {} +} diff --git a/config/settings_schema.json b/config/settings_schema.json new file mode 100644 index 0000000..7bebd3c --- /dev/null +++ b/config/settings_schema.json @@ -0,0 +1,68 @@ +[ + { + "name": "theme_info", + "theme_name": "Skeleton", + "theme_version": "0.1.0", + "theme_author": "Shopify", + "theme_documentation_url": "https://help.shopify.com/manual/online-store/themes", + "theme_support_url": "https://support.shopify.com/" + }, + { + "name": "t:general.layout", + "settings": [ + { + "type": "select", + "id": "max_page_width", + "label": "t:labels.page_width", + "options": [ + { + "value": "90rem", + "label": "t:options.page_width.narrow" + }, + { + "value": "110rem", + "label": "t:options.page_width.wide" + } + ], + "default": "90rem" + }, + { + "type": "range", + "id": "min_page_margin", + "min": 10, + "max": 100, + "step": 1, + "unit": "px", + "label": "t:labels.page_margin", + "default": 20 + } + ] + }, + { + "name": "t:general.colors", + "settings": [ + { + "type": "color", + "id": "background_color", + "default": "#FFFFFF", + "label": "t:labels.background" + }, + { + "type": "color", + "id": "foreground_color", + "default": "#333333", + "label": "t:labels.foreground" + }, + { + "type": "range", + "id": "input_corner_radius", + "min": 0, + "max": 10, + "step": 1, + "unit": "px", + "label": "t:labels.input_corner_radius", + "default": 4 + } + ] + } +] diff --git a/copilot-instructions.md b/copilot-instructions.md new file mode 120000 index 0000000..1fa7e0b --- /dev/null +++ b/copilot-instructions.md @@ -0,0 +1 @@ +C:/laragon/www/season/nuevo-theme/AGENTS.md \ No newline at end of file diff --git a/font-library/archivo/Archivo-Black.ttf b/font-library/archivo/Archivo-Black.ttf new file mode 100644 index 0000000..47bb021 Binary files /dev/null and b/font-library/archivo/Archivo-Black.ttf differ diff --git a/font-library/archivo/Archivo-BlackItalic.ttf b/font-library/archivo/Archivo-BlackItalic.ttf new file mode 100644 index 0000000..a1a44c3 Binary files /dev/null and b/font-library/archivo/Archivo-BlackItalic.ttf differ diff --git a/font-library/archivo/Archivo-Bold.ttf b/font-library/archivo/Archivo-Bold.ttf new file mode 100644 index 0000000..c1799c9 Binary files /dev/null and b/font-library/archivo/Archivo-Bold.ttf differ diff --git a/font-library/archivo/Archivo-BoldItalic.ttf b/font-library/archivo/Archivo-BoldItalic.ttf new file mode 100644 index 0000000..699c89d Binary files /dev/null and b/font-library/archivo/Archivo-BoldItalic.ttf differ diff --git a/font-library/archivo/Archivo-ExtraBold.ttf b/font-library/archivo/Archivo-ExtraBold.ttf new file mode 100644 index 0000000..d182ea3 Binary files /dev/null and b/font-library/archivo/Archivo-ExtraBold.ttf differ diff --git a/font-library/archivo/Archivo-ExtraBoldItalic.ttf b/font-library/archivo/Archivo-ExtraBoldItalic.ttf new file mode 100644 index 0000000..fe460ee Binary files /dev/null and b/font-library/archivo/Archivo-ExtraBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo-ExtraLight.ttf b/font-library/archivo/Archivo-ExtraLight.ttf new file mode 100644 index 0000000..2b910e0 Binary files /dev/null and b/font-library/archivo/Archivo-ExtraLight.ttf differ diff --git a/font-library/archivo/Archivo-ExtraLightItalic.ttf b/font-library/archivo/Archivo-ExtraLightItalic.ttf new file mode 100644 index 0000000..9d1af59 Binary files /dev/null and b/font-library/archivo/Archivo-ExtraLightItalic.ttf differ diff --git a/font-library/archivo/Archivo-Italic.ttf b/font-library/archivo/Archivo-Italic.ttf new file mode 100644 index 0000000..54e2bd4 Binary files /dev/null and b/font-library/archivo/Archivo-Italic.ttf differ diff --git a/font-library/archivo/Archivo-Light.ttf b/font-library/archivo/Archivo-Light.ttf new file mode 100644 index 0000000..a1a6900 Binary files /dev/null and b/font-library/archivo/Archivo-Light.ttf differ diff --git a/font-library/archivo/Archivo-LightItalic.ttf b/font-library/archivo/Archivo-LightItalic.ttf new file mode 100644 index 0000000..5a4cf6b Binary files /dev/null and b/font-library/archivo/Archivo-LightItalic.ttf differ diff --git a/font-library/archivo/Archivo-Medium.ttf b/font-library/archivo/Archivo-Medium.ttf new file mode 100644 index 0000000..ff48872 Binary files /dev/null and b/font-library/archivo/Archivo-Medium.ttf differ diff --git a/font-library/archivo/Archivo-MediumItalic.ttf b/font-library/archivo/Archivo-MediumItalic.ttf new file mode 100644 index 0000000..09c55d4 Binary files /dev/null and b/font-library/archivo/Archivo-MediumItalic.ttf differ diff --git a/font-library/archivo/Archivo-Regular.ttf b/font-library/archivo/Archivo-Regular.ttf new file mode 100644 index 0000000..e8fbe17 Binary files /dev/null and b/font-library/archivo/Archivo-Regular.ttf differ diff --git a/font-library/archivo/Archivo-SemiBold.ttf b/font-library/archivo/Archivo-SemiBold.ttf new file mode 100644 index 0000000..12f8bf1 Binary files /dev/null and b/font-library/archivo/Archivo-SemiBold.ttf differ diff --git a/font-library/archivo/Archivo-SemiBoldItalic.ttf b/font-library/archivo/Archivo-SemiBoldItalic.ttf new file mode 100644 index 0000000..192507d Binary files /dev/null and b/font-library/archivo/Archivo-SemiBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo-Thin.ttf b/font-library/archivo/Archivo-Thin.ttf new file mode 100644 index 0000000..6f33015 Binary files /dev/null and b/font-library/archivo/Archivo-Thin.ttf differ diff --git a/font-library/archivo/Archivo-ThinItalic.ttf b/font-library/archivo/Archivo-ThinItalic.ttf new file mode 100644 index 0000000..9326f26 Binary files /dev/null and b/font-library/archivo/Archivo-ThinItalic.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-Black.ttf b/font-library/archivo/Archivo_Condensed-Black.ttf new file mode 100644 index 0000000..336a439 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-Black.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-BlackItalic.ttf b/font-library/archivo/Archivo_Condensed-BlackItalic.ttf new file mode 100644 index 0000000..7ee6737 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-BlackItalic.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-Bold.ttf b/font-library/archivo/Archivo_Condensed-Bold.ttf new file mode 100644 index 0000000..dfbd3a3 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-Bold.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-BoldItalic.ttf b/font-library/archivo/Archivo_Condensed-BoldItalic.ttf new file mode 100644 index 0000000..83a3845 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-BoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-ExtraBold.ttf b/font-library/archivo/Archivo_Condensed-ExtraBold.ttf new file mode 100644 index 0000000..ac49db1 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-ExtraBold.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-ExtraBoldItalic.ttf b/font-library/archivo/Archivo_Condensed-ExtraBoldItalic.ttf new file mode 100644 index 0000000..bbcd459 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-ExtraBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-ExtraLight.ttf b/font-library/archivo/Archivo_Condensed-ExtraLight.ttf new file mode 100644 index 0000000..c0e8507 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-ExtraLight.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-ExtraLightItalic.ttf b/font-library/archivo/Archivo_Condensed-ExtraLightItalic.ttf new file mode 100644 index 0000000..7bf1f24 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-ExtraLightItalic.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-Italic.ttf b/font-library/archivo/Archivo_Condensed-Italic.ttf new file mode 100644 index 0000000..31104e3 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-Italic.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-Light.ttf b/font-library/archivo/Archivo_Condensed-Light.ttf new file mode 100644 index 0000000..61c6c67 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-Light.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-LightItalic.ttf b/font-library/archivo/Archivo_Condensed-LightItalic.ttf new file mode 100644 index 0000000..1a95ad2 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-LightItalic.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-Medium.ttf b/font-library/archivo/Archivo_Condensed-Medium.ttf new file mode 100644 index 0000000..3256c48 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-Medium.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-MediumItalic.ttf b/font-library/archivo/Archivo_Condensed-MediumItalic.ttf new file mode 100644 index 0000000..0f0e267 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-MediumItalic.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-Regular.ttf b/font-library/archivo/Archivo_Condensed-Regular.ttf new file mode 100644 index 0000000..bbce50b Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-Regular.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-SemiBold.ttf b/font-library/archivo/Archivo_Condensed-SemiBold.ttf new file mode 100644 index 0000000..83864e0 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-SemiBold.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-SemiBoldItalic.ttf b/font-library/archivo/Archivo_Condensed-SemiBoldItalic.ttf new file mode 100644 index 0000000..81d51cd Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-SemiBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-Thin.ttf b/font-library/archivo/Archivo_Condensed-Thin.ttf new file mode 100644 index 0000000..1aa197f Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-Thin.ttf differ diff --git a/font-library/archivo/Archivo_Condensed-ThinItalic.ttf b/font-library/archivo/Archivo_Condensed-ThinItalic.ttf new file mode 100644 index 0000000..7d59cc6 Binary files /dev/null and b/font-library/archivo/Archivo_Condensed-ThinItalic.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-Black.ttf b/font-library/archivo/Archivo_Expanded-Black.ttf new file mode 100644 index 0000000..95e186a Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-Black.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-BlackItalic.ttf b/font-library/archivo/Archivo_Expanded-BlackItalic.ttf new file mode 100644 index 0000000..a2b7a6d Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-BlackItalic.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-Bold.ttf b/font-library/archivo/Archivo_Expanded-Bold.ttf new file mode 100644 index 0000000..b5ee94b Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-Bold.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-BoldItalic.ttf b/font-library/archivo/Archivo_Expanded-BoldItalic.ttf new file mode 100644 index 0000000..ba0477d Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-BoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-ExtraBold.ttf b/font-library/archivo/Archivo_Expanded-ExtraBold.ttf new file mode 100644 index 0000000..873a131 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-ExtraBold.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-ExtraBoldItalic.ttf b/font-library/archivo/Archivo_Expanded-ExtraBoldItalic.ttf new file mode 100644 index 0000000..436e964 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-ExtraBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-ExtraLight.ttf b/font-library/archivo/Archivo_Expanded-ExtraLight.ttf new file mode 100644 index 0000000..fd307f7 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-ExtraLight.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-ExtraLightItalic.ttf b/font-library/archivo/Archivo_Expanded-ExtraLightItalic.ttf new file mode 100644 index 0000000..fcb4d57 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-ExtraLightItalic.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-Italic.ttf b/font-library/archivo/Archivo_Expanded-Italic.ttf new file mode 100644 index 0000000..cf1022b Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-Italic.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-Light.ttf b/font-library/archivo/Archivo_Expanded-Light.ttf new file mode 100644 index 0000000..f1bde62 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-Light.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-LightItalic.ttf b/font-library/archivo/Archivo_Expanded-LightItalic.ttf new file mode 100644 index 0000000..6807ef5 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-LightItalic.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-Medium.ttf b/font-library/archivo/Archivo_Expanded-Medium.ttf new file mode 100644 index 0000000..3e18489 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-Medium.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-MediumItalic.ttf b/font-library/archivo/Archivo_Expanded-MediumItalic.ttf new file mode 100644 index 0000000..2c904dd Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-MediumItalic.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-Regular.ttf b/font-library/archivo/Archivo_Expanded-Regular.ttf new file mode 100644 index 0000000..142e948 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-Regular.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-SemiBold.ttf b/font-library/archivo/Archivo_Expanded-SemiBold.ttf new file mode 100644 index 0000000..fdbc400 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-SemiBold.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-SemiBoldItalic.ttf b/font-library/archivo/Archivo_Expanded-SemiBoldItalic.ttf new file mode 100644 index 0000000..6bf8497 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-SemiBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-Thin.ttf b/font-library/archivo/Archivo_Expanded-Thin.ttf new file mode 100644 index 0000000..aadb395 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-Thin.ttf differ diff --git a/font-library/archivo/Archivo_Expanded-ThinItalic.ttf b/font-library/archivo/Archivo_Expanded-ThinItalic.ttf new file mode 100644 index 0000000..a6c6307 Binary files /dev/null and b/font-library/archivo/Archivo_Expanded-ThinItalic.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-Black.ttf b/font-library/archivo/Archivo_ExtraCondensed-Black.ttf new file mode 100644 index 0000000..87156e8 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-Black.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-BlackItalic.ttf b/font-library/archivo/Archivo_ExtraCondensed-BlackItalic.ttf new file mode 100644 index 0000000..d7f7c1d Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-BlackItalic.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-Bold.ttf b/font-library/archivo/Archivo_ExtraCondensed-Bold.ttf new file mode 100644 index 0000000..432bb1e Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-Bold.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-BoldItalic.ttf b/font-library/archivo/Archivo_ExtraCondensed-BoldItalic.ttf new file mode 100644 index 0000000..dd79608 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-BoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-ExtraBold.ttf b/font-library/archivo/Archivo_ExtraCondensed-ExtraBold.ttf new file mode 100644 index 0000000..ddc2797 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-ExtraBold.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-ExtraBoldItalic.ttf b/font-library/archivo/Archivo_ExtraCondensed-ExtraBoldItalic.ttf new file mode 100644 index 0000000..aa36c34 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-ExtraBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-ExtraLight.ttf b/font-library/archivo/Archivo_ExtraCondensed-ExtraLight.ttf new file mode 100644 index 0000000..0b0940e Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-ExtraLight.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-ExtraLightItalic.ttf b/font-library/archivo/Archivo_ExtraCondensed-ExtraLightItalic.ttf new file mode 100644 index 0000000..1d3a804 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-ExtraLightItalic.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-Italic.ttf b/font-library/archivo/Archivo_ExtraCondensed-Italic.ttf new file mode 100644 index 0000000..4460008 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-Italic.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-Light.ttf b/font-library/archivo/Archivo_ExtraCondensed-Light.ttf new file mode 100644 index 0000000..7040122 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-Light.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-LightItalic.ttf b/font-library/archivo/Archivo_ExtraCondensed-LightItalic.ttf new file mode 100644 index 0000000..5d392d0 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-LightItalic.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-Medium.ttf b/font-library/archivo/Archivo_ExtraCondensed-Medium.ttf new file mode 100644 index 0000000..1c6b907 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-Medium.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-MediumItalic.ttf b/font-library/archivo/Archivo_ExtraCondensed-MediumItalic.ttf new file mode 100644 index 0000000..191a103 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-MediumItalic.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-Regular.ttf b/font-library/archivo/Archivo_ExtraCondensed-Regular.ttf new file mode 100644 index 0000000..90ac33b Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-Regular.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-SemiBold.ttf b/font-library/archivo/Archivo_ExtraCondensed-SemiBold.ttf new file mode 100644 index 0000000..b422e0d Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-SemiBold.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-SemiBoldItalic.ttf b/font-library/archivo/Archivo_ExtraCondensed-SemiBoldItalic.ttf new file mode 100644 index 0000000..e776da0 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-SemiBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-Thin.ttf b/font-library/archivo/Archivo_ExtraCondensed-Thin.ttf new file mode 100644 index 0000000..f883c17 Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-Thin.ttf differ diff --git a/font-library/archivo/Archivo_ExtraCondensed-ThinItalic.ttf b/font-library/archivo/Archivo_ExtraCondensed-ThinItalic.ttf new file mode 100644 index 0000000..be0820f Binary files /dev/null and b/font-library/archivo/Archivo_ExtraCondensed-ThinItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-Black.ttf b/font-library/archivo/Archivo_SemiCondensed-Black.ttf new file mode 100644 index 0000000..c2bfd35 Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-Black.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-BlackItalic.ttf b/font-library/archivo/Archivo_SemiCondensed-BlackItalic.ttf new file mode 100644 index 0000000..ac3374c Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-BlackItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-Bold.ttf b/font-library/archivo/Archivo_SemiCondensed-Bold.ttf new file mode 100644 index 0000000..4d19c1f Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-Bold.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-BoldItalic.ttf b/font-library/archivo/Archivo_SemiCondensed-BoldItalic.ttf new file mode 100644 index 0000000..1fd5739 Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-BoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-ExtraBold.ttf b/font-library/archivo/Archivo_SemiCondensed-ExtraBold.ttf new file mode 100644 index 0000000..2298b1a Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-ExtraBold.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-ExtraBoldItalic.ttf b/font-library/archivo/Archivo_SemiCondensed-ExtraBoldItalic.ttf new file mode 100644 index 0000000..84536bb Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-ExtraBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-ExtraLight.ttf b/font-library/archivo/Archivo_SemiCondensed-ExtraLight.ttf new file mode 100644 index 0000000..4f4f3cd Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-ExtraLight.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-ExtraLightItalic.ttf b/font-library/archivo/Archivo_SemiCondensed-ExtraLightItalic.ttf new file mode 100644 index 0000000..6fd2c28 Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-ExtraLightItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-Italic.ttf b/font-library/archivo/Archivo_SemiCondensed-Italic.ttf new file mode 100644 index 0000000..985dc6f Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-Italic.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-Light.ttf b/font-library/archivo/Archivo_SemiCondensed-Light.ttf new file mode 100644 index 0000000..0e03186 Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-Light.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-LightItalic.ttf b/font-library/archivo/Archivo_SemiCondensed-LightItalic.ttf new file mode 100644 index 0000000..78a519e Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-LightItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-Medium.ttf b/font-library/archivo/Archivo_SemiCondensed-Medium.ttf new file mode 100644 index 0000000..db7bded Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-Medium.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-MediumItalic.ttf b/font-library/archivo/Archivo_SemiCondensed-MediumItalic.ttf new file mode 100644 index 0000000..633d2a0 Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-MediumItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-Regular.ttf b/font-library/archivo/Archivo_SemiCondensed-Regular.ttf new file mode 100644 index 0000000..a4de786 Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-Regular.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-SemiBold.ttf b/font-library/archivo/Archivo_SemiCondensed-SemiBold.ttf new file mode 100644 index 0000000..95d8c4f Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-SemiBold.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-SemiBoldItalic.ttf b/font-library/archivo/Archivo_SemiCondensed-SemiBoldItalic.ttf new file mode 100644 index 0000000..ba5f485 Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-SemiBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-Thin.ttf b/font-library/archivo/Archivo_SemiCondensed-Thin.ttf new file mode 100644 index 0000000..4b40fb8 Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-Thin.ttf differ diff --git a/font-library/archivo/Archivo_SemiCondensed-ThinItalic.ttf b/font-library/archivo/Archivo_SemiCondensed-ThinItalic.ttf new file mode 100644 index 0000000..a7753b3 Binary files /dev/null and b/font-library/archivo/Archivo_SemiCondensed-ThinItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-Black.ttf b/font-library/archivo/Archivo_SemiExpanded-Black.ttf new file mode 100644 index 0000000..0ec81f6 Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-Black.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-BlackItalic.ttf b/font-library/archivo/Archivo_SemiExpanded-BlackItalic.ttf new file mode 100644 index 0000000..9077303 Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-BlackItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-Bold.ttf b/font-library/archivo/Archivo_SemiExpanded-Bold.ttf new file mode 100644 index 0000000..cc43116 Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-Bold.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-BoldItalic.ttf b/font-library/archivo/Archivo_SemiExpanded-BoldItalic.ttf new file mode 100644 index 0000000..23942f7 Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-BoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-ExtraBold.ttf b/font-library/archivo/Archivo_SemiExpanded-ExtraBold.ttf new file mode 100644 index 0000000..e35e509 Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-ExtraBold.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-ExtraBoldItalic.ttf b/font-library/archivo/Archivo_SemiExpanded-ExtraBoldItalic.ttf new file mode 100644 index 0000000..a929d8f Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-ExtraBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-ExtraLight.ttf b/font-library/archivo/Archivo_SemiExpanded-ExtraLight.ttf new file mode 100644 index 0000000..7477394 Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-ExtraLight.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-ExtraLightItalic.ttf b/font-library/archivo/Archivo_SemiExpanded-ExtraLightItalic.ttf new file mode 100644 index 0000000..34ea1dd Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-ExtraLightItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-Italic.ttf b/font-library/archivo/Archivo_SemiExpanded-Italic.ttf new file mode 100644 index 0000000..f6355bd Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-Italic.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-Light.ttf b/font-library/archivo/Archivo_SemiExpanded-Light.ttf new file mode 100644 index 0000000..96815ef Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-Light.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-LightItalic.ttf b/font-library/archivo/Archivo_SemiExpanded-LightItalic.ttf new file mode 100644 index 0000000..dfd618e Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-LightItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-Medium.ttf b/font-library/archivo/Archivo_SemiExpanded-Medium.ttf new file mode 100644 index 0000000..9769109 Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-Medium.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-MediumItalic.ttf b/font-library/archivo/Archivo_SemiExpanded-MediumItalic.ttf new file mode 100644 index 0000000..5742840 Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-MediumItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-Regular.ttf b/font-library/archivo/Archivo_SemiExpanded-Regular.ttf new file mode 100644 index 0000000..9a1c5ba Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-Regular.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-SemiBold.ttf b/font-library/archivo/Archivo_SemiExpanded-SemiBold.ttf new file mode 100644 index 0000000..d471113 Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-SemiBold.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-SemiBoldItalic.ttf b/font-library/archivo/Archivo_SemiExpanded-SemiBoldItalic.ttf new file mode 100644 index 0000000..e16bade Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-SemiBoldItalic.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-Thin.ttf b/font-library/archivo/Archivo_SemiExpanded-Thin.ttf new file mode 100644 index 0000000..1d9158e Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-Thin.ttf differ diff --git a/font-library/archivo/Archivo_SemiExpanded-ThinItalic.ttf b/font-library/archivo/Archivo_SemiExpanded-ThinItalic.ttf new file mode 100644 index 0000000..89deb8d Binary files /dev/null and b/font-library/archivo/Archivo_SemiExpanded-ThinItalic.ttf differ diff --git a/font-library/roc-grotesk/40409.otf b/font-library/roc-grotesk/40409.otf new file mode 100644 index 0000000..f9f4f59 Binary files /dev/null and b/font-library/roc-grotesk/40409.otf differ diff --git a/font-library/roc-grotesk/58422.otf b/font-library/roc-grotesk/58422.otf new file mode 100644 index 0000000..27c5306 Binary files /dev/null and b/font-library/roc-grotesk/58422.otf differ diff --git a/font-library/roc-grotesk/58423.otf b/font-library/roc-grotesk/58423.otf new file mode 100644 index 0000000..fa8e81e Binary files /dev/null and b/font-library/roc-grotesk/58423.otf differ diff --git a/font-library/roc-grotesk/58424.otf b/font-library/roc-grotesk/58424.otf new file mode 100644 index 0000000..8b24abc Binary files /dev/null and b/font-library/roc-grotesk/58424.otf differ diff --git a/font-library/roc-grotesk/58425.otf b/font-library/roc-grotesk/58425.otf new file mode 100644 index 0000000..794e5bd Binary files /dev/null and b/font-library/roc-grotesk/58425.otf differ diff --git a/font-library/roc-grotesk/58426.otf b/font-library/roc-grotesk/58426.otf new file mode 100644 index 0000000..9a03bee Binary files /dev/null and b/font-library/roc-grotesk/58426.otf differ diff --git a/font-library/roc-grotesk/58427.otf b/font-library/roc-grotesk/58427.otf new file mode 100644 index 0000000..639cc9a Binary files /dev/null and b/font-library/roc-grotesk/58427.otf differ diff --git a/font-library/roc-grotesk/58428.otf b/font-library/roc-grotesk/58428.otf new file mode 100644 index 0000000..d927366 Binary files /dev/null and b/font-library/roc-grotesk/58428.otf differ diff --git a/font-library/roc-grotesk/58429.otf b/font-library/roc-grotesk/58429.otf new file mode 100644 index 0000000..7ef1bc3 Binary files /dev/null and b/font-library/roc-grotesk/58429.otf differ diff --git a/font-library/roc-grotesk/58430.otf b/font-library/roc-grotesk/58430.otf new file mode 100644 index 0000000..3327525 Binary files /dev/null and b/font-library/roc-grotesk/58430.otf differ diff --git a/font-library/roc-grotesk/58431.otf b/font-library/roc-grotesk/58431.otf new file mode 100644 index 0000000..3741384 Binary files /dev/null and b/font-library/roc-grotesk/58431.otf differ diff --git a/font-library/roc-grotesk/58432.otf b/font-library/roc-grotesk/58432.otf new file mode 100644 index 0000000..864cc97 Binary files /dev/null and b/font-library/roc-grotesk/58432.otf differ diff --git a/font-library/roc-grotesk/58433.otf b/font-library/roc-grotesk/58433.otf new file mode 100644 index 0000000..a899daa Binary files /dev/null and b/font-library/roc-grotesk/58433.otf differ diff --git a/font-library/roc-grotesk/58434.otf b/font-library/roc-grotesk/58434.otf new file mode 100644 index 0000000..0f746c0 Binary files /dev/null and b/font-library/roc-grotesk/58434.otf differ diff --git a/font-library/roc-grotesk/58435.otf b/font-library/roc-grotesk/58435.otf new file mode 100644 index 0000000..e93dec1 Binary files /dev/null and b/font-library/roc-grotesk/58435.otf differ diff --git a/font-library/roc-grotesk/58436.otf b/font-library/roc-grotesk/58436.otf new file mode 100644 index 0000000..ac24dcd Binary files /dev/null and b/font-library/roc-grotesk/58436.otf differ diff --git a/font-library/roc-grotesk/58437.otf b/font-library/roc-grotesk/58437.otf new file mode 100644 index 0000000..9a2509d Binary files /dev/null and b/font-library/roc-grotesk/58437.otf differ diff --git a/font-library/roc-grotesk/58438.otf b/font-library/roc-grotesk/58438.otf new file mode 100644 index 0000000..6ad92c5 Binary files /dev/null and b/font-library/roc-grotesk/58438.otf differ diff --git a/font-library/roc-grotesk/58439.otf b/font-library/roc-grotesk/58439.otf new file mode 100644 index 0000000..f87b22c Binary files /dev/null and b/font-library/roc-grotesk/58439.otf differ diff --git a/font-library/roc-grotesk/58440.otf b/font-library/roc-grotesk/58440.otf new file mode 100644 index 0000000..53343af Binary files /dev/null and b/font-library/roc-grotesk/58440.otf differ diff --git a/font-library/roc-grotesk/58441.otf b/font-library/roc-grotesk/58441.otf new file mode 100644 index 0000000..2803c66 Binary files /dev/null and b/font-library/roc-grotesk/58441.otf differ diff --git a/font-library/roc-grotesk/58442.otf b/font-library/roc-grotesk/58442.otf new file mode 100644 index 0000000..d95e9cc Binary files /dev/null and b/font-library/roc-grotesk/58442.otf differ diff --git a/font-library/roc-grotesk/58443.otf b/font-library/roc-grotesk/58443.otf new file mode 100644 index 0000000..53304a1 Binary files /dev/null and b/font-library/roc-grotesk/58443.otf differ diff --git a/font-library/roc-grotesk/58444.otf b/font-library/roc-grotesk/58444.otf new file mode 100644 index 0000000..4a8b5fd Binary files /dev/null and b/font-library/roc-grotesk/58444.otf differ diff --git a/font-library/roc-grotesk/58445.otf b/font-library/roc-grotesk/58445.otf new file mode 100644 index 0000000..200bffd Binary files /dev/null and b/font-library/roc-grotesk/58445.otf differ diff --git a/font-library/roc-grotesk/58446.otf b/font-library/roc-grotesk/58446.otf new file mode 100644 index 0000000..f698ebf Binary files /dev/null and b/font-library/roc-grotesk/58446.otf differ diff --git a/font-library/roc-grotesk/58447.otf b/font-library/roc-grotesk/58447.otf new file mode 100644 index 0000000..b5038ed Binary files /dev/null and b/font-library/roc-grotesk/58447.otf differ diff --git a/font-library/roc-grotesk/58448.otf b/font-library/roc-grotesk/58448.otf new file mode 100644 index 0000000..721ed81 Binary files /dev/null and b/font-library/roc-grotesk/58448.otf differ diff --git a/font-library/roc-grotesk/58449.otf b/font-library/roc-grotesk/58449.otf new file mode 100644 index 0000000..e73f62c Binary files /dev/null and b/font-library/roc-grotesk/58449.otf differ diff --git a/font-library/roc-grotesk/58450.otf b/font-library/roc-grotesk/58450.otf new file mode 100644 index 0000000..67b9b26 Binary files /dev/null and b/font-library/roc-grotesk/58450.otf differ diff --git a/font-library/roc-grotesk/58451.otf b/font-library/roc-grotesk/58451.otf new file mode 100644 index 0000000..ae699e1 Binary files /dev/null and b/font-library/roc-grotesk/58451.otf differ diff --git a/font-library/roc-grotesk/58452.otf b/font-library/roc-grotesk/58452.otf new file mode 100644 index 0000000..d629d81 Binary files /dev/null and b/font-library/roc-grotesk/58452.otf differ diff --git a/font-library/roc-grotesk/58453.otf b/font-library/roc-grotesk/58453.otf new file mode 100644 index 0000000..1238758 Binary files /dev/null and b/font-library/roc-grotesk/58453.otf differ diff --git a/font-library/roc-grotesk/58454.otf b/font-library/roc-grotesk/58454.otf new file mode 100644 index 0000000..eef144b Binary files /dev/null and b/font-library/roc-grotesk/58454.otf differ diff --git a/font-library/roc-grotesk/58455.otf b/font-library/roc-grotesk/58455.otf new file mode 100644 index 0000000..59d2ced Binary files /dev/null and b/font-library/roc-grotesk/58455.otf differ diff --git a/font-library/roc-grotesk/58474.otf b/font-library/roc-grotesk/58474.otf new file mode 100644 index 0000000..e8f194b Binary files /dev/null and b/font-library/roc-grotesk/58474.otf differ diff --git a/font-library/roc-grotesk/58475.otf b/font-library/roc-grotesk/58475.otf new file mode 100644 index 0000000..4e91728 Binary files /dev/null and b/font-library/roc-grotesk/58475.otf differ diff --git a/font-library/roc-grotesk/58476.otf b/font-library/roc-grotesk/58476.otf new file mode 100644 index 0000000..abd5e53 Binary files /dev/null and b/font-library/roc-grotesk/58476.otf differ diff --git a/font-library/roc-grotesk/58477.otf b/font-library/roc-grotesk/58477.otf new file mode 100644 index 0000000..0aa6ca2 Binary files /dev/null and b/font-library/roc-grotesk/58477.otf differ diff --git a/font-library/roc-grotesk/58478.otf b/font-library/roc-grotesk/58478.otf new file mode 100644 index 0000000..674994c Binary files /dev/null and b/font-library/roc-grotesk/58478.otf differ diff --git a/font-library/roc-grotesk/58479.otf b/font-library/roc-grotesk/58479.otf new file mode 100644 index 0000000..e83df0e Binary files /dev/null and b/font-library/roc-grotesk/58479.otf differ diff --git a/font-library/roc-grotesk/58480.otf b/font-library/roc-grotesk/58480.otf new file mode 100644 index 0000000..83d1f80 Binary files /dev/null and b/font-library/roc-grotesk/58480.otf differ diff --git a/font-library/roc-grotesk/58481.otf b/font-library/roc-grotesk/58481.otf new file mode 100644 index 0000000..611379e Binary files /dev/null and b/font-library/roc-grotesk/58481.otf differ diff --git a/font-library/roc-grotesk/58482.otf b/font-library/roc-grotesk/58482.otf new file mode 100644 index 0000000..cf92efd Binary files /dev/null and b/font-library/roc-grotesk/58482.otf differ diff --git a/font-library/roc-grotesk/58483.otf b/font-library/roc-grotesk/58483.otf new file mode 100644 index 0000000..f8d362b Binary files /dev/null and b/font-library/roc-grotesk/58483.otf differ diff --git a/font-library/roc-grotesk/58484.otf b/font-library/roc-grotesk/58484.otf new file mode 100644 index 0000000..598e996 Binary files /dev/null and b/font-library/roc-grotesk/58484.otf differ diff --git a/font-library/roc-grotesk/58485.otf b/font-library/roc-grotesk/58485.otf new file mode 100644 index 0000000..8ecc795 Binary files /dev/null and b/font-library/roc-grotesk/58485.otf differ diff --git a/font-library/roc-grotesk/58486.otf b/font-library/roc-grotesk/58486.otf new file mode 100644 index 0000000..7e8145a Binary files /dev/null and b/font-library/roc-grotesk/58486.otf differ diff --git a/font-library/roc-grotesk/58487.otf b/font-library/roc-grotesk/58487.otf new file mode 100644 index 0000000..21ed8a0 Binary files /dev/null and b/font-library/roc-grotesk/58487.otf differ diff --git a/font-library/roc-grotesk/58488.otf b/font-library/roc-grotesk/58488.otf new file mode 100644 index 0000000..bd2103d Binary files /dev/null and b/font-library/roc-grotesk/58488.otf differ diff --git a/font-library/roc-grotesk/58489.otf b/font-library/roc-grotesk/58489.otf new file mode 100644 index 0000000..d0809c1 Binary files /dev/null and b/font-library/roc-grotesk/58489.otf differ diff --git a/font-library/roc-grotesk/58490.otf b/font-library/roc-grotesk/58490.otf new file mode 100644 index 0000000..416dc02 Binary files /dev/null and b/font-library/roc-grotesk/58490.otf differ diff --git a/font-library/roc-grotesk/58491.otf b/font-library/roc-grotesk/58491.otf new file mode 100644 index 0000000..50e8f88 Binary files /dev/null and b/font-library/roc-grotesk/58491.otf differ diff --git a/font-library/roc-grotesk/58492.otf b/font-library/roc-grotesk/58492.otf new file mode 100644 index 0000000..52091cc Binary files /dev/null and b/font-library/roc-grotesk/58492.otf differ diff --git a/font-library/roc-grotesk/58493.otf b/font-library/roc-grotesk/58493.otf new file mode 100644 index 0000000..b7a6b9f Binary files /dev/null and b/font-library/roc-grotesk/58493.otf differ diff --git a/font-library/roc-grotesk/58494.otf b/font-library/roc-grotesk/58494.otf new file mode 100644 index 0000000..af2474a Binary files /dev/null and b/font-library/roc-grotesk/58494.otf differ diff --git a/font-library/roc-grotesk/58495.otf b/font-library/roc-grotesk/58495.otf new file mode 100644 index 0000000..1d41b9b Binary files /dev/null and b/font-library/roc-grotesk/58495.otf differ diff --git a/font-library/roc-grotesk/58496.otf b/font-library/roc-grotesk/58496.otf new file mode 100644 index 0000000..c7da475 Binary files /dev/null and b/font-library/roc-grotesk/58496.otf differ diff --git a/font-library/roc-grotesk/58497.otf b/font-library/roc-grotesk/58497.otf new file mode 100644 index 0000000..b9aff0d Binary files /dev/null and b/font-library/roc-grotesk/58497.otf differ diff --git a/font-library/roc-grotesk/58498.otf b/font-library/roc-grotesk/58498.otf new file mode 100644 index 0000000..0f776c4 Binary files /dev/null and b/font-library/roc-grotesk/58498.otf differ diff --git a/font-library/roc-grotesk/58499.otf b/font-library/roc-grotesk/58499.otf new file mode 100644 index 0000000..987abb2 Binary files /dev/null and b/font-library/roc-grotesk/58499.otf differ diff --git a/font-library/roc-grotesk/58500.otf b/font-library/roc-grotesk/58500.otf new file mode 100644 index 0000000..7edd668 Binary files /dev/null and b/font-library/roc-grotesk/58500.otf differ diff --git a/font-library/roc-grotesk/58501.otf b/font-library/roc-grotesk/58501.otf new file mode 100644 index 0000000..e4dc958 Binary files /dev/null and b/font-library/roc-grotesk/58501.otf differ diff --git a/font-library/roc-grotesk/58502.otf b/font-library/roc-grotesk/58502.otf new file mode 100644 index 0000000..3000902 Binary files /dev/null and b/font-library/roc-grotesk/58502.otf differ diff --git a/font-library/roc-grotesk/58503.otf b/font-library/roc-grotesk/58503.otf new file mode 100644 index 0000000..6e26a83 Binary files /dev/null and b/font-library/roc-grotesk/58503.otf differ diff --git a/font-library/roc-grotesk/58504.otf b/font-library/roc-grotesk/58504.otf new file mode 100644 index 0000000..d2ffa8d Binary files /dev/null and b/font-library/roc-grotesk/58504.otf differ diff --git a/font-library/roc-grotesk/58505.otf b/font-library/roc-grotesk/58505.otf new file mode 100644 index 0000000..1670d63 Binary files /dev/null and b/font-library/roc-grotesk/58505.otf differ diff --git a/font-library/roc-grotesk/58506.otf b/font-library/roc-grotesk/58506.otf new file mode 100644 index 0000000..648a7d9 Binary files /dev/null and b/font-library/roc-grotesk/58506.otf differ diff --git a/font-library/roc-grotesk/58507.otf b/font-library/roc-grotesk/58507.otf new file mode 100644 index 0000000..7104b41 Binary files /dev/null and b/font-library/roc-grotesk/58507.otf differ diff --git a/font-library/roc-grotesk/58508.otf b/font-library/roc-grotesk/58508.otf new file mode 100644 index 0000000..468b9bd Binary files /dev/null and b/font-library/roc-grotesk/58508.otf differ diff --git a/font-library/roc-grotesk/58509.otf b/font-library/roc-grotesk/58509.otf new file mode 100644 index 0000000..fd35e41 Binary files /dev/null and b/font-library/roc-grotesk/58509.otf differ diff --git a/font-library/roc-grotesk/60001.otf b/font-library/roc-grotesk/60001.otf new file mode 100644 index 0000000..d2f7c1f Binary files /dev/null and b/font-library/roc-grotesk/60001.otf differ diff --git a/layout/password.liquid b/layout/password.liquid new file mode 100644 index 0000000..23105ce --- /dev/null +++ b/layout/password.liquid @@ -0,0 +1,20 @@ + + + + {% # Inlined CSS Variables %} + {% render 'css-variables' %} + + {% # Load and preload the critical CSS %} + {{ 'critical.css' | asset_url | stylesheet_tag: preload: true }} + + {% # Social, title, etc. %} + {% render 'meta-tags' %} + + {% capture shopify_header %}{{ content_for_header }}{% endcapture %} + {% render 'delay-header-scripts', html: shopify_header %} + + + + {{ content_for_layout }} + + diff --git a/layout/theme.liquid b/layout/theme.liquid new file mode 100644 index 0000000..8f507ce --- /dev/null +++ b/layout/theme.liquid @@ -0,0 +1,37 @@ + + + + {% # Inlined CSS Variables %} + {% render 'css-variables' %} + + {% # Load and preload the critical CSS %} + {{ 'critical.css' | asset_url | stylesheet_tag: preload: true }} + {% render 'font-faces' %} + {{ 'tailwind.css' | asset_url | stylesheet_tag }} + + {% # Social, title, etc. %} + {% render 'meta-tags' %} + + {% capture shopify_header %}{{ content_for_header }}{% endcapture %} + {% render 'delay-header-scripts', html: shopify_header %} + + + + {% sections 'header-group' %} + +
+ {{ content_for_layout }} +
+ + {% sections 'footer-group' %} + {% section 'cart-drawer' %} + + {% if request.design_mode %} + + + {% else %} + + + {% endif %} + + diff --git a/locales/en.default.json b/locales/en.default.json new file mode 100644 index 0000000..e367464 --- /dev/null +++ b/locales/en.default.json @@ -0,0 +1,327 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin language editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "404": { + "title": "404", + "not_found": "Page not found.", + "back_to_shopping": "Back to shopping" + }, + "blog": { + "article_comments": "Comments", + "article_metadata_html": "{{ date }} by {{ author }}", + "comment_form_body": "Comment", + "comment_form_email": "Email", + "comment_form_name": "Name", + "comment_form_submit": "Post", + "comment_form_title": "Add a comment" + }, + "cart": { + "checkout": "Checkout", + "title": "Cart", + "update": "Update", + "remove": "Remove" + }, + "cart_drawer": { + "recommendations": "También te recomiendo", + "title": "Su carrito", + "close": "Cerrar carrito", + "remaining_before": "Te faltan", + "remaining_after": "para tu envío", + "free": "GRATIS", + "unlocked": "Ya tienes envío gratis", + "shipping_progress": "Progreso hacia el envío gratis", + "add": "Agregar al carrito", + "subtotal": "Subtotal", + "taxes": "Impuestos incluidos. Descuentos y envío calculados en pantalla de pago.", + "checkout": "Finalizar pedido", + "view": "Ver carrito", + "empty": "Tu carrito está vacío", + "remove": "Eliminar", + "decrease": "Reducir cantidad", + "increase": "Aumentar cantidad" + }, + "customers": { + "login": { + "email": "Email", + "password": "Password", + "submit": "Sign in", + "title": "Login" + } + }, + "collections": { + "title": "Collections" + }, + "product_page": { + "add": "Añadir a la bolsa de compra", + "buy": "Comprar ahora", + "favorite": "Favoritos", + "options": "Opciones: {{ option }}", + "description": "Descripción del producto", + "how_to": "¿Cómo aplicarlo?", + "ingredients": "Ingredientes", + "payments": "Métodos de pago", + "payments_text": "Pago seguro con métodos confiables y cifrados. También puedes pagar a plazos con Mercado Pago, Kueski Pay o Aplazo.", + "shipping": "Envío gratis desde $699 a todo México.", + "payment": "Pago seguro métodos confiables y cifrados.", + "installments": "Pago a plazos con Mercado Pago, Kueski Pay o Aplazo.", + "guarantee": "Garantía de entrega reenvío sin costo si algo falla.", + "routine": "Completa tu rutina", + "also": "Llévate también", + "reviews": "Lo que dicen nuestros clientes", + "rating_of": "{{ rating }} de 5", + "based_on": { + "one": "Basado en {{ count }} reseña", + "other": "Basado en {{ count }} reseñas" + }, + "before": "Antes", + "after": "Después", + "reviewer": "Cliente", + "reviews_label": "Reseñas", + "decrease": "Reducir cantidad", + "increase": "Aumentar cantidad" + }, + "collection_page": { + "filters": "Filtros", + "sort": "Ordenar por: {{ sort }}", + "apply": "Aplicar", + "clear": "Limpiar", + "no_filters": "Esta colección no tiene filtros.", + "empty": "Esta colección no tiene productos.", + "products": { + "one": "{{ count }} Producto", + "other": "{{ count }} Productos" + }, + "next_page": "Página siguiente", + "page": "Página {{ page }}", + "recent": "Vistos recientemente", + "recommended": "Recomendado", + "banner_label": "Banner de la colección" + }, + "gift_card": { + "add_to_apple_wallet": "Add to Apple Wallet", + "card": "Gift card", + "expired": "This gift card has expired", + "expires_on": "Expires on {{ expires_on }}", + "use_at_checkout": "Use this gift card at checkout" + }, + "password": { + "title": "This shop is private", + "password": "Password", + "enter": "Enter" + }, + "search": { + "title": "Search", + "placeholder": "Search articles, pages, or products", + "submit": "Search", + "no_results_html": "No results found for {{ terms }}", + "results_for_html": "{{ count }} results found for {{ terms }}" + }, + "header": { + "menu_open": "Abrir menú", + "menu_close": "Cerrar menú", + "search_label": "Buscar", + "search_placeholder": "Busca tu producto seasons favorito", + "account": "Cuenta", + "cart_count": "Carrito, {{ count }} productos", + "promo": "Cambia tu piel ¡hoy!", + "submenu": "Abrir {{ menu_title }}", + "links": { + "categories": "Categorías", + "routine": "Por rutina", + "skin_type": "Por tipo de piel", + "concern": "Por preocupación", + "sunscreen": "Protección Solar", + "favorites": "Los favoritos", + "kits": "Kits y Rutinas", + "moisturizers": "Hidratantes", + "glow_army": "Glow Army", + "experts": "Seasons Experts" + }, + "dropdowns": { + "all_products": "Todos los productos", + "blockers": "Bloqueadores", + "moisturizers": "Hidratantes", + "cleansers": "Limpiadores", + "masks": "Mascarillas", + "serums": "Serums", + "clean": "1. Limpia", + "treat": "2. Trata", + "hydrate": "3. Hidrata", + "protect": "4. Protege", + "kits": "Kits y rutinas completas", + "combination": "Mixta-grasa", + "oily": "Grasa", + "dry": "Seca", + "sun_protection": "Protección solar", + "oil_control": "Control grasa", + "acne": "Acné", + "hydration": "Hidratación", + "anti_aging": "Antiedad", + "spots": "Manchas" + } + }, + "hero": { + "featured_label": "Producto destacado", + "follow": "Síguenos", + "add_to_cart": "Agregar {{ product }} al carrito", + "sold_out": "Agotado", + "select_product": "Selecciona un producto", + "instagram": "Instagram", + "facebook": "Facebook", + "linkedin": "LinkedIn" + }, + "marquee": { + "shipping_title": "Envío gratis", + "shipping_text": "Desde $699 a todo México.", + "payment_title": "Pago seguro", + "payment_text": "Métodos confiables y cifrados.", + "installments_title": "Pago a plazos", + "installments_text": "Con Mercado Pago, Kueski Pay o Aplazo.", + "guarantee_title": "Garantía de entrega", + "guarantee_text": "Reenvío sin costo si algo falla." + }, + "footer": { + "copyright": "Copyright © {{ year }}, {{ shop_name }}", + "columns": { + "seasons": "Seasons", + "shop": "Comprar", + "routine": "Encuentra tu rutina", + "help": "Ayuda", + "community": "Comunidad" + }, + "seasons": { + "about": "Quiénes somos", + "blog": "Blog Seasons", + "reviews": "Reseñas", + "stores": "Puntos de venta" + }, + "shop": { + "all": "Todos los productos", + "bestsellers": "Más vendidos", + "new": "Nuevos lanzamientos", + "kits": "Kits y rutinas", + "previous": "Línea anterior" + }, + "routine": { + "ideal": "Tu rutina ideal", + "oily": "Piel grasa", + "combination": "Piel mixta", + "dry": "Piel seca", + "all": "Todo tipo", + "kits": "Kits y rutinas" + }, + "help": { + "faq": "Preguntas frecuentes", + "shipping": "Envíos", + "returns": "Devoluciones", + "billing": "Facturación", + "payments": "Política de pagos", + "privacy": "Aviso de privacidad" + }, + "community": { + "experts": "Seasons Experts", + "distributor": "Ser distribuidor", + "glow_army": "Glow Army", + "videos": "Videos y tips" + }, + "newsletter": { + "heading": "Obtén un descuento sorpresa\nen tu primera compra", + "placeholder": "Tu email", + "email_label": "Correo electrónico", + "submit": "Obtener descuento", + "success": "Gracias por registrarte.", + "error": "No pudimos registrarte. Intenta de nuevo." + } + }, + "bestsellers": { + "heading": "Más vendidos", + "view_more": "Ver más", + "badge": "Más vendido", + "add_to_cart": "Agregar al carrito", + "buy_now": "Comprar ahora", + "sold_out": "Agotado", + "added": "Agregado", + "reviews": { + "one": "{{ count }} Reseña", + "other": "{{ count }} Reseñas" + }, + "save": "Guardar {{ product }}", + "saved": "Quitar {{ product }} de guardados", + "previous": "Anterior", + "next": "Siguiente", + "empty": "Esta colección no tiene productos." + }, + "new_products": { + "heading": "Nuevos productos" + }, + "learn": { + "heading": "Aprende, aplica y brilla con Seasons", + "subheading": "Descubre tips, rutinas y formas reales de usar tus productos favoritos.", + "previous": "Anterior", + "next": "Siguiente", + "add_to_cart": "Agregar {{ product }} al carrito" + }, + "distributors": { + "line_1": "Lleva", + "brand": "Seasons", + "line_2": "a más personas", + "text": "Súmate como distribuidor y forma parte de una marca mexicana de skincare que acompaña a cada persona a encontrar productos pensados para su rutina, sus necesidades y su forma de cuidarse.", + "button": "Regístrate", + "photo_alt": "Cuatro personas sonriendo", + "wordmark": "Love your skin" + }, + "testimonials": { + "heading": "Confianza que se construye con cada rutina", + "subheading": "+1,500 pieles ya encontraron su rutina Seasons", + "previous": "Anterior", + "next": "Siguiente", + "rating": "Valoración: {{ rating }} de 5", + "buy": "Comprar ahora", + "add_to_cart": "Agregar {{ product }} al carrito", + "sold_out": "Agotado" + }, + "routine": { + "heading": "Tu rutina\nen 4 pasos", + "empty": "Agrega los pasos de la rutina.", + "steps": { + "step_1": "Paso 1: Limpia", + "step_2": "Paso 2: Trata", + "step_3": "Paso 3: Hidrata", + "step_4": "Paso 4: Protege" + } + }, + "signup": { + "line_1": "Regístrate", + "line_2": "hoy mismo y disfruta de un", + "line_3": "10 % de descuento", + "line_4": "en tu primer pedido", + "text": "Accede a beneficios exclusivos para miembros, acceso anticipado a los nuevos lanzamientos y recompensas exclusivas, solo para ti.", + "placeholder": "Tu email", + "email_label": "Correo electrónico", + "submit": "Registrarme", + "success": "Gracias por registrarte.", + "error": "No pudimos registrarte. Intenta de nuevo." + }, + "skin_match": { + "heading": "¿Qué necesita tu piel hoy?", + "subheading": "Encuentra tu match de cuidado facial con Seasons.", + "lead": "No necesitas ser experta en skincare para cuidar de ti", + "bridge": "En", + "brand": "Seasons", + "rest": "te acompañamos a encontrar los productos ideales para tu rutina, según lo que tu rostro necesita y cómo quieres sentirte cada día.", + "button": "Buscar producto ideal", + "photos": { + "serum": "Crema hidratante facial Seasons en las manos", + "jar": "Gel reparador Seasons en las manos", + "dropper": "Aplicación de serum en el rostro", + "cheek": "Crema aplicada en la mejilla" + } + } +} diff --git a/locales/en.default.schema.json b/locales/en.default.schema.json new file mode 100644 index 0000000..3d2681a --- /dev/null +++ b/locales/en.default.schema.json @@ -0,0 +1,249 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin language editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "general": { + "404": "Not found", + "article": "Article", + "block": "Block", + "blog": "Blog", + "cart": "Cart", + "collection": "Collection", + "collections": "Collections", + "collection_card": "Collection card", + "collections_grid": "Collections grid", + "colors": "Colors", + "column": "Column", + "content": "Content", + "custom_section": "Custom section", + "footer": "Footer", + "group": "Group", + "header": "Header", + "layout": "Layout", + "marquee": "Marquee", + "main": "Main", + "page": "Page", + "password": "Password", + "product": "Product", + "row": "Row", + "search": "Search", + "secondary": "Secondary", + "section": "Section", + "settings": "Settings", + "sidebar": "Sidebar", + "text": "Text", + "theme": "Theme" + }, + "labels": { + "alignment": "Alignment", + "background": "Background", + "foreground": "Foreground", + "grid_gap": "Grid spacing", + "grid_item_width": "Grid item width", + "input_corner_radius": "Input corner radius", + "layout_direction": "Layout direction", + "menu": "Menu", + "customer_account_menu": "Customer account menu", + "padding": "Padding", + "page_margin": "Page margin", + "page_width": "Page width", + "show_payment_icons": "Show payment icons", + "text_style": "Text style", + "text": "Text" + }, + "options": { + "alignment": { + "left": "Left", + "center": "Center", + "right": "Right" + }, + "direction": { + "horizontal": "Horizontal", + "vertical": "Vertical" + }, + "page_width": { + "narrow": "Narrow", + "wide": "Wide" + }, + "size": { + "large": "Large", + "small": "Small" + }, + "text_style": { + "title": "Title", + "subtitle": "Subtitle", + "normal": "Normal text" + } + }, + "header": { + "logo": "Logo", + "main_menu": "Main menu", + "main_menu_info": "Links with nested items open as a dropdown on desktop and an accordion on mobile.", + "pills_menu": "Highlighted links", + "utility_menu": "Utility links", + "promo_text": "Promo text", + "promo_link": "Promo link" + }, + "hero": { + "name": "Hero", + "heading": "Heading", + "line_1": "Line 1", + "line_1_weight": "Line 1 weight", + "line_2": "Line 2", + "line_2_weight": "Line 2 weight", + "line_3": "Line 3", + "line_3_weight": "Line 3 weight", + "weight_light": "Light", + "weight_medium": "Medium", + "featured_label": "Featured label", + "media": "Background", + "media_type": "Background type", + "media_video": "Video", + "media_image": "Image", + "video": "Video", + "video_info": "Leave empty to use the theme video. It plays automatically, muted, and preloads.", + "cover_desktop": "Cover image, desktop", + "cover_mobile": "Cover image, mobile", + "cover_info": "Shown before the video starts, and used as the background when the type is image. Leave empty to use the theme covers.", + "social": "Social links", + "social_label": "Social label", + "instagram": "Instagram", + "facebook": "Facebook", + "linkedin": "LinkedIn", + "featured_product": "Featured product", + "product": "Product" + }, + "marquee": { + "name": "Marquee", + "item": "Item", + "icon": "Icon", + "icon_shipping": "Shipping", + "icon_payment": "Secure payment", + "icon_installments": "Installments", + "icon_guarantee": "Delivery guarantee", + "title": "Title", + "text": "Text" + }, + "footer": { + "logo": "Logo", + "menu": "Menu", + "menu_info": "Each top-level link with nested items becomes a column. Leave this empty to show the default columns." + }, + "bestsellers": { + "name": "Best sellers", + "heading": "Heading", + "collection": "Collection", + "collection_info": "Products are shown in best-selling order. Leave this empty to use the full catalog.", + "products_to_show": "Products to show", + "promo": "Promo image", + "promo_image": "Image", + "promo_image_info": "Shown beside the slider on desktop and above it on mobile. Leave empty to use the theme image.", + "promo_link": "Image link" + }, + "new_products": { + "name": "New products", + "heading": "Heading", + "collection": "Collection", + "collection_info": "Products are shown from newest to oldest. Leave this empty to use the full catalog.", + "products_to_show": "Products to show", + "media": "Media", + "poster": "Cover image", + "poster_info": "Shown beside the slider, and used as the video poster. On mobile it sits above the slider.", + "video": "Video", + "video_info": "Optional. The cover stays on screen until the block is near the viewport, then the video file loads.", + "promo_link": "Image link", + "promo_link_info": "Used when no video is set." + }, + "routine": { + "name": "Routine", + "heading": "Heading", + "cover_image": "Cover image", + "cover_image_info": "Large image on the left on desktop and above the steps on mobile. Leave empty to use the theme image.", + "cover_link": "Cover link", + "step": "Step", + "step_image": "Image", + "step_image_info": "Leave empty to use the theme image for this position.", + "step_title": "Title", + "step_link": "Link" + }, + "signup": { + "name": "Signup", + "form_info": "A new email is added to Customers with email marketing subscribed. An email that already belongs to a customer is not updated.", + "line_1": "Line 1", + "line_2": "Line 2", + "line_3": "Line 3, medium", + "line_4": "Line 3, light", + "text": "Text", + "placeholder": "Email placeholder" + }, + "skin_match": { + "name": "Skin match", + "heading": "Heading", + "subheading": "Subheading", + "lead": "Lead", + "rest": "Text", + "button_label": "Button label", + "button_link": "Button link", + "image_serum": "Serum image", + "image_jar": "Moisturizer image", + "image_dropper": "Dropper image", + "image_cheek": "Cream image", + "image_info": "Leave empty to use the theme image." + }, + "learn": { + "name": "Learn", + "heading": "Heading", + "subheading": "Subheading", + "clip": "Clip", + "poster": "Cover image", + "poster_info": "Shown until this clip is in the center. Leave empty to use the theme image.", + "video": "Video", + "video_info": "Plays only while this clip is centered. The file loads at that moment.", + "product_1": "Product 1", + "product_2": "Product 2" + }, + "distributors": { + "name": "Distributors", + "line_1": "Heading, first line", + "brand": "Brand", + "line_2": "Heading, second line", + "text": "Text", + "button_label": "Button label", + "button_link": "Button link", + "image": "Photo", + "image_info": "Leave empty to use the theme image." + }, + "testimonials": { + "name": "Testimonials", + "heading": "Heading", + "subheading": "Subheading", + "review": "Review", + "quote": "Quote", + "author": "Name", + "rating_label": "Rating", + "product": "Product" + }, + "product_page": { + "name": "Product", + "metafields": "Optional product custom fields: custom.subtitulo, custom.tipo_de_piel, custom.descripcion_corta, custom.como_aplicarlo, custom.ingredientes, custom.antes, custom.despues, custom.rutina, custom.llevate, custom.resenas." + }, + "collection_page": { + "name": "Collection", + "products_per_page": "Products per page", + "metafields": "Banner custom fields on the collection: custom.banner_tipo (titulo, listado or ambos), custom.banner_imagen, custom.banner_titulo, custom.banner_texto, custom.banner_listado, custom.banner_enlace.", + "recent_name": "Recently viewed" + }, + "cart_drawer": { + "name": "Cart drawer", + "free_shipping": "Free shipping from", + "free_shipping_info": "Amount in the store currency. The bar compares it with the cart total.", + "recommendations": "Recommendations", + "recommendations_info": "Products already in the cart are skipped. Leave empty to use all products." + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..94f7d31 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1021 @@ +{ + "name": "season", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "devDependencies": { + "tailwindcss": "^3.4.17" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz", + "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true, + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true, + "license": "MIT" + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fastq": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz", + "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/lilconfig": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", + "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss": { + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.18", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz", + "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", + "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/read-cache": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.2.tgz", + "integrity": "sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==", + "dev": true, + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.12", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", + "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/source-map-js": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.2.tgz", + "integrity": "sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "tinyglobby": "^0.2.11", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.17", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.17.tgz", + "integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==", + "dev": true, + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.6.0", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.2", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.6", + "lilconfig": "^3.1.3", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.47", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.2", + "postcss-nested": "^6.2.0", + "postcss-selector-parser": "^6.1.2", + "resolve": "^1.22.8", + "sucrase": "^3.35.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, + "node_modules/yaml": { + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", + "dev": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..e98599b --- /dev/null +++ b/package.json @@ -0,0 +1,11 @@ +{ + "name": "season", + "private": true, + "scripts": { + "dev:css": "tailwindcss -i ./src/tailwind.css -o ./assets/tailwind.css --watch", + "build:css": "tailwindcss -i ./src/tailwind.css -o ./assets/tailwind.css --minify" + }, + "devDependencies": { + "tailwindcss": "^3.4.17" + } +} diff --git a/sections/404.liquid b/sections/404.liquid new file mode 100644 index 0000000..076cfc9 --- /dev/null +++ b/sections/404.liquid @@ -0,0 +1,23 @@ +{% comment %} + This section is used in the 404 template to render page shown when customers + enter an invalid store URL. + + https://shopify.dev/docs/storefronts/themes/architecture/templates/404 +{% endcomment %} + +

{{ '404.title' | t }}

+ +

+ {{ '404.not_found' | t }} +

+ + + {{ '404.back_to_shopping' | t }} + + +{% schema %} +{ + "name": "t:general.404", + "settings": [] +} +{% endschema %} diff --git a/sections/article.liquid b/sections/article.liquid new file mode 100644 index 0000000..146acd1 --- /dev/null +++ b/sections/article.liquid @@ -0,0 +1,68 @@ +{% comment %} + This section is used in the article template to render the article page, which + displays the full content of the blog post and can optionally include a + comments section for customers (not shown in this example). + + https://shopify.dev/docs/storefronts/themes/architecture/templates/article +{% endcomment %} + +{% if article.image %} + {{ article.image | image_url: width: 1000 | image_tag }} +{% endif %} + +

{{ article.title }}

+ +{% assign date = article.published_at | time_tag: format: 'date' %} +

{{ 'blog.article_metadata_html' | t: date: date, author: article.author }}

+ +{{ article.content }} + +{% if blog.comments_enabled? %} +

{{ 'blog.article_comments' | t }}

+ +
+ {% paginate article.comments by 10 %} + {% for comment in article.comments %} +
+

{{ comment.author }}

+

+ {{- comment.created_at | time_tag: format: 'date' -}} +

+

{{ comment.content }}

+
+ {% endfor %} + + {{ paginate | default_pagination: anchor: 'comments' }} + {% endpaginate %} +
+ + {% form 'new_comment', article %} +

{{ 'blog.comment_form_title' | t }}

+ + {{ form.errors | default_errors }} + +
+ + +
+ +
+ + +
+ +
+ + +
+ + + {% endform %} +{% endif %} + +{% schema %} +{ + "name": "t:general.article", + "settings": [] +} +{% endschema %} diff --git a/sections/bestsellers.liquid b/sections/bestsellers.liquid new file mode 100644 index 0000000..b6e22e4 --- /dev/null +++ b/sections/bestsellers.liquid @@ -0,0 +1,1070 @@ +{% liquid + assign product_collection = section.settings.collection + if product_collection == blank + assign product_collection = collections.all + endif + + if section.settings.heading != blank + assign heading = section.settings.heading + else + assign heading = 'bestsellers.heading' | t + endif + + assign more_url = routes.all_products_collection_url + assign feed_url = blank + assign already_sorted = false + if product_collection != blank + assign more_url = product_collection.url | sort_by: 'best-selling' + assign feed_url = more_url | append: '&view=bestsellers-data' + if product_collection.default_sort_by == 'best-selling' + assign already_sorted = true + endif + endif + + if section.settings.promo_link != blank + assign promo_tag = 'a' + else + assign promo_tag = 'div' + endif + + assign products_to_show = section.settings.products_to_show | default: 8 +%} + +
+
+

{{ heading | escape }}

+
+ {{ 'bestsellers.view_more' | t }} +
+ + +
+
+
+ +
+ <{{ promo_tag }} + class="bestsellers__promo" + {% if promo_tag == 'a' %} + href="{{ section.settings.promo_link }}" + {% endif %} + > + {% if section.settings.promo_image != blank %} + {{ + section.settings.promo_image + | image_url: width: 1400 + | image_tag: + alt: heading, + widths: '372, 486, 744, 972', + sizes: '(max-width: 1024px) calc(100vw - 30px), 486px', + class: 'bestsellers__promo-image', + loading: 'eager' + }} + {% else %} + {{ heading | escape }} + {% endif %} + + +
+
+
+ {% if product_collection != blank and product_collection.products_count > 0 %} + {% for product in product_collection.products limit: products_to_show %} + {% render 'bestsellers-card', product: product, form_suffix: section.id %} + {% endfor %} + {% elsif request.design_mode %} +

{{ 'bestsellers.empty' | t }}

+ {% endif %} +
+
+ +
+
+
+ +{% stylesheet %} + .bestsellers { + padding: 50px 0; + color: #000; + background: #fff; + font-family: Archivo, sans-serif; + } + + .bestsellers__header { + display: flex; + align-items: center; + justify-content: space-between; + gap: 16px; + margin-bottom: 20px; + padding: 0 100px; + } + + .bestsellers__heading { + margin: 0; + color: #000; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: 30px; + font-weight: 500; + line-height: normal; + text-transform: uppercase; + } + + .bestsellers__tools { + display: flex; + flex-shrink: 0; + align-items: center; + gap: 10px; + } + + .bestsellers__more { + padding: 0 10px; + color: #000; + font-size: 16px; + font-weight: 500; + line-height: normal; + text-decoration: none; + } + + .bestsellers__arrows { + display: flex; + align-items: center; + gap: 20px; + } + + .bestsellers__arrow { + display: grid; + width: 30px; + height: 30px; + place-items: center; + padding: 0; + border: 0; + border-radius: 60px; + background: #9dd6c7; + cursor: pointer; + } + + .bestsellers__arrow:disabled { + cursor: default; + opacity: 0.35; + } + + .bestsellers__arrow-icon { + display: block; + width: 20px; + height: 20px; + } + + .bestsellers__arrow--prev .bestsellers__arrow-icon { + transform: rotate(-90deg); + } + + .bestsellers__arrow--next .bestsellers__arrow-icon { + transform: rotate(90deg); + } + + .bestsellers__body { + display: flex; + align-items: flex-start; + gap: 28px; + } + + .bestsellers__promo { + position: relative; + display: block; + flex: 0 0 486px; + width: 486px; + height: 550px; + overflow: hidden; + border-radius: 0 10px 10px 0; + color: inherit; + text-decoration: none; + } + + .bestsellers__promo-image { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } + + .bestsellers__slider { + display: flex; + min-width: 0; + flex: 1 1 auto; + flex-direction: column; + align-self: stretch; + } + + .bestsellers__progress { + position: relative; + height: 1px; + margin-top: auto; + background: #e6e6e6; + } + + .bestsellers__progress-bar { + position: absolute; + top: 0; + left: 0; + height: 2px; + background: #000; + } + + .bestsellers__viewport { + min-width: 0; + min-height: 493px; + flex: 1 1 auto; + overflow-x: auto; + scroll-snap-type: x mandatory; + scrollbar-width: none; + cursor: grab; + } + + .bestsellers[data-feed]:not([data-sorted="true"]) .bestsellers__card { + visibility: hidden; + } + + .bestsellers__viewport::-webkit-scrollbar { + display: none; + } + + .bestsellers__viewport.is-dragging { + cursor: grabbing; + scroll-snap-type: none; + } + + .bestsellers__track { + display: flex; + gap: 30px; + width: max-content; + padding-right: 100px; + } + + .bestsellers__card { + display: flex; + flex: 0 0 386px; + flex-direction: column; + gap: 20px; + width: 386px; + scroll-snap-align: start; + } + + .bestsellers__media { + position: relative; + width: 386px; + height: 386px; + overflow: hidden; + border-radius: 10px; + background: #fff; + } + + .bestsellers__media-link { + position: absolute; + inset: 0; + display: block; + } + + .bestsellers__image { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } + + .bestsellers__image--hover { + position: absolute; + inset: 0; + opacity: 0; + transition: opacity 0.35s ease; + } + + .bestsellers__media:hover .bestsellers__image--hover, + .bestsellers__media:focus-within .bestsellers__image--hover { + opacity: 1; + } + + @media (prefers-reduced-motion: reduce) { + .bestsellers__image--hover { + transition: none; + } + } + + .bestsellers__image--empty { + background: #f3f3f3; + } + + .bestsellers__badges { + position: absolute; + top: 10px; + left: 10px; + z-index: 1; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 4px; + } + + .bestsellers__badge { + display: inline-flex; + align-items: center; + justify-content: center; + padding: 3px 5px; + border-radius: 2px; + color: #000; + font-size: 10px; + font-weight: 300; + line-height: normal; + text-transform: uppercase; + } + + .bestsellers__badge--best { + background: #bfffb2; + } + + .bestsellers__badge--skin { + background: #f7c585; + } + + .bestsellers__wish { + position: absolute; + top: 20px; + right: 20px; + z-index: 1; + display: grid; + width: 25px; + height: 25px; + place-items: center; + padding: 0; + border: 0; + background: transparent; + cursor: pointer; + } + + .bestsellers__wish-icon { + display: block; + width: 25px; + height: 25px; + } + + .bestsellers__wish-icon svg { + display: block; + } + + .bestsellers__wish.is-active svg path { + fill: #000; + } + + .bestsellers__info { + display: flex; + flex-direction: column; + gap: 15px; + } + + .bestsellers__copy { + display: flex; + flex-direction: column; + gap: 5px; + } + + .bestsellers__title { + display: block; + overflow: hidden; + color: #000; + font-size: 18px; + font-weight: 700; + line-height: normal; + text-decoration: none; + text-overflow: ellipsis; + white-space: nowrap; + } + + .bestsellers__subtitle, + .bestsellers__reviews, + .bestsellers__empty { + margin: 0; + } + + .bestsellers__subtitle { + overflow: hidden; + color: #808181; + font-size: 14px; + font-weight: 300; + line-height: normal; + text-overflow: ellipsis; + white-space: nowrap; + } + + .bestsellers__rating { + display: flex; + align-items: center; + gap: 10px; + } + + .bestsellers__stars { + display: flex; + align-items: center; + gap: 1px; + } + + .bestsellers__star { + display: block; + width: 10px; + height: 10px; + } + + .bestsellers__star svg { + display: block; + } + + .bestsellers__star.is-off { + opacity: 0.25; + } + + .bestsellers__reviews { + color: #000; + font-size: 9px; + font-weight: 300; + line-height: normal; + white-space: nowrap; + } + + .bestsellers__prices { + display: flex; + align-items: center; + gap: 32px; + } + + .bestsellers__price, + .bestsellers__compare { + font-size: 16px; + line-height: normal; + } + + .bestsellers__price { + font-weight: 700; + } + + .bestsellers__compare { + color: #808181; + font-weight: 400; + text-decoration: line-through; + } + + .bestsellers__actions { + position: absolute; + right: 20px; + bottom: 10px; + left: 20px; + z-index: 2; + display: flex; + gap: 10px; + margin: 0; + opacity: 0; + pointer-events: none; + transition: opacity 0.25s ease; + } + + .bestsellers__media:hover .bestsellers__actions, + .bestsellers__media:focus-within .bestsellers__actions { + opacity: 1; + pointer-events: auto; + } + + .bestsellers__bag, + .bestsellers__buy { + display: flex; + align-items: center; + justify-content: center; + height: 50px; + padding: 15px; + border: 0; + border-radius: 60px; + box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); + cursor: pointer; + } + + .bestsellers__bag { + flex: 0 0 50px; + width: 50px; + background: #000; + } + + .bestsellers__bag img { + display: block; + width: 25px; + height: 25px; + } + + .bestsellers__buy { + flex: 1 1 auto; + background: #9dd6c7; + color: #000; + font-family: Archivo, sans-serif; + font-size: 16px; + font-weight: 300; + line-height: normal; + } + + .bestsellers__bag:disabled, + .bestsellers__buy:disabled { + cursor: default; + opacity: 0.55; + } + + .bestsellers__empty { + color: #000; + font-size: 14px; + font-weight: 400; + } + + .bestsellers__more:focus-visible, + .bestsellers__bag:focus-visible, + .bestsellers__buy:focus-visible, + .bestsellers__arrow:focus-visible, + .bestsellers__wish:focus-visible, + .bestsellers__title:focus-visible, + .bestsellers__media-link:focus-visible, + .bestsellers__promo:focus-visible { + outline: 2px solid #000; + outline-offset: 2px; + } + + @media (max-width: 1439px) { + .bestsellers__header { + padding-inline: 40px; + } + + .bestsellers__track { + padding-right: 40px; + } + } + + @media (max-width: 1024px) { + .bestsellers { + padding-top: 40px; + } + + .bestsellers__header { + margin-bottom: 10px; + padding-inline: 15px; + } + + .bestsellers__heading { + font-size: 20px; + } + + .bestsellers__more { + padding: 0; + font-size: 14px; + } + + .bestsellers__arrows { + display: none; + } + + .bestsellers__body { + flex-direction: column; + gap: 20px; + } + + .bestsellers__promo { + flex-basis: auto; + width: calc(100% - 30px); + height: 460px; + margin-inline: 15px; + border-radius: 10px; + } + + .bestsellers__progress { + margin-top: 24px; + } + + .bestsellers__viewport { + width: 100%; + min-height: 370px; + cursor: auto; + } + + .bestsellers__track { + gap: 20px; + padding-right: 15px; + padding-left: 15px; + } + + .bestsellers__card { + flex-basis: 245px; + gap: 10px; + width: 245px; + } + + .bestsellers__media { + width: 245px; + height: 244px; + } + + .bestsellers__badges { + top: 5px; + left: 5px; + } + + .bestsellers__badge { + font-size: 7px; + } + + .bestsellers__wish { + top: 10px; + right: 11px; + } + + .bestsellers__info { + gap: 10px; + } + + .bestsellers__title { + font-size: 14px; + } + + .bestsellers__subtitle { + font-size: 10px; + } + + .bestsellers__reviews { + position: absolute; + width: 1px; + height: 1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + } + + .bestsellers__rating { + position: relative; + } + + .bestsellers__price, + .bestsellers__compare { + font-size: 14px; + } + + .bestsellers__prices { + gap: 16px; + } + + .bestsellers__actions { + right: 8px; + bottom: 8px; + left: 8px; + gap: 6px; + opacity: 1; + pointer-events: auto; + } + + .bestsellers__bag, + .bestsellers__buy { + height: 36px; + padding: 0 8px; + } + + .bestsellers__bag { + flex-basis: 36px; + width: 36px; + } + + .bestsellers__bag img { + width: 18px; + height: 18px; + } + + .bestsellers__buy { + font-size: 12px; + } + } + + @media (prefers-reduced-motion: reduce) { + .bestsellers__viewport { + scroll-behavior: auto; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + const wishlistKey = 'seasons-wishlist'; + + const readWishlist = () => { + try { + const stored = JSON.parse(window.localStorage.getItem(wishlistKey)); + return Array.isArray(stored) ? stored.map(String) : []; + } catch (error) { + return []; + } + }; + + const writeWishlist = (ids) => { + window.localStorage.setItem(wishlistKey, JSON.stringify(ids)); + }; + + const applyWishlist = (root) => { + const saved = readWishlist(); + root.querySelectorAll('[data-wishlist]').forEach((button) => { + const active = saved.includes(String(button.dataset.productId)); + button.classList.toggle('is-active', active); + button.setAttribute('aria-pressed', active ? 'true' : 'false'); + button.setAttribute('aria-label', active ? button.dataset.labelSaved : button.dataset.labelSave); + }); + }; + + const setCartCount = (count) => { + const link = document.querySelector('.header__cart'); + if (!link || count < 1) return; + + let badge = link.querySelector('[data-cart-count]'); + if (!badge) { + badge = document.createElement('span'); + badge.className = 'absolute right-0 top-0 flex h-4 min-w-4 items-center justify-center rounded-full bg-brand-mint px-[3px] text-[10px] font-medium leading-none text-black'; + badge.setAttribute('data-cart-count', ''); + link.appendChild(badge); + } + + badge.textContent = String(count); + link.setAttribute('aria-label', link.getAttribute('aria-label').replace(/\d+/, String(count))); + }; + + const updateArrows = (root) => { + const viewport = root.querySelector('[data-viewport]'); + const prev = root.querySelector('[data-slider-prev]'); + const next = root.querySelector('[data-slider-next]'); + if (!viewport || !prev || !next) return; + + const max = viewport.scrollWidth - viewport.clientWidth; + prev.disabled = viewport.scrollLeft <= 2; + next.disabled = viewport.scrollLeft >= max - 2; + updateProgress(root); + }; + + const updateProgress = (root) => { + const viewport = root.querySelector('[data-viewport]'); + const bar = root.querySelector('[data-progress-bar]'); + if (!viewport || !bar) return; + + const max = viewport.scrollWidth - viewport.clientWidth; + const visible = viewport.scrollWidth > 0 ? viewport.clientWidth / viewport.scrollWidth : 1; + const width = Math.min(Math.max(visible * 100, 12), 100); + const travel = 100 - width; + const progress = max <= 2 ? 0 : viewport.scrollLeft / max; + bar.style.width = `${width}%`; + bar.style.left = `${progress * travel}%`; + }; + + const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)'); + + const pauseAutoplay = (root) => { + if (!root._bestsellersTimer) return; + window.clearInterval(root._bestsellersTimer); + root._bestsellersTimer = null; + }; + + const startAutoplay = (root) => { + pauseAutoplay(root); + if (reduceMotion.matches || root.dataset.paused === 'true') return; + + root._bestsellersTimer = window.setInterval(() => { + const viewport = root.querySelector('[data-viewport]'); + if (!viewport) return; + const max = viewport.scrollWidth - viewport.clientWidth; + if (max <= 2) return; + + if (viewport.scrollLeft >= max - 2) { + viewport.scrollTo({ left: 0, behavior: 'smooth' }); + return; + } + + scrollByCard(root, 1); + }, 4000); + }; + + const scrollByCard = (root, direction) => { + const viewport = root.querySelector('[data-viewport]'); + const card = root.querySelector('.bestsellers__card'); + if (!viewport || !card) return; + + const track = root.querySelector('[data-track]'); + const gap = track ? parseFloat(window.getComputedStyle(track).columnGap) || 0 : 0; + const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches; + viewport.scrollBy({ + left: direction * (card.getBoundingClientRect().width + gap), + behavior: reduce ? 'auto' : 'smooth', + }); + }; + + const loadBestSellers = async (root) => { + if (root.dataset.sorted === 'true' || !root.dataset.feed) return; + if (window.Shopify && window.Shopify.designMode) return; + + try { + const response = await fetch(root.dataset.feed, { headers: { Accept: 'text/html' } }); + if (!response.ok) { + root.dataset.sorted = 'true'; + return; + } + + const html = await response.text(); + const parsed = new DOMParser().parseFromString(html, 'text/html'); + const limit = Number(root.dataset.limit) || 8; + const cards = Array.from(parsed.querySelectorAll('.bestsellers__card')).slice(0, limit); + const track = root.querySelector('[data-track]'); + if (!track || !cards.length) { + root.dataset.sorted = 'true'; + return; + } + + track.replaceChildren(...cards.map((card) => document.importNode(card, true))); + applyWishlist(root); + updateArrows(root); + root.dataset.sorted = 'true'; + startAutoplay(root); + } catch (error) { + root.dataset.sorted = 'true'; + } + }; + + const boot = (root) => { + if (!root || root.dataset.ready === 'true') return; + root.dataset.ready = 'true'; + + const viewport = root.querySelector('[data-viewport]'); + if (!viewport) return; + + applyWishlist(root); + updateArrows(root); + viewport.addEventListener('scroll', () => updateArrows(root), { passive: true }); + window.addEventListener('resize', () => updateArrows(root)); + + root.addEventListener('mouseenter', () => { + root.dataset.paused = 'true'; + pauseAutoplay(root); + }); + root.addEventListener('mouseleave', () => { + delete root.dataset.paused; + if (!viewport.classList.contains('is-dragging')) startAutoplay(root); + }); + + let pointerId = null; + let startX = 0; + let startScroll = 0; + let moved = false; + + viewport.addEventListener('pointerdown', (event) => { + if (event.pointerType !== 'mouse' || event.button !== 0) return; + if (event.target.closest('a, button')) return; + pointerId = event.pointerId; + startX = event.clientX; + startScroll = viewport.scrollLeft; + moved = false; + pauseAutoplay(root); + viewport.classList.add('is-dragging'); + viewport.setPointerCapture(pointerId); + }); + + viewport.addEventListener('pointermove', (event) => { + if (event.pointerId !== pointerId) return; + const delta = event.clientX - startX; + if (Math.abs(delta) > 4) moved = true; + viewport.scrollLeft = startScroll - delta; + }); + + const endDrag = (event) => { + if (event.pointerId !== pointerId) return; + pointerId = null; + viewport.classList.remove('is-dragging'); + updateArrows(root); + if (root.dataset.paused !== 'true') startAutoplay(root); + if (!moved) return; + viewport.addEventListener('click', (clickEvent) => { + clickEvent.preventDefault(); + clickEvent.stopPropagation(); + }, { capture: true, once: true }); + }; + + viewport.addEventListener('pointerup', endDrag); + viewport.addEventListener('pointercancel', endDrag); + startAutoplay(root); + loadBestSellers(root); + }; + + document.querySelectorAll('[data-bestsellers]').forEach(boot); + + document.addEventListener('shopify:section:load', (event) => { + const root = event.target.querySelector('[data-bestsellers]'); + if (root) boot(root); + }); + + if (!window.__seasonBestsellers) { + window.__seasonBestsellers = true; + + document.addEventListener('click', (event) => { + const arrow = event.target.closest('[data-slider-prev], [data-slider-next]'); + if (arrow) { + const root = arrow.closest('[data-bestsellers]'); + if (!root || arrow.disabled) return; + scrollByCard(root, arrow.hasAttribute('data-slider-next') ? 1 : -1); + if (root.dataset.paused !== 'true') startAutoplay(root); + return; + } + + const wish = event.target.closest('[data-wishlist]'); + if (!wish) return; + const root = wish.closest('[data-bestsellers]'); + if (!root) return; + + const id = String(wish.dataset.productId); + const saved = readWishlist(); + const next = saved.includes(id) ? saved.filter((item) => item !== id) : saved.concat(id); + writeWishlist(next); + applyWishlist(root); + }); + + document.addEventListener('submit', async (event) => { + const form = event.target; + if (!(form instanceof HTMLFormElement) || !form.classList.contains('bestsellers__form')) return; + + const root = form.closest('[data-bestsellers]'); + if (!root) return; + + event.preventDefault(); + + const button = event.submitter instanceof HTMLButtonElement + ? event.submitter + : form.querySelector('[type="submit"]'); + const variantId = form.querySelector('[name="id"]')?.value; + if (!button || button.disabled || !variantId) return; + + const buttons = [...form.querySelectorAll('button')]; + buttons.forEach((item) => { + item.disabled = true; + }); + const buyNow = button.hasAttribute('data-buy'); + + try { + const addResponse = await fetch(root.dataset.cartAddUrl, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + body: JSON.stringify({ id: variantId, quantity: 1 }), + }); + + if (!addResponse.ok) { + form.submit(); + return; + } + + if (buyNow && root.dataset.checkoutUrl) { + window.location.href = root.dataset.checkoutUrl; + return; + } + + const cartResponse = await fetch(root.dataset.cartUrl, { headers: { Accept: 'application/json' } }); + const cart = await cartResponse.json(); + if (typeof cart.item_count === 'number') setCartCount(cart.item_count); + document.dispatchEvent(new CustomEvent('season:cart:open')); + } catch (error) { + form.submit(); + } finally { + if (!buyNow) { + buttons.forEach((item) => { + item.disabled = false; + }); + } + } + }); + } +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:bestsellers.name", + "tag": "section", + "class": "bestsellers-section", + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [ + { + "type": "text", + "id": "heading", + "label": "t:bestsellers.heading", + "default": "Más vendidos" + }, + { + "type": "collection", + "id": "collection", + "label": "t:bestsellers.collection", + "info": "t:bestsellers.collection_info" + }, + { + "type": "range", + "id": "products_to_show", + "label": "t:bestsellers.products_to_show", + "min": 4, + "max": 12, + "step": 1, + "default": 8 + }, + { + "type": "header", + "content": "t:bestsellers.promo" + }, + { + "type": "image_picker", + "id": "promo_image", + "label": "t:bestsellers.promo_image", + "info": "t:bestsellers.promo_image_info" + }, + { + "type": "url", + "id": "promo_link", + "label": "t:bestsellers.promo_link" + } + ], + "presets": [ + { + "name": "t:bestsellers.name" + } + ] +} +{% endschema %} diff --git a/sections/blog.liquid b/sections/blog.liquid new file mode 100644 index 0000000..0ea2113 --- /dev/null +++ b/sections/blog.liquid @@ -0,0 +1,35 @@ +{% comment %} + This section is used in the blog template to render the blog page listing all + articles within a blog. + + https://shopify.dev/docs/storefronts/themes/architecture/templates/blog +{% endcomment %} + +

{{ blog.title }}

+ +{% paginate blog.articles by 5 %} + {% for article in blog.articles %} +
+ {% if article.image %} + {{ article.image | image_url: width: 1000 | image_tag }} + {% endif %} +

+ {{ article.title | link_to: article.url }} +

+ {% assign date = article.published_at | time_tag: format: 'date' %} +

{{ 'blog.article_metadata_html' | t: date: date, author: article.author }}

+

{{ article.excerpt }}

+
+ {% endfor %} + + {%- if paginate.pages > 1 -%} + {{- paginate | default_pagination -}} + {%- endif -%} +{% endpaginate %} + +{% schema %} +{ + "name": "t:general.blog", + "settings": [] +} +{% endschema %} diff --git a/sections/cart-drawer.liquid b/sections/cart-drawer.liquid new file mode 100644 index 0000000..b48e246 --- /dev/null +++ b/sections/cart-drawer.liquid @@ -0,0 +1,861 @@ +{%- liquid + assign free_shipping = section.settings.free_shipping | default: 699 + assign threshold = free_shipping | times: 100 + assign progress = 0 + assign remaining = 0 + assign unlocked = false + + if threshold > 0 + if cart.total_price >= threshold + assign progress = 100 + assign unlocked = true + else + assign remaining = threshold | minus: cart.total_price + assign progress = cart.total_price | times: 100 | divided_by: threshold + endif + endif + + assign rec_collection = section.settings.recommendations + if rec_collection == blank + assign rec_collection = collections.all + endif + + assign shown = 0 + capture rec_items + if rec_collection != blank + for product in rec_collection.products limit: 24 + if shown >= 4 + break + endif + + assign already_in_cart = false + for item in cart.items + if item.product_id == product.id + assign already_in_cart = true + endif + endfor + if already_in_cart + continue + endif + + assign rec_variant = product.selected_or_first_available_variant + if rec_variant == blank + continue + endif + unless rec_variant.available + continue + endunless + + assign shown = shown | plus: 1 + assign add_label = 'cart_drawer.add' | t + + echo '' + endfor + endif + endcapture +-%} + + + +{% stylesheet %} + .shopify-section.cart-drawer-section { + display: block; + width: 0; + height: 0; + overflow: visible; + position: static; + } + + .cart-drawer { + position: fixed; + inset: 0; + z-index: 80; + visibility: hidden; + pointer-events: none; + } + + .cart-drawer.is-open, + .cart-drawer.is-closing { + visibility: visible; + } + + .cart-drawer.is-open { + pointer-events: auto; + } + + .cart-drawer__backdrop { + position: absolute; + inset: 0; + border: 0; + padding: 0; + background: rgba(32, 36, 36, 0.46); + opacity: 0; + cursor: pointer; + transition: opacity 0.32s ease; + } + + .cart-drawer.is-open .cart-drawer__backdrop { + opacity: 1; + } + + .cart-drawer__panel { + position: absolute; + top: 0; + right: 0; + display: flex; + width: min(980px, 100%); + height: 100%; + background: #fff; + color: #000; + box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12); + transform: translate3d(100%, 0, 0); + transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1); + } + + .cart-drawer.is-open .cart-drawer__panel { + transform: translate3d(0, 0, 0); + } + + .cart-drawer__layout { + display: grid; + grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); + width: 100%; + min-height: 0; + } + + .cart-drawer__layout:not(:has(.cart-drawer__recs)) { + grid-template-columns: 1fr; + } + + .cart-drawer__recs, + .cart-drawer__items { + overscroll-behavior: contain; + } + + .cart-drawer__recs { + overflow: auto; + padding: 28px 24px 32px; + border-right: 1px solid #ededed; + } + + .cart-drawer__main { + display: flex; + flex-direction: column; + min-width: 0; + min-height: 0; + padding: 28px 28px 0; + } + + .cart-drawer__heading { + margin: 0; + font-size: 13px; + font-weight: 700; + letter-spacing: 0.08em; + line-height: 1.3; + text-transform: uppercase; + } + + .cart-drawer__head { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; + } + + .cart-drawer__close, + .cart-drawer__remove, + .cart-drawer__add, + .cart-drawer__qty button { + border: 0; + background: transparent; + color: inherit; + cursor: pointer; + } + + .cart-drawer__close { + display: inline-flex; + flex: 0 0 auto; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + margin: -6px -6px 0 0; + padding: 0; + } + + .cart-drawer__shipping { + margin-top: 18px; + } + + .cart-drawer__shipping p { + margin: 0 0 10px; + font-size: 13px; + font-weight: 400; + line-height: 1.4; + } + + .cart-drawer__shipping span { + color: #1aa37a; + font-weight: 700; + } + + .cart-drawer__bar { + height: 4px; + overflow: hidden; + border-radius: 999px; + background: #ececec; + } + + .cart-drawer__bar-fill { + display: block; + width: var(--progress); + height: 100%; + border-radius: inherit; + background: #9dd6c7; + } + + .cart-drawer__items { + flex: 1; + overflow: auto; + margin-top: 8px; + } + + .cart-drawer__empty { + margin: 48px 0; + color: #666; + font-size: 14px; + font-weight: 400; + text-align: center; + } + + .cart-drawer__line, + .cart-drawer__rec { + display: grid; + align-items: center; + gap: 14px; + } + + .cart-drawer__line { + grid-template-columns: 72px minmax(0, 1fr) auto; + padding: 18px 0; + } + + .cart-drawer__rec { + grid-template-columns: 56px minmax(0, 1fr); + align-items: start; + padding: 18px 0; + border-bottom: 1px solid #f1f1f1; + } + + .cart-drawer__thumb { + display: block; + overflow: hidden; + width: 72px; + height: 72px; + background: #f7f7f7; + } + + .cart-drawer__thumb--rec { + width: 56px; + height: 64px; + } + + .cart-drawer__img { + display: block; + width: 100%; + height: 100%; + object-fit: contain; + } + + .cart-drawer__line-title, + .cart-drawer__rec-title { + display: block; + color: inherit; + font-size: 14px; + font-weight: 500; + line-height: 1.35; + text-decoration: none; + } + + .cart-drawer__rec-title { + font-size: 13px; + font-weight: 400; + } + + .cart-drawer__variant { + margin: 2px 0 0; + color: #777; + font-size: 12px; + font-weight: 400; + } + + .cart-drawer__price { + margin: 6px 0 0; + font-size: 14px; + font-weight: 600; + line-height: 1.2; + } + + .cart-drawer__add { + display: inline-flex; + align-items: center; + gap: 8px; + margin-top: 8px; + padding: 0; + font-size: 11px; + font-weight: 500; + letter-spacing: 0.04em; + line-height: 1; + text-transform: uppercase; + } + + .cart-drawer__qty { + display: inline-flex; + align-items: center; + height: 32px; + margin-top: 10px; + border: 1px solid #e1e1e1; + border-radius: 4px; + } + + .cart-drawer__qty button { + width: 32px; + height: 32px; + padding: 0; + font-size: 16px; + line-height: 1; + } + + .cart-drawer__qty button:disabled { + color: #bbb; + cursor: default; + } + + .cart-drawer__qty span { + min-width: 16px; + font-size: 14px; + text-align: center; + } + + .cart-drawer__remove { + display: inline-flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + padding: 0; + } + + .cart-drawer__footer { + flex: 0 0 auto; + padding: 16px 0 24px; + background: #fff; + } + + .cart-drawer__subtotal { + display: flex; + align-items: baseline; + justify-content: space-between; + gap: 16px; + margin: 0; + font-size: 16px; + font-weight: 500; + } + + .cart-drawer__subtotal strong { + font-weight: 600; + } + + .cart-drawer__note { + margin: 8px 0 0; + color: #6d6d6d; + font-size: 12px; + font-weight: 300; + line-height: 1.4; + text-align: center; + } + + .cart-drawer__actions { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 12px; + margin-top: 16px; + } + + .cart-drawer__actions form { + display: contents; + } + + .cart-drawer__checkout, + .cart-drawer__view { + display: flex; + align-items: center; + justify-content: center; + height: 48px; + border-radius: 999px; + font-size: 13px; + font-weight: 600; + letter-spacing: 0.04em; + line-height: 1; + text-align: center; + text-decoration: none; + text-transform: uppercase; + } + + .cart-drawer__checkout { + border: 0; + background: #9dd6c7; + color: #000; + cursor: pointer; + } + + .cart-drawer__checkout:disabled { + opacity: 0.45; + cursor: default; + } + + .cart-drawer__view { + border: 1px solid #111; + background: #fff; + color: #000; + } + + .cart-drawer.is-busy .cart-drawer__layout { + pointer-events: none; + } + + html.cart-drawer-open, + html.cart-drawer-open body { + overflow: hidden; + } + + @media (max-width: 767px) { + .cart-drawer__panel { + width: 100%; + } + + .cart-drawer__layout, + .cart-drawer__layout:not(:has(.cart-drawer__recs)) { + display: flex; + flex-direction: column; + overflow: auto; + } + + .cart-drawer__recs { + order: 2; + border-right: 0; + border-top: 1px solid #ededed; + } + + .cart-drawer__main { + order: 1; + min-height: 100%; + padding: 20px 16px 0; + } + + .cart-drawer__items { + overflow: visible; + } + + .cart-drawer__footer { + position: sticky; + bottom: 0; + padding-bottom: 20px; + } + + .cart-drawer__actions { + grid-template-columns: 1fr; + } + } + + @media (prefers-reduced-motion: reduce) { + .cart-drawer__backdrop, + .cart-drawer__panel { + transition: none; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + if (window.__seasonCartDrawer) return; + window.__seasonCartDrawer = true; + + const getDrawer = () => document.querySelector('[data-cart-drawer]'); + let lastFocus = null; + let requestId = 0; + + const setCount = (count) => { + document.querySelectorAll('[data-cart-open]').forEach((button) => { + const template = button.dataset.cartCountLabel || ''; + if (template) button.setAttribute('aria-label', template.replace('__COUNT__', String(count))); + + let badge = button.querySelector('[data-cart-count]'); + if (count < 1) { + badge?.remove(); + return; + } + + if (!badge) { + badge = document.createElement('span'); + badge.className = 'absolute right-0 top-0 flex h-4 min-w-4 items-center justify-center rounded-full bg-brand-mint px-[3px] text-[10px] font-medium leading-none text-black'; + badge.setAttribute('data-cart-count', ''); + button.appendChild(badge); + } + + badge.textContent = String(count); + }); + }; + + const openDrawer = () => { + const drawer = getDrawer(); + if (!drawer) return; + if (!drawer.classList.contains('is-open')) lastFocus = document.activeElement; + drawer.classList.remove('is-closing'); + drawer.classList.add('is-open'); + drawer.setAttribute('aria-hidden', 'false'); + document.documentElement.classList.add('cart-drawer-open'); + document.querySelectorAll('[data-cart-open]').forEach((button) => { + button.setAttribute('aria-expanded', 'true'); + }); + drawer.querySelector('.cart-drawer__close')?.focus(); + }; + + const closeDrawer = () => { + const drawer = getDrawer(); + if (!drawer || !drawer.classList.contains('is-open')) return; + drawer.classList.remove('is-open'); + drawer.classList.add('is-closing'); + drawer.setAttribute('aria-hidden', 'true'); + document.documentElement.classList.remove('cart-drawer-open'); + document.querySelectorAll('[data-cart-open]').forEach((button) => { + button.setAttribute('aria-expanded', 'false'); + }); + + const panel = drawer.querySelector('[data-cart-drawer-panel]'); + const finish = (event) => { + if (event && event.target !== panel) return; + if (drawer.classList.contains('is-open')) return; + drawer.classList.remove('is-closing'); + panel?.removeEventListener('transitionend', finish); + }; + panel?.addEventListener('transitionend', finish); + window.setTimeout(finish, 450); + + if (lastFocus && typeof lastFocus.focus === 'function') lastFocus.focus(); + }; + + const refresh = async (shouldOpen) => { + const drawer = getDrawer(); + if (!drawer) return; + const currentId = ++requestId; + + try { + const url = new URL(window.location.href); + url.searchParams.set('section_id', drawer.dataset.sectionId); + url.hash = ''; + const response = await fetch(url.toString(), { headers: { Accept: 'text/html' } }); + if (!response.ok || currentId !== requestId) return; + const fresh = new DOMParser().parseFromString(await response.text(), 'text/html').querySelector('[data-cart-drawer-content]'); + const current = getDrawer()?.querySelector('[data-cart-drawer-content]'); + if (!fresh || !current || currentId !== requestId) return; + current.replaceWith(fresh); + setCount(Number(fresh.dataset.itemCount || '0')); + } catch (error) { + // Keep the cart that is already on the page. + } + + if (shouldOpen) openDrawer(); + }; + + const postJson = async (url, payload) => { + const response = await fetch(url, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + body: JSON.stringify(payload), + }); + return response.ok; + }; + + document.addEventListener('season:cart:open', () => { + const drawer = getDrawer(); + drawer?.classList.add('is-busy'); + openDrawer(); + refresh(false).finally(() => { + getDrawer()?.classList.remove('is-busy'); + }); + }); + + document.addEventListener('keydown', (event) => { + if (event.key !== 'Escape') return; + if (!getDrawer()?.classList.contains('is-open')) return; + event.preventDefault(); + closeDrawer(); + }); + + document.addEventListener('click', async (event) => { + const opener = event.target.closest('[data-cart-open]'); + if (opener) { + event.preventDefault(); + openDrawer(); + return; + } + + const drawer = getDrawer(); + if (!drawer || !drawer.classList.contains('is-open')) return; + + if (event.target.closest('[data-cart-drawer-close]')) { + closeDrawer(); + return; + } + + if (drawer.classList.contains('is-busy')) return; + + const addButton = event.target.closest('[data-cart-drawer-add]'); + if (addButton && drawer.contains(addButton)) { + const variantId = addButton.dataset.variantId; + if (!variantId) return; + drawer.classList.add('is-busy'); + try { + const ok = await postJson(drawer.dataset.addUrl, { id: Number(variantId), quantity: 1 }); + if (ok) await refresh(false); + } finally { + getDrawer()?.classList.remove('is-busy'); + } + return; + } + + const qtyButton = event.target.closest('[data-cart-drawer-qty]'); + if (qtyButton && drawer.contains(qtyButton)) { + const key = qtyButton.dataset.lineKey; + const quantity = Number(qtyButton.dataset.quantity); + if (!key || Number.isNaN(quantity)) return; + drawer.classList.add('is-busy'); + try { + const ok = await postJson(drawer.dataset.changeUrl, { id: key, quantity }); + if (ok) await refresh(false); + } finally { + getDrawer()?.classList.remove('is-busy'); + } + } + }); + + document.addEventListener('submit', async (event) => { + if (event.defaultPrevented) return; + const form = event.target; + if (!(form instanceof HTMLFormElement)) return; + const action = form.getAttribute('action') || ''; + if (!action.includes('/cart/add')) return; + if (event.submitter && event.submitter.closest('.shopify-payment-button')) return; + if (event.submitter && event.submitter.hasAttribute('data-buy')) return; + + event.preventDefault(); + const drawer = getDrawer(); + drawer?.classList.add('is-busy'); + + try { + const endpoint = action.includes('.js') ? action : action.replace(/\/?$/, '.js').replace('.js.js', '.js'); + const response = await fetch(endpoint, { + method: 'POST', + headers: { Accept: 'application/json' }, + body: new FormData(form), + }); + if (!response.ok) { + form.submit(); + return; + } + openDrawer(); + await refresh(false); + } catch (error) { + form.submit(); + } finally { + getDrawer()?.classList.remove('is-busy'); + } + }); +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:cart_drawer.name", + "tag": "section", + "class": "cart-drawer-section", + "settings": [ + { + "type": "number", + "id": "free_shipping", + "label": "t:cart_drawer.free_shipping", + "info": "t:cart_drawer.free_shipping_info", + "default": 699 + }, + { + "type": "collection", + "id": "recommendations", + "label": "t:cart_drawer.recommendations", + "info": "t:cart_drawer.recommendations_info" + } + ] +} +{% endschema %} diff --git a/sections/cart.liquid b/sections/cart.liquid new file mode 100644 index 0000000..6d7e498 --- /dev/null +++ b/sections/cart.liquid @@ -0,0 +1,37 @@ +{% comment %} + This section is used in the cart template to render /cart page with an + overview of the items in customer's cart. + + https://shopify.dev/docs/storefronts/themes/architecture/templates/cart +{% endcomment %} + +

{{ 'cart.title' | t }}

+ +
+ + {% for item in cart.items %} + + + + + + {% endfor %} +
+ {% render 'image', image: item.image, url: item.url %} + +

{{ item.product.title }}

+ {{ 'cart.remove' | t | link_to: item.url_to_remove }} +
+ + +
+ + +
+ +{% schema %} +{ + "name": "t:general.cart", + "settings": [] +} +{% endschema %} diff --git a/sections/collection.liquid b/sections/collection.liquid new file mode 100644 index 0000000..4635931 --- /dev/null +++ b/sections/collection.liquid @@ -0,0 +1,749 @@ +{% liquid + assign banner_type = collection.metafields.custom.banner_tipo.value | default: collection.metafields.custom.banner_type.value | downcase + if banner_type == blank + assign banner_type = 'titulo' + endif + + assign banner_image = collection.metafields.custom.banner_imagen.value | default: collection.metafields.custom.banner_image.value + if banner_image == blank + assign banner_image = collection.image + endif + + assign banner_title = collection.metafields.custom.banner_titulo.value | default: collection.metafields.custom.banner_title.value + if banner_title == blank + assign banner_title = collection.title + endif + + assign banner_text = collection.metafields.custom.banner_texto.value | default: collection.metafields.custom.banner_text.value + assign banner_text_is_html = false + if banner_text == blank + assign banner_text = collection.description + assign banner_text_is_html = true + endif + + assign grid_image = collection.metafields.custom.banner_listado.value | default: collection.metafields.custom.banner_grid.value + assign grid_link = collection.metafields.custom.banner_enlace.value | default: collection.metafields.custom.banner_link.value + + assign show_hero = false + assign show_grid_banner = false + if banner_type == 'listado' or banner_type == 'grid' or banner_type == 'productos' + assign show_grid_banner = true + elsif banner_type == 'ambos' or banner_type == 'both' + assign show_hero = true + assign show_grid_banner = true + else + assign show_hero = true + endif + + if show_grid_banner and grid_image == blank + assign grid_image = collection.metafields.custom.banner_imagen.value | default: collection.metafields.custom.banner_image.value + endif + if show_grid_banner and grid_image == blank + assign show_grid_banner = false + endif + + assign per_page = section.settings.products_per_page | default: 9 + if show_grid_banner + assign per_page = per_page | minus: 1 + endif + if per_page < 1 + assign per_page = 1 + endif + + assign current_sort = collection.sort_by | default: collection.default_sort_by + assign sort_label = blank + for option in collection.sort_options + if option.value == current_sort + assign sort_label = option.name + endif + endfor +%} + +
+ {% if show_hero %} + + {% else %} +

{{ collection.title | escape }}

+ {% endif %} + +
+
+
+ + +
+

{{ 'collection_page.products' | t: count: collection.products_count }}

+
+ +
+
+ {% if collection.filters.size > 0 %} +
+ {% if current_sort != blank %} + + {% endif %} +
+ {% for filter in collection.filters %} +
+ {{ filter.label | escape }} + {% case filter.type %} + {% when 'price_range' %} +
+ + +
+ {% else %} +
+ {% for value in filter.values %} + + {% endfor %} +
+ {% endcase %} +
+ {% endfor %} +
+
+ + {{ 'collection_page.clear' | t }} +
+
+ {% else %} +

{{ 'collection_page.no_filters' | t }}

+ {% endif %} +
+
+ +
+
+
+ {% for filter in collection.filters %} + {% if filter.type == 'price_range' %} + {% if filter.min_value.value %} + + {% endif %} + {% if filter.max_value.value %} + + {% endif %} + {% else %} + {% for value in filter.active_values %} + + {% endfor %} + {% endif %} + {% endfor %} +
+ {% for option in collection.sort_options %} + + {% endfor %} +
+
+
+
+ + {% paginate collection.products by per_page %} + {% if collection.products_count == 0 %} +

{{ 'collection_page.empty' | t }}

+ {% else %} +
+ {% if show_grid_banner %} + {% if grid_link != blank %} + + {% else %} + + {% endif %} + {% endif %} + + {% for product in collection.products %} + {% assign card_suffix = section.id | append: '-' | append: forloop.index %} + {% render 'collection-card', product: product, form_suffix: card_suffix %} + {% endfor %} +
+ {% endif %} + + {% if paginate.pages > 1 %} + + {% endif %} + {% endpaginate %} +
+
+ +{% stylesheet %} + .collection { + background: #f9f9fa; + color: #000; + } + + .collection__banner { + display: grid; + grid-template-columns: 1fr 1fr; + min-height: 380px; + background: #f7c585; + overflow: hidden; + } + + .collection__banner--text { + grid-template-columns: 1fr; + } + + .collection__banner-media { + height: 100%; + min-height: 380px; + } + + .collection__banner-image { + display: block; + width: 100%; + height: 100%; + min-height: 380px; + object-fit: cover; + } + + .collection__banner-copy { + position: relative; + display: flex; + flex-direction: column; + justify-content: center; + gap: 22px; + padding: 48px 180px 48px 70px; + } + + .collection__banner-title, + .collection__fallback-title { + margin: 0; + font-size: 32px; + font-weight: 700; + line-height: normal; + } + + .collection__fallback-title { + padding: 40px 100px 0; + } + + .collection__banner-text { + max-width: 570px; + font-size: 18px; + font-weight: 300; + line-height: 1.4; + } + + .collection__banner-text p { + margin: 0; + } + + .collection__banner-blob { + position: absolute; + top: 50%; + right: 48px; + width: 185px; + height: auto; + opacity: 0.8; + pointer-events: none; + transform: translateY(-50%); + } + + .collection__body { + padding: 28px 100px 80px; + } + + .collection__bar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 20px; + margin-bottom: 8px; + } + + .collection__tools { + display: flex; + flex-wrap: wrap; + gap: 20px; + } + + .collection__tool { + display: inline-flex; + align-items: center; + justify-content: center; + gap: 10px; + height: 50px; + padding: 0 18px; + border: 1px solid #808181; + border-radius: 60px; + background: transparent; + color: #000; + font: inherit; + font-size: 16px; + font-weight: 300; + cursor: pointer; + } + + .collection__tool svg { + display: block; + flex: 0 0 auto; + } + + .collection__count, + .collection__empty, + .collection__none { + margin: 0; + font-size: 16px; + font-weight: 300; + } + + .collection__panel { + display: grid; + grid-template-rows: 0fr; + transition: grid-template-rows 0.28s ease; + } + + .collection__panel.is-open { + grid-template-rows: 1fr; + } + + .collection__panel-inner { + overflow: hidden; + } + + .collection__filter-form, + .collection__sort-form { + padding: 22px 0 8px; + } + + .collection__filter-groups { + display: flex; + flex-wrap: wrap; + gap: 28px 48px; + } + + .collection__filter { + min-width: 180px; + margin: 0; + padding: 0; + border: 0; + } + + .collection__filter legend { + margin-bottom: 10px; + font-size: 14px; + font-weight: 700; + letter-spacing: 0.04em; + text-transform: uppercase; + } + + .collection__options { + display: flex; + flex-direction: column; + gap: 8px; + } + + .collection__option { + display: flex; + align-items: center; + gap: 8px; + font-size: 15px; + font-weight: 300; + } + + .collection__price { + display: flex; + gap: 8px; + } + + .collection__price input { + width: 110px; + height: 40px; + padding: 0 10px; + border: 1px solid #d0d0d0; + border-radius: 8px; + background: #fff; + font: inherit; + } + + .collection__filter-actions { + display: flex; + align-items: center; + gap: 16px; + margin-top: 22px; + } + + .collection__apply { + height: 44px; + padding: 0 22px; + border: 0; + border-radius: 60px; + background: #9dd6c7; + color: #000; + font: inherit; + font-size: 15px; + font-weight: 500; + cursor: pointer; + } + + .collection__clear { + color: #000; + font-size: 15px; + font-weight: 300; + } + + .collection__sort-list { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 6px; + } + + .collection__sort-option { + padding: 6px 0; + border: 0; + background: transparent; + color: #000; + font: inherit; + font-size: 16px; + font-weight: 300; + cursor: pointer; + } + + .collection__sort-option.is-current { + font-weight: 700; + } + + .collection__grid { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 28px 20px; + margin-top: 28px; + } + + .collection__promo { + display: block; + overflow: hidden; + border-radius: 10px; + aspect-ratio: 1; + } + + .collection__promo img { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } + + .collection__empty { + margin-top: 40px; + } + + .collection__pages { + display: flex; + align-items: center; + justify-content: center; + gap: 15px; + margin-top: 48px; + } + + .collection__page, + .collection__next { + display: inline-flex; + align-items: center; + justify-content: center; + width: 40px; + height: 40px; + border-radius: 25px; + color: #000; + font-size: 16px; + font-weight: 300; + line-height: 1; + text-decoration: none; + } + + .collection__page.is-current { + background: #000; + color: #fff; + } + + .collection__next { + background: #c9c9c9; + color: #000; + } + + .collection__next svg { + display: block; + } + + @media (max-width: 1119px) { + .collection__banner-copy { + padding: 36px 40px; + } + + .collection__banner-blob { + width: 120px; + right: 16px; + } + + .collection__body, + .collection__fallback-title { + padding-right: 24px; + padding-left: 24px; + } + + .collection__grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + } + + @media (max-width: 767px) { + .collection__banner { + grid-template-columns: 1fr; + min-height: 250px; + } + + .collection__banner-media { + position: absolute; + inset: 0 auto 0 0; + width: 58%; + min-height: 0; + } + + .collection__banner { + position: relative; + } + + .collection__banner-image { + min-height: 250px; + } + + .collection__banner-copy { + position: relative; + z-index: 1; + min-height: 250px; + justify-content: flex-end; + gap: 15px; + padding: 20px; + background: linear-gradient(90deg, rgba(247, 197, 133, 0) 0%, #f7c585 46%); + } + + .collection__banner-title { + font-size: 25px; + } + + .collection__banner-text { + font-size: 14px; + line-height: 18px; + } + + .collection__banner-blob { + display: none; + } + + .collection__body { + padding: 18px 10px 48px; + } + + .collection__fallback-title { + padding: 24px 16px 0; + font-size: 25px; + } + + .collection__bar { + align-items: flex-start; + } + + .collection__tools { + gap: 8px; + } + + .collection__tool { + height: 40px; + padding: 0 12px; + font-size: 13px; + } + + .collection__count { + font-size: 13px; + } + + .collection__grid { + gap: 20px 10px; + } + } + + @media (prefers-reduced-motion: reduce) { + .collection__panel { + transition: none; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + if (window.__seasonCollection) return; + window.__seasonCollection = true; + + const closePanels = (root) => { + root.querySelectorAll('[data-filter-panel], [data-sort-panel]').forEach((panel) => { + panel.classList.remove('is-open'); + }); + root.querySelectorAll('[data-filter-toggle], [data-sort-toggle]').forEach((button) => { + button.setAttribute('aria-expanded', 'false'); + }); + }; + + const togglePanel = (root, name) => { + const panel = root.querySelector(`[data-${name}-panel]`); + const button = root.querySelector(`[data-${name}-toggle]`); + if (!panel || !button) return; + const willOpen = !panel.classList.contains('is-open'); + closePanels(root); + if (willOpen) { + panel.classList.add('is-open'); + button.setAttribute('aria-expanded', 'true'); + } + }; + + document.addEventListener('click', (event) => { + const root = event.target.closest('[data-collection]') || document.querySelector('[data-collection]'); + if (!root) return; + + if (event.target.closest('[data-filter-toggle]')) { + togglePanel(root, 'filter'); + return; + } + + if (event.target.closest('[data-sort-toggle]')) { + togglePanel(root, 'sort'); + return; + } + + if (!event.target.closest('[data-filter-panel], [data-sort-panel]')) { + closePanels(root); + } + }); +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:collection_page.name", + "tag": "section", + "class": "collection-section", + "settings": [ + { + "type": "paragraph", + "content": "t:collection_page.metafields" + }, + { + "type": "range", + "id": "products_per_page", + "label": "t:collection_page.products_per_page", + "min": 6, + "max": 24, + "step": 3, + "default": 9 + } + ] +} +{% endschema %} diff --git a/sections/collections.liquid b/sections/collections.liquid new file mode 100644 index 0000000..db897a3 --- /dev/null +++ b/sections/collections.liquid @@ -0,0 +1,83 @@ +{% comment %} + This section is used in the list-collections template to render a list of + collections. + + https://shopify.dev/docs/storefronts/themes/architecture/templates/collection +{% endcomment %} + +

{{ 'collections.title' | t }}

+ + + +{% stylesheet %} + .collections { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(min(var(--collection-card-size), 100%), 1fr)); + gap: var(--grid-gap); + } + .collections--compact { + --collection-card-size: 160px; + } + .collections--full { + --collection-card-size: 280px; + } + .collection-card { + display: flex; + flex-direction: column; + width: 100%; + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:general.collections_grid", + "settings": [ + { + "type": "select", + "id": "grid_item_width", + "label": "t:labels.grid_item_width", + "options": [ + { "value": "collections--compact", "label": "t:options.size.small" }, + { "value": "collections--full", "label": "t:options.size.large" } + ], + "default": "collections--full" + }, + { + "type": "range", + "id": "grid_gap", + "label": "t:labels.grid_gap", + "min": 0, + "max": 50, + "step": 5, + "unit": "px", + "default": 10 + } + ], + "presets": [{ "name": "t:general.collections_grid" }] +} +{% endschema %} diff --git a/sections/custom-section.liquid b/sections/custom-section.liquid new file mode 100644 index 0000000..529d497 --- /dev/null +++ b/sections/custom-section.liquid @@ -0,0 +1,60 @@ +
+ {% if section.settings.background_image %} +
+ {{ section.settings.background_image | image_url: width: 2000 | image_tag }} +
+ {% endif %} + +
+ {% content_for 'blocks' %} +
+
+ +{% stylesheet %} + .custom-section { + position: relative; + overflow: hidden; + width: 100%; + } + .custom-section__background { + position: absolute; + width: 100%; + height: 100%; + z-index: -1; + overflow: hidden; + } + .custom-section__background img { + position: absolute; + width: 100%; + height: auto; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + } + .custom-section__content { + display: grid; + grid-template-columns: var(--content-grid); + } + .custom-section__content > * { + grid-column: 2; + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:general.custom_section", + "blocks": [{ "type": "@theme" }], + "settings": [ + { + "type": "image_picker", + "id": "background_image", + "label": "t:labels.background" + } + ], + "presets": [ + { + "name": "t:general.custom_section" + } + ] +} +{% endschema %} diff --git a/sections/distributors.liquid b/sections/distributors.liquid new file mode 100644 index 0000000..dca82dc --- /dev/null +++ b/sections/distributors.liquid @@ -0,0 +1,390 @@ +{% liquid + if section.settings.line_1 != blank + assign line_1 = section.settings.line_1 + else + assign line_1 = 'distributors.line_1' | t + endif + + if section.settings.brand != blank + assign brand = section.settings.brand + else + assign brand = 'distributors.brand' | t + endif + + if section.settings.line_2 != blank + assign line_2 = section.settings.line_2 + else + assign line_2 = 'distributors.line_2' | t + endif + + if section.settings.text != blank + assign text = section.settings.text + else + assign text = 'distributors.text' | t + endif + + if section.settings.button_label != blank + assign button_label = section.settings.button_label + else + assign button_label = 'distributors.button' | t + endif + + assign photo_alt = 'distributors.photo_alt' | t +%} + +
+
+
+ {% if section.settings.image != blank %} + {{ + section.settings.image + | image_url: width: 1720 + | image_tag: + class: 'distributors__photo-image', + alt: photo_alt, + widths: '480, 800, 1200, 1720', + sizes: '(max-width: 1024px) 92vw, 45vw', + loading: 'lazy' + }} + {% else %} + {{ photo_alt | escape }} + {% endif %} + + {{ 'distributors.wordmark' | t }} +
+ +
+ + + +
+

+ + {{ line_1 | escape }} + {{ brand | escape }} + + {{ line_2 | escape }} +

+ + {% if text != blank %} +

{{ text | escape }}

+ {% endif %} + + {% if button_label != blank %} + {% if section.settings.button_link != blank %} + + {{ button_label | escape }} + + {% else %} + {{ button_label | escape }} + {% endif %} + {% endif %} +
+
+
+
+ +{% stylesheet %} + .distributors { + margin-top: 100px; + color: #000; + font-family: Archivo, sans-serif; + } + + .distributors__layout { + display: grid; + grid-template-columns: minmax(0, 859fr) minmax(0, 860fr); + width: min(1719px, calc(100% - 200px)); + margin-inline: auto; + } + + .distributors__photo { + position: relative; + overflow: hidden; + border-radius: 10px 0 0 10px; + aspect-ratio: 859 / 964; + background: #f3f1ee; + } + + .distributors__photo-image { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } + + .distributors__photo-image--flip { + transform: scaleX(-1); + } + + .distributors__wordmark { + position: absolute; + left: 31.2%; + top: 39.1%; + display: block; + width: 37.7%; + height: auto; + } + + .distributors__panel { + position: relative; + display: flex; + align-items: center; + justify-content: center; + overflow: hidden; + border-radius: 0 10px 10px 0; + background: linear-gradient(131deg, #ffffff 0%, #ffffff 35.6%, #e5f4ff 67.9%); + } + + .distributors__blob { + position: absolute; + height: auto; + opacity: 0.7; + pointer-events: none; + user-select: none; + } + + .distributors__blob--top { + top: 5%; + right: 4%; + width: 41.3%; + } + + .distributors__blob--bottom { + display: none; + } + + .distributors__copy { + position: relative; + z-index: 1; + display: flex; + flex-direction: column; + align-items: center; + gap: 40px; + width: min(804px, 100%); + padding: 48px 28px; + } + + .distributors__heading { + margin: 0; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: 60px; + font-weight: 500; + line-height: 75px; + text-align: center; + text-transform: uppercase; + } + + .distributors__line { + display: block; + } + + .distributors__bold { + font-weight: 700; + } + + .distributors__text { + max-width: 672px; + margin: 0; + font-size: 20px; + font-weight: 300; + line-height: 30px; + text-align: center; + } + + .distributors__button { + display: flex; + align-items: center; + justify-content: center; + width: 341px; + max-width: 100%; + height: 50px; + padding: 15px; + border-radius: 60px; + background: #9dd6c7; + color: #000; + font-size: 16px; + font-weight: 400; + line-height: normal; + text-align: center; + text-decoration: none; + } + + a.distributors__button { + cursor: pointer; + } + + a.distributors__button:hover { + filter: brightness(0.96); + } + + a.distributors__button:focus-visible { + outline: 2px solid #000; + outline-offset: 3px; + } + + @media (max-width: 1439px) { + .distributors__layout { + width: min(1719px, calc(100% - 80px)); + } + + .distributors__heading { + font-size: 44px; + line-height: 54px; + } + + .distributors__text { + font-size: 18px; + line-height: 26px; + } + } + + @media (max-width: 1024px) { + .distributors { + margin-top: 50px; + } + + .distributors__layout { + grid-template-columns: 1fr; + width: min(372px, calc(100% - 30px)); + } + + .distributors__photo { + border-radius: 10px 10px 0 0; + aspect-ratio: 372 / 420; + } + + .distributors__panel { + min-height: 420px; + border-radius: 0 0 10px 10px; + } + + .distributors__blob--top { + top: 0; + right: 0; + width: 46%; + } + + .distributors__blob--bottom { + display: block; + bottom: -18%; + left: 28%; + width: 56%; + } + + .distributors__copy { + gap: 18px; + padding: 48px 10px; + } + + .distributors__heading { + font-size: 30px; + line-height: 30px; + } + + .distributors__bold { + font-weight: 500; + } + + .distributors__line--rest { + font-weight: 300; + } + + .distributors__text { + max-width: none; + font-size: 14px; + line-height: 20px; + } + + .distributors__button { + width: 300px; + height: 45px; + font-size: 14px; + font-weight: 500; + } + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:distributors.name", + "tag": "section", + "class": "distributors-section", + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [ + { + "type": "text", + "id": "line_1", + "label": "t:distributors.line_1", + "default": "Lleva" + }, + { + "type": "text", + "id": "brand", + "label": "t:distributors.brand", + "default": "Seasons" + }, + { + "type": "text", + "id": "line_2", + "label": "t:distributors.line_2", + "default": "a más personas" + }, + { + "type": "textarea", + "id": "text", + "label": "t:distributors.text", + "default": "Súmate como distribuidor y forma parte de una marca mexicana de skincare que acompaña a cada persona a encontrar productos pensados para su rutina, sus necesidades y su forma de cuidarse." + }, + { + "type": "text", + "id": "button_label", + "label": "t:distributors.button_label", + "default": "Regístrate" + }, + { + "type": "url", + "id": "button_link", + "label": "t:distributors.button_link" + }, + { + "type": "image_picker", + "id": "image", + "label": "t:distributors.image", + "info": "t:distributors.image_info" + } + ], + "presets": [ + { + "name": "t:distributors.name" + } + ] +} +{% endschema %} diff --git a/sections/footer-group.json b/sections/footer-group.json new file mode 100644 index 0000000..758a5df --- /dev/null +++ b/sections/footer-group.json @@ -0,0 +1,24 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "type": "footer", + "name": "t:general.footer", + "sections": { + "footer": { + "type": "footer", + "settings": { + "menu": "" + } + } + }, + "order": [ + "footer" + ] +} diff --git a/sections/footer.liquid b/sections/footer.liquid new file mode 100644 index 0000000..45d591c --- /dev/null +++ b/sections/footer.liquid @@ -0,0 +1,737 @@ +{% liquid + assign copyright_year = 'now' | date: '%Y' + assign privacy_url = '/pages/aviso-de-privacidad' + assign shipping_url = '/pages/envios' + assign returns_url = '/pages/devoluciones' + assign payments_url = '/pages/politica-de-pagos' + + if shop.privacy_policy != blank + assign privacy_url = shop.privacy_policy.url + endif + + if shop.shipping_policy != blank + assign shipping_url = shop.shipping_policy.url + endif + + if shop.refund_policy != blank + assign returns_url = shop.refund_policy.url + endif + + if shop.terms_of_service != blank + assign payments_url = shop.terms_of_service.url + endif + + assign form_id = 'FooterSignup-' | append: section.id + assign email_id = 'FooterEmail-' | append: section.id + assign message_id = 'FooterSignupMessage-' | append: section.id +%} + + + +{% stylesheet %} + .footer { + color: #000; + background: #fff; + } + + .footer__brand { + display: flex; + justify-content: center; + padding: 158px 100px; + } + + .footer__logo { + display: block; + max-width: 100%; + line-height: 0; + text-decoration: none; + } + + .footer__logo-mark svg, + .footer__logo-image { + display: block; + width: 1083px; + max-width: 100%; + height: auto; + } + + .footer__panel { + background: #eaeaea; + padding: 50px 100px 30px; + } + + .footer__columns { + display: flex; + flex-wrap: nowrap; + align-items: flex-start; + gap: clamp(16px, 4vw, 100px); + } + + .footer__column { + flex: 1 1 0; + min-width: 0; + } + + .footer__toggle { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + margin: 0 0 10px; + padding: 0; + border: 0; + background: transparent; + color: inherit; + font: inherit; + text-align: left; + pointer-events: none; + } + + .footer__heading { + margin: 0; + font-size: 18px; + font-weight: 700; + line-height: 30px; + color: #000; + text-decoration: none; + } + + .footer__chevron { + display: none; + flex-shrink: 0; + width: 20px; + height: 20px; + transform: rotate(180deg); + } + + .footer__chevron svg { + display: block; + width: 20px; + height: 20px; + max-width: none; + } + + .footer__links, + .footer__column ul { + margin: 0; + padding: 0; + list-style: none; + } + + .footer__column li { + margin: 0; + padding: 0; + } + + .footer__column a { + color: #000; + font-size: 16px; + font-weight: 300; + line-height: 30px; + text-decoration: none; + } + + .footer a:focus-visible { + outline: 2px solid #000; + outline-offset: 4px; + } + + .footer__newsletter { + display: flex; + flex: 0 1 395px; + flex-direction: column; + gap: 20px; + width: 395px; + max-width: 395px; + min-width: 0; + } + + .footer__newsletter .footer__heading { + margin: 0; + } + + .footer__form { + display: flex; + flex-direction: column; + gap: 20px; + margin: 0; + } + + .footer__field { + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + height: 50px; + padding: 0 30px; + border-radius: 100px; + background: #fff; + } + + .footer__field:focus-within { + outline: 2px solid #000; + outline-offset: 3px; + } + + .footer__label { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; + } + + .footer__input { + flex: 1; + min-width: 0; + height: 100%; + padding: 0; + border: 0; + border-radius: 0; + background: transparent; + color: #000; + font-family: Archivo, sans-serif; + font-size: 16px; + font-weight: 300; + line-height: normal; + outline: none; + } + + .footer__input::placeholder { + color: #808181; + opacity: 1; + } + + .footer__arrow { + display: flex; + flex-shrink: 0; + align-items: center; + justify-content: center; + width: 20px; + height: 20px; + margin-left: 12px; + padding: 0; + border: 0; + background: transparent; + cursor: pointer; + } + + .footer__arrow-icon { + display: block; + width: 20px; + height: 20px; + transform: rotate(90deg); + } + + .footer__arrow-icon svg { + display: block; + width: 20px; + height: 20px; + max-width: none; + } + + .footer__discount { + display: flex; + align-items: center; + justify-content: center; + width: 100%; + height: 50px; + padding: 15px; + border: 0; + border-radius: 60px; + background: #9dd6c7; + color: #000; + font-family: Archivo, sans-serif; + font-size: 16px; + font-weight: 300; + line-height: normal; + cursor: pointer; + } + + .footer__message { + margin: -8px 0 0; + font-size: 14px; + font-weight: 400; + line-height: 1.35; + } + + .footer__message--error { + color: #9b1c1c; + } + + .footer__bar { + margin-top: 50px; + border-top: 1px solid #d8d8d8; + padding-top: 20px; + } + + .footer__bar p { + margin: 0; + font-size: 16px; + font-weight: 300; + line-height: 30px; + } + + .footer__social { + display: none; + margin: 10px 0 0; + padding: 0; + list-style: none; + } + + .footer__social a, + .footer__social span { + display: flex; + align-items: center; + justify-content: center; + width: 36px; + height: 36px; + color: inherit; + text-decoration: none; + } + + .footer__social svg { + display: block; + max-width: none; + } + + @media (max-width: 1439px) { + .footer__brand, + .footer__panel { + padding-right: 40px; + padding-left: 40px; + } + } + + @media (max-width: 1024px) { + .footer__brand { + padding: 36px 30px; + } + + .footer__logo-mark svg, + .footer__logo-image { + width: min(100%, 274px); + } + + .footer__panel { + padding: 40px 30px 28px; + } + + .footer__columns { + flex-direction: column; + gap: 5px; + } + + .footer__column, + .footer__newsletter { + flex: none; + width: 100%; + max-width: none; + } + + .footer__column--shop { + order: 1; + } + + .footer__column--seasons { + order: 2; + } + + .footer__column--routine { + order: 3; + } + + .footer__column--community { + order: 4; + } + + .footer__column--help { + order: 5; + } + + .footer__newsletter { + order: 6; + gap: 15px; + margin-top: 20px; + } + + .footer.is-collapsible .footer__toggle { + margin: 0; + padding-bottom: 8px; + border-bottom: 1px solid #d5d5d5; + pointer-events: auto; + cursor: pointer; + } + + .footer.is-collapsible .footer__chevron { + display: block; + } + + .footer.is-collapsible .footer__column.is-open .footer__chevron { + transform: rotate(0deg); + } + + .footer.is-collapsible .footer__links { + display: none; + padding: 8px 0 4px; + } + + .footer.is-collapsible .footer__column.is-open .footer__links { + display: block; + } + + .footer__heading { + font-size: 14px; + line-height: 30px; + } + + .footer__newsletter .footer__heading { + line-height: 20px; + } + + .footer__column a { + font-size: 14px; + line-height: 28px; + } + + .footer__field, + .footer__discount { + height: 45px; + } + + .footer__input, + .footer__discount { + font-size: 14px; + } + + .footer__discount { + font-weight: 500; + } + + .footer__form { + gap: 15px; + } + + .footer__bar { + margin-top: 24px; + margin-right: -30px; + margin-left: -30px; + padding: 20px 30px 0; + text-align: center; + } + + .footer__social { + display: flex; + justify-content: center; + gap: 20px; + } + } +{% endstylesheet %} + +{% javascript %} +(function () { + var footer = document.querySelector('.footer'); + if (!footer || footer.dataset.bound === 'true') return; + footer.dataset.bound = 'true'; + + var media = window.matchMedia('(max-width: 1024px)'); + var columns = footer.querySelectorAll('.footer__column'); + + function sync() { + var mobile = media.matches; + footer.classList.toggle('is-collapsible', mobile); + + columns.forEach(function (column) { + var button = column.querySelector('.footer__toggle'); + if (!button) return; + + if (!mobile) { + column.classList.remove('is-open'); + button.setAttribute('aria-expanded', 'true'); + return; + } + + button.setAttribute('aria-expanded', column.classList.contains('is-open') ? 'true' : 'false'); + }); + } + + columns.forEach(function (column) { + var button = column.querySelector('.footer__toggle'); + if (!button) return; + + button.addEventListener('click', function () { + if (!media.matches) return; + column.classList.toggle('is-open'); + button.setAttribute('aria-expanded', column.classList.contains('is-open') ? 'true' : 'false'); + }); + }); + + sync(); + + if (media.addEventListener) { + media.addEventListener('change', sync); + } else if (media.addListener) { + media.addListener(sync); + } +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:general.footer", + "settings": [ + { + "type": "image_picker", + "id": "logo", + "label": "t:footer.logo" + }, + { + "type": "link_list", + "id": "menu", + "label": "t:footer.menu", + "info": "t:footer.menu_info" + }, + { + "type": "url", + "id": "instagram_url", + "label": "t:footer.instagram" + }, + { + "type": "url", + "id": "facebook_url", + "label": "t:footer.facebook" + }, + { + "type": "url", + "id": "linkedin_url", + "label": "t:footer.linkedin" + } + ] +} +{% endschema %} diff --git a/sections/header-group.json b/sections/header-group.json new file mode 100644 index 0000000..25ed907 --- /dev/null +++ b/sections/header-group.json @@ -0,0 +1,22 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "type": "header", + "name": "t:general.header", + "sections": { + "header": { + "type": "header", + "settings": {} + } + }, + "order": [ + "header" + ], +} diff --git a/sections/header.liquid b/sections/header.liquid new file mode 100644 index 0000000..c25d5a5 --- /dev/null +++ b/sections/header.liquid @@ -0,0 +1,820 @@ +{% liquid + if customer + assign account_url = routes.account_url + else + assign account_url = routes.account_login_url + endif + + if section.settings.promo_text != blank + assign promo_text = section.settings.promo_text + else + assign promo_text = 'header.promo' | t + endif +%} + +
+
+ + + + + + + + + +
+ + {% if promo_text != blank %} +
+ {% if section.settings.promo_link != blank %} + + {{ promo_text }} + + {% else %} +

+ {{ promo_text }} +

+ {% endif %} +
+ {% endif %} + + +
+ +{% stylesheet %} + .header__logo-mark svg, + .header__logo-image { + display: block; + width: 223px; + height: auto; + } + + .header__icon { + display: flex; + align-items: center; + justify-content: center; + } + + .header__icon svg { + display: block; + } + + .header__icon--menu svg { + width: 30px; + height: 30px; + } + + .header__icon--search svg { + width: 22px; + height: 22px; + } + + .header__icon--user svg { + width: 22px; + height: 22px; + } + + .header__icon--bag svg { + width: 30px; + height: 30px; + } + + .header__shell { + z-index: 2; + } + + .header__promo { + position: relative; + z-index: 1; + } + + .header__caret-button { + width: 10px; + height: 10px; + } + + .header__submenu { + min-width: 280px; + box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08); + } + + .header__icon--caret { + display: flex; + transform: rotate(180deg); + transition: transform 0.2s ease; + } + + .header__icon--caret svg { + width: 10px; + height: 10px; + } + + .header__item.is-open .header__icon--caret { + transform: rotate(0deg); + } + + .header__icon--close { + display: none; + position: relative; + width: 18px; + height: 18px; + } + + .header__icon--close::before, + .header__icon--close::after { + content: ''; + position: absolute; + left: 0; + top: 8px; + width: 18px; + height: 1.4px; + background: #000; + } + + .header__icon--close::before { + transform: rotate(45deg); + } + + .header__icon--close::after { + transform: rotate(-45deg); + } + + .header__account-label { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; + } + + .header button, + .header input { + font: inherit; + color: inherit; + } + + .header input[type='search']::-webkit-search-decoration, + .header input[type='search']::-webkit-search-cancel-button { + appearance: none; + } + + @media (min-width: 1120px) { + .header__submenu::before { + content: ''; + position: absolute; + top: -16px; + left: 0; + width: 100%; + height: 16px; + } + + .header__submenu { + margin-top: 8px; + } + + .header__item:hover > .header__submenu, + .header__item:focus-within > .header__submenu, + .header__item.is-open > .header__submenu { + display: block; + } + } + + @media (max-width: 1119px) { + .header__shell { + position: relative; + display: flex; + align-items: center; + height: 55px; + padding: 0 10px; + } + + .header__toggle { + display: grid; + position: relative; + z-index: 50; + order: 1; + flex: 0 0 30px; + } + + .header.is-menu-open .header__icon--menu { + display: none; + } + + .header.is-menu-open .header__icon--close { + display: block; + } + + .header__logo { + position: absolute; + top: 0; + left: 50%; + z-index: 1; + display: flex; + align-items: center; + width: 150px; + height: 55px; + margin: 0; + transform: translateX(-50%); + } + + .header__logo-mark svg, + .header__logo-image { + width: 150px; + } + + .header__search { + position: absolute; + top: 12px; + right: 50px; + z-index: 2; + width: 30px; + height: 30px; + max-width: none; + margin: 0; + padding: 0; + overflow: hidden; + background: transparent; + } + + .header__search-button { + width: 30px; + height: 30px; + background-color: #9dd6c7; + border-radius: 999px; + } + + .header__icon--search svg { + width: 14px; + height: 14px; + } + + .header__search-input { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; + } + + .header__search.is-open { + top: 6px; + right: 50px; + left: 10px; + z-index: 3; + width: auto; + height: 44px; + overflow: visible; + padding: 5px; + background: #f8f8f8; + } + + .header__search.is-open .header__search-input { + position: static; + width: auto; + height: auto; + margin: 0; + padding: 0 12px; + overflow: visible; + clip: auto; + white-space: normal; + } + + .header__cart { + position: absolute; + top: 12px; + right: 10px; + z-index: 2; + flex: 0 0 30px; + width: 30px; + height: 30px; + } + + .header__icon--bag svg { + width: 18px; + height: 18px; + } + + .header__nav { + position: absolute; + top: 100%; + right: 0; + left: 0; + z-index: 40; + display: none; + pointer-events: auto; + max-height: calc(100dvh - 90px); + overflow: auto; + background: #fff; + padding: 8px 16px 28px; + box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); + } + + .header__nav.is-open { + display: flex; + flex-direction: column; + gap: 20px; + } + + .header__menu { + order: 1; + flex-direction: column; + align-items: stretch; + gap: 20px; + margin-top: 0; + padding-top: 4px; + } + + .header__links { + flex-direction: column; + align-items: stretch; + gap: 0; + } + + .header__links .header__item { + flex-wrap: wrap; + justify-content: space-between; + width: 100%; + padding: 14px 0; + border-bottom: 1px solid #ececec; + } + + .header__caret-button { + width: 32px; + height: 32px; + } + + .header__nav .header__submenu { + position: static; + top: auto; + left: auto; + z-index: auto; + flex: 0 0 100%; + min-width: 0; + width: 100%; + margin: 8px 0 0; + padding: 4px 0 8px; + background: transparent; + border-radius: 0; + box-shadow: none; + } + + .header__nav .header__item.is-open > .header__submenu { + display: flex; + flex-direction: column; + gap: 12px; + } + + .header__pills { + flex-wrap: wrap; + gap: 10px; + } + + .header__utility { + order: 2; + flex-direction: column; + align-items: flex-start; + gap: 8px; + margin-right: 0; + } + + .header__utility > ul { + flex-direction: column; + align-items: flex-start; + gap: 4px; + } + + .header__account { + width: auto; + height: auto; + justify-content: flex-start; + gap: 10px; + padding: 10px 20px 10px 0; + } + + .header__account-label { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; + white-space: normal; + } + + .header__promo { + height: 30px; + } + + .header__promo a, + .header__promo p { + font-size: 14px; + } + + .header.is-menu-open .header__shell { + z-index: 3; + } + + .header.is-menu-open .header__backdrop { + z-index: 1; + display: block; + } + } + + @media (max-width: 380px) { + .header__logo, + .header__logo-mark svg, + .header__logo-image { + width: 128px; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + if (window.__seasonHeader) return; + window.__seasonHeader = true; + + const mobileQuery = window.matchMedia('(max-width: 1119px)'); + + const closeMenu = (header) => { + const menu = header.querySelector('[data-menu]'); + const toggle = header.querySelector('[data-menu-toggle]'); + menu?.classList.remove('is-open'); + header.classList.remove('is-menu-open'); + toggle?.setAttribute('aria-expanded', 'false'); + if (toggle) toggle.setAttribute('aria-label', toggle.dataset.labelOpen || ''); + document.documentElement.classList.remove('overflow-hidden'); + }; + + const closeSearch = (header) => { + header.querySelector('[data-search]')?.classList.remove('is-open'); + }; + + const bind = (header) => { + if (header.dataset.ready === 'true') return; + header.dataset.ready = 'true'; + + const toggle = header.querySelector('[data-menu-toggle]'); + const menu = header.querySelector('[data-menu]'); + const searchForm = header.querySelector('[data-search]'); + const searchInput = header.querySelector('[data-search-input]'); + const backdrop = header.querySelector('[data-menu-backdrop]'); + + if (toggle) { + toggle.dataset.labelOpen = toggle.getAttribute('aria-label') || ''; + toggle.dataset.labelClose = header.dataset.menuClose || toggle.dataset.labelOpen; + } + + toggle?.addEventListener('click', () => { + const willOpen = !menu.classList.contains('is-open'); + closeSearch(header); + menu.classList.toggle('is-open', willOpen); + header.classList.toggle('is-menu-open', willOpen); + toggle.setAttribute('aria-expanded', willOpen ? 'true' : 'false'); + toggle.setAttribute('aria-label', willOpen ? toggle.dataset.labelClose : toggle.dataset.labelOpen); + document.documentElement.classList.toggle('overflow-hidden', willOpen); + }); + + backdrop?.addEventListener('click', () => closeMenu(header)); + + searchForm?.addEventListener('submit', (event) => { + if (!mobileQuery.matches || searchForm.classList.contains('is-open')) return; + event.preventDefault(); + closeMenu(header); + searchForm.classList.add('is-open'); + searchInput?.focus(); + }); + + menu?.addEventListener('click', (event) => { + const submenuToggle = event.target.closest('[data-submenu-toggle]'); + const toggleSubmenu = (submenuToggle) => { + const item = submenuToggle.closest('[data-menu-item]'); + const expanded = submenuToggle.getAttribute('aria-expanded') === 'true'; + item.parentElement.querySelectorAll('[data-menu-item].is-open').forEach((sibling) => { + if (sibling === item) return; + sibling.classList.remove('is-open'); + sibling.querySelector('[data-submenu-toggle]')?.setAttribute('aria-expanded', 'false'); + }); + item.classList.toggle('is-open', !expanded); + submenuToggle.setAttribute('aria-expanded', expanded ? 'false' : 'true'); + }; + + if (submenuToggle) { + event.preventDefault(); + toggleSubmenu(submenuToggle); + return; + } + + const parentLink = event.target.closest('[data-menu-item] > a'); + if (mobileQuery.matches && parentLink) { + const submenuToggleForLink = parentLink.parentElement.querySelector('[data-submenu-toggle]'); + if (submenuToggleForLink) { + event.preventDefault(); + toggleSubmenu(submenuToggleForLink); + return; + } + } + + if (mobileQuery.matches && event.target.closest('a')) closeMenu(header); + }); + }; + + document.querySelectorAll('[data-header]').forEach((header) => { + header.dataset.menuClose = header.getAttribute('data-menu-close') || ''; + bind(header); + }); + + document.addEventListener('click', (event) => { + document.querySelectorAll('[data-header]').forEach((header) => { + if (header.contains(event.target)) return; + closeMenu(header); + closeSearch(header); + }); + }); + + document.addEventListener('keydown', (event) => { + if (event.key !== 'Escape') return; + document.querySelectorAll('[data-header]').forEach((header) => { + closeMenu(header); + closeSearch(header); + }); + }); + + mobileQuery.addEventListener('change', (event) => { + if (event.matches) return; + document.querySelectorAll('[data-header]').forEach((header) => { + closeMenu(header); + closeSearch(header); + }); + }); + + document.addEventListener('shopify:section:load', (event) => { + const header = event.target.querySelector('[data-header]'); + if (header) bind(header); + }); +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:general.header", + "settings": [ + { + "type": "image_picker", + "id": "logo", + "label": "t:header.logo" + }, + { + "type": "link_list", + "id": "menu", + "label": "t:header.main_menu", + "info": "t:header.main_menu_info" + }, + { + "type": "link_list", + "id": "pills_menu", + "label": "t:header.pills_menu" + }, + { + "type": "link_list", + "id": "utility_menu", + "label": "t:header.utility_menu" + }, + { + "type": "text", + "id": "promo_text", + "label": "t:header.promo_text", + "default": "Cambia tu piel ¡hoy!" + }, + { + "type": "url", + "id": "promo_link", + "label": "t:header.promo_link" + } + ] +} +{% endschema %} diff --git a/sections/hello-world.liquid b/sections/hello-world.liquid new file mode 100644 index 0000000..839823a --- /dev/null +++ b/sections/hello-world.liquid @@ -0,0 +1,144 @@ +{% comment %} + Welcome to Shopify theme development! +{% endcomment %} + +
+
+
+

Hello, World!

+ +

+ The Skeleton theme is a minimal, carefully structured Shopify theme designed to help you quickly get started. + Designed with modularity, maintainability, and Shopify's best practices in mind. +

+ +

+ Themes shape the online store experience for merchants and their customers. Build fast, flexible themes at scale + using Liquid, Shopify's theme templating language, along with HTML, CSS, JavaScript, and JSON. +

+
+
+ +
+
+
+ +
+
+

Key Concepts

+

+ Shopify themes are a package of template files, building blocks, and supporting assets. Use these building blocks + to create modular, customizable themes. +

+

{{ 'Learn more about key concepts' | link_to: 'https://shopify.dev/docs/storefronts/themes/architecture' }}

+
+ +
+

Liquid

+

+ The Liquid templating language is the backbone of Shopify themes, and is used to load dynamic content on + storefronts. Extend Liquid objects to store and present custom data using metafields. +

+

{{ 'View the Liquid reference' | link_to: 'https://shopify.dev/docs/api/liquid' }}

+
+ +
+

Best Practices

+

+ To optimize your theme development experience, Shopify has established a set of best practices that you can refer + to when developing your theme and setting up your toolchains and processes. +

+

{{ 'Follow best practices' | link_to: 'https://shopify.dev/docs/storefronts/themes/best-practices' }}

+
+
+ +{% stylesheet %} + .welcome { + display: grid; + grid-template-columns: var(--content-grid); + background-color: #f6f6f7; + padding: 72px 0; + } + + .welcome-content { + grid-column: 2; + display: flex; + justify-content: space-between; + align-items: center; + gap: 1rem; + width: 100%; + padding: 0 24px; + } + + .welcome-description { + max-width: 80ch; + line-height: 1.4; + margin-top: 1.5rem; + } + + .icon { + width: 300px; + } + + .highlights { + display: grid; + gap: 2rem; + grid-template-columns: repeat(3, 1fr); + margin-top: 50px; + } + + @media (max-width: 1100px) { + .highlights { + grid-template-columns: 1fr; + } + } + + .highlight { + display: flex; + flex-direction: column; + height: 100%; + padding: 24px; + border-radius: 8px; + background-color: #eef3ff; + color: rgb(92, 95, 98); + line-height: 1.4; + } + + .highlight > * + * { + margin-top: 1rem; + } + + .highlight h3 { + font-size: 1rem; + color: rgb(32, 34, 35); + } + + .highlight-description { + flex: 1 1; + } + + .highlight a { + display: flex; + width: fit-content; + background-color: rgb(250, 251, 251); + box-shadow: rgba(0, 0, 0, 0.2) 0px -3px 0px 0px inset, rgba(255, 255, 255, 0.9) 0px 2px 0px 0px inset; + border: 1px solid rgb(140, 145, 150); + border-radius: 4px; + color: rgb(92, 95, 98); + padding: 3px 10px 5px; + text-decoration: none; + } +{% endstylesheet %} + +{% schema %} +{ + "name": "Hello World", + "settings": [], + "presets": [ + { + "name": "Hello World Template", + "category": "Demo" + } + ] +} +{% endschema %} diff --git a/sections/hero.liquid b/sections/hero.liquid new file mode 100644 index 0000000..a589a06 --- /dev/null +++ b/sections/hero.liquid @@ -0,0 +1,816 @@ +{% liquid + assign media_type = section.settings.media_type | default: 'video' + + if section.settings.cover_desktop != blank + assign cover_desktop = section.settings.cover_desktop | image_url: width: 2400 + else + assign cover_desktop = 'mascara-video.avif' | asset_url + endif + + if section.settings.cover_mobile != blank + assign cover_mobile = section.settings.cover_mobile | image_url: width: 1200 + else + assign cover_mobile = 'mascara-vido-mobile.avif' | asset_url + endif + + assign video_src = blank + if media_type == 'video' + if section.settings.video != blank + for source in section.settings.video.sources + if source.mime_type == 'video/mp4' or source.format == 'mp4' + assign video_src = source.url + endif + endfor + endif + + if video_src == blank + assign video_src = 'home-video-op.mp4' | asset_url + endif + endif + + if section.settings.social_label != blank + assign social_label = section.settings.social_label + else + assign social_label = 'hero.follow' | t + endif + + if section.settings.featured_label != blank + assign featured_label = section.settings.featured_label + else + assign featured_label = 'hero.featured_label' | t + endif + + assign fallback_product = blank + for catalog_product in collections.all.products + if catalog_product.available + assign fallback_product = catalog_product + break + endif + endfor + assign show_products = false + if section.blocks.size > 0 + if fallback_product != blank or request.design_mode + assign show_products = true + endif + endif + for block in section.blocks + if block.settings.product != blank + assign show_products = true + endif + endfor + + assign line_1_weight = section.settings.heading_line_1_weight | default: 'light' + assign line_2_weight = section.settings.heading_line_2_weight | default: 'medium' + assign line_3_weight = section.settings.heading_line_3_weight | default: 'light' +%} + +
+ + + + + +
+
+ {% if section.settings.heading_line_1 != blank or section.settings.heading_line_2 != blank or section.settings.heading_line_3 != blank %} +

+ {% if section.settings.heading_line_1 != blank %} + {{ section.settings.heading_line_1 | escape }} + {% endif %} + {% if section.settings.heading_line_2 != blank %} + {{ section.settings.heading_line_2 | escape }} + {% endif %} + {% if section.settings.heading_line_3 != blank %} + {{ section.settings.heading_line_3 | escape }} + {% endif %} +

+ + {% endif %} + + {% if show_products %} +

{{ featured_label | escape }}

+
+ {% for block in section.blocks %} + {% liquid + assign featured_product = block.settings.product + if featured_product == blank and forloop.first + assign featured_product = fallback_product + endif + %} + {% if featured_product != blank %} +
+ {% render 'hero-product', product: featured_product %} +
+ {% elsif request.design_mode %} +
+
+

{{ 'hero.select_product' | t }}

+
+
+ {% endif %} + {% endfor %} +
+ {% endif %} +
+
+ + +
+ +{% stylesheet %} + .hero { + position: relative; + width: 100%; + min-height: 650px; + overflow: hidden; + color: #fff; + background: #c8c2bc; + } + + .hero__media { + position: absolute; + inset: 0; + } + + .hero__video, + .hero__poster, + .hero__still, + .hero__poster-image { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + max-width: none; + object-fit: cover; + object-position: center center; + } + + .hero__poster, + .hero__still { + z-index: 1; + transition: opacity 0.45s ease; + } + + .hero.is-playing .hero__poster { + opacity: 0; + pointer-events: none; + } + + .hero__content { + position: relative; + z-index: 2; + display: flex; + min-height: 650px; + padding: 104px 160px 80px 100px; + } + + .hero__copy { + width: min(100%, 800px); + } + + .hero__title { + margin: 0; + color: #fff; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: 70px; + font-weight: 500; + line-height: 69px; + text-transform: uppercase; + } + + .hero__title-line { + display: block; + white-space: nowrap; + } + + .hero__title-line--light { + font-weight: 300; + } + + .hero__title-line--medium { + font-weight: 500; + } + + .hero__rule { + display: block; + width: 578px; + max-width: 100%; + height: 1px; + margin-top: 40px; + background: #fff; + } + + .hero__label { + margin: 40px 0 20px; + color: #fff; + font-family: Archivo, sans-serif; + font-size: 14px; + font-weight: 300; + line-height: normal; + } + + .hero__products { + display: flex; + flex-wrap: wrap; + gap: 16px; + } + + .hero__card { + display: grid; + grid-template-columns: 100px minmax(0, 1fr) 50px; + column-gap: 10px; + align-items: center; + width: 384px; + height: 120px; + padding: 10px; + border-radius: 10px; + background: rgba(249, 249, 250, 0.5); + backdrop-filter: blur(3px); + } + + .hero__card--empty { + display: flex; + color: #000; + font-family: Archivo, sans-serif; + font-size: 14px; + font-weight: 400; + } + + .hero__card-media { + display: block; + width: 100px; + height: 100px; + overflow: hidden; + border-radius: 5px; + } + + .hero__card-image { + width: 100%; + height: 100%; + max-width: none; + object-fit: cover; + } + + .hero__card-copy { + display: flex; + min-width: 0; + flex-direction: column; + gap: 5px; + } + + .hero__card-title { + display: -webkit-box; + overflow: hidden; + color: #000; + font-family: Archivo, sans-serif; + font-size: 14px; + font-weight: 400; + line-height: normal; + text-decoration: none; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + } + + .hero__card-price { + margin: 0; + color: #000; + font-family: Archivo, sans-serif; + font-size: 16px; + font-weight: 400; + line-height: normal; + } + + .hero__form { + display: flex; + justify-content: flex-end; + } + + .hero__cart { + display: grid; + width: 50px; + height: 50px; + place-items: center; + padding: 0; + border: 0; + border-radius: 60px; + background: #9dd6c7; + cursor: pointer; + } + + .hero__cart:disabled { + cursor: not-allowed; + opacity: 0.55; + } + + .hero__cart.is-added { + outline: 2px solid #000; + outline-offset: 2px; + } + + .hero__cart-icon { + display: block; + width: 25px; + height: 25px; + } + + .hero__cart-icon svg { + width: 25px; + height: 25px; + } + + .hero__social { + position: absolute; + top: 151px; + right: 100px; + z-index: 2; + display: flex; + flex-direction: column; + align-items: center; + gap: 20px; + } + + .hero__social-label { + margin: 0; + color: #fff; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: 16px; + font-weight: 500; + line-height: normal; + text-transform: uppercase; + writing-mode: vertical-rl; + } + + .hero__social-line { + display: block; + width: 1px; + height: 80px; + background: #fff; + } + + .hero__social-list { + display: flex; + flex-direction: column; + align-items: center; + gap: 20px; + margin: 0; + padding: 0; + list-style: none; + } + + .hero__social-item { + display: flex; + width: 37px; + height: 37px; + align-items: center; + justify-content: center; + color: #fff; + } + + .hero__social-item svg { + max-width: none; + } + + @media (max-width: 1439px) { + .hero__content { + padding-right: 120px; + padding-left: 40px; + } + + .hero__social { + right: 40px; + } + } + + @media (max-width: 1023px) { + .hero, + .hero__content { + min-height: 550px; + } + + .hero__video, + .hero__poster-image { + object-position: center 22%; + } + + .hero__content { + align-items: flex-end; + padding: 24px 20px 15px; + } + + .hero__title { + font-size: 35px; + line-height: 40px; + } + + .hero__rule { + width: 253px; + margin-top: 20px; + } + + .hero__label { + margin: 10px 0; + font-size: 10px; + } + + .hero__products { + flex-direction: column; + gap: 10px; + } + + .hero__card { + grid-template-columns: 70px minmax(0, 1fr) 40px; + width: 100%; + max-width: 297px; + height: 80px; + padding: 5px; + } + + .hero__card-media { + width: 70px; + height: 70px; + } + + .hero__card-title { + font-size: 12px; + } + + .hero__card-price { + font-size: 14px; + } + + .hero__cart { + width: 40px; + height: 40px; + } + + .hero__cart-icon, + .hero__cart-icon svg { + width: 18px; + height: 18px; + } + + .hero__social { + display: none; + } + } + + @media (max-width: 380px) { + .hero__title-line { + white-space: normal; + } + } + + @media (prefers-reduced-motion: reduce) { + .hero__video { + display: none; + } + + .hero__poster { + transition: none; + } + } +{% endstylesheet %} + + + +{% javascript %} +(() => { + if (window.__seasonHero) return; + window.__seasonHero = true; + + const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches; + + const setCartCount = (count) => { + const link = document.querySelector('.header__cart'); + if (!link || count < 1) return; + + let badge = link.querySelector('[data-cart-count]'); + if (!badge) { + badge = document.createElement('span'); + badge.className = 'absolute right-0 top-0 flex h-4 min-w-4 items-center justify-center rounded-full bg-brand-mint px-[3px] text-[10px] font-medium leading-none text-black'; + badge.setAttribute('data-cart-count', ''); + link.appendChild(badge); + } + + badge.textContent = String(count); + }; + + document.querySelectorAll('[data-hero]').forEach((hero) => { + const video = hero.querySelector('[data-hero-video]'); + if (!video || reduceMotion) return; + + const markPlaying = () => hero.classList.add('is-playing'); + video.addEventListener('playing', markPlaying); + + const tryPlay = () => { + const playAttempt = video.play(); + if (playAttempt && typeof playAttempt.catch === 'function') { + playAttempt.catch(() => {}); + } + }; + + if (video.readyState >= 2) { + tryPlay(); + } else { + video.addEventListener('canplay', tryPlay, { once: true }); + } + }); + + document.addEventListener('submit', async (event) => { + const form = event.target; + if (!(form instanceof HTMLFormElement) || !form.classList.contains('hero__form')) return; + + const hero = form.closest('[data-hero]'); + if (!hero) return; + + event.preventDefault(); + + const button = form.querySelector('[type="submit"]'); + const variantId = form.querySelector('[name="id"]')?.value; + if (!button || button.disabled || !variantId) return; + + button.disabled = true; + + try { + const addResponse = await fetch(hero.dataset.cartAddUrl, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + body: JSON.stringify({ id: variantId, quantity: 1 }), + }); + + if (!addResponse.ok) return; + + const cartResponse = await fetch(hero.dataset.cartUrl, { + headers: { Accept: 'application/json' }, + }); + const cart = await cartResponse.json(); + if (typeof cart.item_count === 'number') setCartCount(cart.item_count); + document.dispatchEvent(new CustomEvent('season:cart:open')); + button.classList.add('is-added'); + window.setTimeout(() => button.classList.remove('is-added'), 1200); + } catch (error) { + form.submit(); + } finally { + button.disabled = false; + } + }); +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:hero.name", + "tag": "section", + "class": "hero-section", + "max_blocks": 2, + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [ + { + "type": "header", + "content": "t:hero.heading" + }, + { + "type": "text", + "id": "heading_line_1", + "label": "t:hero.line_1", + "default": "descubre" + }, + { + "type": "select", + "id": "heading_line_1_weight", + "label": "t:hero.line_1_weight", + "default": "light", + "options": [ + { "value": "light", "label": "t:hero.weight_light" }, + { "value": "medium", "label": "t:hero.weight_medium" } + ] + }, + { + "type": "text", + "id": "heading_line_2", + "label": "t:hero.line_2", + "default": "lo que tu piel" + }, + { + "type": "select", + "id": "heading_line_2_weight", + "label": "t:hero.line_2_weight", + "default": "medium", + "options": [ + { "value": "light", "label": "t:hero.weight_light" }, + { "value": "medium", "label": "t:hero.weight_medium" } + ] + }, + { + "type": "text", + "id": "heading_line_3", + "label": "t:hero.line_3", + "default": "disfrutará" + }, + { + "type": "select", + "id": "heading_line_3_weight", + "label": "t:hero.line_3_weight", + "default": "light", + "options": [ + { "value": "light", "label": "t:hero.weight_light" }, + { "value": "medium", "label": "t:hero.weight_medium" } + ] + }, + { + "type": "text", + "id": "featured_label", + "label": "t:hero.featured_label", + "default": "Producto destacado" + }, + { + "type": "header", + "content": "t:hero.media" + }, + { + "type": "select", + "id": "media_type", + "label": "t:hero.media_type", + "default": "video", + "options": [ + { "value": "video", "label": "t:hero.media_video" }, + { "value": "image", "label": "t:hero.media_image" } + ] + }, + { + "type": "video", + "id": "video", + "label": "t:hero.video", + "info": "t:hero.video_info", + "visible_if": "{{ section.settings.media_type == 'video' }}" + }, + { + "type": "image_picker", + "id": "cover_desktop", + "label": "t:hero.cover_desktop", + "info": "t:hero.cover_info" + }, + { + "type": "image_picker", + "id": "cover_mobile", + "label": "t:hero.cover_mobile" + }, + { + "type": "header", + "content": "t:hero.social" + }, + { + "type": "text", + "id": "social_label", + "label": "t:hero.social_label", + "default": "Síguenos" + }, + { + "type": "url", + "id": "instagram_url", + "label": "t:hero.instagram" + }, + { + "type": "url", + "id": "facebook_url", + "label": "t:hero.facebook" + }, + { + "type": "url", + "id": "linkedin_url", + "label": "t:hero.linkedin" + } + ], + "blocks": [ + { + "type": "featured_product", + "name": "t:hero.featured_product", + "limit": 2, + "settings": [ + { + "type": "product", + "id": "product", + "label": "t:hero.product" + } + ] + } + ], + "presets": [ + { + "name": "t:hero.name", + "blocks": [ + { "type": "featured_product" } + ] + } + ] +} +{% endschema %} diff --git a/sections/learn.liquid b/sections/learn.liquid new file mode 100644 index 0000000..e4da660 --- /dev/null +++ b/sections/learn.liquid @@ -0,0 +1,907 @@ +{% liquid + if section.settings.heading != blank + assign heading = section.settings.heading + else + assign heading = 'learn.heading' | t + endif + + if section.settings.subheading != blank + assign subheading = section.settings.subheading + else + assign subheading = 'learn.subheading' | t + endif + + assign slide_count = section.blocks.size + assign active_index = slide_count | minus: 1 | divided_by: 2 | floor + if active_index < 0 + assign active_index = 0 + endif +%} + +
+ + + +
+

{{ heading | escape }}

+

{{ subheading | escape }}

+
+ +
+
+
+ {% for block in section.blocks %} + {% liquid + assign video_src = blank + if block.settings.video != blank + for source in block.settings.video.sources + if source.mime_type == 'video/mp4' or source.format == 'mp4' + assign video_src = source.url + endif + endfor + endif + + assign fallback_image = blank + case forloop.index + when 1 + assign fallback_image = 'learn-cover-1.avif' + when 2 + assign fallback_image = 'learn-cover-2.avif' + when 4 + assign fallback_image = 'learn-cover-4.avif' + when 5 + assign fallback_image = 'learn-cover-5.avif' + endcase + + assign poster_alt = heading + %} +
+
+ {% if block.settings.poster != blank %} + {{ + block.settings.poster + | image_url: width: 900 + | image_tag: + alt: poster_alt, + widths: '384, 768', + sizes: '384px', + class: 'learn__poster', + loading: 'lazy' + }} + {% elsif fallback_image != blank %} + {{ poster_alt | escape }} + {% endif %} + {% if video_src != blank %} + + {% endif %} +
+
+ {% endfor %} +
+
+ + + +
+ +
+ {% for block in section.blocks %} +
+ {% for product_key in (1..2) %} + {% liquid + if product_key == 1 + assign slide_product = block.settings.product_1 + else + assign slide_product = block.settings.product_2 + endif + %} + {% if slide_product != blank %} + {% liquid + assign variant = slide_product.selected_or_first_available_variant + assign card_image = slide_product.featured_image + assign hover_image = blank + for image in slide_product.images offset: 1 limit: 1 + assign hover_image = image + endfor + %} +
+ + {% if card_image %} + {{ + card_image + | image_url: width: 200 + | image_tag: + alt: slide_product.title, + widths: '100, 200', + sizes: '100px', + class: 'learn__card-image', + loading: 'lazy' + }} + {% if hover_image != blank %} + {{ + hover_image + | image_url: width: 200 + | image_tag: + alt: '', + widths: '100, 200', + sizes: '100px', + class: 'learn__card-image learn__card-image--hover', + loading: 'lazy' + }} + {% endif %} + {% endif %} + +
+ {{ slide_product.title | escape }} +

{{ variant.price | money_without_trailing_zeros }}

+
+
+ + +
+
+ {% endif %} + {% endfor %} +
+ {% endfor %} +
+ +
+ +
+
+ +{% stylesheet %} + .learn { + --slide: 384px; + --slide-gap: 30px; + position: relative; + margin-top: 50px; + padding: 97px 0 50px; + overflow: hidden; + background: linear-gradient(127deg, #f8e1ee 8%, #ffffff 60%); + color: #000; + font-family: Archivo, sans-serif; + } + + .learn__blob { + position: absolute; + z-index: 0; + pointer-events: none; + user-select: none; + } + + .learn__blob--right { + top: 0; + right: 219px; + width: 539px; + height: auto; + } + + .learn__blob--left { + top: 722px; + left: 29px; + width: 407px; + height: auto; + } + + .learn__header, + .learn__products, + .learn__progress, + .learn__stage { + position: relative; + z-index: 1; + } + + .learn__header { + margin-bottom: 30px; + padding-inline: 100px; + } + + .learn__heading { + margin: 0; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: 30px; + font-weight: 500; + line-height: normal; + text-transform: uppercase; + } + + .learn__subheading { + margin: 13px 0 0; + font-size: 20px; + font-weight: 300; + line-height: 30px; + } + + .learn__stage { + height: 680px; + } + + .learn__viewport { + height: 100%; + overflow: hidden; + cursor: grab; + touch-action: pan-y; + } + + .learn__viewport.is-dragging { + cursor: grabbing; + } + + .learn__track { + display: flex; + align-items: center; + gap: var(--slide-gap); + width: max-content; + height: 100%; + padding-inline: calc(50% - var(--slide) / 2); + } + + .learn__slide { + flex: 0 0 var(--slide); + width: var(--slide); + } + + .learn__media { + position: relative; + height: 518px; + overflow: hidden; + border-radius: 10px; + background: #f3e6ee; + } + + .learn__slide.is-active .learn__media { + height: 680px; + } + + .learn__poster, + .learn__video { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + object-fit: cover; + } + + .learn__video { + opacity: 0; + } + + .learn__slide.is-playing .learn__video { + opacity: 1; + } + + .learn__slide.is-playing .learn__poster { + opacity: 0; + } + + .learn__arrow { + position: absolute; + top: 50%; + z-index: 2; + display: grid; + width: 50px; + height: 50px; + place-items: center; + padding: 0; + border: 0; + border-radius: 60px; + background: #fff; + transform: translateY(-50%); + cursor: pointer; + } + + .learn__arrow--prev { + left: 50px; + } + + .learn__arrow--next { + right: 50px; + } + + .learn__arrow:disabled { + cursor: default; + opacity: 0.45; + } + + .learn__arrow-icon { + display: block; + } + + .learn__arrow--prev .learn__arrow-icon { + transform: rotate(-90deg); + } + + .learn__arrow--next .learn__arrow-icon { + transform: rotate(90deg); + } + + .learn__products { + min-height: 120px; + margin-top: 36px; + } + + .learn__row { + display: flex; + justify-content: center; + gap: 20px; + } + + .learn__row[hidden] { + display: none; + } + + .learn__card { + display: flex; + align-items: center; + gap: 10px; + width: 384px; + height: 120px; + padding: 10px; + border-radius: 10px; + background: rgba(249, 249, 250, 0.7); + } + + .learn__card-media { + position: relative; + flex: 0 0 100px; + width: 100px; + height: 100px; + overflow: hidden; + border-radius: 5px; + } + + .learn__card-image { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } + + .learn__card-image--hover { + position: absolute; + inset: 0; + opacity: 0; + transition: opacity 0.35s ease; + } + + .learn__card:hover .learn__card-image--hover, + .learn__card:focus-within .learn__card-image--hover { + opacity: 1; + } + + @media (prefers-reduced-motion: reduce) { + .learn__card-image--hover { + transition: none; + } + } + + .learn__card-copy { + min-width: 0; + flex: 1 1 auto; + } + + .learn__card-title { + display: block; + color: #000; + font-size: 14px; + font-weight: 400; + line-height: normal; + text-decoration: none; + } + + .learn__card-price { + margin: 5px 0 0; + font-size: 16px; + font-weight: 400; + line-height: normal; + } + + .learn__form { + flex: 0 0 auto; + margin: 0; + } + + .learn__cart { + display: grid; + width: 50px; + height: 50px; + place-items: center; + padding: 0; + border: 0; + border-radius: 60px; + background: #9dd6c7; + cursor: pointer; + } + + .learn__cart:disabled { + cursor: not-allowed; + opacity: 0.45; + } + + .learn__cart svg { + display: block; + } + + .learn__progress { + position: relative; + width: min(1200px, calc(100% - 200px)); + height: 1px; + margin: 54px auto 0; + background: #e6e6e6; + cursor: pointer; + touch-action: none; + } + + .learn__progress::before { + content: ""; + position: absolute; + top: -12px; + right: 0; + left: 0; + height: 25px; + } + + .learn__progress-bar { + position: absolute; + top: 0; + left: 0; + height: 2px; + background: #000; + } + + .learn__arrow:focus-visible, + .learn__cart:focus-visible, + .learn__card-title:focus-visible, + .learn__card-media:focus-visible { + outline: 2px solid #000; + outline-offset: 2px; + } + + @media (max-width: 1439px) { + .learn__header { + padding-inline: 40px; + } + + .learn__blob--right { + right: -80px; + width: 360px; + } + + .learn__blob--left { + top: auto; + bottom: 40px; + width: 240px; + } + } + + @media (max-width: 1024px) { + .learn { + --slide: 220px; + --slide-gap: 16px; + margin-top: 24px; + padding: 40px 0 32px; + } + + .learn__blob { + display: none; + } + + .learn__header { + margin-bottom: 20px; + padding-inline: 15px; + } + + .learn__heading { + font-size: 20px; + } + + .learn__subheading { + margin-top: 8px; + font-size: 14px; + line-height: 20px; + } + + .learn__stage { + height: 390px; + } + + .learn__media { + height: 300px; + } + + .learn__slide.is-active .learn__media { + height: 390px; + } + + .learn__arrow { + width: 40px; + height: 40px; + } + + .learn__arrow--prev { + left: 12px; + } + + .learn__arrow--next { + right: 12px; + } + + .learn__products { + min-height: 0; + margin-top: 20px; + padding-inline: 15px; + } + + .learn__row { + flex-direction: column; + align-items: center; + gap: 10px; + } + + .learn__card { + width: min(384px, 100%); + } + + .learn__progress { + width: calc(100% - 30px); + margin-top: 24px; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches; + + const setCartCount = (count) => { + const link = document.querySelector('.header__cart'); + if (!link || count < 1) return; + let badge = link.querySelector('[data-cart-count]'); + if (!badge) { + badge = document.createElement('span'); + badge.className = 'absolute right-0 top-0 flex h-4 min-w-4 items-center justify-center rounded-full bg-brand-mint px-[3px] text-[10px] font-medium leading-none text-black'; + badge.setAttribute('data-cart-count', ''); + link.appendChild(badge); + } + badge.textContent = String(count); + }; + + const playSlide = (slide) => { + const video = slide.querySelector('[data-learn-video]'); + if (!video || reduceMotion) return; + if (video.dataset.loaded !== 'true' && video.dataset.src) { + video.dataset.loaded = 'true'; + video.src = video.dataset.src; + video.load(); + } + const mark = () => slide.classList.add('is-playing'); + if (!video.paused && video.currentTime > 0) mark(); + video.addEventListener('playing', mark, { once: true }); + const attempt = video.play(); + if (attempt && typeof attempt.catch === 'function') attempt.catch(() => {}); + }; + + const stopSlide = (slide) => { + const video = slide.querySelector('[data-learn-video]'); + slide.classList.remove('is-playing'); + if (video && video.dataset.loaded === 'true') video.pause(); + }; + + const boot = (root) => { + if (!root || root.dataset.ready === 'true') return; + const viewport = root.querySelector('[data-viewport]'); + const slides = [...root.querySelectorAll('[data-slide]')]; + const rows = [...root.querySelectorAll('[data-product-row]')]; + const progress = root.querySelector('[data-progress]'); + const bar = root.querySelector('[data-progress-bar]'); + const prev = root.querySelector('[data-learn-prev]'); + const next = root.querySelector('[data-learn-next]'); + if (!viewport || !slides.length) return; + root.dataset.ready = 'true'; + + let index = Number(root.dataset.active) || 0; + if (index < 0) index = 0; + if (index > slides.length - 1) index = slides.length - 1; + + const paint = (animate) => { + slides.forEach((slide, i) => { + const active = i === index; + slide.classList.toggle('is-active', active); + if (active) playSlide(slide); + else stopSlide(slide); + }); + rows.forEach((row, i) => { + row.hidden = i !== index; + }); + if (bar) { + const width = 100 / slides.length; + const travel = 100 - width; + bar.style.width = `${width}%`; + bar.style.left = `${slides.length < 2 ? 0 : (index / (slides.length - 1)) * travel}%`; + } + if (prev) prev.disabled = index === 0; + if (next) next.disabled = index === slides.length - 1; + if (progress) { + progress.setAttribute('aria-valuemax', String(slides.length)); + progress.setAttribute('aria-valuenow', String(index + 1)); + } + + const slide = slides[index]; + const left = slide.offsetLeft - (viewport.clientWidth - slide.offsetWidth) / 2; + viewport.scrollTo({ left: Math.max(left, 0), behavior: animate && !reduceMotion ? 'smooth' : 'auto' }); + }; + + const go = (nextIndex) => { + const target = Math.min(Math.max(nextIndex, 0), slides.length - 1); + if (target === index) return; + index = target; + paint(true); + }; + + prev?.addEventListener('click', () => go(index - 1)); + next?.addEventListener('click', () => go(index + 1)); + + let pointerId = null; + let startX = 0; + let startScroll = 0; + let moved = false; + + viewport.addEventListener('pointerdown', (event) => { + if (event.button !== 0) return; + if (event.target.closest('a, button')) return; + pointerId = event.pointerId; + startX = event.clientX; + startScroll = viewport.scrollLeft; + moved = false; + viewport.classList.add('is-dragging'); + viewport.setPointerCapture(pointerId); + }); + + viewport.addEventListener('pointermove', (event) => { + if (event.pointerId !== pointerId) return; + const delta = event.clientX - startX; + if (Math.abs(delta) > 4) moved = true; + viewport.scrollLeft = startScroll - delta; + }); + + const endDrag = (event) => { + if (event.pointerId !== pointerId) return; + pointerId = null; + viewport.classList.remove('is-dragging'); + if (!moved) return; + + const center = viewport.scrollLeft + viewport.clientWidth / 2; + let nearest = index; + let best = Infinity; + slides.forEach((slide, i) => { + const mid = slide.offsetLeft + slide.offsetWidth / 2; + const distance = Math.abs(mid - center); + if (distance < best) { + best = distance; + nearest = i; + } + }); + index = nearest; + paint(true); + viewport.addEventListener('click', (clickEvent) => { + clickEvent.preventDefault(); + clickEvent.stopPropagation(); + }, { capture: true, once: true }); + }; + + viewport.addEventListener('pointerup', endDrag); + viewport.addEventListener('pointercancel', endDrag); + + const indexFromClientX = (clientX) => { + if (!progress || slides.length < 2) return 0; + const rect = progress.getBoundingClientRect(); + const ratio = Math.min(Math.max((clientX - rect.left) / rect.width, 0), 1); + return Math.round(ratio * (slides.length - 1)); + }; + + if (progress) { + let progressPointer = null; + progress.addEventListener('pointerdown', (event) => { + if (event.button !== 0) return; + progressPointer = event.pointerId; + progress.setPointerCapture(progressPointer); + go(indexFromClientX(event.clientX)); + }); + progress.addEventListener('pointermove', (event) => { + if (event.pointerId !== progressPointer) return; + go(indexFromClientX(event.clientX)); + }); + const endProgress = (event) => { + if (event.pointerId !== progressPointer) return; + progressPointer = null; + }; + progress.addEventListener('pointerup', endProgress); + progress.addEventListener('pointercancel', endProgress); + progress.addEventListener('keydown', (event) => { + if (event.key === 'ArrowRight') go(index + 1); + if (event.key === 'ArrowLeft') go(index - 1); + }); + } + + window.addEventListener('resize', () => paint(false)); + paint(false); + }; + + document.querySelectorAll('[data-learn]').forEach(boot); + document.addEventListener('shopify:section:load', (event) => { + const root = event.target.querySelector('[data-learn]'); + if (root) { + delete root.dataset.ready; + boot(root); + } + }); + + if (!window.__seasonLearn) { + window.__seasonLearn = true; + document.addEventListener('submit', async (event) => { + const form = event.target; + if (!(form instanceof HTMLFormElement) || !form.classList.contains('learn__form')) return; + const root = form.closest('[data-learn]'); + if (!root) return; + event.preventDefault(); + + const button = form.querySelector('[type="submit"]'); + const variantId = form.querySelector('[name="id"]')?.value; + if (!button || button.disabled || !variantId) return; + button.disabled = true; + + try { + const addResponse = await fetch(root.dataset.cartAddUrl, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + body: JSON.stringify({ id: variantId, quantity: 1 }), + }); + if (!addResponse.ok) { + form.submit(); + return; + } + const cartResponse = await fetch(root.dataset.cartUrl, { headers: { Accept: 'application/json' } }); + const cart = await cartResponse.json(); + if (typeof cart.item_count === 'number') setCartCount(cart.item_count); + document.dispatchEvent(new CustomEvent('season:cart:open')); + } catch (error) { + form.submit(); + } finally { + button.disabled = false; + } + }); + } +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:learn.name", + "tag": "section", + "class": "learn-section", + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [ + { + "type": "text", + "id": "heading", + "label": "t:learn.heading", + "default": "Aprende, aplica y brilla con Seasons" + }, + { + "type": "text", + "id": "subheading", + "label": "t:learn.subheading", + "default": "Descubre tips, rutinas y formas reales de usar tus productos favoritos." + } + ], + "blocks": [ + { + "type": "clip", + "name": "t:learn.clip", + "settings": [ + { + "type": "image_picker", + "id": "poster", + "label": "t:learn.poster", + "info": "t:learn.poster_info" + }, + { + "type": "video", + "id": "video", + "label": "t:learn.video", + "info": "t:learn.video_info" + }, + { + "type": "product", + "id": "product_1", + "label": "t:learn.product_1" + }, + { + "type": "product", + "id": "product_2", + "label": "t:learn.product_2" + } + ] + } + ], + "presets": [ + { + "name": "t:learn.name", + "blocks": [ + { "type": "clip" }, + { "type": "clip" }, + { "type": "clip" }, + { "type": "clip" }, + { "type": "clip" } + ] + } + ] +} +{% endschema %} diff --git a/sections/marquee.liquid b/sections/marquee.liquid new file mode 100644 index 0000000..dec6653 --- /dev/null +++ b/sections/marquee.liquid @@ -0,0 +1,294 @@ +{% capture marquee_items %} + {% if section.blocks.size > 0 %} + {% for block in section.blocks %} +
+ + + {% case block.settings.icon %} + {% when 'payment' %} + {{ 'icon-marquee-card.svg' | inline_asset_content }} + {% when 'installments' %} + {{ 'icon-marquee-wallet.svg' | inline_asset_content }} + {{ 'icon-marquee-wallet-flap.svg' | inline_asset_content }} + {{ 'icon-marquee-wallet-mark.svg' | inline_asset_content }} + {% when 'guarantee' %} + {{ 'icon-marquee-guarantee.svg' | inline_asset_content }} + {% else %} + {{ 'icon-marquee-shipping.svg' | inline_asset_content }} + {% endcase %} + + +

+ {{ block.settings.title }} + {{ block.settings.text }} +

+
+ {% endfor %} + {% else %} +
+ {{ 'icon-marquee-shipping.svg' | inline_asset_content }} +

{{ 'marquee.shipping_title' | t }}{{ 'marquee.shipping_text' | t }}

+
+
+ {{ 'icon-marquee-card.svg' | inline_asset_content }} +

{{ 'marquee.payment_title' | t }}{{ 'marquee.payment_text' | t }}

+
+
+ + + {{ 'icon-marquee-wallet.svg' | inline_asset_content }} + {{ 'icon-marquee-wallet-flap.svg' | inline_asset_content }} + {{ 'icon-marquee-wallet-mark.svg' | inline_asset_content }} + + +

{{ 'marquee.installments_title' | t }}{{ 'marquee.installments_text' | t }}

+
+
+ {{ 'icon-marquee-guarantee.svg' | inline_asset_content }} +

{{ 'marquee.guarantee_title' | t }}{{ 'marquee.guarantee_text' | t }}

+
+ {% endif %} +{% endcapture %} + +
+
+
{{ marquee_items }}
+ +
+
+ +{% stylesheet %} + .marquee-section { + min-width: 0; + overflow: hidden; + } + + .marquee { + display: flex; + align-items: center; + width: 100%; + min-width: 0; + max-width: 100%; + height: 100px; + overflow: hidden; + background: linear-gradient(90deg, #7dcaaf 0%, #a9ddfa 70.064%, #d2ebf9 133.7%); + } + + .marquee__track { + display: flex; + width: max-content; + animation: marquee-scroll 36s linear infinite; + } + + .marquee__set { + display: flex; + align-items: center; + gap: 192px; + padding-right: 192px; + } + + .marquee__item { + display: flex; + align-items: center; + gap: 20px; + flex: 0 0 auto; + } + + .marquee__badge { + display: flex; + align-items: center; + justify-content: center; + width: 45px; + height: 45px; + flex: 0 0 45px; + border: 1px solid #000; + border-radius: 50%; + background: transparent; + } + + .marquee__glyph { + position: relative; + display: block; + width: 20px; + height: 20px; + } + + .marquee__glyph > svg, + .marquee__layer { + position: absolute; + display: block; + } + + .marquee__layer svg { + position: static; + display: block; + } + + .marquee__glyph--shipping svg { + top: 2px; + left: 0; + } + + .marquee__glyph--payment svg { + top: 2px; + left: 0; + } + + .marquee__glyph--guarantee svg { + top: 0; + left: 0; + } + + .marquee__layer--body { + top: 6px; + left: 1px; + } + + .marquee__layer--flap { + top: 1px; + left: 4px; + } + + .marquee__layer--mark { + top: 2px; + left: 7px; + } + + .marquee__copy { + margin: 0; + color: #000; + font-size: 14px; + font-weight: 300; + line-height: 20px; + white-space: nowrap; + } + + .marquee__copy strong { + display: block; + font-weight: 700; + } + + @keyframes marquee-scroll { + from { + transform: translate3d(0, 0, 0); + } + + to { + transform: translate3d(-50%, 0, 0); + } + } + + @media (max-width: 1119px) { + .marquee { + height: 70px; + } + + .marquee__set { + gap: 50px; + padding-right: 50px; + } + + .marquee__item { + gap: 15px; + } + + .marquee__badge { + width: 35px; + height: 35px; + flex-basis: 35px; + } + + .marquee__copy { + font-size: 12px; + line-height: 16px; + } + } + + @media (prefers-reduced-motion: reduce) { + .marquee__track { + animation: none; + } + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:marquee.name", + "class": "marquee-section", + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [], + "blocks": [ + { + "type": "item", + "name": "t:marquee.item", + "settings": [ + { + "type": "select", + "id": "icon", + "label": "t:marquee.icon", + "default": "shipping", + "options": [ + { "value": "shipping", "label": "t:marquee.icon_shipping" }, + { "value": "payment", "label": "t:marquee.icon_payment" }, + { "value": "installments", "label": "t:marquee.icon_installments" }, + { "value": "guarantee", "label": "t:marquee.icon_guarantee" } + ] + }, + { + "type": "text", + "id": "title", + "label": "t:marquee.title", + "default": "Envío gratis" + }, + { + "type": "text", + "id": "text", + "label": "t:marquee.text", + "default": "Desde $699 a todo México." + } + ] + } + ], + "presets": [ + { + "name": "t:marquee.name", + "blocks": [ + { + "type": "item", + "settings": { + "icon": "shipping", + "title": "Envío gratis", + "text": "Desde $699 a todo México." + } + }, + { + "type": "item", + "settings": { + "icon": "payment", + "title": "Pago seguro", + "text": "Métodos confiables y cifrados." + } + }, + { + "type": "item", + "settings": { + "icon": "installments", + "title": "Pago a plazos", + "text": "Con Mercado Pago, Kueski Pay o Aplazo." + } + }, + { + "type": "item", + "settings": { + "icon": "guarantee", + "title": "Garantía de entrega", + "text": "Reenvío sin costo si algo falla." + } + } + ] + } + ] +} +{% endschema %} diff --git a/sections/new-products.liquid b/sections/new-products.liquid new file mode 100644 index 0000000..7c9216e --- /dev/null +++ b/sections/new-products.liquid @@ -0,0 +1,299 @@ +{% liquid + assign product_collection = section.settings.collection + if product_collection == blank + assign product_collection = collections.all + endif + + if section.settings.heading != blank + assign heading = section.settings.heading + else + assign heading = 'new_products.heading' | t + endif + + assign more_url = routes.all_products_collection_url + assign feed_url = blank + assign already_sorted = false + if product_collection != blank + assign more_url = product_collection.url | sort_by: 'created-descending' + assign feed_url = more_url | append: '&view=new-products-data' + if product_collection.default_sort_by == 'created-descending' + assign already_sorted = true + endif + endif + + assign video_src = blank + if section.settings.video != blank + for source in section.settings.video.sources + if source.mime_type == 'video/mp4' or source.format == 'mp4' + assign video_src = source.url + endif + endfor + endif + + assign poster = section.settings.poster + assign poster_url = blank + if poster != blank + assign poster_url = poster | image_url: width: 1000 + endif + + if video_src == blank and section.settings.promo_link != blank + assign promo_tag = 'a' + else + assign promo_tag = 'div' + endif + + assign products_to_show = section.settings.products_to_show | default: 8 + assign show_promo = false + if poster != blank or video_src != blank + assign show_promo = true + endif +%} + +
+
+

{{ heading | escape }}

+
+ {{ 'bestsellers.view_more' | t }} +
+ + +
+
+
+ +
+ {% if show_promo %} + <{{ promo_tag }} + class="bestsellers__promo" + {% if promo_tag == 'a' %} + href="{{ section.settings.promo_link }}" + {% endif %} + > + {% if poster != blank %} + {{ + poster + | image_url: width: 1400 + | image_tag: + alt: heading, + widths: '372, 486, 744, 972', + sizes: '(max-width: 1024px) calc(100vw - 30px), 486px', + class: 'bestsellers__promo-image new-products__poster', + loading: 'lazy' + }} + {% endif %} + + {% if video_src != blank %} + + {% endif %} + + {% endif %} + +
+
+
+ {% if product_collection != blank and product_collection.products_count > 0 %} + {% for product in product_collection.products limit: products_to_show %} + {% render 'bestsellers-card', product: product, form_suffix: section.id %} + {% endfor %} + {% elsif request.design_mode %} +

{{ 'bestsellers.empty' | t }}

+ {% endif %} +
+
+ +
+
+
+ +{% stylesheet %} + .bestsellers.new-products { + padding-top: 100px; + } + + .new-products__video { + position: absolute; + inset: 0; + width: 100%; + height: 100%; + object-fit: cover; + opacity: 0; + } + + .new-products.is-playing .new-products__video { + opacity: 1; + } + + .new-products.is-playing .new-products__poster { + opacity: 0; + } + + @media (max-width: 1024px) { + .bestsellers.new-products { + padding-top: 40px; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches; + + const markPlaying = (video) => { + const root = video.closest('[data-new-products]'); + if (!root) return; + root.classList.toggle('is-playing', !video.paused && !video.ended); + }; + + const ensureSource = (video) => { + if (video.dataset.loaded === 'true' || !video.dataset.src || reduceMotion) return; + video.dataset.loaded = 'true'; + video.src = video.dataset.src; + video.load(); + }; + + const playVideo = (video) => { + ensureSource(video); + if (video.dataset.loaded !== 'true') return; + const attempt = video.play(); + if (attempt && typeof attempt.catch === 'function') attempt.catch(() => {}); + }; + + const watch = (video) => { + video.addEventListener('playing', () => markPlaying(video)); + video.addEventListener('pause', () => markPlaying(video)); + video.addEventListener('ended', () => markPlaying(video)); + + if (!('IntersectionObserver' in window)) { + playVideo(video); + return; + } + + const observer = new IntersectionObserver((entries) => { + entries.forEach((entry) => { + if (entry.isIntersecting) { + playVideo(entry.target); + return; + } + if (entry.target.dataset.loaded === 'true') entry.target.pause(); + }); + }, { rootMargin: '200px 0px' }); + + observer.observe(video); + }; + + const boot = (root) => { + if (!root || root.dataset.videoReady === 'true') return; + root.dataset.videoReady = 'true'; + const video = root.querySelector('[data-new-products-video]'); + if (video) watch(video); + }; + + document.querySelectorAll('[data-new-products]').forEach(boot); + + document.addEventListener('shopify:section:load', (event) => { + const root = event.target.querySelector('[data-new-products]'); + if (root) boot(root); + }); +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:new_products.name", + "tag": "section", + "class": "new-products-section", + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [ + { + "type": "text", + "id": "heading", + "label": "t:new_products.heading", + "default": "Nuevos productos" + }, + { + "type": "collection", + "id": "collection", + "label": "t:new_products.collection", + "info": "t:new_products.collection_info" + }, + { + "type": "range", + "id": "products_to_show", + "label": "t:new_products.products_to_show", + "min": 4, + "max": 12, + "step": 1, + "default": 8 + }, + { + "type": "header", + "content": "t:new_products.media" + }, + { + "type": "image_picker", + "id": "poster", + "label": "t:new_products.poster", + "info": "t:new_products.poster_info" + }, + { + "type": "video", + "id": "video", + "label": "t:new_products.video", + "info": "t:new_products.video_info" + }, + { + "type": "url", + "id": "promo_link", + "label": "t:new_products.promo_link", + "info": "t:new_products.promo_link_info" + } + ], + "presets": [ + { + "name": "t:new_products.name" + } + ] +} +{% endschema %} diff --git a/sections/page.liquid b/sections/page.liquid new file mode 100644 index 0000000..1a3fea1 --- /dev/null +++ b/sections/page.liquid @@ -0,0 +1,17 @@ +{% comment %} + This section is used in the page template to render store pages like About us + or Contact us. + + https://shopify.dev/docs/storefronts/themes/architecture/templates/page +{% endcomment %} + +

{{ page.title }}

+ +{{ page.content }} + +{% schema %} +{ + "name": "t:general.page", + "settings": [] +} +{% endschema %} diff --git a/sections/password.liquid b/sections/password.liquid new file mode 100644 index 0000000..6f22721 --- /dev/null +++ b/sections/password.liquid @@ -0,0 +1,35 @@ +{% comment %} + This section is used in the password template to render landing page shown + when password protection is applied to a store. + + https://shopify.dev/docs/storefronts/themes/architecture/templates/password +{% endcomment %} + +

{{ 'password.title' | t }}

+ +{% if shop.password_message %} +

{{ shop.password_message }}

+{% endif %} + +{% form 'storefront_password' %} + {% if form.errors %} + {{ form.errors | default_errors }} + {% endif %} + + + + + + +{% endform %} + +{% schema %} +{ + "name": "t:general.password", + "settings": [] +} +{% endschema %} diff --git a/sections/product.liquid b/sections/product.liquid new file mode 100644 index 0000000..0fb295e --- /dev/null +++ b/sections/product.liquid @@ -0,0 +1,1390 @@ +{% liquid + assign current_variant = product.selected_or_first_available_variant + assign main_image = current_variant.image | default: product.featured_image + + assign subtitle = product.metafields.custom.subtitulo.value | default: product.metafields.custom.subtitulo + if subtitle == blank + assign subtitle = product.metafields.custom.subtitle.value | default: product.metafields.custom.subtitle + endif + if subtitle == blank + assign subtitle = product.metafields.custom.presentacion.value | default: product.metafields.custom.presentacion + endif + if subtitle == blank and current_variant.title != 'Default Title' + assign subtitle = current_variant.title + endif + + assign skin_label = product.metafields.custom.tipo_de_piel.value | default: product.metafields.custom.tipo_de_piel + if skin_label == blank + assign skin_label = product.metafields.custom.skin_type.value | default: product.metafields.custom.skin_type + endif + + assign badge_best = false + for tag in product.tags + assign tag_label = tag | downcase + if tag_label contains 'vendido' or tag_label contains 'bestseller' + assign badge_best = true + endif + endfor + + assign excerpt = product.metafields.custom.descripcion_corta.value | default: product.metafields.custom.descripcion_corta + if excerpt == blank + assign excerpt = product.metafields.custom.short_description.value | default: product.metafields.custom.excerpt.value + endif + if excerpt == blank + assign excerpt = product.description | strip_html | truncate: 180 + endif + + assign how_field = product.metafields.custom.como_aplicarlo + if how_field == blank + assign how_field = product.metafields.custom.how_to + endif + if how_field == blank + assign how_field = product.metafields.custom.modo_de_uso + endif + + assign ingredients_field = product.metafields.custom.ingredientes + if ingredients_field == blank + assign ingredients_field = product.metafields.custom.ingredients + endif + + assign payments_field = product.metafields.custom.metodos_de_pago + if payments_field == blank + assign payments_field = product.metafields.custom.payment_methods + endif + + assign before_source = product.metafields.custom.antes.value | default: product.metafields.custom.before.value | default: product.metafields.custom.imagen_antes.value + assign after_source = product.metafields.custom.despues.value | default: product.metafields.custom.after.value | default: product.metafields.custom.imagen_despues.value + assign compare_pair = product.metafields.custom.antes_despues.value | default: product.metafields.custom.before_after.value + if before_source == blank and compare_pair != blank + assign before_source = compare_pair.first + assign after_source = compare_pair.last + endif + + assign before_image = blank + if before_source.preview_image != blank + assign before_image = before_source.preview_image + elsif before_source.width != blank + assign before_image = before_source + endif + + assign after_image = blank + if after_source.preview_image != blank + assign after_image = after_source.preview_image + elsif after_source.width != blank + assign after_image = after_source + endif + + assign show_compare = false + if before_image != blank and after_image != blank + assign show_compare = true + endif + assign before_alt = 'product_page.before' | t + assign after_alt = 'product_page.after' | t + + assign show_sale = false + if current_variant.compare_at_price > current_variant.price + assign show_sale = true + endif + + assign rating_value = 0 + assign rating_count = 0 + if product.metafields.reviews.rating.value != blank + assign rating_value = product.metafields.reviews.rating.value.rating | round + endif + if product.metafields.reviews.rating_count.value != blank + assign rating_count = product.metafields.reviews.rating_count.value | plus: 0 + endif + + assign routine_products = product.metafields.custom.rutina.value | default: product.metafields.custom.completa_tu_rutina.value | default: product.metafields.custom.routine.value + assign also_products = product.metafields.custom.llevate.value | default: product.metafields.custom.llevate_tambien.value | default: product.metafields.custom.tambien.value + + assign review_items = product.metafields.custom.resenas.value | default: product.metafields.custom.reviews.value + assign review_count = 0 + if review_items != blank + assign review_count = review_items.size + endif + + assign routine_count = 0 + assign routine_ids = '|' + if routine_products != blank + for item in routine_products + if item.id != blank and item.id != product.id + assign routine_count = routine_count | plus: 1 + assign routine_ids = routine_ids | append: item.id | append: '|' + endif + endfor + endif + + assign also_count = 0 + if also_products != blank + for item in also_products + assign item_token = '|' | append: item.id | append: '|' + if item.id != blank and item.id != product.id + unless routine_ids contains item_token + assign also_count = also_count | plus: 1 + endunless + endif + endfor + endif + + assign show_reviews = false + if rating_count > 0 or review_count > 0 + assign show_reviews = true + endif + + assign review_pages = review_count | plus: 2 | divided_by: 3 + assign main_alt = main_image.alt | default: product.title +%} + +
+
+ + +
+ {% if badge_best or skin_label != blank %} +
+ {% if badge_best %} + {{ 'bestsellers.badge' | t }} + {% endif %} + {% if skin_label != blank %} + {{ skin_label | escape }} + {% endif %} +
+ {% endif %} + +

{{ product.title | escape }}

+ {% if subtitle != blank %} +

{{ subtitle | escape }}

+ {% endif %} + + {% if rating_count > 0 %} +
+ +

{{ 'bestsellers.reviews' | t: count: rating_count }}

+
+ {% endif %} + +

+ {{ current_variant.price | money_without_trailing_zeros }} + + {% if show_sale %}{{ current_variant.compare_at_price | money_without_trailing_zeros }}{% endif %} + +

+ + {% if excerpt != blank %} +

{{ excerpt | escape }}

+ {% endif %} + + {% form 'product', product, class: 'product__form' %} + + + {% unless product.has_only_default_variant %} +

+ {{ 'product_page.options' | t: option: current_variant.title }} +

+
+ {% for variant in product.variants %} + {% liquid + assign variant_image = variant.image + if variant_image == blank and variant.featured_media + assign variant_image = variant.featured_media.preview_image + endif + if variant_image == blank + assign variant_image = product.featured_image + endif + assign variant_sale = false + if variant.compare_at_price > variant.price + assign variant_sale = true + endif + %} + + {% endfor %} +
+ {% endunless %} + +
    +
  • + {{ 'icon-marquee-shipping.svg' | inline_asset_content }} + {{ 'product_page.shipping' | t }} +
  • +
  • + {{ 'icon-marquee-card.svg' | inline_asset_content }} + {{ 'product_page.payment' | t }} +
  • +
  • + {{ 'icon-marquee-wallet.svg' | inline_asset_content }} + {{ 'product_page.installments' | t }} +
  • +
  • + {{ 'icon-marquee-guarantee.svg' | inline_asset_content }} + {{ 'product_page.guarantee' | t }} +
  • +
+ +
+
+ + + +
+ +
+ + {% endform %} + + + +
+ {% if product.description != blank %} +
+ + {{ 'product_page.description' | t }} + + +
{{ product.description }}
+
+ {% endif %} + {% if how_field != blank %} +
+ + {{ 'product_page.how_to' | t }} + + +
{{ how_field | metafield_tag }}
+
+ {% endif %} + {% if ingredients_field != blank %} +
+ + {{ 'product_page.ingredients' | t }} + + +
{{ ingredients_field | metafield_tag }}
+
+ {% endif %} +
+ + {{ 'product_page.payments' | t }} + + +
+ {% if payments_field != blank %} + {{ payments_field | metafield_tag }} + {% else %} +

{{ 'product_page.payments_text' | t }}

+ {% endif %} +
+
+
+ +
+

{{ 'product_page.routine' | t }}

+
+ {% if routine_products != blank %} + {% assign routine_shown = 0 %} + {% for item in routine_products %} + {% if routine_shown < 2 and item.id != blank and item.id != product.id %} + {% assign routine_key = 'routine-' | append: item.id %} + {% render 'collection-card', product: item, form_suffix: routine_key %} + {% assign routine_shown = routine_shown | plus: 1 %} + {% endif %} + {% endfor %} + {% endif %} +
+
+
+
+ + {% if show_compare %} +
+
+ {{ + before_image + | image_url: width: 1400 + | image_tag: alt: before_alt, loading: 'lazy', widths: '600, 1000, 1400', sizes: '(min-width: 1120px) 45vw, 50vw' + }} + {{ 'product_page.before' | t }} +
+
+ {{ + after_image + | image_url: width: 1400 + | image_tag: alt: after_alt, loading: 'lazy', widths: '600, 1000, 1400', sizes: '(min-width: 1120px) 45vw, 50vw' + }} + {{ 'product_page.after' | t }} +
+ +
+ {% endif %} + +
+

{{ 'product_page.also' | t }}

+
+ {% if also_products != blank %} + {% assign also_shown = 0 %} + {% for item in also_products %} + {% assign item_token = '|' | append: item.id | append: '|' %} + {% if also_shown < 4 and item.id != blank and item.id != product.id %} + {% unless routine_ids contains item_token %} + {% assign also_key = 'also-' | append: item.id %} + {% render 'collection-card', product: item, form_suffix: also_key %} + {% assign also_shown = also_shown | plus: 1 %} + {% endunless %} + {% endif %} + {% endfor %} + {% endif %} +
+
+ + {% if show_reviews %} +
+

{{ 'product_page.reviews' | t }}

+ {% if rating_count > 0 %} +
+
+

{{ 'product_page.rating_of' | t: rating: rating_value }}

+

{{ 'product_page.based_on' | t: count: rating_count }}

+
+ +
+ {% endif %} + + {% if review_items != blank %} +
+ {% for review in review_items %} + {% liquid + assign review_field = review.texto | default: review.text | default: review.comentario | default: review.resena + assign review_author = review.autor.value | default: review.autor | default: review.author.value | default: review.nombre.value | default: review.name.value + assign review_stars = review.calificacion.value | default: review.rating.value | default: 5 | round + assign review_photo = review.foto.value | default: review.image.value | default: review.avatar.value + assign review_image = blank + if review_photo.preview_image != blank + assign review_image = review_photo.preview_image + elsif review_photo.width != blank + assign review_image = review_photo + endif + if review_author == blank + assign review_author = 'product_page.reviewer' | t + endif + assign review_initial = review_author | slice: 0, 1 | upcase + assign review_plain = '' + if review.id == blank + assign review_plain = review | strip + endif + %} + {% if review_field != blank or review_plain != blank %} +
3 %}hidden{% endif %}> + {% if review_image %} + {{ review_image | image_url: width: 120 | image_tag: class: 'product__avatar', alt: review_author, loading: 'lazy' }} + {% else %} + + {% endif %} +
+

{{ review_author | escape }}

+ +
+ {% if review_field != blank %} + {{ review_field | metafield_tag }} + {% else %} + {{ review_plain | escape | newline_to_br }} + {% endif %} +
+
+
+ {% endif %} + {% endfor %} +
+ {% if review_count > 3 %} + + {% endif %} + {% endif %} +
+ {% endif %} +
+ +{% stylesheet %} + .product { + box-sizing: border-box; + width: 100%; + padding: 24px 50px 88px; + background: #fff; + color: #111; + font-family: inherit; + } + + .product__hero { + display: grid; + grid-template-columns: minmax(0, 1.6fr) minmax(340px, 640px); + align-items: start; + gap: 10px; + } + + .product__details { + position: sticky; + top: 24px; + align-self: start; + min-width: 0; + padding: 8px 10px 0 36px; + } + + .product__gallery { + display: flex; + flex-direction: column; + gap: 10px; + min-width: 0; + } + + .product__main-image, + .product__thumbs img { + display: block; + width: 100%; + height: auto; + aspect-ratio: 1; + object-fit: cover; + background: #f4f4f4; + } + + .product__thumbs { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 10px; + } + + .product__badges { + display: flex; + flex-wrap: wrap; + gap: 8px; + margin: 0 0 12px; + } + + .product__badge { + display: inline-flex; + align-items: center; + height: 22px; + padding: 0 8px; + border-radius: 4px; + font-size: 12px; + font-weight: 500; + line-height: 1; + } + + .product__badge--best { + background: #bfffb2; + } + + .product__badge--skin { + background: #f7c585; + } + + .product__title { + margin: 0; + font-size: 32px; + line-height: 1.1; + font-weight: 700; + } + + .product__subtitle { + margin: 6px 0 0; + color: #808181; + font-size: 16px; + font-weight: 300; + } + + .product__rating, + .product__summary { + display: flex; + align-items: center; + gap: 8px; + } + + .product__rating { + margin-top: 10px; + } + + .product__reviews-count, + .product__based { + margin: 0; + color: #808181; + font-size: 14px; + font-weight: 300; + } + + .product__stars { + display: inline-flex; + gap: 2px; + color: #111; + } + + .product__star.is-off { + color: #d5d5d5; + } + + .product__price { + display: flex; + align-items: baseline; + gap: 10px; + margin: 12px 0 0; + font-size: 24px; + font-weight: 700; + } + + .product__price s { + color: #808181; + font-size: 18px; + font-weight: 400; + } + + .product__excerpt { + margin: 12px 0 0; + font-size: 16px; + font-weight: 300; + line-height: 1.45; + } + + .product__options-label { + margin: 18px 0 0; + font-size: 16px; + font-weight: 500; + } + + .product__swatches { + display: flex; + gap: 12px; + margin-top: 10px; + overflow-x: auto; + } + + .product__swatch { + width: 140px; + flex: none; + padding: 10px 10px 12px; + border: 1px solid #e6e6e6; + border-radius: 10px; + background: #fff; + text-align: center; + cursor: pointer; + } + + .product__swatch.is-selected { + border-color: #111; + } + + .product__swatch img { + display: block; + width: 120px; + height: 120px; + margin: 0 auto 8px; + object-fit: cover; + } + + .product__swatch span { + display: block; + font-size: 14px; + font-weight: 400; + } + + .product__trust { + display: flex; + flex-direction: column; + gap: 15px; + margin: 18px 0; + padding: 15px 20px; + border: 1px solid #ececec; + border-radius: 12px; + list-style: none; + } + + .product__trust-row { + display: flex; + align-items: center; + gap: 12px; + font-size: 15px; + font-weight: 300; + line-height: 20px; + } + + .product__trust-icon { + display: flex; + flex: none; + width: 20px; + height: 20px; + } + + .product__trust-icon svg { + width: 20px; + height: 20px; + } + + .product__purchase { + display: flex; + gap: 12px; + } + + .product__qty { + display: flex; + flex: none; + align-items: center; + justify-content: space-between; + width: 160px; + height: 50px; + padding: 0 14px; + border: 1px solid #111; + border-radius: 60px; + } + + .product__qty button, + .product__add, + .product__buy, + .product__favorite, + .product__pager button { + font-family: inherit; + } + + .product__qty button { + width: 28px; + height: 28px; + border: 0; + background: transparent; + font-size: 20px; + line-height: 1; + cursor: pointer; + } + + .product__qty input { + width: 42px; + border: 0; + background: transparent; + text-align: center; + font-size: 16px; + -moz-appearance: textfield; + } + + .product__qty input::-webkit-outer-spin-button, + .product__qty input::-webkit-inner-spin-button { + margin: 0; + -webkit-appearance: none; + } + + .product__add, + .product__buy { + height: 50px; + border-radius: 60px; + font-size: 16px; + font-weight: 300; + cursor: pointer; + } + + .product__add { + flex: 1; + border: 0; + background: #111; + color: #fff; + } + + .product__buy { + width: 100%; + margin-top: 10px; + border: 1px solid #111; + background: #fff; + color: #111; + } + + .product__add:disabled, + .product__buy:disabled { + cursor: not-allowed; + opacity: 0.45; + } + + .product__favorite { + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + width: 100%; + height: 50px; + margin-top: 4px; + border: 0; + background: transparent; + font-size: 16px; + font-weight: 300; + cursor: pointer; + } + + .product__favorite.is-active svg path { + fill: currentColor; + } + + .product__accordions { + margin-top: 8px; + border-top: 1px solid #ececec; + } + + .product__accordion { + border-bottom: 1px solid #ececec; + } + + .product__accordion summary { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + min-height: 52px; + font-size: 16px; + font-weight: 300; + list-style: none; + cursor: pointer; + } + + .product__accordion summary::-webkit-details-marker { + display: none; + } + + .product__chevron { + flex: none; + transition: transform 0.2s ease; + } + + .product__accordion[open] .product__chevron { + transform: rotate(180deg); + } + + .product__accordion-body { + padding: 0 0 16px; + color: #333; + font-size: 15px; + font-weight: 300; + line-height: 1.5; + } + + .product__accordion-body img { + max-width: 100%; + height: auto; + } + + .product__routine { + margin-top: 28px; + } + + .product__routine-title, + .product__block-title { + margin: 0 0 16px; + font-weight: 500; + } + + .product__routine-title { + font-size: 16px; + } + + .product__block-title { + margin-bottom: 24px; + font-size: 32px; + } + + .product__routine-grid, + .product__also-grid { + display: grid; + gap: 20px; + } + + .product__routine-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .product__also-grid { + grid-template-columns: repeat(4, minmax(0, 1fr)); + } + + .product__routine .collection-card__title { + font-size: 15px; + } + + .product__routine .collection-card__subtitle, + .product__routine .collection-card__reviews { + font-size: 12px; + } + + .product__compare { + display: flex; + height: 550px; + margin-top: 56px; + overflow: hidden; + border-radius: 16px; + position: relative; + } + + .product__compare-pane { + position: relative; + flex: 1; + min-width: 0; + } + + .product__compare-pane img { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } + + .product__compare-label { + position: absolute; + top: 24px; + left: 24px; + display: inline-flex; + align-items: center; + height: 44px; + padding: 0 22px; + border-radius: 999px; + background: #fff; + font-size: 16px; + font-weight: 500; + } + + .product__compare-label--after { + right: 24px; + left: auto; + } + + .product__compare-mark { + position: absolute; + top: 50%; + left: 50%; + width: min(280px, 28%); + height: auto; + transform: translate(-50%, -50%); + filter: brightness(0) invert(1); + pointer-events: none; + } + + .product__also, + .product__reviews { + margin-top: 72px; + } + + .product__score { + margin: 0; + font-size: 28px; + font-weight: 600; + } + + .product__summary { + justify-content: space-between; + align-items: flex-end; + margin-bottom: 8px; + } + + .product__review { + display: grid; + grid-template-columns: 56px minmax(0, 1fr); + gap: 16px; + padding: 20px 0; + border-top: 1px solid #ececec; + } + + .product__avatar { + display: grid; + width: 56px; + height: 56px; + place-items: center; + overflow: hidden; + border-radius: 50%; + background: #f3f3f3; + font-weight: 600; + } + + img.product__avatar { + display: block; + object-fit: cover; + } + + .product__review-name { + margin: 0 0 6px; + font-size: 16px; + font-weight: 600; + } + + .product__review-text { + margin-top: 8px; + font-size: 15px; + font-weight: 300; + line-height: 1.5; + } + + .product__pager { + display: flex; + justify-content: center; + gap: 8px; + margin-top: 28px; + } + + .product__pager button { + display: grid; + width: 40px; + height: 40px; + place-items: center; + border: 0; + border-radius: 50%; + background: transparent; + cursor: pointer; + } + + .product__pager button.is-current { + background: #111; + color: #fff; + } + + .product__pager [data-review-next] { + background: #c9c9c9; + } + + .product [hidden] { + display: none !important; + } + + @media (max-width: 1119px) { + .product { + padding: 16px 20px 64px; + } + + .product__hero { + grid-template-columns: 1fr; + } + + .product__details { + position: static; + padding: 24px 0 0; + } + + .product__also-grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + + .product__compare { + height: 360px; + } + } + + @media (max-width: 767px) { + .product { + padding: 12px 16px 56px; + } + + .product__title { + font-size: 26px; + } + + .product__block-title { + font-size: 24px; + } + + .product__compare { + height: 240px; + margin-top: 32px; + border-radius: 12px; + } + + .product__compare-label { + top: 12px; + left: 12px; + height: 34px; + padding: 0 14px; + font-size: 13px; + } + + .product__compare-label--after { + right: 12px; + } + + .product__compare-mark { + display: none; + } + + .product__also, + .product__reviews { + margin-top: 40px; + } + + .product__summary { + align-items: flex-start; + flex-direction: column; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + if (window.__seasonProduct) return; + window.__seasonProduct = true; + + const wishlistKey = 'seasons-wishlist'; + + const readList = (key) => { + try { + const stored = JSON.parse(window.localStorage.getItem(key)); + return Array.isArray(stored) ? stored.map(String) : []; + } catch (error) { + return []; + } + }; + + const root = document.querySelector('[data-product-page]'); + if (!root) return; + + const handle = root.dataset.productHandle; + if (handle) { + const handles = [handle].concat(readList('seasons-recent').filter((item) => item !== handle)).slice(0, 8); + window.localStorage.setItem('seasons-recent', JSON.stringify(handles)); + } + + const applyWish = () => { + const saved = readList(wishlistKey); + root.querySelectorAll('[data-product-wish]').forEach((button) => { + const active = saved.includes(String(button.dataset.productId)); + button.classList.toggle('is-active', active); + button.setAttribute('aria-pressed', active ? 'true' : 'false'); + const label = active ? button.dataset.labelSaved : button.dataset.labelSave; + if (label) button.setAttribute('aria-label', label); + }); + }; + + applyWish(); + + const form = root.querySelector('.product__form'); + const qtyInput = root.querySelector('[data-qty-input]'); + + root.addEventListener('click', (event) => { + const wish = event.target.closest('[data-product-wish]'); + if (wish && root.contains(wish)) { + const id = String(wish.dataset.productId || ''); + if (!id) return; + const saved = readList(wishlistKey); + const next = saved.includes(id) ? saved.filter((item) => item !== id) : saved.concat(id); + window.localStorage.setItem(wishlistKey, JSON.stringify(next)); + applyWish(); + return; + } + + const qtyButton = event.target.closest('[data-qty]'); + if (qtyButton && qtyInput && root.contains(qtyButton)) { + const current = Math.max(1, Number(qtyInput.value) || 1); + qtyInput.value = String(qtyButton.dataset.qty === 'down' ? Math.max(1, current - 1) : current + 1); + return; + } + + const option = event.target.closest('[data-variant]'); + if (!option || !root.contains(option)) return; + root.querySelectorAll('[data-variant]').forEach((node) => { + node.classList.toggle('is-selected', node === option); + }); + const idInput = form?.querySelector('[name="id"]'); + if (idInput) idInput.value = option.dataset.id || idInput.value; + const price = root.querySelector('[data-price]'); + if (price) price.textContent = option.dataset.price || ''; + const compare = root.querySelector('[data-compare]'); + if (compare) { + if (option.dataset.compare) { + compare.hidden = false; + compare.textContent = option.dataset.compare; + } else { + compare.hidden = true; + compare.textContent = ''; + } + } + const optionLabel = root.querySelector('[data-option-template]'); + if (optionLabel) { + const template = optionLabel.dataset.optionTemplate || ''; + optionLabel.textContent = template.replace('__OPTION__', option.dataset.title || ''); + } + const available = option.dataset.available === 'true'; + const addButton = root.querySelector('[data-add]'); + const buyButton = root.querySelector('[data-buy]'); + if (addButton) { + addButton.disabled = !available; + addButton.textContent = available ? addButton.dataset.label || addButton.textContent : addButton.dataset.soldOut || addButton.textContent; + } + if (buyButton) buyButton.disabled = !available; + const main = root.querySelector('[data-main-image]'); + if (main && option.dataset.image) { + main.removeAttribute('srcset'); + main.src = option.dataset.image; + } + }); + + form?.addEventListener('submit', async (event) => { + const submitter = event.submitter; + if (!(submitter instanceof HTMLButtonElement) || !submitter.hasAttribute('data-buy')) return; + event.preventDefault(); + if (submitter.disabled) return; + const variantId = form.querySelector('[name="id"]')?.value; + const quantity = Math.max(1, Number(qtyInput?.value) || 1); + if (!variantId) return; + submitter.disabled = true; + try { + const response = await fetch(`${form.action}.js`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + body: JSON.stringify({ id: Number(variantId), quantity }), + }); + if (!response.ok) { + form.submit(); + return; + } + window.location.href = `${window.Shopify?.routes?.root || '/'}checkout`; + } catch (error) { + form.submit(); + } + }); + + const usedHandles = () => { + return new Set( + [...root.querySelectorAll('.collection-card__title')] + .map((link) => { + const href = link.getAttribute('href') || ''; + const parts = href.split('/').filter(Boolean); + return parts[parts.length - 1] || ''; + }) + .filter(Boolean) + ); + }; + + const fillRecs = async (block) => { + if (!block || block.dataset.filled === 'true') return; + const list = block.querySelector('[data-recs-list]'); + const productId = root.dataset.productId; + if (!list || !productId) return; + const base = (root.dataset.root || '/').replace(/\/?$/, '/'); + const limit = Number(block.dataset.limit) || 4; + try { + const response = await fetch( + `${base}recommendations/products.json?product_id=${productId}&limit=${limit + 2}&intent=${block.dataset.recs || 'related'}` + ); + if (!response.ok) throw new Error('recommendations'); + const data = await response.json(); + const skip = usedHandles(); + skip.add(root.dataset.productHandle || ''); + const products = (data.products || []) + .filter((item) => item && item.handle && !skip.has(item.handle)) + .slice(0, limit); + if (!products.length) { + block.hidden = true; + return; + } + const cards = await Promise.all( + products.map(async (item) => { + const html = await fetch(`${base}products/${item.handle}?view=card`).then((result) => result.text()); + const wrapper = document.createElement('div'); + wrapper.innerHTML = html; + return wrapper.firstElementChild; + }) + ); + const nodes = cards.filter(Boolean); + if (!nodes.length) { + block.hidden = true; + return; + } + list.replaceChildren(...nodes); + block.hidden = false; + block.dataset.filled = 'true'; + } catch (error) { + block.hidden = true; + } + }; + + (async () => { + const blocks = [...root.querySelectorAll('[data-product-block]')]; + for (const block of blocks) { + await fillRecs(block); + } + })(); + + const reviewNodes = [...root.querySelectorAll('[data-review]')]; + const pager = root.querySelector('[data-review-pager]'); + if (reviewNodes.length && pager) { + const pageSize = 3; + const pageButtons = [...pager.querySelectorAll('[data-review-page]')]; + const showPage = (page) => { + const maxPage = Math.max(0, pageButtons.length - 1); + const nextPage = Math.min(Math.max(0, page), maxPage); + reviewNodes.forEach((node, index) => { + const visible = index >= nextPage * pageSize && index < (nextPage + 1) * pageSize; + node.hidden = !visible; + }); + pageButtons.forEach((button) => { + button.classList.toggle('is-current', Number(button.dataset.reviewPage) === nextPage); + }); + pager.dataset.page = String(nextPage); + }; + pager.addEventListener('click', (event) => { + const pageButton = event.target.closest('[data-review-page]'); + if (pageButton) { + showPage(Number(pageButton.dataset.reviewPage)); + return; + } + if (event.target.closest('[data-review-next]')) { + showPage(Number(pager.dataset.page || 0) + 1); + } + }); + } +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:product_page.name", + "settings": [ + { + "type": "paragraph", + "content": "t:product_page.metafields" + } + ], + "disabled_on": { + "groups": ["header", "footer"] + } +} +{% endschema %} diff --git a/sections/recently-viewed.liquid b/sections/recently-viewed.liquid new file mode 100644 index 0000000..a2e2547 --- /dev/null +++ b/sections/recently-viewed.liquid @@ -0,0 +1,117 @@ +
+
+

{{ 'collection_page.recent' | t }}

+
+ {% if collection != blank %} + {% for product in collection.products limit: 4 %} + {% assign card_suffix = section.id | append: '-recent-' | append: forloop.index %} + {% render 'collection-card', product: product, form_suffix: card_suffix %} + {% endfor %} + {% endif %} +
+
+
+ +{% stylesheet %} + .recent { + background: #f9f9fa; + color: #000; + } + + .recent__inner { + padding: 10px 100px 80px; + } + + .recent__title { + margin: 0 0 24px; + font-size: 20px; + font-weight: 500; + letter-spacing: 0.04em; + line-height: normal; + text-transform: uppercase; + } + + .recent__grid { + display: grid; + grid-template-columns: repeat(4, minmax(0, 1fr)); + gap: 28px 20px; + } + + @media (max-width: 1119px) { + .recent__inner { + padding-right: 24px; + padding-left: 24px; + } + + .recent__grid { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + } + + @media (max-width: 767px) { + .recent__inner { + padding: 8px 10px 48px; + } + + .recent__title { + margin-bottom: 16px; + font-size: 16px; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + if (window.__seasonRecent) return; + window.__seasonRecent = true; + + const storageKey = 'seasons-recent'; + + const boot = async (root) => { + if (!root || root.dataset.ready === 'true') return; + root.dataset.ready = 'true'; + + let handles = []; + try { + const stored = JSON.parse(window.localStorage.getItem(storageKey)); + if (Array.isArray(stored)) handles = stored.map(String).filter(Boolean); + } catch (error) { + handles = []; + } + + handles = handles.slice(0, 4); + const list = root.querySelector('[data-recent-list]'); + if (!list) return; + + if (handles.length) { + const prefix = `${root.dataset.root || '/'}`.replace(/\/?$/, '/'); + const cards = await Promise.all(handles.map(async (handle) => { + try { + const response = await fetch(`${prefix}products/${encodeURIComponent(handle)}?view=card`, { headers: { Accept: 'text/html' } }); + if (!response.ok) return null; + const holder = document.createElement('div'); + holder.innerHTML = (await response.text()).trim(); + return holder.querySelector('.collection-card'); + } catch (error) { + return null; + } + })); + const ready = cards.filter(Boolean); + if (ready.length) list.replaceChildren(...ready); + } + + root.hidden = list.children.length === 0; + }; + + document.querySelectorAll('[data-recent]').forEach(boot); +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:collection_page.recent_name", + "tag": "section", + "class": "recent-section", + "settings": [] +} +{% endschema %} diff --git a/sections/routine.liquid b/sections/routine.liquid new file mode 100644 index 0000000..bbbf2be --- /dev/null +++ b/sections/routine.liquid @@ -0,0 +1,411 @@ +{% liquid + if section.settings.heading != blank + assign heading = section.settings.heading + else + assign heading = 'routine.heading' | t + endif + + if section.settings.cover_link != blank + assign cover_tag = 'a' + else + assign cover_tag = 'div' + endif +%} + +
+
+ <{{ cover_tag }} + class="routine__cover" + {% if cover_tag == 'a' %} + href="{{ section.settings.cover_link }}" + {% endif %} + > + {% if section.settings.cover_image != blank %} + {{ + section.settings.cover_image + | image_url: width: 1700 + | image_tag: + alt: heading, + widths: '400, 800, 1200, 1700', + sizes: '(max-width: 1024px) calc(100vw - 30px), 50vw', + class: 'routine__cover-image', + loading: 'eager' + }} + {% else %} + {{ heading | escape }} + {% endif %} +

{{ heading | escape | newline_to_br }}

+ + +
+ {% for block in section.blocks %} + {% liquid + if block.settings.title != blank + assign step_title = block.settings.title + else + assign step_key = 'routine.steps.step_' | append: forloop.index + assign step_title = step_key | t + endif + + if block.settings.link != blank + assign step_tag = 'a' + else + assign step_tag = 'div' + endif + + assign fallback_image = blank + case forloop.index + when 1 + assign fallback_image = 'routine-limpia.avif' + when 2 + assign fallback_image = 'routine-trata.avif' + when 3 + assign fallback_image = 'routine-hidrata.avif' + when 4 + assign fallback_image = 'routine-protege.avif' + endcase + %} + + <{{ step_tag }} + class="routine__card" + {{ block.shopify_attributes }} + {% if step_tag == 'a' %} + href="{{ block.settings.link }}" + {% endif %} + > + + {% if block.settings.image != blank %} + {{ + block.settings.image + | image_url: width: 900 + | image_tag: + alt: step_title, + widths: '245, 415, 830', + sizes: '(max-width: 1024px) 245px, 25vw', + class: 'routine__image', + loading: 'lazy' + }} + {% elsif fallback_image != blank %} + {{ step_title | escape }} + {% endif %} + + + + {{ step_title | escape }} + + + + {% else %} + {% if request.design_mode %} +

{{ 'routine.empty' | t }}

+ {% endif %} + {% endfor %} +
+
+
+ +{% stylesheet %} + .routine { + padding: 50px 0; + color: #000; + background: #fff; + font-family: Archivo, sans-serif; + } + + .routine__layout { + display: grid; + grid-template-columns: minmax(0, 849fr) minmax(0, 850fr); + gap: 21px; + align-items: stretch; + padding-inline: 100px; + } + + .routine__cover { + position: relative; + display: block; + min-height: 0; + height: 100%; + overflow: hidden; + border-radius: 10px; + color: inherit; + text-decoration: none; + } + + .routine__cover-image { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } + + .routine__heading { + position: absolute; + top: 40px; + left: 40px; + margin: 0; + color: #000; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: 50px; + font-weight: 400; + line-height: 0.98; + } + + .routine__steps { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 20px; + min-width: 0; + } + + .routine__card { + position: relative; + display: block; + min-width: 0; + color: inherit; + text-decoration: none; + container-type: inline-size; + } + + .routine__media { + position: relative; + display: block; + aspect-ratio: 415 / 436; + overflow: hidden; + border-radius: 10px; + background: #f4f4f4; + } + + .routine__image { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } + + .routine__shade { + position: absolute; + inset: 0; + background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2)); + pointer-events: none; + } + + .routine__caption { + position: absolute; + right: 20px; + bottom: 10px; + left: 20px; + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + color: #fff; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: clamp(16px, 7.2cqi, 30px); + font-weight: 400; + line-height: normal; + } + + .routine__label { + min-width: 0; + white-space: nowrap; + } + + .routine__arrow { + display: grid; + flex: 0 0 30px; + width: 30px; + height: 30px; + place-items: center; + border-radius: 60px; + background: #9dd6c7; + } + + .routine__arrow-icon { + display: block; + transform: rotate(90deg); + } + + .routine__empty { + grid-column: 1 / -1; + margin: 0; + font-size: 14px; + } + + .routine__cover:focus-visible, + .routine__card:focus-visible { + outline: 2px solid #000; + outline-offset: 2px; + } + + @media (max-width: 1439px) { + .routine__layout { + padding-inline: 40px; + } + } + + @media (max-width: 1024px) { + .routine { + padding-top: 40px; + padding-bottom: 20px; + } + + .routine__layout { + display: block; + padding-inline: 0; + } + + .routine__cover { + height: 391px; + margin-inline: 15px; + } + + .routine__heading { + top: 10px; + left: 20px; + width: 155px; + font-size: 25px; + line-height: 1; + } + + .routine__steps { + display: flex; + gap: 20px; + margin-top: 0; + padding: 20px 15px; + overflow-x: auto; + scroll-snap-type: x mandatory; + scroll-padding-inline: 15px; + scrollbar-width: none; + } + + .routine__steps::-webkit-scrollbar { + display: none; + } + + .routine__card { + flex: 0 0 245px; + width: 245px; + scroll-snap-align: start; + } + + .routine__media { + height: 258px; + aspect-ratio: auto; + } + + .routine__caption { + position: static; + margin-top: 10px; + color: #000; + font-size: 22px; + } + + .routine__arrow { + display: none; + } + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:routine.name", + "tag": "section", + "class": "routine-section", + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [ + { + "type": "textarea", + "id": "heading", + "label": "t:routine.heading", + "default": "Tu rutina\nen 4 pasos" + }, + { + "type": "image_picker", + "id": "cover_image", + "label": "t:routine.cover_image", + "info": "t:routine.cover_image_info" + }, + { + "type": "url", + "id": "cover_link", + "label": "t:routine.cover_link" + } + ], + "blocks": [ + { + "type": "step", + "name": "t:routine.step", + "limit": 4, + "settings": [ + { + "type": "image_picker", + "id": "image", + "label": "t:routine.step_image", + "info": "t:routine.step_image_info" + }, + { + "type": "text", + "id": "title", + "label": "t:routine.step_title" + }, + { + "type": "url", + "id": "link", + "label": "t:routine.step_link" + } + ] + } + ], + "presets": [ + { + "name": "t:routine.name", + "blocks": [ + { + "type": "step", + "settings": { + "title": "Paso 1: Limpia" + } + }, + { + "type": "step", + "settings": { + "title": "Paso 2: Trata" + } + }, + { + "type": "step", + "settings": { + "title": "Paso 3: Hidrata" + } + }, + { + "type": "step", + "settings": { + "title": "Paso 4: Protege" + } + } + ] + } + ] +} +{% endschema %} diff --git a/sections/search.liquid b/sections/search.liquid new file mode 100644 index 0000000..7177c18 --- /dev/null +++ b/sections/search.liquid @@ -0,0 +1,70 @@ +{% comment %} + This section is used in the search template to render search results for + products, articles, and pages. + + https://shopify.dev/docs/storefronts/themes/architecture/templates/search +{% endcomment %} + +

{{ 'search.title' | t }}

+ +
+ + +
+ +{% if search.performed %} + {% if search.results_count == 0 %} +

{{ 'search.no_results_html' | t: terms: search.terms }}

+ {% else %} +

{{ 'search.results_for_html' | t: terms: search.terms, count: search.results_count }}

+ +
+ {% paginate search.results by 20 %} + {% # Search result items may be an article, a page, or a product. %} + {% for result in search.results %} +
+ {% assign featured_image = result.featured_image | default: result.image %} + {% if featured_image %} + {% render 'image', class: 'search-result__image', image: featured_image, url: result.url, width: 400 %} + {% endif %} +
+

+ {{ result.title | link_to: result.url }} + {% if result.price %} + {{ result.price | money_with_currency }} + {% endif %} +

+
+
+ {% endfor %} + + {{ paginate | default_pagination }} + {% endpaginate %} +
+ {% endif %} +{% endif %} + +{% stylesheet %} + .search-results { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + } + .search-results .prev, + .search-results .page, + .search-results .next { + grid-column: 1 / -1; + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:general.search", + "settings": [] +} +{% endschema %} diff --git a/sections/signup.liquid b/sections/signup.liquid new file mode 100644 index 0000000..3e74305 --- /dev/null +++ b/sections/signup.liquid @@ -0,0 +1,420 @@ +{% liquid + if section.settings.line_1 != blank + assign line_1 = section.settings.line_1 + else + assign line_1 = 'signup.line_1' | t + endif + + if section.settings.line_2 != blank + assign line_2 = section.settings.line_2 + else + assign line_2 = 'signup.line_2' | t + endif + + if section.settings.line_3 != blank + assign line_3 = section.settings.line_3 + else + assign line_3 = 'signup.line_3' | t + endif + + if section.settings.line_4 != blank + assign line_4 = section.settings.line_4 + else + assign line_4 = 'signup.line_4' | t + endif + + if section.settings.text != blank + assign text = section.settings.text + else + assign text = 'signup.text' | t + endif + + if section.settings.placeholder != blank + assign placeholder = section.settings.placeholder + else + assign placeholder = 'signup.placeholder' | t + endif + + assign form_id = 'SignupForm-' | append: section.id + assign email_id = 'SignupEmail-' | append: section.id + assign message_id = 'SignupMessage-' | append: section.id +%} + + + +{% stylesheet %} + .signup { + padding: 50px 100px 63px; + background: #fff; + color: #000; + font-family: Archivo, sans-serif; + } + + .signup__panel { + position: relative; + display: flex; + align-items: center; + justify-content: center; + min-height: 450px; + overflow: hidden; + border-radius: 10px; + background: linear-gradient(128.45deg, #7dcaaf 0%, #a9ddfa 114.42%, #d2ebf9 133.7%); + } + + .signup__art { + position: absolute; + top: 40.9px; + left: 82px; + width: 317px; + height: 360.19px; + overflow: hidden; + pointer-events: none; + } + + .signup__art img { + display: block; + width: 317px; + height: 360.19px; + max-width: none; + object-fit: contain; + } + + .signup__copy { + position: relative; + z-index: 1; + display: flex; + flex-direction: column; + align-items: center; + gap: 20px; + width: min(100%, 804px); + padding: 82px 24px; + } + + .signup__title { + width: 100%; + margin: 0; + color: #000; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: 40px; + font-weight: 500; + line-height: 45px; + text-align: center; + text-transform: uppercase; + } + + .signup__line { + display: block; + } + + .signup__line--medium { + font-weight: 500; + } + + .signup__line--light { + font-weight: 300; + } + + .signup__text { + width: 100%; + max-width: 804px; + margin: 0; + color: #000; + font-family: Archivo, sans-serif; + font-size: 20px; + font-weight: 300; + line-height: 30px; + text-align: center; + } + + .signup__form { + display: flex; + flex-direction: column; + align-items: center; + margin: 0; + } + + .signup__field { + display: flex; + align-items: center; + justify-content: space-between; + width: 400px; + max-width: 100%; + height: 50px; + padding: 0 30px; + border-radius: 100px; + background: #fff; + } + + .signup__field:focus-within { + outline: 2px solid #000; + outline-offset: 3px; + } + + .signup__label { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; + } + + .signup__input { + flex: 1; + min-width: 0; + height: 100%; + padding: 0; + border: 0; + border-radius: 0; + background: transparent; + color: #000; + font-family: Archivo, sans-serif; + font-size: 16px; + font-weight: 300; + line-height: normal; + outline: none; + } + + .signup__input::placeholder { + color: #808181; + opacity: 1; + } + + .signup__submit { + display: flex; + flex-shrink: 0; + align-items: center; + justify-content: center; + width: 20px; + height: 20px; + margin-left: 12px; + padding: 0; + border: 0; + background: transparent; + color: #000; + cursor: pointer; + } + + .signup__arrow { + display: block; + width: 20px; + height: 20px; + transform: rotate(90deg); + } + + .signup__arrow img { + display: block; + width: 20px; + height: 20px; + max-width: none; + } + + .signup__message { + margin: 12px 0 0; + font-size: 14px; + font-weight: 400; + line-height: 1.35; + text-align: center; + } + + .signup__message--error { + color: #9b1c1c; + } + + @media (max-width: 1439px) { + .signup { + padding-inline: 40px; + } + + .signup__panel { + min-height: 380px; + } + + .signup__art { + left: 24px; + transform: scale(0.72); + transform-origin: left center; + } + + .signup__copy { + width: min(100%, 640px); + padding-block: 48px; + } + + .signup__title { + font-size: 32px; + line-height: 36px; + } + + .signup__text { + font-size: 16px; + line-height: 24px; + } + } + + @media (max-width: 1024px) { + .signup { + padding: 24px 15px 32px; + } + + .signup__panel { + min-height: 0; + padding-top: 28px; + } + + .signup__art { + top: 12px; + left: 8px; + transform: scale(0.42); + transform-origin: left top; + } + + .signup__copy { + width: min(100%, 520px); + padding: 88px 16px 32px; + } + + .signup__title { + font-size: 24px; + line-height: 28px; + } + + .signup__field { + width: min(100%, 400px); + } + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:signup.name", + "tag": "section", + "class": "signup-section", + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [ + { + "type": "paragraph", + "content": "t:signup.form_info" + }, + { + "type": "text", + "id": "line_1", + "label": "t:signup.line_1", + "default": "Regístrate" + }, + { + "type": "text", + "id": "line_2", + "label": "t:signup.line_2", + "default": "hoy mismo y disfruta de un" + }, + { + "type": "text", + "id": "line_3", + "label": "t:signup.line_3", + "default": "10 % de descuento" + }, + { + "type": "text", + "id": "line_4", + "label": "t:signup.line_4", + "default": "en tu primer pedido" + }, + { + "type": "textarea", + "id": "text", + "label": "t:signup.text", + "default": "Accede a beneficios exclusivos para miembros, acceso anticipado a los nuevos lanzamientos y recompensas exclusivas, solo para ti." + }, + { + "type": "text", + "id": "placeholder", + "label": "t:signup.placeholder", + "default": "Tu email" + } + ], + "presets": [ + { + "name": "t:signup.name" + } + ] +} +{% endschema %} diff --git a/sections/skin-match.liquid b/sections/skin-match.liquid new file mode 100644 index 0000000..b1b591d --- /dev/null +++ b/sections/skin-match.liquid @@ -0,0 +1,601 @@ +{% liquid + if section.settings.heading != blank + assign heading = section.settings.heading + else + assign heading = 'skin_match.heading' | t + endif + + if section.settings.subheading != blank + assign subheading = section.settings.subheading + else + assign subheading = 'skin_match.subheading' | t + endif + + if section.settings.lead != blank + assign lead = section.settings.lead + else + assign lead = 'skin_match.lead' | t + endif + + if section.settings.rest != blank + assign rest = section.settings.rest + else + assign rest = 'skin_match.rest' | t + endif + + if section.settings.button_label != blank + assign button_label = section.settings.button_label + else + assign button_label = 'skin_match.button' | t + endif + + assign serum_alt = 'skin_match.photos.serum' | t + assign jar_alt = 'skin_match.photos.jar' | t + assign dropper_alt = 'skin_match.photos.dropper' | t + assign cheek_alt = 'skin_match.photos.cheek' | t +%} + +
+
+ + + + + +
+
+

{{ heading | escape }}

+ {% if subheading != blank %} +

{{ subheading | escape }}

+ {% endif %} +
+ + + +

+ {{ lead | escape }}. {{ 'skin_match.bridge' | t }} {{ 'skin_match.brand' | t }} {{ rest | escape }} +

+ + {% if section.settings.button_link != blank %} + + {{ button_label | escape }} + + {% else %} + {{ button_label | escape }} + {% endif %} +
+
+
+ +{% stylesheet %} + .skin-match { + position: relative; + overflow: hidden; + padding-bottom: 75px; + color: #000; + background: #fff; + font-family: Archivo, sans-serif; + } + + .skin-match__canvas { + position: relative; + width: min(1705px, calc(100% - 200px)); + margin-inline: auto; + } + + .skin-match__blob { + position: absolute; + z-index: 0; + pointer-events: none; + } + + .skin-match__blob img { + display: block; + width: 100%; + max-width: none; + height: 100%; + object-fit: fill; + } + + .skin-match__blob--blue { + top: 0; + left: 64.81%; + width: 18.01%; + aspect-ratio: 307 / 300; + } + + .skin-match__blob--peach { + top: 11.82%; + left: 12.32%; + width: 14.31%; + aspect-ratio: 244 / 264; + } + + .skin-match__blob--peach img { + position: absolute; + top: 50%; + left: 50%; + width: 108.2%; + height: 92.42%; + transform: translate(-50%, -50%) rotate(90deg); + } + + .skin-match__blob--green { + top: 60.02%; + left: 81.23%; + width: 13.2%; + aspect-ratio: 225 / 253; + } + + .skin-match__blob--pink { + top: 70.05%; + left: 2.11%; + width: 16.3%; + aspect-ratio: 278 / 266; + } + + .skin-match__content { + position: relative; + z-index: 1; + padding: 37px 0 25px; + } + + .skin-match__heading { + margin: 0; + color: #000; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: 30px; + font-weight: 500; + line-height: 1.15; + text-transform: uppercase; + } + + .skin-match__subheading { + margin: 10px 0 0; + color: #000; + font-size: 20px; + font-weight: 300; + line-height: 30px; + } + + .skin-match__gallery { + display: grid; + grid-template-columns: 2fr 3fr 3fr 2fr; + gap: 30px; + align-items: center; + margin-top: 53px; + padding-left: 0.88%; + } + + .skin-match__photo { + position: relative; + aspect-ratio: 1; + overflow: hidden; + border-radius: 10px; + } + + .skin-match__photo--cheek { + order: 1; + } + + .skin-match__photo--serum { + order: 2; + } + + .skin-match__photo--jar { + order: 3; + } + + .skin-match__photo--dropper { + order: 4; + } + + .skin-match__image { + position: absolute; + max-width: none; + height: auto; + } + + .skin-match__image--serum { + top: -25.21%; + left: 0; + width: 100.42%; + } + + .skin-match__image--jar { + top: -8.33%; + left: -49.38%; + width: 208.75%; + } + + .skin-match__image--dropper { + top: -7.71%; + left: 0; + width: 101.25%; + } + + .skin-match__image--cheek { + top: 0; + left: -2.71%; + width: 103.75%; + } + + .skin-match__body { + max-width: 990px; + margin: 50px auto 0; + color: #808181; + font-size: 20px; + font-weight: 300; + line-height: 30px; + } + + .skin-match__lead { + color: #000; + font-weight: 500; + } + + .skin-match__rest strong { + color: #000; + font-weight: 700; + } + + .skin-match__button { + display: flex; + width: 326px; + height: 50px; + align-items: center; + justify-content: center; + margin: 50px auto 0; + padding: 15px; + border-radius: 60px; + background: #9dd6c7; + color: #000; + font-size: 16px; + font-weight: 300; + line-height: normal; + text-align: center; + text-decoration: none; + } + + a.skin-match__button { + cursor: pointer; + } + + a.skin-match__button:hover { + filter: brightness(0.96); + } + + a.skin-match__button:focus-visible { + outline: 2px solid #000; + outline-offset: 2px; + } + + @media (max-width: 1439px) { + .skin-match__canvas { + width: min(1705px, calc(100% - 80px)); + } + + .skin-match__heading { + font-size: 26px; + } + + .skin-match__subheading, + .skin-match__body { + font-size: 18px; + line-height: 26px; + } + + .skin-match__gallery { + gap: 20px; + margin-top: 40px; + } + + .skin-match__body, + .skin-match__button { + margin-top: 36px; + } + } + + @media (max-width: 1024px) { + .skin-match { + padding-bottom: 40px; + } + + .skin-match__canvas { + width: min(382px, calc(100% - 30px)); + } + + .skin-match__blob--blue { + top: 3%; + left: 58%; + width: 42%; + aspect-ratio: 199 / 194; + } + + .skin-match__blob--peach { + top: 16%; + left: -8%; + width: 36%; + aspect-ratio: 179 / 194; + } + + .skin-match__blob--green { + top: 44%; + left: 62%; + width: 46%; + aspect-ratio: 224 / 253; + } + + .skin-match__blob--pink { + top: 62%; + left: -18%; + width: 52%; + aspect-ratio: 246 / 236; + } + + .skin-match__content { + padding: 0 0 8px; + } + + .skin-match__heading { + font-size: 20px; + line-height: 1.2; + } + + .skin-match__subheading { + max-width: 198px; + margin-top: 10px; + font-size: 14px; + line-height: normal; + } + + .skin-match__gallery { + grid-template-columns: 1fr 1fr; + gap: 10px; + margin-top: 30px; + padding-left: 0; + } + + .skin-match__photo--serum { + order: 1; + grid-column: 1 / -1; + width: 65.45%; + justify-self: center; + } + + .skin-match__photo--dropper { + order: 2; + } + + .skin-match__photo--cheek { + order: 3; + } + + .skin-match__photo--jar { + order: 4; + grid-column: 1 / -1; + width: 65.45%; + justify-self: center; + } + + .skin-match__body { + max-width: none; + margin-top: 30px; + font-size: 14px; + line-height: 22px; + } + + .skin-match__button { + width: min(300px, 100%); + height: 45px; + margin-top: 30px; + font-size: 14px; + font-weight: 500; + } + } +{% endstylesheet %} + +{% schema %} +{ + "name": "t:skin_match.name", + "tag": "section", + "class": "skin-match-section", + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [ + { + "type": "text", + "id": "heading", + "label": "t:skin_match.heading", + "default": "¿Qué necesita tu piel hoy?" + }, + { + "type": "text", + "id": "subheading", + "label": "t:skin_match.subheading", + "default": "Encuentra tu match de cuidado facial con Seasons." + }, + { + "type": "text", + "id": "lead", + "label": "t:skin_match.lead", + "default": "No necesitas ser experta en skincare para cuidar de ti" + }, + { + "type": "textarea", + "id": "rest", + "label": "t:skin_match.rest", + "default": "te acompañamos a encontrar los productos ideales para tu rutina, según lo que tu rostro necesita y cómo quieres sentirte cada día." + }, + { + "type": "text", + "id": "button_label", + "label": "t:skin_match.button_label", + "default": "Buscar producto ideal" + }, + { + "type": "url", + "id": "button_link", + "label": "t:skin_match.button_link" + }, + { + "type": "image_picker", + "id": "image_serum", + "label": "t:skin_match.image_serum", + "info": "t:skin_match.image_info" + }, + { + "type": "image_picker", + "id": "image_jar", + "label": "t:skin_match.image_jar", + "info": "t:skin_match.image_info" + }, + { + "type": "image_picker", + "id": "image_dropper", + "label": "t:skin_match.image_dropper", + "info": "t:skin_match.image_info" + }, + { + "type": "image_picker", + "id": "image_cheek", + "label": "t:skin_match.image_cheek", + "info": "t:skin_match.image_info" + } + ], + "presets": [ + { + "name": "t:skin_match.name" + } + ] +} +{% endschema %} diff --git a/sections/testimonials.liquid b/sections/testimonials.liquid new file mode 100644 index 0000000..b8271b1 --- /dev/null +++ b/sections/testimonials.liquid @@ -0,0 +1,784 @@ +{% liquid + if section.settings.heading != blank + assign heading = section.settings.heading + else + assign heading = 'testimonials.heading' | t + endif + + if section.settings.subheading != blank + assign subheading = section.settings.subheading + else + assign subheading = 'testimonials.subheading' | t + endif +%} + +
+ + +
+

{{ heading | escape }}

+ {% if subheading != blank %} +

{{ subheading | escape }}

+ {% endif %} +
+ + {% if section.blocks.size > 0 %} +
+
+ {% for block in section.blocks %} +
+
+
+ {% for index in (1..5) %} + + {% endfor %} +
+ {% if block.settings.author != blank %} +

{{ block.settings.author | escape }}

+ {% endif %} +
+ {% if block.settings.quote != blank %} +

{{ block.settings.quote | escape }}

+ {% endif %} +
+ {% endfor %} + +
+ + +
+
+ +
+ {% for block in section.blocks %} + {% liquid + assign slide_product = block.settings.product + assign variant = blank + assign card_image = blank + assign hover_image = blank + assign subtitle = blank + assign show_compare = false + if slide_product != blank + assign variant = slide_product.selected_or_first_available_variant + assign card_image = slide_product.featured_image + for image in slide_product.images offset: 1 limit: 1 + assign hover_image = image + endfor + assign subtitle = slide_product.metafields.custom.subtitulo.value | default: slide_product.metafields.custom.subtitulo + if subtitle == blank + assign subtitle = slide_product.metafields.custom.subtitle.value | default: slide_product.metafields.custom.subtitle + endif + if subtitle == blank + assign subtitle = slide_product.metafields.custom.presentacion.value | default: slide_product.metafields.custom.presentacion + endif + if subtitle == blank and variant.title != 'Default Title' + assign subtitle = variant.title + endif + if variant.compare_at_price > variant.price + assign show_compare = true + endif + endif + %} +
+ {% if slide_product != blank %} + + +
+ {{ slide_product.title | escape }} + {% if subtitle != blank %} +

{{ subtitle | escape }}

+ {% endif %} +

+ {{ variant.price | money_without_trailing_zeros }} + {% if show_compare %} + {{ variant.compare_at_price | money_without_trailing_zeros }} + {% endif %} +

+
+ {% endif %} +
+ {% endfor %} +
+
+ {% endif %} +
+ +{% stylesheet %} + .testimonials { + position: relative; + margin-top: 100px; + padding-bottom: 100px; + overflow: hidden; + color: #000; + font-family: Archivo, sans-serif; + } + + .testimonials__blob { + position: absolute; + top: 209px; + left: 38px; + width: 434px; + height: auto; + opacity: 0.3; + pointer-events: none; + user-select: none; + } + + .testimonials__header { + position: relative; + z-index: 1; + padding-inline: 100px; + } + + .testimonials__heading { + margin: 0; + font-family: "Roc Grotesk", Archivo, sans-serif; + font-size: 30px; + font-weight: 500; + line-height: normal; + text-transform: uppercase; + } + + .testimonials__subheading { + margin: 10px 0 0; + font-size: 20px; + font-weight: 300; + line-height: 30px; + } + + .testimonials__stage { + position: relative; + z-index: 1; + display: grid; + grid-template-columns: minmax(0, 549fr) minmax(220px, 450px); + column-gap: clamp(32px, 10vw, 199px); + align-items: start; + width: min(1198px, calc(100% - 200px)); + margin: 100px auto 0; + } + + .testimonials__slide[hidden], + .testimonials__product[hidden] { + display: none; + } + + .testimonials__meta { + display: flex; + align-items: center; + gap: 20px; + } + + .testimonials__stars { + display: flex; + gap: 1px; + color: #000; + } + + .testimonials__star { + display: block; + width: 15px; + height: 15px; + } + + .testimonials__star svg { + display: block; + width: 15px; + height: 15px; + } + + .testimonials__star.is-off { + opacity: 0.25; + } + + .testimonials__author { + margin: 0; + font-size: 16px; + font-weight: 400; + line-height: normal; + } + + .testimonials__quote { + max-width: 549px; + margin: 60px 0 0; + font-size: 35px; + font-weight: 300; + line-height: 45px; + } + + .testimonials__nav { + display: flex; + gap: 20px; + margin-top: 155px; + } + + .testimonials__arrow { + display: grid; + width: 30px; + height: 30px; + place-items: center; + padding: 0; + border: 0; + border-radius: 60px; + background: #9dd6c7; + cursor: pointer; + } + + .testimonials__arrow:disabled { + cursor: default; + opacity: 0.35; + } + + .testimonials__arrow-icon { + display: block; + width: 20px; + height: 20px; + transform: rotate(-90deg); + } + + .testimonials__arrow-icon--next { + transform: rotate(90deg); + } + + .testimonials__product { + display: flex; + flex-direction: column; + gap: 10px; + } + + .testimonials__media { + position: relative; + aspect-ratio: 1; + overflow: hidden; + border: 1px solid #eaeaea; + border-radius: 10px; + background: #fff; + } + + .testimonials__media-link { + position: absolute; + inset: 0; + display: block; + } + + .testimonials__image { + display: block; + width: 100%; + height: 100%; + object-fit: contain; + } + + .testimonials__image--hover { + position: absolute; + inset: 0; + object-fit: cover; + opacity: 0; + transition: opacity 0.35s ease; + } + + .testimonials__media:hover .testimonials__image--hover, + .testimonials__media:focus-within .testimonials__image--hover { + opacity: 1; + } + + .testimonials__actions { + position: absolute; + right: 20px; + bottom: 10px; + left: 20px; + z-index: 2; + display: flex; + gap: 10px; + margin: 0; + opacity: 0; + pointer-events: none; + transition: opacity 0.25s ease; + } + + .testimonials__media:hover .testimonials__actions, + .testimonials__media:focus-within .testimonials__actions { + opacity: 1; + pointer-events: auto; + } + + .testimonials__bag, + .testimonials__buy { + display: flex; + align-items: center; + justify-content: center; + height: 50px; + padding: 15px; + border: 0; + border-radius: 60px; + box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); + cursor: pointer; + } + + .testimonials__bag { + flex: 0 0 50px; + width: 50px; + background: #000; + } + + .testimonials__bag img { + display: block; + width: 25px; + height: 25px; + } + + .testimonials__buy { + flex: 1 1 auto; + background: #9dd6c7; + color: #000; + font-family: Archivo, sans-serif; + font-size: 16px; + font-weight: 300; + line-height: normal; + } + + .testimonials__bag:disabled, + .testimonials__buy:disabled { + cursor: default; + opacity: 0.55; + } + + .testimonials__title { + display: block; + color: #000; + font-size: 18px; + font-weight: 700; + line-height: normal; + text-decoration: none; + } + + .testimonials__subtitle { + margin: 5px 0 0; + color: #808181; + font-size: 14px; + font-weight: 300; + line-height: normal; + } + + .testimonials__prices { + display: flex; + align-items: center; + margin: 15px 0 0; + } + + .testimonials__price, + .testimonials__compare { + width: 70px; + font-size: 16px; + line-height: normal; + } + + .testimonials__price { + font-weight: 700; + } + + .testimonials__compare { + color: #808181; + font-weight: 400; + } + + .testimonials__arrow:focus-visible, + .testimonials__bag:focus-visible, + .testimonials__buy:focus-visible, + .testimonials__title:focus-visible, + .testimonials__media-link:focus-visible { + outline: 2px solid #000; + outline-offset: 3px; + } + + @media (max-width: 1439px) { + .testimonials__header { + padding-inline: 40px; + } + + .testimonials__stage { + width: min(1198px, calc(100% - 80px)); + } + + .testimonials__blob { + left: -40px; + width: 280px; + } + } + + @media (max-width: 1024px) { + .testimonials { + margin-top: 50px; + padding-bottom: 80px; + } + + .testimonials__blob { + top: 80px; + left: -30px; + width: 180px; + } + + .testimonials__header { + padding-inline: 15px; + } + + .testimonials__heading { + max-width: 320px; + font-size: 22px; + line-height: 25px; + } + + .testimonials__subheading { + margin-top: 10px; + font-size: 14px; + line-height: 15px; + } + + .testimonials__stage { + display: flex; + flex-direction: column; + width: min(372px, calc(100% - 30px)); + margin-top: 50px; + } + + .testimonials__copy { + display: contents; + } + + .testimonials__slide { + order: 1; + } + + .testimonials__products { + order: 2; + margin-top: 25px; + } + + .testimonials__nav { + order: 3; + justify-content: center; + margin-top: 40px; + } + + .testimonials__star, + .testimonials__star svg { + width: 12px; + height: 12px; + } + + .testimonials__author { + font-size: 13px; + } + + .testimonials__quote { + margin-top: 30px; + font-size: 18px; + line-height: 25px; + } + + .testimonials__product { + flex-direction: row; + align-items: center; + gap: 10px; + width: min(297px, 100%); + margin-inline: auto; + } + + .testimonials__media { + flex: 0 0 70px; + width: 70px; + height: 70px; + aspect-ratio: auto; + } + + .testimonials__actions { + display: none; + } + + .testimonials__title { + font-size: 14px; + } + + .testimonials__subtitle { + font-size: 12px; + } + + .testimonials__prices { + margin-top: 6px; + } + + .testimonials__price, + .testimonials__compare { + width: auto; + margin-right: 10px; + font-size: 14px; + } + } + + @media (prefers-reduced-motion: reduce) { + .testimonials__image--hover, + .testimonials__actions { + transition: none; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + const setCartCount = (count) => { + const link = document.querySelector('.header__cart'); + if (!link || count < 1) return; + + let badge = link.querySelector('[data-cart-count]'); + if (!badge) { + badge = document.createElement('span'); + badge.className = 'absolute right-0 top-0 flex h-4 min-w-4 items-center justify-center rounded-full bg-brand-mint px-[3px] text-[10px] font-medium leading-none text-black'; + badge.setAttribute('data-cart-count', ''); + link.appendChild(badge); + } + + badge.textContent = String(count); + }; + + const boot = (root) => { + if (root.dataset.ready === 'true') return; + root.dataset.ready = 'true'; + + const slides = [...root.querySelectorAll('[data-slide]')]; + const products = [...root.querySelectorAll('[data-product]')]; + const prev = root.querySelector('[data-prev]'); + const next = root.querySelector('[data-next]'); + let index = 0; + + const paint = () => { + slides.forEach((slide, slideIndex) => { + slide.hidden = slideIndex !== index; + }); + products.forEach((product, productIndex) => { + product.hidden = productIndex !== index; + }); + if (prev) prev.disabled = index <= 0; + if (next) next.disabled = index >= slides.length - 1; + }; + + if (prev) { + prev.addEventListener('click', () => { + if (index <= 0) return; + index -= 1; + paint(); + }); + } + + if (next) { + next.addEventListener('click', () => { + if (index >= slides.length - 1) return; + index += 1; + paint(); + }); + } + + paint(); + }; + + const bootAll = (scope) => { + scope.querySelectorAll('[data-testimonials]').forEach(boot); + }; + + bootAll(document); + document.addEventListener('shopify:section:load', (event) => { + bootAll(event.target); + }); + + if (!window.__seasonTestimonials) { + window.__seasonTestimonials = true; + document.addEventListener('submit', async (event) => { + const form = event.target; + if (!(form instanceof HTMLFormElement) || !form.classList.contains('testimonials__form')) return; + const root = form.closest('[data-testimonials]'); + if (!root) return; + event.preventDefault(); + + const button = event.submitter; + if (button) button.disabled = true; + + try { + const response = await fetch(root.dataset.cartAddUrl, { + method: 'POST', + headers: { 'Content-Type': 'application/json', Accept: 'application/json' }, + body: JSON.stringify({ + id: form.querySelector('[name="id"]').value, + quantity: 1, + }), + }); + const data = await response.json(); + if (response.ok) { + if (button && button.hasAttribute('data-buy') && root.dataset.checkoutUrl) { + window.location.href = root.dataset.checkoutUrl; + return; + } + const cart = await fetch('/cart.js').then((result) => result.json()); + setCartCount(cart.item_count); + } else if (data.description) { + window.alert(data.description); + } + } catch (error) { + window.alert(error.message); + } finally { + if (button) button.disabled = false; + } + }); + } +})(); +{% endjavascript %} + +{% schema %} +{ + "name": "t:testimonials.name", + "tag": "section", + "class": "testimonials-section", + "disabled_on": { + "groups": ["header", "footer"] + }, + "settings": [ + { + "type": "text", + "id": "heading", + "label": "t:testimonials.heading", + "default": "Confianza que se construye con cada rutina" + }, + { + "type": "text", + "id": "subheading", + "label": "t:testimonials.subheading", + "default": "+1,500 pieles ya encontraron su rutina Seasons" + } + ], + "blocks": [ + { + "type": "review", + "name": "t:testimonials.review", + "settings": [ + { + "type": "textarea", + "id": "quote", + "label": "t:testimonials.quote", + "default": "Tengo piel sensible y atópica y es el único bloqueador que me cae bien, la sensación es increíble y he notado que se disminuyen súper rápido las marcas post acné, lo amo, la verdad 😌💕" + }, + { + "type": "text", + "id": "author", + "label": "t:testimonials.author", + "default": "María José" + }, + { + "type": "range", + "id": "rating", + "label": "t:testimonials.rating_label", + "min": 1, + "max": 5, + "step": 1, + "default": 5 + }, + { + "type": "product", + "id": "product", + "label": "t:testimonials.product" + } + ] + } + ], + "presets": [ + { + "name": "t:testimonials.name", + "blocks": [ + { "type": "review" } + ] + } + ] +} +{% endschema %} diff --git a/snippets/bestsellers-card.liquid b/snippets/bestsellers-card.liquid new file mode 100644 index 0000000..9386c0b --- /dev/null +++ b/snippets/bestsellers-card.liquid @@ -0,0 +1,181 @@ +{% doc %} + Renders one product card for the best sellers slider. + + @param {product} product - Product to display + @param {string} [form_suffix] - Suffix that keeps the add-to-cart form id unique + + @example + {% render 'bestsellers-card', product: product, form_suffix: section.id %} +{% enddoc %} + +{% liquid + assign variant = product.selected_or_first_available_variant + assign card_image = product.featured_image + assign hover_image = blank + for image in product.images offset: 1 limit: 1 + assign hover_image = image + endfor + assign image_alt = card_image.alt | default: product.title + + assign subtitle = product.metafields.custom.subtitulo.value | default: product.metafields.custom.subtitulo + if subtitle == blank + assign subtitle = product.metafields.custom.subtitle.value | default: product.metafields.custom.subtitle + endif + if subtitle == blank + assign subtitle = product.metafields.custom.presentacion.value | default: product.metafields.custom.presentacion + endif + if subtitle == blank and variant.title != 'Default Title' + assign subtitle = variant.title + endif + + assign skin_label = product.metafields.custom.tipo_de_piel.value | default: product.metafields.custom.tipo_de_piel + if skin_label == blank + assign skin_label = product.metafields.custom.skin_type.value | default: product.metafields.custom.skin_type + endif + if skin_label == blank + assign skin_fallback = blank + for tag in product.tags + assign tag_label = tag | downcase + if tag_label contains 'piel' + if skin_fallback == blank + assign skin_fallback = tag + endif + if tag_label contains 'pieles' or tag_label contains 'piel ' + assign skin_label = tag + break + endif + endif + endfor + if skin_label == blank + assign skin_label = skin_fallback + endif + endif + + assign rating_value = 0 + assign rating_count = 0 + if product.metafields.reviews.rating.value != blank + assign rating_value = product.metafields.reviews.rating.value.rating | round + endif + if product.metafields.reviews.rating_count.value != blank + assign rating_count = product.metafields.reviews.rating_count.value + endif + + assign compare_price = variant.compare_at_price + assign show_compare = false + if compare_price > variant.price + assign show_compare = true + endif +%} + +
+ + +
+
+ {{ product.title | escape }} + {% if subtitle != blank %} +

{{ subtitle | escape }}

+ {% endif %} + {% if rating_count > 0 %} +
+ +

{{ 'bestsellers.reviews' | t: count: rating_count }}

+
+ {% endif %} +
+ +
+ {{ variant.price | money_without_trailing_zeros }} + {% if show_compare %} + {{ compare_price | money_without_trailing_zeros }} + {% endif %} +
+
+ +
diff --git a/snippets/collection-card.liquid b/snippets/collection-card.liquid new file mode 100644 index 0000000..641aa11 --- /dev/null +++ b/snippets/collection-card.liquid @@ -0,0 +1,589 @@ +{% doc %} + Renders a collection product card. Hover shows the second image plus add to cart and buy now. + + @param {product} product - Product to display + @param {string} [form_suffix] - Keeps the product form id unique + + @example + {% render 'collection-card', product: product, form_suffix: section.id %} +{% enddoc %} + +{% liquid + assign variant = product.selected_or_first_available_variant + assign card_image = product.featured_image + assign hover_image = blank + for image in product.images offset: 1 limit: 1 + assign hover_image = image + endfor + assign image_alt = card_image.alt | default: product.title + + assign subtitle = product.metafields.custom.subtitulo.value | default: product.metafields.custom.subtitulo + if subtitle == blank + assign subtitle = product.metafields.custom.subtitle.value | default: product.metafields.custom.subtitle + endif + if subtitle == blank + assign subtitle = product.metafields.custom.presentacion.value | default: product.metafields.custom.presentacion + endif + if subtitle == blank and variant.title != 'Default Title' + assign subtitle = variant.title + endif + + assign skin_label = product.metafields.custom.tipo_de_piel.value | default: product.metafields.custom.tipo_de_piel + if skin_label == blank + assign skin_label = product.metafields.custom.skin_type.value | default: product.metafields.custom.skin_type + endif + + assign badge_best = false + assign badge_recommended = false + for tag in product.tags + assign tag_label = tag | downcase + if tag_label contains 'vendido' or tag_label contains 'bestseller' + assign badge_best = true + endif + if tag_label contains 'recomend' + assign badge_recommended = true + endif + if skin_label == blank and tag_label contains 'piel' + assign skin_label = tag + endif + endfor + + assign rating_value = 0 + assign rating_count = 0 + if product.metafields.reviews.rating.value != blank + assign rating_value = product.metafields.reviews.rating.value.rating | round + endif + if product.metafields.reviews.rating_count.value != blank + assign rating_count = product.metafields.reviews.rating_count.value + endif + + assign show_compare = false + if variant.compare_at_price > variant.price + assign show_compare = true + endif + + assign form_id = 'collection-card-' | append: product.id + if form_suffix != blank + assign form_id = form_id | append: '-' | append: form_suffix + endif +%} + +
+
+ + {% if card_image %} + {{ + card_image + | image_url: width: 900 + | image_tag: + alt: image_alt, + widths: '186, 372, 560, 800', + sizes: '(max-width: 767px) 46vw, 33vw', + class: 'collection-card__image', + loading: 'lazy' + }} + {% if hover_image != blank %} + {{ + hover_image + | image_url: width: 900 + | image_tag: + alt: '', + widths: '186, 372, 560, 800', + sizes: '(max-width: 767px) 46vw, 33vw', + class: 'collection-card__image collection-card__image--hover', + loading: 'lazy' + }} + {% endif %} + {% else %} + + {% endif %} + + +
+ {% if badge_best %} + {{ 'bestsellers.badge' | t }} + {% endif %} + {% if badge_recommended %} + {{ 'collection_page.recommended' | t }} + {% endif %} + {% if skin_label != blank %} + {{ skin_label | escape }} + {% endif %} +
+ + + +
+ + + + +
+
+ +
+ {{ product.title | escape }} + {% if subtitle != blank %} +

{{ subtitle | escape }}

+ {% endif %} + {% if rating_count > 0 %} +
+ +

{{ 'bestsellers.reviews' | t: count: rating_count }}

+
+ {% endif %} +

+ {{ variant.price | money_without_trailing_zeros }} + {% if show_compare %} + {{ variant.compare_at_price | money_without_trailing_zeros }} + {% endif %} +

+
+
+ +{% stylesheet %} + .collection-card { + display: flex; + flex-direction: column; + gap: 15px; + min-width: 0; + } + + .collection-card__media { + position: relative; + aspect-ratio: 1; + overflow: hidden; + border-radius: 10px; + background: #fff; + } + + .collection-card__link { + position: absolute; + inset: 0; + display: block; + } + + .collection-card__image { + display: block; + width: 100%; + height: 100%; + object-fit: cover; + } + + .collection-card__image--hover { + position: absolute; + inset: 0; + opacity: 0; + transition: opacity 0.35s ease; + } + + .collection-card__media:hover .collection-card__image--hover, + .collection-card__media:focus-within .collection-card__image--hover { + opacity: 1; + } + + .collection-card__image--empty { + background: #f3f3f3; + } + + .collection-card__badges { + position: absolute; + top: 10px; + left: 10px; + z-index: 1; + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 4px; + } + + .collection-card__badge { + display: inline-flex; + align-items: center; + padding: 3px 5px; + border-radius: 2px; + color: #000; + font-size: 10px; + font-weight: 300; + line-height: normal; + text-transform: uppercase; + } + + .collection-card__badge--best { + background: #bfffb2; + } + + .collection-card__badge--skin { + background: #f7c585; + } + + .collection-card__wish { + position: absolute; + top: 16px; + right: 16px; + z-index: 2; + display: grid; + width: 25px; + height: 25px; + place-items: center; + padding: 0; + border: 0; + background: transparent; + cursor: pointer; + } + + .collection-card__wish svg { + display: block; + width: 25px; + height: 25px; + } + + .collection-card__wish.is-active svg path { + fill: #000; + } + + .collection-card__actions { + position: absolute; + right: 16px; + bottom: 16px; + left: 16px; + z-index: 2; + display: flex; + gap: 10px; + margin: 0; + opacity: 0; + pointer-events: none; + transition: opacity 0.25s ease; + } + + .collection-card__media:hover .collection-card__actions, + .collection-card__media:focus-within .collection-card__actions { + opacity: 1; + pointer-events: auto; + } + + .collection-card__add, + .collection-card__buy { + flex: 1 1 0; + height: 48px; + border-radius: 60px; + font: inherit; + font-size: 14px; + font-weight: 500; + line-height: 1; + cursor: pointer; + } + + .collection-card__add { + border: 1px solid #111; + background: #fff; + color: #000; + } + + .collection-card__buy { + border: 0; + background: #9dd6c7; + color: #000; + } + + .collection-card__add:disabled, + .collection-card__buy:disabled { + cursor: default; + opacity: 0.55; + } + + .collection-card__info { + display: flex; + flex-direction: column; + gap: 5px; + } + + .collection-card__title { + color: #000; + font-size: 22px; + font-weight: 700; + line-height: normal; + text-decoration: none; + } + + .collection-card__subtitle, + .collection-card__reviews, + .collection-card__prices { + margin: 0; + } + + .collection-card__subtitle { + color: #808181; + font-size: 18px; + font-weight: 300; + line-height: normal; + } + + .collection-card__rating { + display: flex; + align-items: center; + gap: 10px; + } + + .collection-card__stars { + display: flex; + gap: 1px; + color: #000; + } + + .collection-card__star { + display: block; + width: 14px; + height: 14px; + } + + .collection-card__star.is-off { + opacity: 0.25; + } + + .collection-card__reviews { + color: #000; + font-size: 14px; + font-weight: 300; + } + + .collection-card__prices { + display: flex; + align-items: baseline; + gap: 16px; + } + + .collection-card__price, + .collection-card__compare { + font-size: 20px; + line-height: normal; + } + + .collection-card__price { + font-weight: 700; + } + + .collection-card__compare { + color: #808181; + font-weight: 400; + } + + .recent .collection-card__title { + font-size: 18px; + } + + .recent .collection-card__subtitle, + .recent .collection-card__reviews { + font-size: 14px; + } + + .recent .collection-card__price, + .recent .collection-card__compare { + font-size: 16px; + } + + .recent .collection-card__star { + width: 10px; + height: 10px; + } + + @media (max-width: 767px) { + .collection-card { + gap: 10px; + } + + .collection-card__media { + aspect-ratio: auto; + overflow: visible; + background: transparent; + } + + .collection-card__link { + position: relative; + aspect-ratio: 1; + overflow: hidden; + border-radius: 10px; + background: #fff; + } + + .collection-card__image { + position: absolute; + inset: 0; + } + + .collection-card__actions { + position: static; + opacity: 1; + pointer-events: auto; + margin-top: 8px; + } + + .collection-card__add, + .collection-card__buy { + height: 36px; + font-size: 11px; + } + + .collection-card__title, + .recent .collection-card__title { + font-size: 12px; + } + + .collection-card__subtitle, + .recent .collection-card__subtitle { + font-size: 10px; + } + + .collection-card__price, + .collection-card__compare, + .recent .collection-card__price, + .recent .collection-card__compare { + font-size: 12px; + } + + .collection-card__reviews, + .recent .collection-card__reviews { + display: none; + } + + .collection-card__wish { + top: 8px; + right: 8px; + } + + .collection-card__wish svg { + width: 18px; + height: 18px; + } + } + + @media (prefers-reduced-motion: reduce) { + .collection-card__image--hover, + .collection-card__actions { + transition: none; + } + } +{% endstylesheet %} + +{% javascript %} +(() => { + if (window.__seasonCollectionCard) return; + window.__seasonCollectionCard = true; + + const wishlistKey = 'seasons-wishlist'; + + const readWishlist = () => { + try { + const stored = JSON.parse(window.localStorage.getItem(wishlistKey)); + return Array.isArray(stored) ? stored.map(String) : []; + } catch (error) { + return []; + } + }; + + const applyWishlist = () => { + const saved = readWishlist(); + document.querySelectorAll('.collection-card [data-wishlist]').forEach((button) => { + const active = saved.includes(String(button.dataset.productId)); + button.classList.toggle('is-active', active); + button.setAttribute('aria-pressed', active ? 'true' : 'false'); + const label = active ? button.dataset.labelSaved : button.dataset.labelSave; + if (label) button.setAttribute('aria-label', label); + }); + }; + + applyWishlist(); + + document.addEventListener('click', (event) => { + const wish = event.target.closest('.collection-card [data-wishlist]'); + if (!wish) return; + const id = String(wish.dataset.productId || ''); + if (!id) return; + const saved = readWishlist(); + const next = saved.includes(id) ? saved.filter((item) => item !== id) : saved.concat(id); + window.localStorage.setItem(wishlistKey, JSON.stringify(next)); + applyWishlist(); + }); + + document.addEventListener('submit', async (event) => { + const form = event.target; + if (!(form instanceof HTMLFormElement) || !form.hasAttribute('data-collection-card')) return; + if (event.defaultPrevented) return; + + event.preventDefault(); + const button = event.submitter instanceof HTMLButtonElement ? event.submitter : form.querySelector('[type="submit"]'); + const variantId = form.querySelector('[name="id"]')?.value; + if (!button || button.disabled || !variantId) return; + + const buttons = [...form.querySelectorAll('button')]; + buttons.forEach((item) => { + item.disabled = true; + }); + const buyNow = button.hasAttribute('data-buy'); + + try { + const addResponse = await fetch(`${form.action}.js`, { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + Accept: 'application/json', + }, + body: JSON.stringify({ id: Number(variantId), quantity: 1 }), + }); + + if (!addResponse.ok) { + form.submit(); + return; + } + + if (buyNow) { + window.location.href = `${window.Shopify?.routes?.root || '/'}checkout`; + return; + } + + document.dispatchEvent(new CustomEvent('season:cart:open')); + } catch (error) { + form.submit(); + } finally { + if (!buyNow) { + buttons.forEach((item) => { + item.disabled = false; + }); + } + } + }); +})(); +{% endjavascript %} diff --git a/snippets/css-variables.liquid b/snippets/css-variables.liquid new file mode 100644 index 0000000..01a49ac --- /dev/null +++ b/snippets/css-variables.liquid @@ -0,0 +1,9 @@ +{% style %} + :root { + --page-width: {{ settings.max_page_width }}; + --page-margin: {{ settings.min_page_margin }}px; + --color-background: {{ settings.background_color }}; + --color-foreground: {{ settings.foreground_color }}; + --style-border-radius-inputs: {{ settings.input_corner_radius }}px; + } +{% endstyle %} diff --git a/snippets/delay-header-scripts.liquid b/snippets/delay-header-scripts.liquid new file mode 100644 index 0000000..d860738 --- /dev/null +++ b/snippets/delay-header-scripts.liquid @@ -0,0 +1,38 @@ +{% doc %} + Delays Shopify header scripts until the first interaction. + Scripts tagged nolazy, plus JSON and JSON-LD blocks, stay immediate. + + @param {string} html - Markup captured from content_for_header + + @example + {% capture shopify_header %}{{ content_for_header }}{% endcapture %} + {% render 'delay-header-scripts', html: shopify_header %} +{% enddoc %} + +{% liquid + if request.design_mode or html == blank + echo html + else + assign chunks = html | split: '' | first + if open_tag contains 'application/json' or open_tag contains 'application/ld+json' or open_tag contains 'nolazy' + echo ' + @font-face { + font-family: Archivo; + src: url('{{ 'archivo-light.ttf' | asset_url }}') format('truetype'); + font-weight: 300; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: Archivo; + src: url('{{ 'archivo-regular.ttf' | asset_url }}') format('truetype'); + font-weight: 400; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: Archivo; + src: url('{{ 'archivo-medium.ttf' | asset_url }}') format('truetype'); + font-weight: 500; + font-style: normal; + font-display: swap; + } + + @font-face { + font-family: Archivo; + src: url('{{ 'archivo-bold.ttf' | asset_url }}') format('truetype'); + font-weight: 700; + font-style: normal; + font-display: swap; + } + + body { + font-family: Archivo, sans-serif; + } + diff --git a/snippets/header-menu-item.liquid b/snippets/header-menu-item.liquid new file mode 100644 index 0000000..08f3a7d --- /dev/null +++ b/snippets/header-menu-item.liquid @@ -0,0 +1,86 @@ +{% doc %} + Renders one item of the storefront navigation. + + Parent links with nested items include a submenu. The same markup is used + on desktop and mobile. + + @param {string} title - Link label + @param {string} url - Link URL + @param {link[]} [child_links] - Nested links from a menu + @param {string} [child_menu] - Fallback items as `Label::/url`, separated by `|` + @param {boolean} [show_caret] - Shows a decorative caret when there are no child links + + @example + {% render 'header-menu-item', title: link.title, url: link.url, child_links: link.links %} +{% enddoc %} + +{% liquid + assign child_count = 0 + assign manual_items = blank + + if child_links != blank and child_links.size > 0 + assign child_count = child_links.size + elsif child_menu != blank + assign manual_items = child_menu | strip | split: '|' + assign child_count = manual_items.size + endif +%} + +
  • + + {{ title }} + + + {% if child_count > 0 %} + + + {% elsif show_caret %} + + {% endif %} +
  • diff --git a/snippets/hero-product.liquid b/snippets/hero-product.liquid new file mode 100644 index 0000000..2bcefd2 --- /dev/null +++ b/snippets/hero-product.liquid @@ -0,0 +1,53 @@ +{% doc %} + Renders a featured product card for the homepage hero. + + @param {product} product - Product to show in the card + + @example + {% render 'hero-product', product: block.settings.product %} +{% enddoc %} + +{% liquid + assign variant = product.selected_or_first_available_variant + assign card_image = product.featured_image + assign image_alt = card_image.alt | default: product.title +%} + + diff --git a/snippets/image.liquid b/snippets/image.liquid new file mode 100644 index 0000000..9ea580a --- /dev/null +++ b/snippets/image.liquid @@ -0,0 +1,64 @@ +{% doc %} + Renders a responsive image that might be wrapped in a link. + + When `width`, `height` and `crop` are provided, the image will be rendered + with a fixed aspect ratio. + + Serves as an example of how to use the `image_url` filter and `image_tag` filter + as well as how you can use LiquidDoc to document your code. + + @param {image} image - The image to be rendered + @param {string} [url] - An optional destination URL for the image + @param {string} [class] - Optional class to be added to the image wrapper + @param {number} [width] - The highest resolution width of the image to be rendered + @param {number} [height] - The highest resolution height of the image to be rendered + @param {string} [crop] - The crop position of the image + + @example + {% render 'image', image: product.featured_image %} + {% render 'image', image: product.featured_image, url: product.url %} + {% render 'image', + class: 'product__image', + image: product.featured_image, + url: product.url, + width: 1200, + height: 800, + crop: 'center', + %} +{% enddoc %} + +{% liquid + unless height + assign width = width | default: image.width + endunless + + if url + assign wrapper = 'a' + else + assign wrapper = 'div' + endif +%} + +<{{ wrapper }} + class="image {{ class }}" + {% if url %} + href="{{ url }}" + {% endif %} +> + {{ image | image_url: width: width, height: height, crop: crop | image_tag }} + + +{% stylesheet %} + .image { + display: block; + position: relative; + overflow: hidden; + width: 100%; + height: auto; + } + + .image > img { + width: 100%; + height: auto; + } +{% endstylesheet %} diff --git a/snippets/meta-tags.liquid b/snippets/meta-tags.liquid new file mode 100644 index 0000000..776495f --- /dev/null +++ b/snippets/meta-tags.liquid @@ -0,0 +1,106 @@ + +{% render 'rocket-delay' %} + + + +{%- liquid + assign og_title = page_title | default: shop.name + assign og_url = canonical_url | default: request.origin + assign og_type = 'website' + assign og_description = page_description | default: shop.description | default: shop.name + + if request.page_type == 'product' + assign og_type = 'product' + elsif request.page_type == 'article' + assign og_type = 'article' + elsif request.page_type == 'password' + assign og_url = request.origin + endif +%} + + + + + + + +{%- if page_image -%} + + + + +{%- endif -%} + +{%- if request.page_type == 'product' -%} + + + + +{%- endif -%} + + + + + + + {{ page_title }} + {%- if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif -%} + {%- if current_page != 1 %} – Page {{ current_page }}{% endif -%} + {%- unless page_title contains shop.name %} – {{ shop.name }}{% endunless -%} + + + + +{% if page_description %} + +{% endif %} diff --git a/snippets/rocket-delay.liquid b/snippets/rocket-delay.liquid new file mode 100644 index 0000000..00a1cfc --- /dev/null +++ b/snippets/rocket-delay.liquid @@ -0,0 +1,440 @@ +{% doc %} + Loads delayed scripts after the first pointer, key, or wheel interaction. + A script keeps running immediately when it has the nolazy attribute. + + @example + {% render 'rocket-delay' %} +{% enddoc %} + +{% unless request.design_mode %} + +{% endunless %} diff --git a/src/tailwind.css b/src/tailwind.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/src/tailwind.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..753bacb --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,48 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + './layout/**/*.liquid', + './sections/**/*.liquid', + './snippets/**/*.liquid', + './blocks/**/*.liquid', + './templates/**/*.{liquid,json}', + './assets/**/*.js', + ], + theme: { + screens: { + xxxxl: { max: '1701px' }, + xxxl: { max: '1550px' }, + xxl: { max: '1439px' }, + xl: { max: '1119px' }, + lg: { max: '1024px' }, + md: { max: '767px' }, + sm: { max: '479px' }, + ssm: { max: '380px' }, + }, + container: { + center: true, + padding: '1rem', + screens: { + DEFAULT: '1702px', + }, + }, + extend: { + colors: { + brand: { + mint: '#9DD6C7', + ink: '#000000', + cloud: '#F8F8F8', + placeholder: '#BFBDBE', + }, + }, + fontFamily: { + sans: ['Archivo', 'sans-serif'], + archivo: ['Archivo', 'sans-serif'], + }, + }, + }, + corePlugins: { + preflight: false, + }, + plugins: [], +}; diff --git a/templates/404.json b/templates/404.json new file mode 100644 index 0000000..fc12fc7 --- /dev/null +++ b/templates/404.json @@ -0,0 +1,20 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ + { + "sections": { + "main": { + "type": "404", + "settings": {} + } + }, + "order": [ + "main" + ] +} diff --git a/templates/article.json b/templates/article.json new file mode 100644 index 0000000..d3bc0df --- /dev/null +++ b/templates/article.json @@ -0,0 +1,20 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "sections": { + "main": { + "type": "article", + "settings": {} + } + }, + "order": [ + "main" + ] +} diff --git a/templates/blog.json b/templates/blog.json new file mode 100644 index 0000000..09705d7 --- /dev/null +++ b/templates/blog.json @@ -0,0 +1,20 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "sections": { + "main": { + "type": "blog", + "settings": {} + } + }, + "order": [ + "main" + ] +} diff --git a/templates/cart.json b/templates/cart.json new file mode 100644 index 0000000..78c2add --- /dev/null +++ b/templates/cart.json @@ -0,0 +1,20 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "sections": { + "main": { + "type": "cart", + "settings": {} + } + }, + "order": [ + "main" + ] +} diff --git a/templates/collection.bestsellers-data.liquid b/templates/collection.bestsellers-data.liquid new file mode 100644 index 0000000..49c36cf --- /dev/null +++ b/templates/collection.bestsellers-data.liquid @@ -0,0 +1,12 @@ +{% layout none %} +{% comment %} + Product cards for the homepage best sellers slider. + Requested as /collections/{handle}?sort_by=best-selling&view=bestsellers-data + so Shopify returns the collection in best-selling order. + Keep the page size aligned with the section maximum (12). +{% endcomment %} +{% paginate collection.products by 12 %} + {% for product in collection.products %} + {% render 'bestsellers-card', product: product %} + {% endfor %} +{% endpaginate %} diff --git a/templates/collection.json b/templates/collection.json new file mode 100644 index 0000000..6b9ed3d --- /dev/null +++ b/templates/collection.json @@ -0,0 +1,25 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "sections": { + "main": { + "type": "collection", + "settings": {} + }, + "recent": { + "type": "recently-viewed", + "settings": {} + } + }, + "order": [ + "main", + "recent" + ] +} diff --git a/templates/collection.new-products-data.liquid b/templates/collection.new-products-data.liquid new file mode 100644 index 0000000..f8fad69 --- /dev/null +++ b/templates/collection.new-products-data.liquid @@ -0,0 +1,12 @@ +{% layout none %} +{% comment %} + Product cards for the homepage new products slider. + Requested as /collections/{handle}?sort_by=created-descending&view=new-products-data + so Shopify returns the collection from newest to oldest. + Keep the page size aligned with the section maximum (12). +{% endcomment %} +{% paginate collection.products by 12 %} + {% for product in collection.products %} + {% render 'bestsellers-card', product: product %} + {% endfor %} +{% endpaginate %} diff --git a/templates/gift_card.liquid b/templates/gift_card.liquid new file mode 100644 index 0000000..db5d828 --- /dev/null +++ b/templates/gift_card.liquid @@ -0,0 +1,73 @@ +{% layout none %} + + + + + {% # Inlined CSS Variables %} + {% render 'css-variables' %} + + {% # Load and preload the critical CSS %} + {{ 'critical.css' | asset_url | stylesheet_tag: preload: true }} + + {% # Social, title, etc. %} + {% render 'meta-tags' %} + + {% style %} + main { + text-align: center; + } + main img { + display: unset; + } + {% endstyle %} + + {{ content_for_header }} + + + +
    +
    +

    {{ gift_card.balance | money }}

    + + {% if gift_card.enabled == false or gift_card.expired %} +

    {{ 'gift_card.expired' | t }}

    + {% endif %} + + {% if gift_card.expires_on %} + {% assign expires_on = gift_card.expires_on | date: '%B %e, %Y' %} +

    + {{ 'gift_card.expires_on' | t: expires_on: expires_on }} +

    + {% endif %} + +

    + {% if settings.logo %} + {{ settings.logo | image_url: width: 300 | image_tag: alt: shop.name }} + {% else %} + {{ 'gift_card.card' | t }} + {% endif %} +

    + +

    {{ shop.name }}

    +

    {{ 'gift_card.use_at_checkout' | t }}

    +

    {{ gift_card.code | format_code }}

    + + {% if gift_card.pass_url %} + + {{ 'gift_card.add_to_apple_wallet' | t }} + + {% endif %} +
    +
    + + diff --git a/templates/index.json b/templates/index.json new file mode 100644 index 0000000..870b0f9 --- /dev/null +++ b/templates/index.json @@ -0,0 +1,237 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "sections": { + "hero": { + "type": "hero", + "blocks": { + "featured_product_1": { + "type": "featured_product", + "settings": { + "product": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" + } + } + }, + "block_order": [ + "featured_product_1" + ], + "settings": { + "heading_line_1": "descubre", + "heading_line_1_weight": "light", + "heading_line_2": "lo que tu piel", + "heading_line_2_weight": "medium", + "heading_line_3": "disfrutará", + "heading_line_3_weight": "light", + "featured_label": "Producto destacado", + "media_type": "video", + "social_label": "Síguenos", + "instagram_url": "", + "facebook_url": "", + "linkedin_url": "" + } + }, + "bestsellers": { + "type": "bestsellers", + "settings": { + "heading": "Más vendidos", + "collection": "", + "products_to_show": 8, + "promo_link": "" + } + }, + "routine": { + "type": "routine", + "blocks": { + "step_1": { + "type": "step", + "settings": { + "title": "Paso 1: Limpia", + "link": "" + } + }, + "step_2": { + "type": "step", + "settings": { + "title": "Paso 2: Trata", + "link": "" + } + }, + "step_3": { + "type": "step", + "settings": { + "title": "Paso 3: Hidrata", + "link": "" + } + }, + "step_4": { + "type": "step", + "settings": { + "title": "Paso 4: Protege", + "link": "" + } + } + }, + "block_order": [ + "step_1", + "step_2", + "step_3", + "step_4" + ], + "settings": { + "heading": "Tu rutina\nen 4 pasos", + "cover_link": "" + } + }, + "signup": { + "type": "signup", + "settings": { + "line_1": "Regístrate", + "line_2": "hoy mismo y disfruta de un", + "line_3": "10 % de descuento", + "line_4": "en tu primer pedido", + "text": "Accede a beneficios exclusivos para miembros, acceso anticipado a los nuevos lanzamientos y recompensas exclusivas, solo para ti.", + "placeholder": "Tu email" + } + }, + "skin_match": { + "type": "skin-match", + "settings": { + "heading": "¿Qué necesita tu piel hoy?", + "subheading": "Encuentra tu match de cuidado facial con Seasons.", + "lead": "No necesitas ser experta en skincare para cuidar de ti", + "rest": "te acompañamos a encontrar los productos ideales para tu rutina, según lo que tu rostro necesita y cómo quieres sentirte cada día.", + "button_label": "Buscar producto ideal", + "button_link": "" + } + }, + "marquee": { + "type": "marquee", + "settings": {} + }, + "new_products": { + "type": "new-products", + "settings": { + "heading": "Nuevos productos", + "collection": "", + "products_to_show": 8, + "poster": "shopify://shop_images/Mask_group.png", + "video": "shopify://files/videos/home-news.mp4", + "promo_link": "" + } + }, + "learn": { + "type": "learn", + "blocks": { + "clip_1": { + "type": "clip", + "settings": { + "product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", + "product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" + } + }, + "clip_2": { + "type": "clip", + "settings": { + "product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", + "product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" + } + }, + "clip_3": { + "type": "clip", + "settings": { + "poster": "shopify://shop_images/Creias_que_reaplicar_protector_solar_aun_con_maquillaje_era_imposible_Te_invito_a_checar_las_p_1.jpg", + "video": "shopify://files/videos/creias-que-reaplicar-protector-solar-aun-con-maquillaje-era-imposible_xCwPCccA.mp4", + "product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", + "product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" + } + }, + "clip_4": { + "type": "clip", + "settings": { + "product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", + "product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" + } + }, + "clip_5": { + "type": "clip", + "settings": { + "product_1": "bloqueador-pantalla-solar-crema-biodegradable-fps-30", + "product_2": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" + } + } + }, + "block_order": [ + "clip_1", + "clip_2", + "clip_3", + "clip_4", + "clip_5" + ], + "settings": { + "heading": "Aprende, aplica y brilla con Seasons", + "subheading": "Descubre tips, rutinas y formas reales de usar tus productos favoritos." + } + }, + "distributors": { + "type": "distributors", + "settings": { + "line_1": "Lleva", + "brand": "Seasons", + "line_2": "a más personas", + "text": "Súmate como distribuidor y forma parte de una marca mexicana de skincare que acompaña a cada persona a encontrar productos pensados para su rutina, sus necesidades y su forma de cuidarse.", + "button_label": "Regístrate", + "button_link": "https://seasonsexperts.com/apps/wpdapp" + } + }, + "testimonials": { + "type": "testimonials", + "blocks": { + "review_PQhgyT": { + "type": "review", + "settings": { + "quote": "Tengo piel sensible y atópica y es el único bloqueador que me cae bien, la sensación es increíble y he notado que se disminuyen súper rápido las marcas post acné, lo amo, la verdad 😌💕", + "author": "María José", + "rating": 5, + "product": "suero-facial-hidratante-antioxidante-vitamina-c" + } + }, + "review_1": { + "type": "review", + "settings": { + "quote": "Tengo piel sensible y atópica y es el único bloqueador que me cae bien, la sensación es increíble y he notado que se disminuyen súper rápido las marcas post acné, lo amo, la verdad 😌💕", + "author": "María José", + "rating": 5, + "product": "bloqueador-pantalla-solar-crema-biodegradable-fps-30" + } + } + }, + "block_order": [ + "review_PQhgyT", + "review_1" + ], + "settings": { + "heading": "Confianza que se construye con cada rutina", + "subheading": "+1,500 pieles ya encontraron su rutina Seasons" + } + } + }, + "order": [ + "hero", + "bestsellers", + "routine", + "signup", + "skin_match", + "marquee", + "new_products", + "learn", + "distributors", + "testimonials" + ] +} diff --git a/templates/list-collections.json b/templates/list-collections.json new file mode 100644 index 0000000..3098428 --- /dev/null +++ b/templates/list-collections.json @@ -0,0 +1,20 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "sections": { + "main": { + "type": "collections", + "settings": {} + } + }, + "order": [ + "main" + ] +} diff --git a/templates/page.json b/templates/page.json new file mode 100644 index 0000000..36d2300 --- /dev/null +++ b/templates/page.json @@ -0,0 +1,20 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "sections": { + "main": { + "type": "page", + "settings": {} + } + }, + "order": [ + "main" + ] +} diff --git a/templates/password.json b/templates/password.json new file mode 100644 index 0000000..030b725 --- /dev/null +++ b/templates/password.json @@ -0,0 +1,21 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "layout": "password", + "sections": { + "main": { + "type": "password", + "settings": {} + } + }, + "order": [ + "main" + ] +} diff --git a/templates/product.card.liquid b/templates/product.card.liquid new file mode 100644 index 0000000..d44182c --- /dev/null +++ b/templates/product.card.liquid @@ -0,0 +1,2 @@ +{% layout none %} +{% render 'collection-card', product: product, form_suffix: 'recent' %} diff --git a/templates/product.json b/templates/product.json new file mode 100644 index 0000000..8329ddc --- /dev/null +++ b/templates/product.json @@ -0,0 +1,20 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "sections": { + "main": { + "type": "product", + "settings": {} + } + }, + "order": [ + "main" + ] +} diff --git a/templates/search.json b/templates/search.json new file mode 100644 index 0000000..8c540c5 --- /dev/null +++ b/templates/search.json @@ -0,0 +1,20 @@ +/* + * ------------------------------------------------------------ + * IMPORTANT: The contents of this file are auto-generated. + * + * This file may be updated by the Shopify admin theme editor + * or related systems. Please exercise caution as any changes + * made to this file may be overwritten. + * ------------------------------------------------------------ + */ +{ + "sections": { + "main": { + "type": "search", + "settings": {} + } + }, + "order": [ + "main" + ] +}