Skip to content

Commit

Permalink
start building botway cdn assets website
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Jun 5, 2022
1 parent 4f0e01a commit 17f1da6
Show file tree
Hide file tree
Showing 24 changed files with 931 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ MANIFEST
# Rust
target/
Cargo.lock
osxcross
3 changes: 3 additions & 0 deletions installer/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[target.x86_64-apple-darwin]
linker = "x86_64-apple-darwin14-clang"
ar = "x86_64-apple-darwin14-ar"
38 changes: 38 additions & 0 deletions installer/assets/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local

# vercel
.vercel

# typescript
*.tsbuildinfo
12 changes: 12 additions & 0 deletions installer/assets/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM rust:alpine

ENV PACKAGES "build-dependencies build-base openssl openssl-dev musl-dev libressl-dev gcc git lld clang libsodium ffmpeg opus autoconf automake libtool"

RUN apk update && \
apk add --no-cache --virtual ${PACKAGES}

RUN git clone https://github.com/abdfnx/botway
RUN cd installer

# Build linux target
RUN
23 changes: 23 additions & 0 deletions installer/assets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Next.js + Tailwind CSS Example

This example shows how to use [Tailwind CSS](https://tailwindcss.com/) [(v3.0)](https://tailwindcss.com/blog/tailwindcss-v3) with Next.js. It follows the steps outlined in the official [Tailwind docs](https://tailwindcss.com/docs/guides/nextjs).

## Deploy your own

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example) or preview live with [StackBlitz](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-tailwindcss)

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-tailwindcss&project-name=with-tailwindcss&repository-name=with-tailwindcss)

## How to use

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:

```bash
npx create-next-app --example with-tailwindcss with-tailwindcss-app
# or
yarn create next-app --example with-tailwindcss with-tailwindcss-app
# or
pnpm create next-app --example with-tailwindcss with-tailwindcss-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
16 changes: 16 additions & 0 deletions installer/assets/components/logo/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from "react";

export function LogoSection() {
return (
<section className="flex items-start w-full px-4 mx-auto md:px-0 md:items-center md:w-1/3">
<div className="flex flex-row items-center w-full max-w-sm py-4 mx-auto md:mx-0 my-auto min-w-min relative md:-left-2.5 pt-4 md:py-4 transform origin-left bg-primary text-primary">
<div className="logo-animated flex items-center space-x-1">
<img
src="/botway.svg"
className="block logo-load"
/>
</div>
</div>
</section>
);
}
5 changes: 5 additions & 0 deletions installer/assets/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
4 changes: 4 additions & 0 deletions installer/assets/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
};
22 changes: 22 additions & 0 deletions installer/assets/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"next": "latest",
"react": "18.1.0",
"react-dom": "18.1.0"
},
"devDependencies": {
"@types/node": "17.0.35",
"@types/react": "18.0.9",
"@types/react-dom": "18.0.5",
"autoprefixer": "^10.4.7",
"postcss": "^8.4.14",
"tailwindcss": "^3.0.24",
"typescript": "4.7.2"
}
}
8 changes: 8 additions & 0 deletions installer/assets/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import "../styles/globals.css";
import type { AppProps } from "next/app";

function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
}

export default MyApp;
38 changes: 38 additions & 0 deletions installer/assets/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import Document, { Html, Head, Main, NextScript } from "next/document";
import React from "react";
import SiteConfig from "../site.config";

class MyDocument extends Document {
static async getInitialProps(ctx: any) {
const initialProps = await Document.getInitialProps(ctx);
return { ...initialProps };
}

render() {
return (
<Html lang={SiteConfig.lang}>
<Head>
<link
rel="apple-touch-icon"
href="/icon.svg"
/>

<link
rel="icon"
type="image/svg"
href="/icon.svg"
/>

<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="theme-color" content="#ffffff" />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}
}

export default MyDocument;
25 changes: 25 additions & 0 deletions installer/assets/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import React from "react";
import Head from "next/head";
import { LogoSection } from "../components/logo";

function MainPage() {
return (
<>
<main className="flex flex-col md:flex-row-reverse md:h-screen sm:pt-20">
<Head>
<title>abdfnx/botway 馃</title>
<link rel="icon" href="/icon.svg" />
</Head>
<LogoSection />

<section className="justify-center px-4 md:px-0 md:flex md:w-2/3">
<div className="w-full max-w-sm py-4 mx-auto my-auto min-w-min md:py-9 md:w-7/12">
<p className="text-lg pt-2 text-gray-400">abdfnx/botway 馃</p>
</div>
</section>
</main>
</>
);
}

export default MainPage;
6 changes: 6 additions & 0 deletions installer/assets/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
18 changes: 18 additions & 0 deletions installer/assets/public/botway.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added installer/assets/public/fonts/Inter.ttf
Binary file not shown.
Binary file added installer/assets/public/fonts/farray.otf
Binary file not shown.
Binary file added installer/assets/public/fonts/firacode.ttf
Binary file not shown.
13 changes: 13 additions & 0 deletions installer/assets/public/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
10 changes: 10 additions & 0 deletions installer/assets/site.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
title: "Botway Assets",
description:
"馃 Generate, build, handle and deploy your own bot with your favorite language, for Discord, or Telegram, or Slack.",
siteUrl: "https://botway.web.app",
author: {
name: "Botway",
},
lang: "en",
};
17 changes: 17 additions & 0 deletions installer/assets/styles/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

@font-face {
font-family: "Inter";
src: url("../public/fonts/Inter.ttf");
}

html {
scroll-behavior: smooth;
font-size: 1rem;
font-family: "Inter", sans-serif;
font-weight: 400;
line-height: 1.5;
background-color: #000;
}
10 changes: 10 additions & 0 deletions installer/assets/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
};
20 changes: 20 additions & 0 deletions installer/assets/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit 17f1da6

Please sign in to comment.