Skip to content

Commit

Permalink
fucking tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
matronator committed Jul 10, 2021
1 parent 1da3b06 commit 8177d68
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 29 deletions.
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
#RewriteCond http%1://%{HTTP_HOST} ^(https?://)(www\.)?(.+)$
#RewriteRule ^ %1%3%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]
RewriteCond %{HTTP_HOST} ^(www\.)
RewriteRule (.*) https://burner.matronator.com%{REQUEST_URI} [L,R=301]


###################################################
#Set index folder
Expand Down
2 changes: 1 addition & 1 deletion app/modules/Front/components/Footer/Footer.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@layer components {
.footer {
@apply bg-red-darker dark:bg-black dark:bg-opacity-60 dark:backdrop-filter dark:backdrop-blur-lg dark:text-white text-white absolute bottom-0 left-0 right-0 flex flex-col items-center justify-center w-screen h-10;
@apply bg-red-darker dark:bg-black dark:bg-opacity-60 dark:backdrop-filter backdrop-blur-lg dark:text-white text-white absolute bottom-0 left-0 right-0 flex flex-col items-center justify-center w-screen h-10;
box-shadow: 0px 6px 10px -7px rgba(0,0,0,0.6) inset;
}
}
2 changes: 1 addition & 1 deletion app/modules/Front/components/Header/Header.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@layer components {
.header {
@apply w-screen h-32 mb-4 dark:bg-grad-dark dark:bg-opacity-60 dark:backdrop-filter dark:backdrop-blur-lg bg-grad-main dark:text-white relative p-4 mx-auto text-center flex flex-col justify-center items-center;
@apply w-screen h-32 mb-4 dark:bg-grad-dark dark:bg-opacity-60 dark:backdrop-filter backdrop-blur-lg bg-grad-main dark:text-white relative p-4 mx-auto text-center flex flex-col justify-center items-center;
box-shadow: 0px 0px 8px -1px rgba(0,0,0,0.66);
font-family: 'Big Shoulders Stencil Display', sans-serif;
& h1 {
Expand Down
2 changes: 1 addition & 1 deletion app/modules/Front/components/MessageForm/MessageForm.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.message-input {
/* @apply outline-none p-2 resize-none overflow-auto appearance-none w-full h-full text-yellow-lightest; */
/* caret-color: rgba(7, 10, 10, var(--tw-text-opacity)); */
@apply outline-none p-2 resize-none overflow-auto appearance-none h-80 w-full my-0 mx-auto mb-5 relative dark:bg-dark-primary;
@apply outline-none p-2 resize-none overflow-auto appearance-none h-80 w-full my-0 mx-auto mb-5 relative dark:bg-black dark:bg-opacity-50;
font-size: 16px;
}

Expand Down
4 changes: 2 additions & 2 deletions app/modules/Front/templates/Default/image.latte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

{* {include '../../components/DropUpload/DropUpload.latte', input => $form['image']->control, name => 'image'} *}

<div class="drop-upload input">
<div class="drop-upload input mb-4">
<label n:name="image">
<span>Drag and drop the file here or click to select...</span>
{include '../../components/DropUpload/UploadIcon.latte', size => '16'}
Expand All @@ -21,7 +21,7 @@
</div>
</div>

<div class="relative grid w-full grid-cols-12 px-8 mx-auto mb-4">
<div class="relative grid w-full grid-cols-12 px-8 mx-auto mt-4">
<div class="sm:col-span-12 sm:text-center relative col-span-4 p-2 text-left">
{label password, class => 'w-full d-block' /}
</div>
Expand Down
44 changes: 22 additions & 22 deletions dev/front/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

input[type="text"],
input[type="password"] {
@apply bg-yellow-lightest dark:backdrop-filter dark:backdrop-blur-lg dark:bg-black dark:bg-opacity-50 dark:text-white px-1 py-2;
@apply bg-yellow-lightest dark:backdrop-filter backdrop-blur-lg dark:bg-black dark:bg-opacity-50 dark:text-white px-1 py-2;
}
}

Expand Down Expand Up @@ -106,25 +106,25 @@
@media (max-width: 640px) {
font-size: 14px;
}
&:hover {
font-variation-settings: 'wght' 650;
}
&\-primary {
@apply bg-grad-main dark:bg-grad-secondary-primary text-white;
text-shadow: 0px 0px 2px rgba(0,0,0,0.5);
/* box-shadow: 0px 0px 6px -1px rgba(0,0,0,0.66); */
&:hover {
text-shadow: -1.5px -1.5px 0px rgba(0,0,0,0.7);
}
}
&\-secondary {
@apply bg-grad-secondary dark:bg-grad-dark dark:backdrop-filter dark:backdrop-blur-lg dark:bg-opacity-50 dark:text-secondary text-white;
text-shadow: 0px 0px 2px rgba(0,0,0,0.5);
/* box-shadow: 0px 0px 6px -1px rgba(0,0,0,0.66); */
&:hover {
text-shadow: -1.5px -1.5px 0px rgba(0,0,0,0.7);
}
}
}
.btn:hover {
font-variation-settings: 'wght' 650;
}
.btn-primary {
@apply bg-grad-main dark:bg-grad-secondary-primary text-white;
text-shadow: 0px 0px 2px rgba(0,0,0,0.5);
/* box-shadow: 0px 0px 6px -1px rgba(0,0,0,0.66); */
}
.btn-primary:hover {
text-shadow: -1.5px -1.5px 0px rgba(0,0,0,0.7);
}
.btn-secondary {
@apply bg-grad-secondary dark:bg-grad-dark dark:backdrop-filter backdrop-blur-lg dark:bg-opacity-50 dark:text-secondary text-white;
text-shadow: 0px 0px 2px rgba(0,0,0,0.5);
/* box-shadow: 0px 0px 6px -1px rgba(0,0,0,0.66); */
}
.btn-secondary:hover {
text-shadow: -1.5px -1.5px 0px rgba(0,0,0,0.7);
}

.msg-link {
Expand All @@ -134,12 +134,12 @@
}

.read-message {
@apply bg-yellow-lighter block w-full px-3 py-4 mx-auto my-4 text-base text-left;
@apply bg-yellow-lighter dark:backdrop-filter backdrop-blur-lg dark:bg-black dark:bg-opacity-50 dark:placeholder-grey-lighter dark:text-white text-grey-darker placeholder-grey-dark block w-full px-3 py-4 mx-auto my-4 text-base text-left;
min-height: 200px;
}

.input {
@apply bg-yellow-lightest dark:backdrop-filter dark:backdrop-blur-lg dark:bg-opacity-50 dark:bg-black dark:placeholder-grey-lighter dark:text-white text-grey-darker text-input placeholder-grey-dark font-normal border-none shadow-none;
@apply bg-yellow-lightest dark:backdrop-filter backdrop-blur-lg dark:bg-opacity-50 dark:bg-black dark:placeholder-grey-lighter dark:text-white text-grey-darker text-input placeholder-grey-dark font-normal border-none shadow-none;
font-size: 16px;
}
}
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const cssProcessors = [
isProduction
? [
postscssAutoprefixer, // uses browser list option from package.json
postcssNano,
// postcssNano,
]
: [
postscssAutoprefixer
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
mode: 'jit',
// mode: 'jit',
purge: [
// "./app/modules/Front/**/*.{js,css,html,latte}",
// "./dev/front/**/*.{js,css,html,latte}",
Expand Down
11 changes: 11 additions & 0 deletions www/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
// Uncomment this line if you must temporarily take down your site for maintenance.
// require '.maintenance.php';

if (isset($_SERVER['HTTP_X_FORWARDED_PROTO'])) {
if ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' && isset($_SERVER['SERVER_PORT']) && in_array($_SERVER['SERVER_PORT'], [80, 82])) { // https over proxy
$_SERVER['HTTPS'] = 'On';
$_SERVER['SERVER_PORT'] = 443;

} elseif ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'http' && isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 80) { // http over proxy
$_SERVER['HTTPS'] = 'Off';
$_SERVER['SERVER_PORT'] = 80;
}
}

// absolute filesystem path to the web root
define('WWW_DIR', __DIR__);

Expand Down

0 comments on commit 8177d68

Please sign in to comment.