Skip to content

Commit

Permalink
🐛 Fix TextBubble 'Edit Link' background color in dark mode (#653)
Browse files Browse the repository at this point in the history
TextBubble's "Edit link" card had a white background in dark mode,
making it impossible to read the content. I was studying React with your
project so I already took the opportunity to implement this small
correction for you lol.

Before:
![Captura de tela de 2023-07-27
21-34-09](https://github.com/baptisteArno/typebot.io/assets/48826783/09473f5e-635d-4e65-afdf-04230f05fd79)

After:
![Captura de tela de 2023-07-27
21-33-44](https://github.com/baptisteArno/typebot.io/assets/48826783/1971edae-b453-49eb-a01a-7e5fabc57c6b)

Note: I also added some direct links to project files cited in the
CONTRIBUTING.md file. They help to find these files more easily.
  • Loading branch information
lucasdemoraesc authored Jul 31, 2023
1 parent 3df81a3 commit f8af76d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
24 changes: 12 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Let's [discuss](https://github.com/baptisteArno/typebot.io/discussions/new) abou

Typebot is a Monorepo powered by [Turborepo](https://turborepo.org/). It is composed of 2 main applications:

- the builder (`./apps/builder`), where you build your typebots
- the viewer (`./apps/builder`), where your user answer the typebot
- the builder ([`./apps/builder`](apps/builder)), where you build your typebots
- the viewer ([`./apps/viewer`](./apps/viewer)), where your user answer the typebot

These apps are built with awesome web technologies including [Typescript](https://www.typescriptlang.org/), [Next.js](https://nextjs.org/), [Prisma](https://www.prisma.io/), [Chakra UI](https://chakra-ui.com/), [Tailwind CSS](https://tailwindcss.com/).

Expand All @@ -36,11 +36,11 @@ These apps are built with awesome web technologies including [Typescript](https:

2. Set up environment variables

Copy `apps/builder/.env.local.example` to `apps/builder/.env.local`
Copy [`apps/builder/.env.local.example`](apps/builder/.env.local.example) to `apps/builder/.env.local`

Copy `apps/viewer/.env.local.example` to `apps/viewer/.env.local`
Copy [`apps/viewer/.env.local.example`](apps/viewer/.env.local.example) to `apps/viewer/.env.local`

Copy `packages/prisma/.env.example` to `packages/prisma/.env`
Copy [`packages/prisma/.env.example` ](packages/prisma/.env.example)to `packages/prisma/.env`

Check out the [Configuration guide](https://docs.typebot.io/self-hosting/configuration) if you want to enable more options

Expand All @@ -51,17 +51,17 @@ These apps are built with awesome web technologies including [Typescript](https:
pnpm dev
```

Builder is available at `http://localhost:3000`
Builder is available at [`http://localhost:3000`](http://localhost:3000)

Viewer is available at `http://localhost:3001`
Viewer is available at [`http://localhost:3001`](http://localhost:3001)

Database inspector is available at `http://localhost:5555`
Database inspector is available at [`http://localhost:5555`](http://localhost:5555)

By default, you can easily authenticate in the builder using the "Github Sign In" button. For other options, check out the [Configuration guide](https://docs.typebot.io/self-hosting/configuration)

5. (Optionnal) Start the landing page

Copy `apps/landing-page/.env.local.example` to `apps/landing-page/.env.local`
Copy [`apps/landing-page/.env.local.example`](apps/landing-page/.env.local.example) to `apps/landing-page/.env.local`

```sh
cd apps/landing-page
Expand All @@ -81,8 +81,8 @@ I know the project can be a bit hard to understand at first. I'm working on impr
The first step to create a new Typebot block is to define its schema. For this you need to
1. Add your integration in the enum `IntegrationBlockType` in `packages/schemas/features/blocks/integrations/enums.ts`
2. Create a new file in `packages/schemas/features/blocks/integrations`.
1. Add your integration in the enum `IntegrationBlockType` in [`packages/schemas/features/blocks/integrations/enums.ts`](packages/schemas/features/blocks/integrations/enums.ts)
2. Create a new file in [`packages/schemas/features/blocks/integrations`](packages/schemas/features/blocks/integrations).
Your schema should look like:
Expand All @@ -107,4 +107,4 @@ The first step to create a new Typebot block is to define its schema. For this y
As soon as you have defined your schema, you can start implementing your block in the builder and the viewer.
Since the code is strictly typed, you should see exactly where you need to add your integration-specific code.
To sum it up you need to create a folder in `apps/builder/src/features/blocks/integrations` and in `apps/viewer/src/features/blocks/integrations`
To sum it up you need to create a folder in [`apps/builder/src/features/blocks/integrations`](apps/builder/src/features/blocks/integrations) and in [`apps/viewer/src/features/blocks/integrations`](apps/viewer/src/features/blocks/integrations)
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,15 @@ const TextBubbleEditorContent = ({
'.slate-ToolbarButton-active': {
color: useColorModeValue('blue.500', 'blue.300') + ' !important',
},
'.PlateFloatingLink___StyledFloatingLinkInsertRoot-sc-1bralnd-8': {
'[class^="PlateFloatingLink___Styled"]': {
'--tw-bg-opacity': useColorModeValue('1', '.1') + '!important',
backgroundColor: useColorModeValue('white', 'gray.800'),
borderWidth: 1,
borderRadius: 'md',
transitionProperty: 'background-color',
transitionDuration: 'normal'
},
'.PlateFloatingLink___StyledDiv2-sc-1bralnd-2': {
backgroundColor: useColorModeValue('gray.200', 'gray.600'),
'[class^="FloatingVerticalDivider___"]': {
'--tw-bg-opacity': useColorModeValue('1', '.4') + '!important',
},
'.slate-a': {
color: useColorModeValue('blue.500', 'blue.300'),
Expand Down

4 comments on commit f8af76d

@vercel
Copy link

@vercel vercel bot commented on f8af76d Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on f8af76d Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-git-main-typebot-io.vercel.app
docs-typebot-io.vercel.app
docs.typebot.io

@vercel
Copy link

@vercel vercel bot commented on f8af76d Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2 – ./apps/viewer

capitaldigital.live
carsalesenquiry.com
casahackeada.online
chat.marius.digital
chat.sr7digital.com
chatbot.matthesv.de
chatbot.repplai.com
chatwebandreia.site
demo.botscientis.us
demo.wemakebots.xyz
feiralimpanomes.com
hrbot.robomotion.io
inearephones.cr8.ai
kbsub.wpwakanda.com
limitenahora.com.br
live.botscientis.us
mentoria.omelhor.vc
messengerbet.online
noticiariododia.com
nutrisamirbayde.com
online.onlinmey.com
order.maitempah.com
profileadscloud.com
query.forgetsql.com
quest.wpwakanda.com
secretespiao.online
start.belenmotz.com
support.wawplus.com
survey1.digienge.io
surveys.essiell.com
test.botscientis.us
test.getreview.help
test.reventepro.com
typebot.stillio.app
typebot.stillio.com
wa.onewebcenter.com
web.draleticiah.com
whatsdigital.online
wordsandimagery.com
88584434.therpm.club
92109660.therpm.club
abbonamento.bwell.it
app.horadelucrar.com
assistent.m-vogel.de
ativandograna.online
bium.gratirabbit.com
bot.ansuraniphone.my
bot.barrettamario.it
bot.cotemeuplano.com
bot.grupodojo.com.br
whatsappwebconsulta.com
www.chatgpt-biliran.com
91181264.your-access.one
abg-assistent.m-vogel.de
ai.chromebookstoreph.com
bot.ativandograna.online
bot.conversaprivada.site
chat.ambassadorelena.com
chat.hiabhaykulkarni.com
concept.socialcliques.me
contextone.wpwakanda.com
form.sergiolimajr.com.br
hunterbot.saleshunter.ai
invite.bridesquadapp.com
link.cascadigital.com.br
login.algorithmpress.com
mail2wa.barrettamario.it
onboarding.growthside.io
reward.onlinebotdemo.xyz
sondaggio.thegymgame.com
stap.venturemarketing.in
type.boardacademy.com.br
type.opaulovieira.com.br
aibot.angrybranding.co.uk
app.photosbackupin1.click
bot.aidigitalmarketing.kr
bot.amicidisanfaustino.it
bot.arraesecenteno.com.br
bot.blackboxsports.com.br
bot.cabinrentalagency.com
bot.draelzanakahagi.cloud
bot.fusionstarreviews.com
bot.ristorantekintsugi.it
boyfriend-breakup.riku.ai
brigadeirosemdrama.com.br
budget.pizzeriaforno89.it
chat.ertcrebateportal.com
chat.sucessonarede.com.br
chat.thehomebuyersusa.com
chat.thisiscrushhouse.com
chat2.ambassadorelena.com
consulta.jornalextra.site
healthandsafetycourses.uk
mdb.imprensa.progenbr.com
sellmyharleylouisiana.com
testbot.sharemyreview.net
typebot-viewer.vercel.app
verfica.botmachine.com.br
www.portaldasanalises.com
ap-help.algorithmpress.com

@vercel
Copy link

@vercel vercel bot commented on f8af76d Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app
app.typebot.io

Please sign in to comment.