Skip to content

Commit

Permalink
Merge pull request #3 from SlamTheDragon/dev
Browse files Browse the repository at this point in the history
Mobile Update 1 | Patch v3.0.4
  • Loading branch information
SlamTheDragon authored Sep 13, 2023
2 parents fc8072c + 115059a commit 5b7d7f7
Show file tree
Hide file tree
Showing 76 changed files with 387 additions and 97 deletions.
2 changes: 1 addition & 1 deletion static/css/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/css/main.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion static/js/status.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed static/media/SegoeUI.b55d28915ec9ca96c8fb copy.woff2
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion v3main/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion v3main/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "slamthedragon-webapp-main",
"version": "3.0.3",
"version": "3.0.4",
"private": true,
"dependencies": {
"@material-design-icons/svg": "^0.14.10",
Expand Down
75 changes: 69 additions & 6 deletions v3main/src/components/.Interface/Interface.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { ReactComponent as Open } from '@material-design-icons/svg/outlined/open_in_new.svg';
import { ReactComponent as Menu } from '@material-design-icons/svg/outlined/menu.svg'
import { useState } from 'react'
import { useDispatch } from 'react-redux'
import { setScrollLayer } from '../slice/parallax-slices/parallaxScrollerSlice'
import { checkDevice } from '../../utils/device-checker/checkDevice'
Expand All @@ -8,14 +11,19 @@ import CommissionPrices from '../widgets/ICommission/CPricesSection/CommissionPr
import CommissionStatus from '../widgets/ICommission/CStatus/CommissionStatus'
import Gallery from '../widgets/ICommission/Gallery/Gallery'
import WelcomeHeaderMobile from '../widgets/ICommission/WelcomeHeader/WelcomeHeaderMobile'
import FooterMobile from '../common/FooterMobile'
import Button from '../common/Button'
import style from './interface.module.scss'


/**
* This is your main interface, all components shall pass through here
* @returns Interface
*/
export default function Interface() {
const dispatch = useDispatch()
const [isNavOpen, setNavOpen] = useState(false)
const [content, setContent] = useState(false)

if (checkDevice()) {
dispatch(setPanelFold(true))
Expand All @@ -25,14 +33,69 @@ export default function Interface() {
dispatch(setScrollLayer(event.currentTarget.scrollTop))
}

function toggleNav() {
setNavOpen(!isNavOpen)
}

function switchContent(origin: number) {
if (origin === 0) {
setContent(false)
} else {
setContent(true)
}
}

function renderInterface() {
if (checkDevice()) {
return (content) ?
<div className={style.innerInterface} style={{ filter: `blur(${(isNavOpen) ? 60 : 0}px)` }}>
<Gallery />
</div> :
<div className={style.innerInterface} style={{ filter: `blur(${(isNavOpen) ? 60 : 0}px)` }} onScroll={transferScrollData}>
<WelcomeHeaderMobile />
<CommissionPrices />
</div>
} else {
return (
<div className={style.innerInterface} onScroll={transferScrollData}>
<WelcomeHeaderDesktop />
<CommissionPrices />
<CommissionStatus />
<Gallery />
<Footer />
</div>
)
}
}

return (
<>
<div className={style.interface} onScroll={transferScrollData} id='view'>
{(checkDevice()) ? <WelcomeHeaderMobile /> : <WelcomeHeaderDesktop />}
<CommissionPrices />
{(checkDevice()) ? <></> : <CommissionStatus />}
<Gallery />
<Footer />
<div className={style.interface} id='view'>
<div className={style.navBtn}>
<Button onClick={() => { toggleNav() }}>
<Menu />
</Button>
</div>
<div className={style.navContent} style={{ height: `${(isNavOpen) ? 100 : 0}%`, opacity: `${(isNavOpen) ? 1 : 0}` }} onClick={() => { toggleNav() }}>
<h1>
Menu
</h1>
<div className={style.navSelections}>
<Button classItem={(content) ? '' : 'primary'} onClick={() => { switchContent(0); toggleNav() }}>
Prices
</Button>
<Button classItem={(content) ? 'primary' : ''} onClick={() => { switchContent(1); toggleNav() }}>
Finished Commissions
</Button>
<Button disabled={true}>
Commission Queue <Open />
</Button>
</div>

<FooterMobile />
</div>

{renderInterface()}
</div>
</>
);
Expand Down
85 changes: 71 additions & 14 deletions v3main/src/components/.Interface/interface.module.scss
Original file line number Diff line number Diff line change
@@ -1,27 +1,84 @@
@import "../../index.scss";

.interface {
$_thumb: $tone1;
$_track: $background-color;
.innerInterface {
@include transition-anim;
@include wight(100vw, 100vh);

@include wight(100vw, 100vh);
flex-direction: column;

flex-direction: column;
background-position: center;
background-repeat: no-repeat;
background-size: cover;

background-position: center;
background-repeat: no-repeat;
background-size: cover;
overflow-y: scroll;
overflow-x: hidden;

overflow-y: scroll;
overflow-x: hidden;

scroll-snap-type: unset;
scroll-snap-stop: unset;
scroll-snap-type: unset;
scroll-snap-stop: unset;
}
.navBtn,
.navContent {
display: none;
}
}

@media only screen and (max-width: 430px) {
.interface {
scroll-snap-type: y proximity;
scroll-snap-stop: normal;
.innerInterface {
scroll-snap-type: y proximity;
scroll-snap-stop: normal;
}
.navBtn {
width: 100%;
display: flex;
flex-direction: row;
justify-content: flex-end;
position: absolute;
z-index: 10000;
margin-top: 10px;

button {
box-shadow: unset;
-webkit-box-shadow: unset;
-moz-box-shadow: unset;
background-color: unset;
}
}

.navContent {
@include transition-anim;
@include wight(100%, 100%);
@include flex-center;

flex-direction: column;
justify-content: space-evenly;
position: absolute;
z-index: 9900;

overflow: hidden;

outline: 2px solid $tone1;
background-color: #0f182c5b;

.navSelections {
@include wight(80%, max-content);
@include flex-center;
flex-direction: column;

gap: 10px;

button {
// @include wight(100%, 100%);
@include flex-center;
gap: 10px;
width: 100%;

svg {
width: 14px;
}
}
}
}
}
}
5 changes: 5 additions & 0 deletions v3main/src/components/common/Button/button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@
&:disabled {
cursor: not-allowed;
background-color: $disabled;
color: $tone2;

svg {
fill: $tone2;
}
}
}
3 changes: 1 addition & 2 deletions v3main/src/components/common/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ import style from './footer.module.scss'
export default function Footer() {

return (
<footer style={style}>
<footer>
<div className={style.footerHeader}>

{/* <img draggable="false" alt='logo' src={logo} width={130} height={130} /> */}
<Logo />

<div className={style.footerText}>
Expand Down
53 changes: 53 additions & 0 deletions v3main/src/components/common/FooterMobile/FooterMobile.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
import { ReactComponent as Logo } from '../../../assets/svg/SlamTheDragon Logo.svg'
import { ReactComponent as Twitter } from '../../../assets/svg/twitterIcon.svg'
import { ReactComponent as Kofi } from '../../../assets/svg/kofiIcon.svg'
import { ReactComponent as Threads } from '../../../assets/svg/threadsIcon.svg'
import { ReactComponent as Instagram } from '../../../assets/svg/instagramIcon.svg'
import { ReactComponent as Deviant } from '../../../assets/svg/deviantartIcon.svg'
import { ReactComponent as Discord } from '../../../assets/svg/discordIcon.svg'
import style from './footermobile.module.scss'


export default function FooterMobile() {

return (
<footer style={style}>
<Logo />
<div className={style.footerHeaderLinks}>
<div>
<a className={style.discord} href="https://discord.gg/GSKdSPgjQb" target="_blank" rel="noreferrer"><Discord /></a>
</div>
<div>
<a className={style.twitter} href="https://twitter.com/SlamTheDragon" target="_blank" rel="noreferrer"><Twitter /></a>
</div>
<div>
<a className={style.kofi} href="https://ko-fi.com/slamthedragon" target="_blank" rel="noreferrer"><Kofi /></a>
</div>
<div>
<a href="https://www.threads.net/@slamthedragon" target="_blank" rel="noreferrer"><Threads /></a>
</div>
<div>
<a className={style.instagram} href="https://www.instagram.com/slamthedragon/" target="_blank" rel="noreferrer"><Instagram /></a>
</div>
<div>
<a className={style.deviant} href="https://www.deviantart.com/slamdx16" target="_blank" rel="noreferrer"><Deviant /></a>
</div>
</div>
<div className={style.footerHeader}>

<div className={style.footerText}>
<span style={{ display: 'flex', alignItems: 'center' }}>
<a href="https://github.com/SlamTheDragon/SlamTheDragon.github.io" target="_blank" rel="noreferrer">Coded With Love <span style={{ fontSize: '7pt' }}>&nbsp;&nbsp;&#8226;&nbsp;&nbsp;</span> Powered By Github Pages</a>
</span>
<span>
<a href="https://slamthedragon.me/service-and-agreement">Terms of Service & Commissioner Agreement</a>
</span>
<span>
© 2023 Written By SlamTheDragon
</span>
</div>

</div>
</footer>
)
}
Loading

0 comments on commit 5b7d7f7

Please sign in to comment.