view src/help.html.luan @ 2:e32e4120dc70

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 11 Jul 2025 21:23:39 -0600
parents 8f4df159f06b
children
line wrap: on
line source

local Luan = require "luan:Luan.luan"
local error = Luan.error
local Io = require "luan:Io.luan"
local Http = require "luan:http/Http.luan"
local Shared = require "site:/lib/Shared.luan"
local head = Shared.head or error()
local page_header = Shared.page_header or error()
local footer = Shared.footer or error()


return function()
	Io.stdout = Http.response.text_writer()
%>
<!doctype html>
<html lang="en">
	<head>
<%		head() %>
		<title>Link My Style</title>
		<style>
			[page] > * {
				max-width: 700px;
			}
			h1 {
				text-align: center;
			}
			div[row] {
				border: solid #EEEEEE;
				color: #4E4293;
			}
			div[row] + div[row] {
				border-top: none;
			}
			div[row] > div {
				padding: 10px;
			}
			div[q] {
				display: flex;
				justify-content: space-between;
			}
			div[q]:hover {
				background-color: #DBD6FE;
			}
			div[a] {
				display: none;
			}
			div[a] img {
				width: 100%;
			}
			@media (min-width: 575px) {
				div[a] > div {
					display: flex;
					align-items: flex-start;
					gap: 10px;
				}
				div[a] img {
					width: 40%;
				}
			}
		</style>
		<script>
			function toggle(q) {
				let a = q.nextElementSibling;
				let span = q.querySelector('span:last-child');
				if( a.style.display === 'block' ) {
					a.style.display = 'none';
					span.textContent = '⌄';
					history.replaceState(null,null,'#');
				} else {
					a.style.display = 'block';
					span.textContent = '^';
					history.replaceState(null,null,`#${q.id}`);
				}
			}

			function init() {
				if( location.hash ) {
					let q = document.querySelector(location.hash);
					if(q)
						toggle(q);
				}
			}
		</script>
	</head>
	<body onload="init()">
		<div page>
<%			page_header() %>
			<h1>Help</h1>
			<div row>
				<div q id=account onclick="toggle(this)">
					<span>How to create an account</span>
					<span>⌄</span>
				</div>
				<div a>
					<div>
						<div>
							<p>When signing up for LinkMyStyle, all we ask is for an email, a username, and a password.</p>

							<p>Once you’ve filled everything out and clicked on the “Create Account” button, we will send you a 6 digit verification code. Enter this code and you’re all set up.</p>
						</div>
						<img src="/images/help/register.jpg">
					</div>
				</div>
			</div>
			<div row>
				<div q id=setup onclick="toggle(this)">
					<span>How to set up your page</span>
					<span>⌄</span>
				</div>
				<div a>
					<div>
						<div>
							<p>First, click on the upper-right icon, and then click on “My account”. This will bring you to your account page. Here, you can add your profile picture, profile title, profile bio, change your username, change your password, add social icons, and change your email.</p>

							<p>Once you’ve done this you can start adding links by clicking on the upper-right corner and clicking on “Links”. Title your link and input the URL. Once you’ve done this, you can grab the left of each link and rearrange as needed.</p>

							<p>Next, to add images to your page, you can click on the upper-right corner and click “Photos”. Start by adding a title to your photo. This is just for your own analytics. Once you’ve named your photo, click “Add an image”, crop if needed, save the image, and then go ahead and add the associated links to the photo.</p>
						</div>
						<img src="/images/help/burger.jpg">
					</div>
				</div>
			</div>
			<div row>
				<div q id=customize onclick="toggle(this)">
					<span>How to customize your page</span>
					<span>⌄</span>
				</div>
				<div a>
					<div>
						<div>
							<p>Click on the upper-right icon and then click on “My theme” to edit the look of your page. Here you can upload any background image or change the background color. When changing the color of a section, you can either click on the left box showing the color or input a hex code of your choice. You can click the left side of every section to make quick changes there.</p>
						</div>
						<img src="/images/help/themepage.jpg">
					</div>
				</div>
			</div>
			<div row>
				<div q id=affiliates onclick="toggle(this)">
					<span>The best design for affiliates</span>
					<span>⌄</span>
				</div>
				<div a>
					<div>
						<div>
							<p><a href="https://linkmy.style/MidsizeFashionInspo ">MidsizeFashionInspo</a> is a great example of an affiliate who uses our site. Whenever she posts a video on TikTok or Instagram, she uploads a screenshot to her LinkMyStyle page. Once she does that, she links the products she shows in that video. This helps her followers easily find products and helps to increase her affiliate sales.</p>
						</div>
						<img src="/images/help/mid.jpg">
					</div>
				</div>
			</div>
			<div row>
				<div q id=musicians onclick="toggle(this)">
					<span>The best design for musicians</span>
					<span>⌄</span>
				</div>
				<div a>
					<div>
						<div>
							<p><a href="https://linkmy.style/JordanTaylor">JordanTaylor</a> is a great example of a musician who uses our site. If you click on her link, you can see that she displays her name, describes her work, links her social media, and then has her albums as photos. Each photo of an album cover also has links to each individual song. Since Jordan has a mix of songs on Spotify and Soundcloud, this makes it easy to mix and match platforms.</p>
						</div>
						<img src="/images/help/jordan.jpg">
					</div>
				</div>
			</div>
			<div row>
				<div q id=file onclick="toggle(this)">
					<span>How to link to a file</span>
					<span>⌄</span>
				</div>
				<div a>
					<div>
						<div>
							<p>To link to a file, you need a URL for the file.  If you have a cloud file storage service like <a href="https://support.google.com/docs/answer/183965?visit_id=638477670270957051-2553158566&rd=1">Google Drive</a> or <a href="https://help.dropbox.com/share/create-and-share-link">Dropbox</a>, you should be able to share the file and get a URL for it.  If you don't have such a service, you can look for a "file upload" service instead.</p>
						</div>
					</div>
				</div>
			</div>
			<div row>
				<div q id=contact onclick="toggle(this)">
					<span>Have another question?</span>
					<span>⌄</span>
				</div>
				<div a>
					<p>Contact us at <b>support@linkmy.style</b></p>
				</div>
			</div>
<%			footer() %>
		</div>
	</body>
</html>
<%
end