---
# System prepended metadata

title: 'Session: MonkChat'

---

# Session: MonkChat 
>[color=purple]**Autor:** Letícia Rodrigues da Silva
**Turma:** IndoD 
**Número:** 25

[toc]

## Link do CodeSandBox: https://codesandbox.io/s/monkchat-1zlyw?file=/src/pages/home/index.css

## Site: https://1zlyw.csb.app/src/pages/home/index.html


### Códigos HTML: 
```htmlmixed=
div class="container">
      <div class="cabecalho">
        <div class="logo"><img src="/src/assets/images/monk.png" /></div>
        <div class="traco"><img src="/src/assets/images/linha.png" /></div>
        <div class="titulo">MonkChat</div>
      </div>

      <div class="box-site">
        <div class="box1">
          <div class="box-1">
            <div class="text-box">
              <div class="text1">Sala:</div>
              <div class="box-nmsala"><input type="text" /></div>
            </div>

            <div class="text-box2">
              <div class="text2">Nick:</div>
              <div class="box-nm">
                <input type="text" />
              </div>
            </div>

            <div class="box-botoes">
              <div class="botao1"><button>Criar</button></div>
              <div class="botao2"><button>Entrar</button></div>
            </div>
          </div>

          <div class="box-2">
            <div class="texto">Mensagem:</div>
            <div class="caixa-texto"><textarea></textarea></div>
            <div class="botao"><button>Enviar</button></div>
          </div>
        </div>

        <div class="box2">
          <div class="circulo">
            <img src="../../assets/images/seta-carregar.png" />
          </div>
          <div class="box-maior">
            <div class="chat">
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:03:25) <span>Brunex</span> fala para <span>Todos</span>:
                Opa, tudo bem ai?
              </div>
              <div class="t1">
                (15:03:25) <span>Brunex</span> saiu da sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
              <div class="t1">
                (15:02:01) <span>Brunex</span> entrou na sala...
              </div>
            </div>
            <div class="scrollbar" id="style-3">
              <div class="force-overflow"></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
```

### Códigos CSS: 
```css=
body {
  margin: 0px;
  background-color: #583bbf;
}

@font-face {
  font-family: montserrat;
  src: url("../../assets/fonts/Montserrat-Medium.ttf");
}

@font-face {
  font-family: montserrat-regular;
  src: url("../../assets/fonts/Montserrat-Regular.ttf");
}

@font-face {
  font-family: montserrat-light;
  src: url("../../assets/fonts/Montserrat-ExtraLight.ttf");
}

.container {
  display: flex;
  flex-direction: column;
  padding: 2em 2em;
}

.cabecalho {
  display: flex;
  flex-direction: row;
  margin-left: 2em;
}

.traco img {
  height: 65px;
  padding: 0em 1.3em 0em 1em;
}

.titulo {
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: montserrat;
  margin-top: 7px;
}

.box-site {
  display: flex;
  flex-direction: row;
  background: #4d34a8;
  width: 85em;
  height: 38em;
  margin: 3em 5em 0em 5em;
}

.box1 {
  display: flex;
  flex-direction: column;
  margin: 3em 0em 3em 3em;
}

.box-1 {
  display: flex;
  flex-direction: column;
}

.text-box,
.text-box2 {
  display: flex;
  flex-direction: row;
}

.text1 {
  font-family: montserrat;
  font-size: 24px;
  color: #ffffff;
  padding-right: 13px;
}

.text2 {
  font-family: montserrat;
  font-size: 24px;
  color: #ffffff;
}

.box-nmsala input {
  font-family: montserrat-regular;
  font-size: 16px;
  background-color: #ffffff;
  width: 10em;
  height: 1.7em;
  border-radius: 4px;
  border: 0px;
}

.box-nm input {
  font-family: montserrat-regular;
  font-size: 16px;
  background-color: #ffffff;
  width: 10em;
  height: 1.7em;
  border-radius: 4px;
  border: 0px;
  margin: 10px 0px 0px 10px;
}

.box-botoes {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  margin: 10px 0px 60px 0px;
}

.botao1 button {
  width: 80px;
  height: 30px;
  background-color: #50b4bf;
  color: #ffffff;
  border: 0px;
  border-radius: 20px;
  font-family: montserrat;
  font-size: 16px;
  margin-right: 5px;
  cursor: pointer;
}

.botao2 button {
  width: 80px;
  height: 30px;
  background-color: #50b4bf;
  color: #ffffff;
  border: 0px;
  border-radius: 20px;
  font-family: montserrat;
  font-size: 16px;
  cursor: pointer;
}

.box-2 {
  display: flex;
  flex-direction: column;
}

.texto {
  font-family: montserrat;
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 7px;
}

.caixa-texto textarea {
  height: 180px;
  width: 220px;
  border: 0px;
  border-radius: 5px;
  resize: none;
}

input:focus {
  outline: 0;
}

textarea:focus {
  outline: 0;
}

.botao button {
  width: 100px;
  height: 30px;
  background-color: #50b4bf;
  color: #ffffff;
  border: 0px;
  border-radius: 20px;
  font-family: montserrat;
  font-size: 16px;
  margin: 0.7em 0em 0em 7.5em;
  cursor: pointer;
}

button:hover {
  box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24),
    0 17px 50px 0 rgba(0, 0, 0, 0.19);
  transform: scale(1.02);
  transition: 0.1s;
}

.box2 {
  display: flex;
  flex-direction: column;
  margin: 1.5em 0em 0em 4em;
  align-items: flex-end;
}

.circulo:hover {
  cursor: pointer;
  transform: rotate(100deg);
}

.box-maior {
  display: flex;
  flex-direction: column;
  background-color: #6337b3;
  width: 55em;
  height: 30em;
  border-radius: 3px;
  font-family: montserrat-light;
  font-size: 16px;
  line-height: 30px;
}

.chat {
  display: flex;
  flex-direction: column;
  padding: 1.5em 0em 0em 1.5em;
  overflow-y: auto;
  color: #ffffff;
}

.t1 span {
  font-weight: 700;
}

.chat::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #3e006e;
}

.chat::-webkit-scrollbar {
  width: 9px;
  background-color: #3e006e;
  border-radius: 10px;
}

.chat::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #cbcbcb;
}
```