Skip to content

Commit

Permalink
reestilização dos botões e adição de favicon e logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Gs1lver committed Nov 4, 2023
1 parent 6e24dce commit a02adb2
Show file tree
Hide file tree
Showing 13 changed files with 120 additions and 93 deletions.
3 changes: 1 addition & 2 deletions astro.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import autoprefixer from "autoprefixer";
import cssnano from "cssnano";
import node from "@astrojs/node";
Expand All @@ -10,7 +9,7 @@ import image from "@astrojs/image";
// https://astro.build/config
export default defineConfig({
site: "https://commandee-web-production.up.railway.app",
integrations: [tailwind(), sitemap(), image({
integrations: [sitemap(), image({
serviceEntryPoint: "@astrojs/image/sharp"
})],
output: "server",
Expand Down
Binary file added public/icons/commandee_favicon.ico
Binary file not shown.
Binary file added public/logos/commandee_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 11 additions & 3 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@
><img src="/icon-github.svg" alt="" /></a
>
</li>
<li><a href=""><img src="/icon-linkedin.svg" alt="" /></a></li>
<li><a href=""><img src="/icon-twitter.svg" alt="" /></a></li>
</ul>

<nav>
<a href="/contato">Contato</a>
<a href="/sobre">Sobre</a>
<a href="/download">Download</a>
<a href="/login">Login</a>
<a href="/signup">Cadastro</a>
<a href="/sobre">Sobre</a>
<a href="/contato">Contato</a>
</nav>

<p>© 2023 Commandee Inc.</p>
Expand Down Expand Up @@ -56,9 +55,18 @@
justify-content: center;
align-items: center;
gap: 0.5rem;

}

nav a{
color: var(--textolight);
}

nav a:hover {
color: lightgrey;
}

li>a>img:hover {
transform: scale(1.1);
}
</style>
43 changes: 15 additions & 28 deletions src/components/FormCadastro.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,14 @@ import Form from "./Form.astro";
<Form method="post" action="/api/user/signin" referrer="/">
<div>
<label for="name">Nome</label>
<input required placeholder="Joaquim" type="text" name="name" id="name" />
</div>

<div>
<label for="username">Nome de usuário</label>
<input
required
placeholder="joaquim123"
type="text"
name="username"
id="username"
pattern="[a-zA-Z0-9_-]+"
min="4"
max="15"
/>
<input required placeholder="Digite seu nome" type="text" name="name" id="name" />
</div>

<div>
<label for="email">Email</label>
<input
required
placeholder="joaquim@email.com"
placeholder="Digite seu email"
type="email"
name="email"
id="email"
Expand All @@ -41,7 +27,7 @@ import Form from "./Form.astro";
<label for="password">Senha</label>
<input
required
placeholder="********"
placeholder="Digite sua senha"
type="password"
name="password"
id="password"
Expand Down Expand Up @@ -118,6 +104,18 @@ import Form from "./Form.astro";
gap: 0.5rem;
}

input {
border: none;
background-color: var(--secondary);
padding: 0.5rem 1rem !important;
border-radius: 1rem;
}

input:focus {
outline: none;
box-shadow: 0 0 0 1px var(--primary);
}

@media (max-width: 768px) {

.cadastro {
Expand Down Expand Up @@ -150,17 +148,6 @@ import Form from "./Form.astro";
font-weight: bold;
}

form input {
padding: 0.5rem;
background-color: var(--secondary);
border-radius: 5px;
}

form input::placeholder {
opacity: 1;
color: #9ca3af;
}

button[type="submit"] {
background-color: var(--accent) !important;
}
Expand Down
19 changes: 16 additions & 3 deletions src/components/FormLogin.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import Form from "./Form.astro";
<Form action="/api/user/login" method="post" referrer="/">
<div class="email">
<label for="email">Email</label>
<input type="email" name="email" required />
<input type="email" name="email" placeholder="Digite seu email" required />
</div>

<div class="password">
<label for="password">Senha</label>
<a href="." class="password-reset">Esqueceu a senha?</a>
<input type="password" name="password" required />
<input type="password" name="password" placeholder="Digite sua senha" required />
</div>

<div class="submit">
Expand Down Expand Up @@ -66,8 +66,15 @@ import Form from "./Form.astro";

.button {
background-color: var(--accent) !important;
height: 2.5rem !important;
border-radius: 1rem !important;
}

.button:hover{
cursor: pointer;
}


label, input {
display: block;
}
Expand Down Expand Up @@ -108,7 +115,7 @@ import Form from "./Form.astro";

a.password-reset:hover {
text-decoration: underline;
color: deeppink;
color: var(--accent);
}

.submit {
Expand Down Expand Up @@ -142,11 +149,17 @@ import Form from "./Form.astro";
}

input {
border: transparent;
background-color: var(--secondary);
padding: 0.5rem 1rem !important;
border-radius: 1rem;
}

input:focus {
outline: none;
box-shadow: 0 0 0 1px var(--primary);
}

a.login {
display: grid;
grid-template-columns: 1fr;
Expand Down
16 changes: 13 additions & 3 deletions src/components/Nav.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ console.log(Astro.cookies);
---

<nav>
<a href="/" class="logo-nav">Commandee</a>
<a href="/" class="logo-nav">
<img src="logos/commandee_logo.png" alt="logo commandee">
Commandee
</a>
<ul>
<!--<li><a href="/lista">Lista</a></li>-->
<li><a href="/">Home</a></li>
<li><a href="/download">Download</a></li>
<li><a href="/sobre">Sobre</a></li>
<li><a href="/contato">Contato</a></li>
<li><a href="/download">Download</a></li>
<!-- lembrar de apagar depois -->

{
Expand Down Expand Up @@ -48,6 +50,14 @@ console.log(Astro.cookies);

nav a {
text-decoration: none;
display: flex;
align-items: center;
gap: 5px;
color: var(--textodark);
}

nav a img {
height: 2.5rem;
}

.logo-nav {
Expand Down
23 changes: 12 additions & 11 deletions src/components/cards/CardAjuda.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
<h3>Precisando de Ajuda?</h3>
<p>Entre em contato clicando abaixo:</p>
</div>
<a
role="button"
href="/contato"
class="bg-neutral-100 hover:bg-neutral-400 text-blue-950 py-2 px-3 rounded-full"
>Entre em contato</a
>
<a href="/contato">
Entre em Contato
</a>
</div>

<style>
Expand All @@ -32,14 +29,18 @@
font-size: 1.5em;
}

a {
text-decoration: none;

a{
background-color: var(--textolight);
padding: 0.8rem;
border-radius: 1rem;
font-style: bold;
color: var(--textodark);
margin-top: auto;

}

a:hover {
color: var(--textodark);
a:hover{
background-color: lightgray;
}

@media only screen and (max-width: 768px) {
Expand Down
28 changes: 3 additions & 25 deletions src/components/cards/CardTime.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ export interface Props {
integrante: string;
funcao: string;
twitter: string;
instagram: string;
github: string;
}
const { imagem, integrante, funcao, twitter, instagram, github } = Astro.props;
const { imagem, integrante, funcao, twitter, github } = Astro.props;
---

<article>
Expand Down Expand Up @@ -40,18 +39,7 @@ const { imagem, integrante, funcao, twitter, instagram, github } = Astro.props;
/>
</a>
</li>
<li>
<a href={instagram} target="_blank">
<Image
src="/logos/instagram.svg"
alt="Instagram logo"
format="svg"
width={20}
height={20}
/>
</a>
</li>
<li>
<li>
<a href={github} target="_blank">
<Image
src="/logos/githubcolorido.svg"
Expand All @@ -62,17 +50,7 @@ const { imagem, integrante, funcao, twitter, instagram, github } = Astro.props;
/>
</a>
</li>
<li>
<a href="" target="_blank">
<Image
src="/logos/google.svg"
alt="Google logo"
format="svg"
width={20}
height={20}
/>
</a>
</li>

</ul>
</article>

Expand Down
Loading

0 comments on commit a02adb2

Please sign in to comment.