Skip to content

Commit

Permalink
Actualizacion de navegacion de acciones
Browse files Browse the repository at this point in the history
  • Loading branch information
yhojann-cl committed May 20, 2024
1 parent a54c9df commit d0e8500
Show file tree
Hide file tree
Showing 13 changed files with 58 additions and 129 deletions.
1 change: 0 additions & 1 deletion docs/CNAME

This file was deleted.

6 changes: 3 additions & 3 deletions docs/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.846b51d6.css",
"main.js": "/static/js/main.153c31df.js",
"main.js": "/static/js/main.7c02cc7f.js",
"static/js/453.47270508.chunk.js": "/static/js/453.47270508.chunk.js",
"static/media/carousel-1.png": "/static/media/carousel-1.6368769c9ac3a7d80bcc.png",
"static/media/bootstrap-icons.woff?": "/static/media/bootstrap-icons.39795c0b4513de014cf8.woff",
Expand All @@ -10,11 +10,11 @@
"static/media/logo.png": "/static/media/logo.266806b3186d2ffbb05a.png",
"index.html": "/index.html",
"main.846b51d6.css.map": "/static/css/main.846b51d6.css.map",
"main.153c31df.js.map": "/static/js/main.153c31df.js.map",
"main.7c02cc7f.js.map": "/static/js/main.7c02cc7f.js.map",
"453.47270508.chunk.js.map": "/static/js/453.47270508.chunk.js.map"
},
"entrypoints": [
"static/css/main.846b51d6.css",
"static/js/main.153c31df.js"
"static/js/main.7c02cc7f.js"
]
}
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><title>Yhojann Aguilera</title><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="apple-touch-icon" href="/apple-touch-icon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#333333"/><meta name="description" content="Yhojann Aguilera Aguayo - Chile"/><meta name="author" content="Yhojann Aguilera"/><link rel="manifest" href="/manifest.json"/><link href="/assets/css/bootstrap.min.css" rel="stylesheet"/><link href="/assets/css/font-awesome.min.css" rel="stylesheet"/><script src="/assets/js/bootstrap.min.js"></script><script defer="defer" src="/static/js/main.153c31df.js"></script><link href="/static/css/main.846b51d6.css" rel="stylesheet"></head><body><noscript>Necesitas habilitar Javascript para ver el contenido.</noscript><div id="root"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><title>Yhojann Aguilera</title><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="apple-touch-icon" href="/apple-touch-icon.png"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#333333"/><meta name="description" content="Yhojann Aguilera Aguayo - Chile"/><meta name="author" content="Yhojann Aguilera"/><link rel="manifest" href="/manifest.json"/><link href="/assets/css/bootstrap.min.css" rel="stylesheet"/><link href="/assets/css/font-awesome.min.css" rel="stylesheet"/><script src="/assets/js/bootstrap.min.js"></script><script defer="defer" src="/static/js/main.7c02cc7f.js"></script><link href="/static/css/main.846b51d6.css" rel="stylesheet"></head><body><noscript>Necesitas habilitar Javascript para ver el contenido.</noscript><div id="root"></div></body></html>
1 change: 0 additions & 1 deletion docs/static/js/main.153c31df.js.map

This file was deleted.

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions docs/static/js/main.7c02cc7f.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"build": "rm -rf ./docs && BUILD_PATH=./docs react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand Down
8 changes: 4 additions & 4 deletions src/components/carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ class CarouselComponent extends Component {

render() {
return (
<div class="carousel slide">
<div class="carousel-inner">
<div class="carousel-item active position-relative">
<img src={carousel1Img} class="d-block w-100" alt="Image" />
<div className="carousel slide">
<div className="carousel-inner">
<div className="carousel-item active position-relative">
<img src={carousel1Img} className="d-block w-100" alt="Image" />
<div className="position-absolute top-0 start-0 w-100 h-100">
<div className="container h-100">
<div className="row h-100">
Expand Down
46 changes: 45 additions & 1 deletion src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,26 @@ class FooterComponent extends Component {
name: 'Yhojann Aguilera Aguayo.',
location: '*Santiago de Chile, {year}.*',
linkedin: 'Linkedin',
language: {
current: 'ES',
options: {
spanish: 'Español',
english: 'English',
}
}

},
en: {
name: 'Yhojann Aguilera Aguayo.',
location: '*Santiago of Chile, {year}.*',
linkedin: 'Linkedin',
language: {
current: 'EN',
options: {
spanish: 'Español',
english: 'English',
}
}

},
};
Expand All @@ -24,6 +38,9 @@ class FooterComponent extends Component {
this.state = {
strings: FooterComponent.strings.en
}

// Bind functions
this.setLanguage = this.setLanguage.bind(this);
}

componentDidMount() {
Expand All @@ -34,6 +51,11 @@ class FooterComponent extends Component {
});
}

async setLanguage(language) {
localStorage.setItem('language', language);
window.location.reload();
}

render() {
return (
<div className="container py-5">
Expand All @@ -52,12 +74,34 @@ class FooterComponent extends Component {
</p>
</div>
<div className="col-md-6 text-end">
<a className="btn btn-sm btn-outline-secondary"
<a className="btn btn-sm btn-outline-secondary me-2"
href="https://www.linkedin.com/in/yhojann-aguilera/"
target="_blank" rel="noreferrer">
<i className="bi bi-linkedin me-2"></i>
{this.state.strings.linkedin}
</a>
<span class="dropdown">
<button class="btn btn-sm btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown">
<i className="bi bi-globe-americas me-2"></i>
{this.state.strings.language.current}
</button>
<ul class="dropdown-menu">
<li>
<button
onMouseDown={() => this.setLanguage('es')}
className="dropdown-item">
{this.state.strings.language.options.spanish}
</button>
</li>
<li>
<button
onMouseDown={() => this.setLanguage('en')}
className="dropdown-item">
{this.state.strings.language.options.english}
</button>
</li>
</ul>
</span>
</div>
</div>
</div>
Expand Down
108 changes: 0 additions & 108 deletions src/components/nav.js

This file was deleted.

4 changes: 0 additions & 4 deletions src/pages/error/not-found.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Component } from 'react';
import NavComponent from '../../components/nav';
import FooterComponent from '../../components/footer';

class NotFoundErrorPage extends Component {
Expand Down Expand Up @@ -37,9 +36,6 @@ class NotFoundErrorPage extends Component {
render() {
return (
<div className="d-flex flex-column min-vh-100">

<NavComponent language={this.props.language} />

<div className="flex-fill container mt-5 mb-4">
<div className="row justify-content-md-center">
<div className="col-md-10 px-4 p-md-2 text-center mb-4">
Expand Down
2 changes: 0 additions & 2 deletions src/pages/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component } from 'react';
import Markdown from 'react-markdown'
import CarouselComponent from '../components/carousel';
import FooterComponent from '../components/footer';
import NavBarComponent from '../components/nav';
import trustShadowedImg from '../assets/images/trust-shadowed.jpg';

class MainPage extends Component {
Expand Down Expand Up @@ -82,7 +81,6 @@ always in trust, transparency and **benefit to people**.
render() {
return (
<div>
<NavBarComponent language={this.props.language} />
<CarouselComponent language={this.props.language} />

<div>
Expand Down

0 comments on commit d0e8500

Please sign in to comment.