o1-preview-2024-09-12· OpenAI
WildChat-4.8M (AI2)
tenho seguinte código react function App() { return ( <div className="w-screen h-screen…
- User
tenho seguinte código react
function App() { return ( ); }
depois de image adicione um texto na cor #FFFFFF centralizado horizontalmente e verticalmente de 16px de tamanho e 30% de distancia do top
- Assistant
Para adicionar um texto após a imagem com a cor
#FFFFFF, centralizado horizontalmente, com tamanho de fonte de16pxe a uma distância de30%do topo, você pode modificar o código da seguinte forma:jsxfunction App() { return ( <div className="w-screen h-screen bg-cover bg-center"> <div data-tauri-drag-region className="absolute top-0 right-0 h-full w-[30%] bg-[#0E1622]/[0.85] border-l border-[#080E15]" > <WindowButtons /> <img className="absolute top-[10%] left-1/2 transform -translate-x-1/2" src={img} alt="img" /> <p className="absolute top-[30%] left-1/2 transform -translate-x-1/2 text-[#FFFFFF] text-[16px]" > Seu texto aqui </p> </div> </div> ); }