🚧 Work in progress

This commit is contained in:
Freeze455
2021-09-06 02:25:57 +02:00
parent 22a5141daf
commit d7fac5de9f
11 changed files with 43 additions and 9 deletions

11
ecosystem.config.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports = {
apps: [
{
name: 'factory-doc',
exec_mode: 'cluster',
instances: 'max', // Or a number of instances
script: './node_modules/nuxt/bin/nuxt.js',
args: 'start'
}
]
}

View File

@@ -2,9 +2,22 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/logo.jpg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
<meta property="og:title" content="Factory framework" />
<meta property="og:type" content="website" />
<meta property="og:description" content="Discord Factory includes everything you need to create your discord bots. Don't reinvent the wheel, leverage it" />
<meta property="og:url" content="https://discord-factory.com" />
<meta property="og:image" content="/logo.jpg" />
<meta property="og:title" content="Factory framework" />
<meta property="og:image:url" content="/logo.jpg" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1000" />
<meta property="og:image:height" content="1000" />
<title>Discord Factory • The first typescript discord framework</title>
<meta property="description" content="Discord Factory includes everything you need to create your discord bots. Don't reinvent the wheel, leverage it" />
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@@ -4,7 +4,7 @@
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
"serve": "vite preview" "serve": "vite preview --port 3000"
}, },
"dependencies": { "dependencies": {
"@headlessui/vue": "^1.4.0", "@headlessui/vue": "^1.4.0",

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

BIN
public/logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

View File

@@ -32,11 +32,13 @@
</div> </div>
<div class="relative max-w-md mx-auto py-12 px-4 space-y-6 sm:max-w-3xl sm:py-16 sm:px-6 lg:max-w-none lg:p-0 lg:col-start-4 lg:col-span-6"> <div class="relative max-w-md mx-auto py-12 px-4 space-y-6 sm:max-w-3xl sm:py-16 sm:px-6 lg:max-w-none lg:p-0 lg:col-start-4 lg:col-span-6">
<h2 class="text-3xl font-extrabold dark:text-white" id="join-heading">Join us on discord</h2> <h2 class="text-3xl font-extrabold dark:text-white" id="join-heading">Join us on discord</h2>
<p class="text-lg dark:text-white">Varius facilisi mauris sed sit. Non sed et duis dui leo, vulputate id malesuada non. Cras aliquet purus dui laoreet diam sed lacus, fames.</p> <p class="text-lg dark:text-white">
Do you need help, want to discuss the project or participate in the adventure by suggesting improvements ? Join us at.
</p>
<LinkExternal <LinkExternal
url="https://discord.gg/tQebEww8zG" url="https://discord.gg/tQebEww8zG"
class="block w-full py-3 px-5 text-center dark:bg-gray-600 border border-transparent rounded-md shadow-md text-base font-medium text-gray-700 hover:bg-gray-50 dark:text-white sm:inline-block sm:w-auto"> class="block w-full py-3 px-5 text-center dark:bg-gray-600 border border-transparent rounded-md shadow-md text-base font-medium text-gray-700 hover:bg-gray-50 dark:text-white sm:inline-block sm:w-auto">
Explore open positions Discover
</LinkExternal> </LinkExternal>
</div> </div>
</div> </div>

View File

@@ -22,7 +22,7 @@
</a> </a>
</div> </div>
<p class="mt-8 text-center text-base text-gray-400"> <p class="mt-8 text-center text-base text-gray-400">
&copy; 2020 Workflow, Inc. All rights reserved. &copy; 2021 Baptiste Parmantier - Discord Factory. All rights reserved.
</p> </p>
</div> </div>
</footer> </footer>

View File

@@ -21,15 +21,20 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted } from 'vue' import { ref, onMounted } from 'vue'
import { useRoute } from 'vue-router'
import Navbar from '../../components/Navbar.vue' import Navbar from '../../components/Navbar.vue'
import Footer from '../../components/Footer.vue' import Footer from '../../components/Footer.vue'
let htmlStatut = ref(false) let htmlStatut = ref(false)
onMounted(() => { onMounted(() => {
htmlStatut.value = document.documentElement.classList.contains('dark') htmlStatut.value = document.documentElement.classList.contains('dark')
}) })
const route = useRoute()
onMounted(() => $route.path, () => {
console.log('test')
})
function toggle () { function toggle () {
const htmlRoot = document.documentElement as HTMLElement const htmlRoot = document.documentElement as HTMLElement
htmlRoot.classList.contains('dark') htmlRoot.classList.contains('dark')
@@ -50,4 +55,5 @@ html, body {
font-family: 'Public Sans', sans-serif; font-family: 'Public Sans', sans-serif;
scroll-behavior: smooth; scroll-behavior: smooth;
} }
</style> </style>

View File

@@ -31,7 +31,8 @@
<div class="px-5 sm:px-0 text-center md:max-w-3xl md:mx-auto md:px-12"> <div class="px-5 sm:px-0 text-center md:max-w-3xl md:mx-auto md:px-12">
<h2 class="text-gray-800 dark:text-gray-200 text-3xl sm:text-4xl font-title font-semibold md:text-6xl">All discord.js features in one place</h2> <h2 class="text-gray-800 dark:text-gray-200 text-3xl sm:text-4xl font-title font-semibold md:text-6xl">All discord.js features in one place</h2>
<p class="text-lg mt-8 text-gray-500 md:text-xl"> <p class="text-lg mt-8 text-gray-500 md:text-xl">
AdonisJS is not a minimalist framework. To give your projects a head start, we pack many baseline features within the core of the framework. Discord Factory is a simple to use but powerful framework thanks to the In Memory compilation.
Take advantage of the power of typescript associated with the Discord.js library
</p> </p>
</div> </div>
<div class="max-w-6xl mx-auto"> <div class="max-w-6xl mx-auto">

View File

@@ -117,6 +117,7 @@ import Documentation from '../../../../components/Documentation.vue'
import CodeHighlight from '../../../../components/CodeHighlight.vue' import CodeHighlight from '../../../../components/CodeHighlight.vue'
import Divider from '../../../../components/Divider.vue' import Divider from '../../../../components/Divider.vue'
import LinkExternal from '../../../../components/LinkExternal.vue' import LinkExternal from '../../../../components/LinkExternal.vue'
import AlertInfo from '../../../../components/AlertInfo.vue'
import AlertWarn from '../../../../components/AlertWarn.vue' import AlertWarn from '../../../../components/AlertWarn.vue'
const structure = ` const structure = `

View File

@@ -5,7 +5,7 @@ import { CalendarIcon, ChartBarIcon, FolderIcon, HomeIcon, InboxIcon, UsersIcon
export const links: NavbarLink[] = [ export const links: NavbarLink[] = [
{ label: 'Home', path: '/', local: true }, { label: 'Home', path: '/', local: true },
{ label: 'Documentation', path: '/documentation/getting-started', local: true }, { label: 'Documentation', path: '/documentation/getting-started', local: true },
{ label: 'Discussion', path: '/https://github.com/DiscordFactory/Core/discussions', local: false } { label: 'Discussion', path: 'https://github.com/DiscordFactory/Core/discussions', local: false }
] ]
export const socials = [ export const socials = [