-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from ItzNotABug/update-sample-function
Update Sample Function
- Loading branch information
Showing
17 changed files
with
315 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap); | ||
|
||
html { | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
min-height: 100vh; | ||
margin: 0; | ||
background: linear-gradient(135deg, #000, #f02e65); | ||
font-family: Roboto, sans-serif; | ||
color: #fff; | ||
overflow: auto; | ||
} | ||
|
||
.container { | ||
text-align: center; | ||
max-width: 600px; | ||
padding: 20px; | ||
} | ||
|
||
.logo { | ||
font-size: 3rem; | ||
font-weight: 700; | ||
color: inherit; | ||
} | ||
|
||
.slogan { | ||
font-size: 1.2rem; | ||
margin-top: 20px; | ||
line-height: 1.75; | ||
} | ||
|
||
.action-button { | ||
margin-top: 40px; | ||
padding: 12px 24px; | ||
font-size: 1.1rem; | ||
border: 2px solid #fff; | ||
background-color: transparent; | ||
color: #fff; | ||
cursor: pointer; | ||
transition: all 0.3s ease; | ||
outline: 0; | ||
border-radius: 25px; | ||
} | ||
|
||
.action-button:hover { | ||
background-color: #fff; | ||
color: #000; | ||
} | ||
|
||
footer { | ||
text-align: center; | ||
padding: 20px 0; | ||
position: absolute; | ||
bottom: 0; | ||
width: 100%; | ||
font-size: 0.8rem; | ||
} | ||
|
||
footer a { | ||
color: #fff; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import favIcon from '@itznotabug/appexpress-favicon'; | ||
import minifier from '@itznotabug/appexpress-minifier'; | ||
import noCookies from '@itznotabug/appexpress-nocookies'; | ||
import { authUserForConsoleMiddleware } from '../middlewares/auth.js'; | ||
|
||
export default (express) => { | ||
favIconMiddleware(express); | ||
minifierMiddleware(express); | ||
express.middleware(noCookies.middleware); | ||
express.middleware(authUserForConsoleMiddleware); | ||
}; | ||
|
||
const favIconMiddleware = (express) => { | ||
favIcon.options({ | ||
iconPath: 'icons/favicon.ico', | ||
}); | ||
|
||
express.middleware(favIcon.middleware); | ||
}; | ||
|
||
const minifierMiddleware = (express) => { | ||
minifier.options({ | ||
htmlOptions: { | ||
minifyJS: true, | ||
minifyCSS: true, | ||
removeComments: true, | ||
collapseWhitespace: true, | ||
preserveLineBreaks: false, | ||
}, | ||
}); | ||
|
||
express.middleware(minifier.middleware); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.