Code Monkey home page Code Monkey logo

aula-react-2024's Introduction

Aprenda React em 60 minutos

Assistir aula completa

JSX

<main className="app-container">
      <h1 className="title">Lista de Tarefas</h1>

      <section className="add-note-section">
        <div className="add-note-container">
          <input className="note-input" placeholder="Nova nota" />
          <button className="save-button">Salvar</button>
        </div>
      </section>

      <section className="task-section">
        <h3>Tarefas a Realizar</h3>
        <ul className="task-list">
          <li className="task-item">
            <span>Tarefa 1</span>
            <button className="complete-button">Realizado</button>
            <button className="delete-button">Excluir</button>
          </li>
          <li className="task-item">
            <span>Tarefa 2</span>
            <button className="complete-button">Realizado</button>
            <button className="delete-button">Excluir</button>
          </li>
        </ul>
      </section>

      <section className="completed-tasks-section">
        <h3>Tarefas Realizadas</h3>
        <ul className="completed-task-list">
          <li className="completed-task-item">
            <span>Tarefa 3</span>
            <button className="return-button">Retornar</button>
            <button className="delete-button">Excluir</button>
          </li>
        </ul>
      </section>
    </main>

CSS

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #121212;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 20px;
  max-width: 80%;
  width: 400px;
  background-color: #333;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.add-note-section,
.task-section,
.completed-tasks-section {
  width: 100%;
  margin-bottom: 20px;
}

.add-note-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.note-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
  margin-bottom: 10px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #444;
  color: #fff;
}

.save-button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  font-size: 16px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.task-list,
.completed-task-list {
  list-style: none;
  padding: 0;
}

.task-item,
.completed-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background-color: #555;
  border: 1px solid #777;
  border-radius: 4px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-item span,
.completed-task-item span {
  flex-grow: 1;
  margin-right: 10px;
}

.complete-button,
.return-button,
.delete-button {
  padding: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  margin-left: 5px;
}

.complete-button {
  background-color: #4caf50;
  color: white;
}

.return-button {
  background-color: #2196f3;
  color: white;
}

.delete-button {
  background-color: #f44336;
  color: white;
}

aula-react-2024's People

Contributors

rodrilima avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.