Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop -> Main #104

Merged
merged 10 commits into from
Oct 11, 2023
Binary file added public/assets/images/onboarding/welcome.webp
Binary file not shown.
Binary file added public/assets/videos/onboarding-marketplace.mp4
Binary file not shown.
Binary file added public/assets/videos/onboarding-mint.mp4
Binary file not shown.
Binary file added public/assets/videos/onboarding-set-persona.mp4
Binary file not shown.
8 changes: 2 additions & 6 deletions src/components/Checkbox/Checkbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,18 @@
* @returns
*/

// TODO: Remove ESLINT DISABLE WHEN REVERTING BACK TO CHECKBOX
// eslint-disable-next-line
const Checkbox = ({ label, size = 'md', checked, onChange }) => {
// TODO: Change The Input Type to Checkbox, and remove the className property

return (
<label className='custom checkbox container'>
<input
type='radio'
type='checkbox'
className={checked ? 'checked' : undefined}
onChange={e => {
onChange(e.target.checked)
}}
checked={checked}
/>
{/* <span className='checkmark' data-size={size} /> */}
<span className='checkmark' data-size={size} />
{label}
</label>
)
Expand Down
26 changes: 26 additions & 0 deletions src/components/Radio/Radio.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
*
* @param {Object} props
* @param {string | Element} props.label
* @param {boolean} props.checked
* @param {(checked?: boolean) => any} props.onChange
* @returns
*/

const Radio = ({ label, checked, onChange }) => {
return (
<label className='custom checkbox container'>
<input
type='radio'
className={checked ? 'checked' : undefined}
onChange={e => {
onChange(e.target.checked)
}}
checked={checked}
/>
{label}
</label>
)
}

export { Radio }
13 changes: 13 additions & 0 deletions src/components/Radio/Radio.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.custom.radio.container {
position: relative;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
width: max-content;

display: flex;
align-items: center;
gap: 12px;
}
19 changes: 19 additions & 0 deletions src/components/UserOnboarding/MinimizedInfo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react'

import { Button } from '@/components/Button/Button'

const MinimizedInfo = ({ hide }) => {
return (
<div className='minimized guide info'>
<div className='guide content'>
<div>
The guide will be available on this tray throughout the walkthrough.
</div>

<Button onClick={hide}>Got It</Button>
</div>
</div>
)
}

export default MinimizedInfo
42 changes: 42 additions & 0 deletions src/components/UserOnboarding/MinimizedInfo.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@use "../../design-system/colors";
@use "../../design-system/shadows";
@use "../../design-system/typography/styles";
@use "../../design-system/typography/weights";

.minimized.guide.info {
position: fixed;
inset: 0;
background-color: rgba(0, 0, 0, 0.8);
z-index: 99998;

.guide.content {
position: fixed;
background-color: colors.$gray-900;
color: colors.$base-white;
max-width: 320px;
bottom: 166px;
right: 32px;
padding: 12px;
border-radius: 8px;

@media (max-width: 767px) {
bottom: 96px;
left: 8px;
right: 8px;
max-width: unset;
}

div {
@include styles.text-xs;
@include weights.medium;
}

button {
margin-top: 4px;
margin-left: auto;
padding: 4px 10px;
@include styles.text-xs;
@include weights.semibold;
}
}
}
Loading
Loading