- Cleaned project's folders and files.
- Created general layout for pages with title as prop. - Added favicon - Added header and footer to the layout
This commit is contained in:
24
.gitignore
vendored
Normal file
24
.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# build output
|
||||||
|
dist/
|
||||||
|
|
||||||
|
# generated types
|
||||||
|
.astro/
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# logs
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
|
# environment variables
|
||||||
|
.env
|
||||||
|
.env.production
|
||||||
|
|
||||||
|
# macOS-specific files
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
# jetbrains setting folder
|
||||||
|
.idea/
|
||||||
4
.vscode/extensions.json
vendored
Normal file
4
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"recommendations": ["astro-build.astro-vscode"],
|
||||||
|
"unwantedRecommendations": []
|
||||||
|
}
|
||||||
11
.vscode/launch.json
vendored
Normal file
11
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"version": "0.2.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"command": "./node_modules/.bin/astro dev",
|
||||||
|
"name": "Development server",
|
||||||
|
"request": "launch",
|
||||||
|
"type": "node-terminal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
5
astro.config.mjs
Normal file
5
astro.config.mjs
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
// @ts-check
|
||||||
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
|
// https://astro.build/config
|
||||||
|
export default defineConfig({});
|
||||||
4998
package-lock.json
generated
Normal file
4998
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
14
package.json
Normal file
14
package.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "naliia-website",
|
||||||
|
"type": "module",
|
||||||
|
"version": "0.0.1",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "astro dev",
|
||||||
|
"build": "astro build",
|
||||||
|
"preview": "astro preview",
|
||||||
|
"astro": "astro"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"astro": "^5.17.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
19
public/favicon.svg
Normal file
19
public/favicon.svg
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg id="Capa_2" data-name="Capa 2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 124.59 128">
|
||||||
|
<defs>
|
||||||
|
<style>
|
||||||
|
.cls-1 {
|
||||||
|
fill: url(#Degradado_sin_nombre_66);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<linearGradient id="Degradado_sin_nombre_66" data-name="Degradado sin nombre 66" x1="62.3" y1="128" x2="62.3" y2="0" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop offset="0" stop-color="#ff4b77"/>
|
||||||
|
<stop offset=".33" stop-color="#ff7875"/>
|
||||||
|
<stop offset=".67" stop-color="#ff9e84"/>
|
||||||
|
<stop offset="1" stop-color="#ffb86f"/>
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
<g id="Capa_1-2" data-name="Capa 1">
|
||||||
|
<path class="cls-1" d="M112.96,48.3c3.78-5.2,6.67-9.75,8.6-13.49,2.01-3.9,3.03-7.91,3.03-11.9,0-1.58-.45-3.5-1.39-5.87-.89-2.27-1.93-4.23-3.09-5.84-.9-1.26-2.31-2.93-4.12-2.93-2.57,0-6.27,1.7-11.31,5.18-4.76,3.3-10.67,8.27-17.56,14.76-6.87,6.47-15.04,14.99-24.28,25.31-5.26,5.87-10.85,12.36-16.71,19.39l9.38-15.79c3.77-6.34,7.51-12.85,11.14-19.33,3.65-6.53,6.47-12.15,8.38-16.73,2-4.79,2.98-8.39,2.98-11.01,0-3.26-1.23-5.8-3.64-7.56-2.26-1.65-5.33-2.48-9.13-2.48-4.18,0-9.22,1.28-15,3.8-4.5,1.97-11.13,5.11-19.75,9.36.69-.61,1.44-1.22,2.24-1.82,2.09-1.56,2.69-2.29,2.69-3.25,0-1.26-.69-1.83-1.1-2.05-1.22-.66-2.53.16-3.06.5-9.44,5.41-17.06,11.82-22.66,19.04C2.81,33.04,0,38.91,0,43.52s3.06,4.93,4,4.93c.65,0,1.62,0,10.21-4.9,5.46-3.11,9.78-5.52,12.87-7.18,3.06-1.64,8-3.9,14.68-6.7,10.41-4.34,13.42-4.99,14.28-4.99.5,0,.91.16,1.29.51.35.32.5.69.5,1.2,0,1.61-1.28,5.95-7.35,17.52-4.98,9.48-12.63,22.68-22.73,39.22h0c-1.92,3.23-4.47,7.25-7.58,11.96-4.4,6.66-4.99,8.71-4.99,9.83,0,1.52,1.17,3.37,3.79,5.99,2.59,2.59,4.66,3.79,6.51,3.79s3.67-1.31,5.79-4.12c3.75-4.88,7.44-9.7,11.07-14.44,3.63-4.74,6.91-9.01,9.84-12.82,2.9-3.77,5.78-7.38,8.56-10.73,2.8-3.36,4.77-5.68,5.88-6.9,23.07-25.84,30.82-29.7,33.38-29.7.12,0,.2,0,.25.02,0,.04,0,.09,0,.16,0,.77-.7,3.56-7.2,12.87-5.12,7.22-9.77,14.24-13.82,20.87-4.07,6.65-7.53,12.92-10.3,18.62-2.78,5.73-4.87,10.86-6.22,15.26-1.38,4.48-2.07,8.37-2.07,11.59,0,3.68,1.04,6.72,3.09,9.03,2.1,2.37,4.9,3.56,8.32,3.56,2.29,0,4.94-.74,7.88-2.21,2.8-1.4,6-3.49,9.51-6.22,3.46-2.69,7.17-5.85,11.05-9.41,3.86-3.55,8.3-7.88,13.18-12.88l.48-.49-.28-10.99-2.64,2.55c-3.42,3.31-6.86,6.41-10.22,9.2-3.31,2.76-6.18,4.82-8.53,6.13-2.19,1.22-4.07,1.84-5.6,1.84-3.09,0-4.35-1.19-4.35-4.09,0-4.74,2.4-11.19,7.14-19.19,4.85-8.2,12.69-19.61,23.3-33.94Z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 2.4 KiB |
7
src/components/footer/Footer.astro
Normal file
7
src/components/footer/Footer.astro
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<p>© 2024 Naliia. Todos los derechos reservados.</p>
|
||||||
|
</footer>
|
||||||
0
src/components/footer/footer.css
Normal file
0
src/components/footer/footer.css
Normal file
10
src/components/navbar/Navbar.astro
Normal file
10
src/components/navbar/Navbar.astro
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
<nav>
|
||||||
|
<a href="/">Inicio</a>
|
||||||
|
<a href="/about">Acerca de</a>
|
||||||
|
<a href="/projects">Proyectos</a>
|
||||||
|
<a href="/contact">Contacto</a>
|
||||||
|
</nav>
|
||||||
0
src/components/navbar/navbar.css
Normal file
0
src/components/navbar/navbar.css
Normal file
50
src/layouts/Layout.astro
Normal file
50
src/layouts/Layout.astro
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
---
|
||||||
|
// imports
|
||||||
|
import Navbar from "../components/navbar/Navbar.astro";
|
||||||
|
import Footer from "../components/footer/Footer.astro";
|
||||||
|
|
||||||
|
// types
|
||||||
|
export interface Props {
|
||||||
|
pageTitle?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
// props
|
||||||
|
const { pageTitle } = Astro.props;
|
||||||
|
|
||||||
|
// logic, variables, functions, etc.
|
||||||
|
---
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
<meta name="generator" content={Astro.generator} />
|
||||||
|
<title>{pageTitle ? `Naliia | ${pageTitle}` : "Naliia"}</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<Navbar />
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<slot />
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<Footer />
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
5
src/pages/index.astro
Normal file
5
src/pages/index.astro
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
import Layout from "../layouts/Layout.astro";
|
||||||
|
---
|
||||||
|
|
||||||
|
<Layout pageTitle="Home page"> Sitio web de Naliia </Layout>
|
||||||
5
tsconfig.json
Normal file
5
tsconfig.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"extends": "astro/tsconfigs/strict",
|
||||||
|
"include": [".astro/types.d.ts", "**/*"],
|
||||||
|
"exclude": ["dist"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user