various fixes

This commit is contained in:
Kyle
2020-12-20 12:53:31 -08:00
parent 04a01baf7e
commit c5459053cd
10 changed files with 68 additions and 6 deletions

View File

@@ -69,7 +69,7 @@
html { html {
font-size: 12pt; font-size: 12pt;
overflow-x: hidden; overflow-x: hidden;
background: none; background: #222;
color: white; color: white;
} }
body { body {
@@ -117,6 +117,7 @@ img {
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: #888; background: #888;
border-radius: 0.25rem; border-radius: 0.25rem;
margin: 1px;
} }
/*Fonts*/ /*Fonts*/
.title { .title {
@@ -200,9 +201,17 @@ a:hover {
.center { .center {
text-align: center; text-align: center;
} }
.layer {
padding: 2rem;
}
.vertical-center {
margin: auto;
}
@media only screen and (min-width: 750px) {
.layer { .layer {
padding: 4rem; padding: 4rem;
} }
}
/*Hamburger*/ /*Hamburger*/
.hamburger { .hamburger {
position: fixed; position: fixed;
@@ -384,6 +393,25 @@ textarea.input {
/*Home Page only*/
.sample-grid {
display: grid;
grid-gap: 1rem;
grid-template-columns: 1fr;
}
.sample-grid > img {
max-width: 375px;
width: 100%;
height: auto;
}
@media only screen and (min-width: 750px) {
.sample-grid {
grid-template-columns: 375px auto;
}
.sample-grid.right {
grid-template-columns: auto 375px;
}
}
@@ -587,8 +615,10 @@ textarea.input {
background: #333; background: #333;
} }
.text-codes { .text-codes {
max-width: calc(100vw - 3rem);
display: grid; display: grid;
grid-template-columns: 11rem auto; grid-template-columns: auto auto;
overflow-x: scroll;
} }
.text-codes > * { .text-codes > * {
border: 1px solid black; border: 1px solid black;

View File

@@ -3,6 +3,7 @@
<h4>Card Conjurer</h4> <h4>Card Conjurer</h4>
<h5><a href='https://twitter.com/ImKyle4815' target='_blank'>Twitter</a></h5> <h5><a href='https://twitter.com/ImKyle4815' target='_blank'>Twitter</a></h5>
<h5><a href='https://www.patreon.com/KyleBurton' target='_blank'>Patreon</a></h5> <h5><a href='https://www.patreon.com/KyleBurton' target='_blank'>Patreon</a></h5>
<h5><a href='mailto:cardconjurermtg@gmail.com' target='_blank'>Email</a></h5>
</div> </div>
<div> <div>
<h4>Navigation</h4> <h4>Navigation</h4>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 MiB

BIN
img/samples/sample1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 987 KiB

BIN
img/samples/sample2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 KiB

BIN
img/samples/sample3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 960 KiB

View File

@@ -1,9 +1,40 @@
<?php include('globalHTML/header.php'); ?> <?php include('globalHTML/header.php'); ?>
<title>Card Conjurer</title> <title>Card Conjurer</title>
<div class='layer center'></div>
<div class='layer center'> <div class='layer center'>
<h2>Welcome to Card Conjurer</h2> <h1>Welcome to Card Conjurer</h1>
<h4>The custom Magic: The Gathering card creator</h4>
</div>
<div class='layer center'></div>
<div class='layer readable-background center'>
<div class='sample-grid'>
<img src='/img/samples/sample1.png'>
<div class='vertical-center'>
<h2 class='padding margin-bottom'>Choose from a Variety of Card Frames</h2>
<h4 class='padding margin-bottom'>Card Conjurer offers Expeditions, Inventions, Showcase Frames, and so much more. <a href='/creator/'>Take a look</a>!</h4>
</div>
</div>
</div> </div>
<div class='layer center'> <div class='layer center'>
<h2>The home page is currently under construction...</h2> <div class='sample-grid right'>
<div class='vertical-center'>
<h2 class='padding margin-bottom'>Customize to Your Heart's Content</h2>
<h4 class='padding margin-bottom'>With Card Conjurer's level of customization, you'll have endless options when designing your dream cards. <a href='/creator/'>Try it out</a>!</h4>
</div>
<img src='/img/samples/sample2.png'>
</div>
</div>
<div class='layer readable-background center'>
<div class='sample-grid'>
<img src='/img/samples/sample3.png'>
<div class='vertical-center'>
<h2 class='padding margin-bottom'>Bling Out Existing Favorites</h2>
<h4 class='padding margin-bottom'>Easily import vital information from existing cards, then redesign them. <a href='/creator/'>Go on, do it</a>!</h4>
</div>
</div>
</div>
<div class='layer center'>
<h2 class='margin-bottom'>Ready?</h2>
<a href='/creator/'><h1>Get Started</h1></a>
</div> </div>
<?php include('globalHTML/footer.php'); ?> <?php include('globalHTML/footer.php'); ?>

View File

@@ -3,7 +3,7 @@ var params = new URLSearchParams(window.location.search);
//To save the server from being overloaded? Maybe? //To save the server from being overloaded? Maybe?
function fixUri(input) { function fixUri(input) {
var prefix = 'https://card-conjurer.storage.googleapis.com';//'https://raw.githubusercontent.com/ImKyle4815/cardconjurer/remake'; var prefix = 'https://card-conjurer.storage.googleapis.com';//'https://raw.githubusercontent.com/ImKyle4815/cardconjurer/remake';
if (input.includes(prefix) || input.includes('http') || input.includes('data:image') || params.get('testing')) { if (input.includes(prefix) || input.includes('http') || input.includes('data:image') || params.get('testing') == '') {
return input; return input;
} else { } else {
return prefix + input; //input.replace('/img/frames', prefix + '/img/frames'); return prefix + input; //input.replace('/img/frames', prefix + '/img/frames');