Initial Shopify theme
This commit is contained in:
@@ -0,0 +1 @@
|
||||
*.json linguist-language=jsonc
|
||||
+17
@@ -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
|
||||
@@ -0,0 +1,13 @@
|
||||
# This file contains a list of files that will be excluded from Shopify CLI
|
||||
# operations such as push, pull, dev, etc.
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# Ignore a specific file:
|
||||
# templates/product.json
|
||||
#
|
||||
# Ignore templates with a wildcard pattern:
|
||||
# templates/*.json
|
||||
#
|
||||
# Ignore templates and sections with a regular expression:
|
||||
# /(templates|sections)/.*\.json/
|
||||
@@ -0,0 +1 @@
|
||||
extends: theme-check:recommended
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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.
|
||||
@@ -1 +1,160 @@
|
||||
Tema de shopify para Season
|
||||
<h1 align="center" style="position: relative;">
|
||||
<br>
|
||||
<img src="./assets/shoppy-x-ray.svg" alt="logo" width="200">
|
||||
<br>
|
||||
Shopify Skeleton Theme
|
||||
</h1>
|
||||
|
||||
A minimal, carefully structured Shopify theme designed to help you quickly get started. Designed with modularity, maintainability, and Shopify's best practices in mind.
|
||||
|
||||
<p align="center">
|
||||
<a href="./LICENSE.md"><img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License"></a>
|
||||
<a href="./actions/workflows/ci.yml"><img alt="CI" src="https://github.com/Shopify/skeleton-theme/actions/workflows/ci.yml/badge.svg"></a>
|
||||
</p>
|
||||
|
||||
## 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
|
||||
<div class="collection" style="--gap: {{ block.settings.gap }}px">
|
||||
...
|
||||
</div>
|
||||
|
||||
{% 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
|
||||
<div class="collection {{ block.settings.layout }}">
|
||||
...
|
||||
</div>
|
||||
|
||||
{% 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.
|
||||
|
||||
@@ -0,0 +1,117 @@
|
||||
/** 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: var(--font-primary--family);
|
||||
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 <img> 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;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" slot="signed-out-avatar">
|
||||
<circle cx="10" cy="6.5" r="2.75" stroke="currentColor" stroke-width="var(--icon-stroke-width)" />
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
||||
stroke-width="var(--icon-stroke-width)"
|
||||
d="m5.172 14.591-.437.786a.588.588 0 0 0 .514.873h9.502a.588.588 0 0 0 .514-.873l-.437-.786a5.523 5.523 0 0 0-9.656 0" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 453 B |
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
|
||||
stroke-width="var(--icon-stroke-width)"
|
||||
d="M3.392 6.875h13.216v8.016c0 .567-.224 1.112-.624 1.513-.4.402-.941.627-1.506.627H5.522a2.13 2.13 0 0 1-1.506-.627 2.15 2.15 0 0 1-.624-1.513zM8.818 2.969h2.333c.618 0 1.211.247 1.649.686a2.35 2.35 0 0 1 .683 1.658v1.562H6.486V5.313c0-.622.246-1.218.683-1.658a2.33 2.33 0 0 1 1.65-.686" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 496 B |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 24 KiB |
@@ -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 %}
|
||||
|
||||
<div
|
||||
class="group {{ block.settings.layout_direction }}"
|
||||
style="
|
||||
--padding: {{ block.settings.padding }}px;
|
||||
--alignment: {{ block.settings.alignment }};
|
||||
"
|
||||
{{ block.shopify_attributes }}
|
||||
>
|
||||
{% content_for 'blocks' %}
|
||||
</div>
|
||||
|
||||
{% 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 %}
|
||||
@@ -0,0 +1,59 @@
|
||||
{% doc %}
|
||||
Renders a text block.
|
||||
|
||||
@example
|
||||
{% content_for 'block', type: 'text', id: 'text' %}
|
||||
{% enddoc %}
|
||||
|
||||
<div
|
||||
class="text {{ block.settings.text_style }}"
|
||||
style="--text-align: {{ block.settings.alignment }}"
|
||||
{{ block.shopify_attributes }}
|
||||
>
|
||||
{{ block.settings.text }}
|
||||
</div>
|
||||
|
||||
{% 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 %}
|
||||
@@ -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": {}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
[
|
||||
{
|
||||
"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.typography",
|
||||
"settings": [
|
||||
{
|
||||
"type": "header",
|
||||
"content": "t:general.fonts"
|
||||
},
|
||||
{
|
||||
"type": "font_picker",
|
||||
"id": "type_primary_font",
|
||||
"default": "work_sans_n4",
|
||||
"label": "t:general.primary"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
C:/laragon/www/season/nuevo-theme/AGENTS.md
|
||||
@@ -0,0 +1,19 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ request.locale.iso_code }}">
|
||||
<head>
|
||||
{% # 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' %}
|
||||
|
||||
{{ content_for_header }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{{ content_for_layout }}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,36 @@
|
||||
<!doctype html>
|
||||
<html lang="{{ request.locale.iso_code }}">
|
||||
<head>
|
||||
{% # Inlined CSS Variables %}
|
||||
{% render 'css-variables' %}
|
||||
|
||||
{% comment %}
|
||||
Font preloading:
|
||||
1. Preconnect to font CDN for faster connection
|
||||
2. Preload only the critical font variant (base weight)
|
||||
3. Additional variants load on-demand via @font-face
|
||||
{% endcomment %}
|
||||
{% unless settings.type_primary_font.system? %}
|
||||
<link rel="preconnect" href="https://fonts.shopifycdn.com" crossorigin>
|
||||
|
||||
{% comment %} Preload the base font variant for initial page render {% endcomment %}
|
||||
{{ settings.type_primary_font | font_url | preload_tag: as: 'font', crossorigin: 'anonymous' }}
|
||||
{% endunless %}
|
||||
|
||||
{% # Load and preload the critical CSS %}
|
||||
{{ 'critical.css' | asset_url | stylesheet_tag: preload: true }}
|
||||
|
||||
{% # Social, title, etc. %}
|
||||
{% render 'meta-tags' %}
|
||||
|
||||
{{ content_for_header }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% sections 'header-group' %}
|
||||
|
||||
{{ content_for_layout }}
|
||||
|
||||
{% sections 'footer-group' %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"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"
|
||||
},
|
||||
"customers": {
|
||||
"login": {
|
||||
"email": "Email",
|
||||
"password": "Password",
|
||||
"submit": "Sign in",
|
||||
"title": "Login"
|
||||
}
|
||||
},
|
||||
"collections": {
|
||||
"title": "Collections"
|
||||
},
|
||||
"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 }}"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"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",
|
||||
"fonts": "Fonts",
|
||||
"footer": "Footer",
|
||||
"group": "Group",
|
||||
"header": "Header",
|
||||
"layout": "Layout",
|
||||
"main": "Main",
|
||||
"page": "Page",
|
||||
"password": "Password",
|
||||
"primary": "Primary",
|
||||
"product": "Product",
|
||||
"row": "Row",
|
||||
"search": "Search",
|
||||
"secondary": "Secondary",
|
||||
"section": "Section",
|
||||
"settings": "Settings",
|
||||
"sidebar": "Sidebar",
|
||||
"text": "Text",
|
||||
"theme": "Theme",
|
||||
"typography": "Typography"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -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 %}
|
||||
|
||||
<h1>{{ '404.title' | t }}</h1>
|
||||
|
||||
<p>
|
||||
{{ '404.not_found' | t }}
|
||||
</p>
|
||||
|
||||
<a href="{{ routes.all_products_collection_url }}">
|
||||
{{ '404.back_to_shopping' | t }}
|
||||
</a>
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.404",
|
||||
"settings": []
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -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 %}
|
||||
|
||||
<h1>{{ article.title }}</h1>
|
||||
|
||||
{% assign date = article.published_at | time_tag: format: 'date' %}
|
||||
<p>{{ 'blog.article_metadata_html' | t: date: date, author: article.author }}</p>
|
||||
|
||||
{{ article.content }}
|
||||
|
||||
{% if blog.comments_enabled? %}
|
||||
<h2>{{ 'blog.article_comments' | t }}</h2>
|
||||
|
||||
<div id="comments">
|
||||
{% paginate article.comments by 10 %}
|
||||
{% for comment in article.comments %}
|
||||
<div>
|
||||
<p>{{ comment.author }}</p>
|
||||
<p>
|
||||
{{- comment.created_at | time_tag: format: 'date' -}}
|
||||
</p>
|
||||
<p>{{ comment.content }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{{ paginate | default_pagination: anchor: 'comments' }}
|
||||
{% endpaginate %}
|
||||
</div>
|
||||
|
||||
{% form 'new_comment', article %}
|
||||
<h2>{{ 'blog.comment_form_title' | t }}</h2>
|
||||
|
||||
{{ form.errors | default_errors }}
|
||||
|
||||
<div>
|
||||
<label for="author">{{ 'blog.comment_form_name' | t }}</label>
|
||||
<input type="text" name="comment[author]" id="author" value="{{ form.author }}" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="email">{{ 'blog.comment_form_email' | t }}</label>
|
||||
<input type="email" name="comment[email]" id="email" value="{{ form.email }}" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="body">{{ 'blog.comment_form_body' | t }}</label>
|
||||
<textarea name="comment[body]" id="body" required>{{ form.body }}</textarea>
|
||||
</div>
|
||||
|
||||
<input type="submit" value="{{ 'blog.comment_form_submit' | t }}">
|
||||
{% endform %}
|
||||
{% endif %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.article",
|
||||
"settings": []
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -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 %}
|
||||
|
||||
<h1>{{ blog.title }}</h1>
|
||||
|
||||
{% paginate blog.articles by 5 %}
|
||||
{% for article in blog.articles %}
|
||||
<div>
|
||||
{% if article.image %}
|
||||
{{ article.image | image_url: width: 1000 | image_tag }}
|
||||
{% endif %}
|
||||
<h2>
|
||||
{{ article.title | link_to: article.url }}
|
||||
</h2>
|
||||
{% assign date = article.published_at | time_tag: format: 'date' %}
|
||||
<p>{{ 'blog.article_metadata_html' | t: date: date, author: article.author }}</p>
|
||||
<p>{{ article.excerpt }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{%- if paginate.pages > 1 -%}
|
||||
{{- paginate | default_pagination -}}
|
||||
{%- endif -%}
|
||||
{% endpaginate %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.blog",
|
||||
"settings": []
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -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 %}
|
||||
|
||||
<h1>{{ 'cart.title' | t }}</h1>
|
||||
|
||||
<form action="{{ routes.cart_url }}" method="post">
|
||||
<table>
|
||||
{% for item in cart.items %}
|
||||
<tr>
|
||||
<td>
|
||||
{% render 'image', image: item.image, url: item.url %}
|
||||
</td>
|
||||
<td>
|
||||
<p>{{ item.product.title }}</p>
|
||||
{{ 'cart.remove' | t | link_to: item.url_to_remove }}
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" name="updates[]" value="{{ item.quantity }}">
|
||||
<input type="submit" value="{{ 'cart.update' | t }}">
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
<input type="submit" name="checkout" value="{{ 'cart.checkout' | t }}">
|
||||
</form>
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.cart",
|
||||
"settings": []
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -0,0 +1,47 @@
|
||||
{% comment %}
|
||||
This section is used in the collection template to render collection page
|
||||
listing all products within a collection.
|
||||
|
||||
https://shopify.dev/docs/storefronts/themes/architecture/templates/collection
|
||||
{% endcomment %}
|
||||
|
||||
<h1>{{ collection.title }}</h1>
|
||||
|
||||
<div class="collection-products">
|
||||
{% paginate collection.products by 20 %}
|
||||
{% for product in collection.products %}
|
||||
<div class="collection-product">
|
||||
{% if product.featured_image %}
|
||||
{% render 'image',
|
||||
class: 'collection-product__image',
|
||||
image: product.featured_image,
|
||||
url: product.url,
|
||||
width: 400,
|
||||
height: 400,
|
||||
crop: 'center'
|
||||
%}
|
||||
{% endif %}
|
||||
<div class="collection-product__content">
|
||||
<p>{{ product.title | escape | link_to: product.url }}</p>
|
||||
<p>{{ product.price | money }}</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{{ paginate | default_pagination }}
|
||||
{% endpaginate %}
|
||||
</div>
|
||||
|
||||
{% stylesheet %}
|
||||
.collection-products {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.collection",
|
||||
"settings": []
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -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 %}
|
||||
|
||||
<h1>{{ 'collections.title' | t }}</h1>
|
||||
|
||||
<div
|
||||
class="collections {{ section.settings.grid_item_width }}"
|
||||
style="--grid-gap: {{ section.settings.grid_gap }}px"
|
||||
>
|
||||
{% for collection in collections %}
|
||||
<a class="collection-card" href="{{ collection.url }}">
|
||||
{% if collection.featured_image %}
|
||||
{% render 'image',
|
||||
class: 'collection-card__image',
|
||||
image: collection.featured_image,
|
||||
width: 600,
|
||||
height: 600,
|
||||
crop: 'center'
|
||||
%}
|
||||
{% endif %}
|
||||
|
||||
<div class="collection-card__content">
|
||||
<p>{{ collection.title }}</p>
|
||||
|
||||
{% if collection.description %}
|
||||
<p>{{ collection.description | strip_html | truncatewords: 15 }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% 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 %}
|
||||
@@ -0,0 +1,60 @@
|
||||
<div class="custom-section full-width">
|
||||
{% if section.settings.background_image %}
|
||||
<div class="custom-section__background">
|
||||
{{ section.settings.background_image | image_url: width: 2000 | image_tag }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="custom-section__content">
|
||||
{% content_for 'blocks' %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% 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 %}
|
||||
@@ -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.
|
||||
* ------------------------------------------------------------
|
||||
*/
|
||||
{
|
||||
"type": "footer",
|
||||
"name": "t:general.footer",
|
||||
"sections": {
|
||||
"footer": {
|
||||
"type": "footer",
|
||||
"settings": {
|
||||
"menu": "",
|
||||
"show_payment_icons": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"order": [
|
||||
"footer"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
<footer>
|
||||
<div class="footer__copyright">
|
||||
©
|
||||
{{ 'now' | date: '%Y' }}
|
||||
{{ shop.name | link_to: routes.root_url }}, {{ powered_by_link }}
|
||||
</div>
|
||||
|
||||
<div class="footer__links">
|
||||
{% for link in section.settings.menu.links %}
|
||||
{{ link.title | link_to: link.url }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="footer__payment">
|
||||
{% if section.settings.show_payment_icons %}
|
||||
{% for type in shop.enabled_payment_types %}
|
||||
{{ type | payment_type_svg_tag }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
{% stylesheet %}
|
||||
footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 2rem;
|
||||
}
|
||||
footer a {
|
||||
text-decoration: none;
|
||||
color: var(--color-foreground);
|
||||
}
|
||||
footer .footer__links,
|
||||
footer .footer__payment {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.footer",
|
||||
"settings": [
|
||||
{
|
||||
"type": "link_list",
|
||||
"id": "menu",
|
||||
"label": "t:labels.menu"
|
||||
},
|
||||
{
|
||||
"type": "checkbox",
|
||||
"id": "show_payment_icons",
|
||||
"label": "t:labels.show_payment_icons",
|
||||
"default": true
|
||||
}
|
||||
]
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -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"
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
<header>
|
||||
<h2 class="header__title">
|
||||
{{ shop.name | link_to: routes.root_url }}
|
||||
</h2>
|
||||
|
||||
<div class="header__menu">
|
||||
{% for link in section.settings.menu.links %}
|
||||
{{ link.title | link_to: link.url }}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="header__icons">
|
||||
{% if shop.customer_accounts_enabled %}
|
||||
<shopify-account menu="{{ section.settings.customer_account_menu }}">
|
||||
{{ 'icon-account.svg' | inline_asset_content }}
|
||||
</shopify-account>
|
||||
{% endif %}
|
||||
|
||||
<a href="{{ routes.cart_url }}">
|
||||
{% if cart.item_count > 0 %}
|
||||
<sup>{{ cart.item_count }}</sup>
|
||||
{% endif %}
|
||||
|
||||
{{ 'icon-cart.svg' | inline_asset_content }}
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{% stylesheet %}
|
||||
header {
|
||||
height: 5rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
header a {
|
||||
position: relative;
|
||||
text-decoration: none;
|
||||
color: var(--color-foreground);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
header a sup {
|
||||
position: absolute;
|
||||
left: 100%;
|
||||
overflow: hidden;
|
||||
max-width: var(--page-margin);
|
||||
}
|
||||
header svg {
|
||||
width: 2rem;
|
||||
}
|
||||
header .header__menu,
|
||||
header .header__icons {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.header",
|
||||
"settings": [
|
||||
{
|
||||
"type": "link_list",
|
||||
"id": "menu",
|
||||
"label": "t:labels.menu"
|
||||
},
|
||||
{
|
||||
"type": "link_list",
|
||||
"id": "customer_account_menu",
|
||||
"label": "t:labels.customer_account_menu",
|
||||
"default": "customer-account-main-menu"
|
||||
}
|
||||
]
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -0,0 +1,144 @@
|
||||
{% comment %}
|
||||
Welcome to Shopify theme development!
|
||||
{% endcomment %}
|
||||
|
||||
<div class="welcome full-width">
|
||||
<div class="welcome-content">
|
||||
<div>
|
||||
<h1>Hello, World!</h1>
|
||||
|
||||
<p class="welcome-description">
|
||||
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.
|
||||
</p>
|
||||
|
||||
<p class="welcome-description">
|
||||
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.
|
||||
</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<img src="{{ 'shoppy-x-ray.svg' | asset_url }}" width="300" height="300">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="highlights">
|
||||
<div class="highlight">
|
||||
<h3>Key Concepts</h3>
|
||||
<p class="highlight-description">
|
||||
Shopify themes are a package of template files, building blocks, and supporting assets. Use these building blocks
|
||||
to create modular, customizable themes.
|
||||
</p>
|
||||
<p>{{ 'Learn more about key concepts' | link_to: 'https://shopify.dev/docs/storefronts/themes/architecture' }}</p>
|
||||
</div>
|
||||
|
||||
<div class="highlight">
|
||||
<h3>Liquid</h3>
|
||||
<p class="highlight-description">
|
||||
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.
|
||||
</p>
|
||||
<p>{{ 'View the Liquid reference' | link_to: 'https://shopify.dev/docs/api/liquid' }}</p>
|
||||
</div>
|
||||
|
||||
<div class="highlight">
|
||||
<h3>Best Practices</h3>
|
||||
<p class="highlight-description">
|
||||
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.
|
||||
</p>
|
||||
<p>{{ 'Follow best practices' | link_to: 'https://shopify.dev/docs/storefronts/themes/best-practices' }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% 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 %}
|
||||
@@ -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 %}
|
||||
|
||||
<h1>{{ page.title }}</h1>
|
||||
|
||||
{{ page.content }}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.page",
|
||||
"settings": []
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -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 %}
|
||||
|
||||
<h1>{{ 'password.title' | t }}</h1>
|
||||
|
||||
{% if shop.password_message %}
|
||||
<p>{{ shop.password_message }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% form 'storefront_password' %}
|
||||
{% if form.errors %}
|
||||
{{ form.errors | default_errors }}
|
||||
{% endif %}
|
||||
|
||||
<label for="password-input">
|
||||
{{ 'password.password' | t }}
|
||||
</label>
|
||||
|
||||
<input type="password" name="password" id="password-input">
|
||||
|
||||
<button type="submit">
|
||||
{{ 'password.enter' | t }}
|
||||
</button>
|
||||
{% endform %}
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.password",
|
||||
"settings": []
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -0,0 +1,52 @@
|
||||
{% comment %}
|
||||
This section is used in the product template to render product page with
|
||||
media, content, and add-to-cart form.
|
||||
|
||||
https://shopify.dev/docs/storefronts/themes/architecture/templates/product
|
||||
{% endcomment %}
|
||||
|
||||
<div class="product-images">
|
||||
{% for image in product.images %}
|
||||
{% render 'image', class: 'product-image', image: image %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
<div class="product-info">
|
||||
<h1>{{ product.title }}</h1>
|
||||
<p>{{ product.price | money }}</p>
|
||||
<p>{{ product.description }}</p>
|
||||
</div>
|
||||
|
||||
<div class="product-form">
|
||||
{% form 'product', product %}
|
||||
{% assign current_variant = product.selected_or_first_available_variant %}
|
||||
|
||||
<select name="id">
|
||||
{% for variant in product.variants %}
|
||||
<option
|
||||
value="{{ variant.id }}"
|
||||
{% if variant == current_variant %}
|
||||
selected="selected"
|
||||
{% endif %}
|
||||
>
|
||||
{{ variant.title }} - {{ variant.price | money }}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<input type="text" name="quantity" min="1" value="1">
|
||||
|
||||
<input type="submit" value="Add to cart">
|
||||
{{ form | payment_button }}
|
||||
{% endform %}
|
||||
</div>
|
||||
|
||||
{% schema %}
|
||||
{
|
||||
"name": "t:general.product",
|
||||
"settings": [],
|
||||
"disabled_on": {
|
||||
"groups": ["header", "footer"]
|
||||
}
|
||||
}
|
||||
{% endschema %}
|
||||
@@ -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 %}
|
||||
|
||||
<h1>{{ 'search.title' | t }}</h1>
|
||||
|
||||
<form action="{{ routes.search_url }}" method="get" role="search">
|
||||
<input
|
||||
type="search"
|
||||
size="50"
|
||||
name="q"
|
||||
value="{{ search.terms | escape }}"
|
||||
placeholder="{{ 'search.placeholder' | t }}"
|
||||
>
|
||||
<button type="submit">{{ 'search.submit' | t }}</button>
|
||||
</form>
|
||||
|
||||
{% if search.performed %}
|
||||
{% if search.results_count == 0 %}
|
||||
<p>{{ 'search.no_results_html' | t: terms: search.terms }}</p>
|
||||
{% else %}
|
||||
<p>{{ 'search.results_for_html' | t: terms: search.terms, count: search.results_count }}</p>
|
||||
|
||||
<div class="search-results">
|
||||
{% paginate search.results by 20 %}
|
||||
{% # Search result items may be an article, a page, or a product. %}
|
||||
{% for result in search.results %}
|
||||
<div class="search-result">
|
||||
{% 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 %}
|
||||
<div class="search-result__content">
|
||||
<p>
|
||||
{{ result.title | link_to: result.url }}
|
||||
{% if result.price %}
|
||||
{{ result.price | money_with_currency }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{{ paginate | default_pagination }}
|
||||
{% endpaginate %}
|
||||
</div>
|
||||
{% 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 %}
|
||||
@@ -0,0 +1,18 @@
|
||||
{% style %}
|
||||
{% # Loads all font variantions with display: swap %}
|
||||
{{ settings.type_primary_font | font_face: font_display: 'swap' }}
|
||||
{{ settings.type_primary_font | font_modify: 'weight', 'bold' | font_face: font_display: 'swap' }}
|
||||
{{ settings.type_primary_font | font_modify: 'weight', 'bold' | font_modify: 'style', 'italic' | font_face: font_display: 'swap' }}
|
||||
{{ settings.type_primary_font | font_modify: 'style', 'italic' | font_face: font_display: 'swap' }}
|
||||
|
||||
:root {
|
||||
--font-primary--family: {{ settings.type_primary_font.family }}, {{ settings.type_primary_font.fallback_families }};
|
||||
--font-primary--style: {{ settings.type_primary_font.style }};
|
||||
--font-primary--weight: {{ settings.type_primary_font.weight }};
|
||||
--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 %}
|
||||
@@ -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 }}
|
||||
</{{ wrapper }}>
|
||||
|
||||
{% stylesheet %}
|
||||
.image {
|
||||
display: block;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.image > img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
{% endstylesheet %}
|
||||
@@ -0,0 +1,105 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
|
||||
{%- 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
|
||||
%}
|
||||
|
||||
<meta
|
||||
property="og:site_name"
|
||||
content="{{ shop.name }}"
|
||||
>
|
||||
<meta
|
||||
property="og:url"
|
||||
content="{{ og_url }}"
|
||||
>
|
||||
<meta
|
||||
property="og:title"
|
||||
content="{{ og_title | escape }}"
|
||||
>
|
||||
<meta
|
||||
property="og:type"
|
||||
content="{{ og_type }}"
|
||||
>
|
||||
<meta
|
||||
property="og:description"
|
||||
content="{{ og_description | escape }}"
|
||||
>
|
||||
|
||||
{%- if page_image -%}
|
||||
<meta
|
||||
property="og:image"
|
||||
content="http:{{ page_image | image_url }}"
|
||||
>
|
||||
<meta
|
||||
property="og:image:secure_url"
|
||||
content="https:{{ page_image | image_url }}"
|
||||
>
|
||||
<meta
|
||||
property="og:image:width"
|
||||
content="{{ page_image.width }}"
|
||||
>
|
||||
<meta
|
||||
property="og:image:height"
|
||||
content="{{ page_image.height }}"
|
||||
>
|
||||
{%- endif -%}
|
||||
|
||||
{%- if request.page_type == 'product' -%}
|
||||
<script type="application/ld+json">
|
||||
{{ product | structured_data }}
|
||||
</script>
|
||||
|
||||
<meta
|
||||
property="og:price:amount"
|
||||
content="{{ product.price | money_without_currency | strip_html }}"
|
||||
>
|
||||
<meta
|
||||
property="og:price:currency"
|
||||
content="{{ cart.currency.iso_code }}"
|
||||
>
|
||||
{%- endif -%}
|
||||
|
||||
<meta
|
||||
name="twitter:card"
|
||||
content="summary_large_image"
|
||||
>
|
||||
<meta
|
||||
name="twitter:title"
|
||||
content="{{ og_title | escape }}"
|
||||
>
|
||||
<meta
|
||||
name="twitter:description"
|
||||
content="{{ og_description | escape }}"
|
||||
>
|
||||
|
||||
<title>
|
||||
{{ 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 -%}
|
||||
</title>
|
||||
|
||||
<link
|
||||
rel="canonical"
|
||||
href="{{ canonical_url }}"
|
||||
>
|
||||
|
||||
{% if page_description %}
|
||||
<meta
|
||||
name="description"
|
||||
content="{{ page_description | escape }}"
|
||||
>
|
||||
{% endif %}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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": "collection",
|
||||
"settings": {}
|
||||
}
|
||||
},
|
||||
"order": [
|
||||
"main"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
{% layout none %}
|
||||
|
||||
<!doctype html>
|
||||
<html lang="{{ request.locale.iso_code }}">
|
||||
<head>
|
||||
{% # 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 }}
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<main>
|
||||
<div class="shopify-section">
|
||||
<h1>{{ gift_card.balance | money }}</h1>
|
||||
|
||||
{% if gift_card.enabled == false or gift_card.expired %}
|
||||
<p>{{ 'gift_card.expired' | t }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% if gift_card.expires_on %}
|
||||
{% assign expires_on = gift_card.expires_on | date: '%B %e, %Y' %}
|
||||
<p>
|
||||
{{ 'gift_card.expires_on' | t: expires_on: expires_on }}
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
{% if settings.logo %}
|
||||
{{ settings.logo | image_url: width: 300 | image_tag: alt: shop.name }}
|
||||
{% else %}
|
||||
<img
|
||||
src="{{ 'gift-card/card.svg' | shopify_asset_url }}"
|
||||
alt="{{ 'gift_card.card' | t }}"
|
||||
width="300"
|
||||
height="200"
|
||||
>
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<h2>{{ shop.name }}</h2>
|
||||
<p>{{ 'gift_card.use_at_checkout' | t }}</p>
|
||||
<p>{{ gift_card.code | format_code }}</p>
|
||||
|
||||
{% if gift_card.pass_url %}
|
||||
<a href="{{ gift_card.pass_url }}">
|
||||
<img
|
||||
src="{{ 'gift-card/add-to-apple-wallet.svg' | shopify_asset_url }}"
|
||||
alt="{{ 'gift_card.add_to_apple_wallet' | t }}"
|
||||
width="200"
|
||||
height="60"
|
||||
>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -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": "hello-world",
|
||||
"settings": {}
|
||||
}
|
||||
},
|
||||
"order": [
|
||||
"main"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user