Created
December 15, 2022 19:36
-
-
Save rdraward/4a9ee43daf4b7900f1150b18ef6519a9 to your computer and use it in GitHub Desktop.
Liquid snippet for quiz tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="{{ 'section-main-page.css' | asset_url }}" media="print" onload="this.media='all'"> | |
<link rel="stylesheet" href="{{ 'component-rte.css' | asset_url }}" media="print" onload="this.media='all'"> | |
<!-- Find your direct script tag in the Installing section in your Gadget project's API Reference --> | |
<script src="YOUR DIRECT SCRIPT TAG HERE"></script> | |
<script src="{{ 'product-quiz.js' | asset_url }}" defer="defer"></script> | |
<noscript>{{ 'section-main-page.css' | asset_url | stylesheet_tag }}</noscript> | |
<noscript>{{ 'component-rte.css' | asset_url | stylesheet_tag }}</noscript> | |
<div class="page-width page-width--narrow"> | |
<product-quiz class="quiz"> | |
<h1 class="main-page-title page-title h0 product-quiz__title"> | |
</h1> | |
<div class="product-quiz__body"> | |
<span> | |
</span> | |
</div> | |
<div> | |
<form class="form"> | |
<div class="product-quiz__questions" id="questions"> | |
<div class="product-quiz__question"> | |
<span class="product-quiz__question-answer"> | |
</span> | |
</div> | |
</div> | |
<hr class="product-quiz__submit-hr" /> | |
<div class="product-quiz__email-container"> | |
<label for="email">Enter your email to complete quiz</label><br> | |
<input type="email" id="product-quiz__email" name="email" required="required" style="font-size: 16px; height: 32px"><br><br> | |
</div> | |
<button | |
name="quiz-submit" | |
type="submit" | |
class="product-quiz__submit button button--secondary" | |
> | |
Get my results | |
</button> | |
</form> | |
</product-quiz> | |
</div> | |
{% schema %} | |
{ | |
"name": "t:sections.quiz-page.name", | |
"tag": "section", | |
"class": "spaced-section" | |
} | |
{% endschema %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment