Skip to content

Commit

Permalink
Merge pull request #4 from parceiroti/devel
Browse files Browse the repository at this point in the history
✨ full website
  • Loading branch information
retrozinndev committed Apr 29, 2024
2 parents b92b8f2 + 8e89ca5 commit 016dc41
Show file tree
Hide file tree
Showing 15 changed files with 364 additions and 236 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pti-astro",
"name": "pti-website",
"type": "module",
"version": "0.0.1",
"version": "1.0.0-devel",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
Expand Down
Binary file added public/logos/aerx_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logos/romaplast_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/main_banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added src/components/Button.astro
Empty file.
61 changes: 0 additions & 61 deletions src/components/Card.astro

This file was deleted.

62 changes: 62 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
import "../styles/styles.css";
---

<footer class="footer">
<div class="container">
<div class="left">
<ul class="no-list-style">
<li>
<a href="/#top" target="_self">Início</a>
</li>
<li>
<a href="/#sobre" target="_self">Sobre nós</a>
</li>
<li>
<a href="/#serviços" target="_self">Serviços</a>
</li>
<li>
<a href="/#clientes" target="_self">Clientes</a>
</li>
</ul>
</div>
<div class="right">
<ul class="no-list-style">
<li>
<b>CNPJ: xxxx-xxxx</b>
</li>
<li>
<b>Telefone: (21) 9 8878-6341</b>
</li>
<li>
<a href="https://wa.me/+5521988786341">Whatsapp</a>
</li>
<li>
<b>E-mail: <a href="mailto:contato@parceiroti.com.br">contato@parceiroti.com.br</a></b>
</li>
</ul>
</div>
</div>
</footer>

<style>
.container {
display: flex;
flex-direction: column;
margin: auto;
margin-left: 16px;
margin-right: 16px;
color: white;
box-sizing: border-box;
border-radius: 16px;
background-color: var(--pti-dark);
}

.container a {
color: white;
}

.container a:hover {
color: var(--text-highlight-color);
}
</style>
75 changes: 75 additions & 0 deletions src/components/Navigation.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
import '../styles/styles.css'
---


<header>
<nav class="navbar">
<a href="/">
<img class="logo" src="/logo_default.png" alt="PTI">
</a>
<ul class="links">
<li>
<a href="/#top" target="_self">Início</a>
</li>
<li>
<a href="/#sobre" target="_self">Sobre nós</a>
</li>
<li>
<a href="/#serviços" target="_self">Serviços</a>
</li>
<li>
<a href="/#clientes" target="_self">Clientes</a>
</li>
</ul>
</nav>
</header>

<style>
.navbar {
--logo-width: 64px;
--logo-height: 48px;
--logo-margin-left: 16px;
font-size: large;
position: top;
position: flex;
display: flex;
height: 70px;
}

.navbar .logo {
display: block;
justify-content: left;
align-items: right;
margin-left: var(--logo-margin-left);
margin-top: 8px;
width: var(--logo-width);
height: var(--logo-height);
}

.navbar .links {
position: top;
display: flex;
width: 100%;
height: auto;
flex-direction: row;
justify-content: center;
align-items: center;
text-align: center;
list-style-type: none;
overflow: hidden;
padding: 0;
margin-right: calc( ( var(--logo-width) + var(--logo-margin-left) ) );
}

.navbar .links > li {
float: left;
display: list-item;
margin-left: 16px;
margin-top: 0;
}

.navbar .links li > a {
text-decoration: none;
}
</style>
51 changes: 0 additions & 51 deletions src/layouts/Layout.astro

This file was deleted.

42 changes: 42 additions & 0 deletions src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
import '../styles/styles.css';
import Navigation from '../components/Navigation.astro';
import { string } from 'astro/zod';
import type { loadApp } from 'astro/app/node';
interface MainLayout {
page: string;
description: string;
banner: string;
}
const { page, description, banner }: any = Astro.props;
let currentPage: string = "";
if(page !== undefined && page !== "undefined" && page !== "") {
currentPage = " - " + page;
}
---

<html lang="pt-BR">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/icon_default.png">
<!-- Add OG link preview -->
<meta property="og:title" content={ "Parceiro TI" + currentPage }>
<meta property="og:description" content={ description }>
<meta property="og:image" content={ banner }>
<title>{ "Parceiro TI" + currentPage }</title>
</head>
<Navigation client:load />

<slot />

<style>
html {
background-color: var(--background-color);
}
</style>
</html>
Loading

0 comments on commit 016dc41

Please sign in to comment.