Skip to content

Commit

Permalink
Tailwind theme
Browse files Browse the repository at this point in the history
  • Loading branch information
dorukgezici committed Aug 11, 2023
1 parent a82199e commit cc8965b
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ jobs:
access_token: ${{ secrets.SPACE_ACCESS_TOKEN }}
id: ${{ secrets.SPACE_PROJECT_ID }}
version: "0.1.0"
notes: "Release automatically with GitHub deta action"
listed: true
notes: "Released automatically with GitHub deta action"
listed: false
9 changes: 8 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compounds": [
{
"name": "subabot",
"configurations": ["backend", "frontend"],
"configurations": ["backend", "svelte"],
"stopAll": true
}
],
Expand All @@ -24,6 +24,13 @@
"request": "launch",
"cwd": "${workspaceFolder}/frontend",
"command": "npm run dev"
},
{
"name": "svelte",
"type": "node-terminal",
"request": "launch",
"cwd": "${workspaceFolder}/svelte",
"command": "npm run dev"
}
]
}
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ _An AI-powered Slack alert bot to subscribe, classify and notify for keywords on

## 🚀 Get Started

Subabot runs on [Deta Space](https://deta.space), a new personal Cloud. After you sign up, you get your own instance of Subabot, it is completely isolated from other users and we can't access it.
Subabot runs on [Deta Space](https://deta.space), a new personal Cloud. After you sign up and install the app, you get your own instance of Subabot, it is completely isolated from other users and we can't access it.

You can think of it like installing an app on your phone, but instead of the app being on your phone, it exists on the internet for you to access from all of your devices. You remain in control of your apps and your data.

After you sign up for [Deta Space](https://deta.space), install the [Subabot App](https://deta.space/discovery/subabot) and you are good to go 🎉
1. Sign up to [Deta Space](https://deta.space) for free
2. Install the [Subabot App](https://deta.space/discovery/@dorukgezici/subabot)
3. Configure the environment variables via project settings
4. Add the Slack app to your workspace 🎉

## 🔨 Features & Roadmap

Expand Down
Empty file added frontend/app/dashboard/page.tsx
Empty file.
8 changes: 0 additions & 8 deletions frontend/app/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@
@tailwind components;
@tailwind utilities;

:root {
--primary: #203A43FF;
--dark: #0F2027FF;
--light: #2C5364FF;
--lighter: #B0C4DEFF;
}

body {
@apply bg-slate-300;
@apply text-primary;
}
4 changes: 2 additions & 2 deletions frontend/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Footer from "@/components/Footer";
import "@fortawesome/fontawesome-svg-core/styles.css";
import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import { Inter } from "next/font/google";
import { PT_Mono } from "next/font/google";
import type { ReactNode } from "react";
import "./globals.scss";

Expand All @@ -14,7 +14,7 @@ export const metadata = {
"An AI-powered Slack alert bot to subscribe, classify and notify for keywords on the web.",
};

const font = Inter({ subsets: ["latin"] });
const font = PT_Mono({ weight: "400", subsets: ["latin-ext"] });

export default function RootLayout({ children }: { children: ReactNode }) {
return (
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default async function Home() {

return (
<main>
<section className="h-screen flex flex-wrap items-center justify-center overflow-hidden space-y-12 bg-gradient-to-tl from-dark via-primary to-light">
<section className="h-screen flex flex-wrap items-center justify-center overflow-hidden space-y-12 bg-gradient-to-tl from-neutral via-primary to-secondary">
<RobotTile />

<div className="bg-primary opacity-95 absolute p-8 sm:p-16 md:p-24 shadow-2xl rounded-3xl w-full lg:w-2/3 max-w-[900px] border-solid border-2 border-primary">
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/RobotTile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default function RobotTile() {
<FontAwesomeIcon
key={index} icon={faRobot}
className={classNames(
'text-[10rem] text-lighter opacity-75 m-4',
'text-[10rem] text-accent opacity-75 m-4',
index % 2 === 0 ? 'rotate-[-20deg]' : 'rotate-[20deg]',
index === botIndex && 'fa-bounce z-10'
)}
Expand Down
41 changes: 41 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.9",
"@types/node": "^20.4.6",
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
Expand Down
25 changes: 16 additions & 9 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ module.exports = {
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
primary: "var(--primary)",
dark: "var(--dark)",
light: "var(--light)",
lighter: "var(--lighter)",
daisyui: {
themes: [
{
subabot: {
primary: "#203a43ff",
secondary: "#2c5364ff",
accent: "#b0c4deff",
neutral: "#0f2027ff",
"base-100": require("tailwindcss/colors").slate[300],
info: "#3abff8",
success: "#36d399",
warning: "#fbbd23",
error: "#f87272",
},
},
},
],
},
plugins: [require("daisyui")],
plugins: [require("@tailwindcss/typography"), require("daisyui")],
};

0 comments on commit cc8965b

Please sign in to comment.