Skip to content

Commit

Permalink
corrijo imagen e iconos
Browse files Browse the repository at this point in the history
  • Loading branch information
andreacampog committed Feb 3, 2024
1 parent cbd6363 commit d3a0e5e
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 51 deletions.
9 changes: 5 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,14 @@ btnToogle.addEventListener("click",function(){
let body = document.querySelector("body");
if (body.classList.contains("dark-mode")){
body.classList.remove("dark-mode");
img.setAttribute("src", "/icons/moon.png");
img.setAttribute("src", "./icons/moon.png");
}else{
body.classList.add("dark-mode");
img.setAttribute("src", "/icons/sun.png");
img.setAttribute("src", "./icons/sun.png");
}});







15 changes: 13 additions & 2 deletions css/pc.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
body{
max-width: 1680px;
margin: 0 auto;
}


main{
display: flex;
align-items: center;
padding-bottom: 3em;
margin-bottom: 1em;
}

.form__box{
Expand Down Expand Up @@ -33,7 +41,7 @@ main{
}
.form__outbox--img{
display: block;
background-image: url(/img/imagen_pc.jpg);
background-image: url(./icons/Loupe.png);
margin-top: 2em;
}

Expand All @@ -59,8 +67,11 @@ main{

.hero__img{
display: none;
margin-bottom: 1em;
}

footer section{
padding-top: 0;
padding-bottom: 0;
padding-top: 0;
}

Binary file added icons/Loupe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Encriptador</title>
<link rel="stylesheet" href="reset.css">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet">

<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="/css/tablet.css" media="(min-width:768px)">
<link rel="stylesheet" href="/css/pc.css" media="(min-width:1280px)">
<link rel="stylesheet" href="/css/pcmax.css" media="(min-width:1680px)">
</head>

<body class="light-mode">
Expand Down Expand Up @@ -65,7 +64,7 @@
<section class="outbox-container" >
<section class="form__outbox">
<div class="form__outbox--img" >
<img src="/img/imagen_pc.jpg" class="msg--img">
<img src="./icons/Loupe.png" class="msg--img">
</div>

<section class="form__outbox--msg">
Expand Down
79 changes: 37 additions & 42 deletions style.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
:root{
--background-color:white;
--text-color:black;
--text-color:#0A3871;
--text-color-hover:red ;
--background-button: #052051;
--text-color-button: white;



--dark-blue-500: #052051;
--dark-blue-400: #072B61;
--dark-blue-300:#0A3871;
}

@media(prefers-color-scheme: dark){
:root{
background-color:var(--fondo-oscuro);
color:var(--texto-claro);
}
}

--box-shadow: 10px 14px 12px -10px rgba(0,0,0,0.33);
--box-shadow-header: 0px 20px 21px -17px rgba(0,0,0,1);
}

*{
margin: 0;
padding: 0;
Expand All @@ -33,30 +22,20 @@ html{

body{
color: var(--text-color);
background-color: var(--background-color);

}

.dark-mode{
--background-color:black;
--text-color:white;
--background-button:white;
--text-color-button:#0A3871;
background-color:var(--background-color);
color:var(--texto-claro);

background-color: var(--background-color);
}

header{
width: 100%;
min-width: 320px;
box-shadow: 10px 14px 12px -10px rgba(0,0,0,0.33);

}
nav{
display: flex;
justify-content: space-around;
align-items: center;
height: 80px;
box-shadow: var(--box-shadow-header);
}

.nav__menu{
Expand All @@ -71,6 +50,7 @@ nav{
height: 30px;
margin: 2em;
cursor: pointer;
transition: 0.5s;
}


Expand All @@ -84,20 +64,19 @@ nav{
display: none;
width: 200px;
top: 80px;
background:var(--fondo-blanco);
background:var(--background-color);
border-radius: 0 0 20px 0;
box-shadow: var(--box-shadow)
}

.menu--info-project--desplegado ul{
visibility: hidden;
display: flex;
justify-content: space-between;

justify-content: space-between;
}

.menu--info-project--desplegado ul li{
margin: 0.5em;

margin: 0.5em;
}

.menu--info-project--desplegado ul li a , .menu--info-proyect ul li a{
Expand All @@ -108,15 +87,13 @@ nav{

.menu--info-project--desplegado ul li a:hover{
color:var(--text-color-hover);
border-radius: 5px;

border-radius: 5px;
}

.menu--info-proyect ul li a:hover{
color:var(--text-color-hover);
}


.menu--info-proyect ul{
display: flex;
flex-direction: column;
Expand All @@ -127,7 +104,7 @@ nav{

.menu--info-proyect ul li{
margin: 0.5em;
padding: 0.5em;
padding: 1em;
}

.menu-abierto{
Expand All @@ -149,12 +126,21 @@ nav{

.nav__icons a{
width: 80px;
height: auto;
height: auto;

}

.nav__icons img{
width: 70%;
margin: 0.5em auto;
margin: 0.5em auto;
transition: 0.5s;
border-radius: 50px;

}

.nav__icons img:hover{
transform: scale(1.1);

}

main{
Expand All @@ -167,7 +153,6 @@ main{
min-width: 320px;
margin: 0 auto;
text-align: center;


}

Expand Down Expand Up @@ -201,6 +186,7 @@ main{
}

.form__inbox p{
max-width: 70%;
padding-left: 3em;
padding-top: 1em;
font-size: 1.2rem;
Expand All @@ -220,7 +206,7 @@ main{
cursor: pointer;
border: var(--dark-blue-300) solid #000;
transition: 1s background;
box-shadow: 16px 20px 18px -8px rgba(0,0,0,0.33);
box-shadow: var(--box-shadow)
}

.btn:hover{
Expand Down Expand Up @@ -416,3 +402,12 @@ footer .left ul:first-child{
.right a:hover{
color:var(--text-color-hover);
}

.dark-mode{
--background-color:black;
--text-color:white;
--background-button:white;
--text-color-button:#0A3871;
--box-shadow: 12px 7px 5px 0px rgba(88,102,130,0.49);
--box-shadow-header:0px 20px 21px -17px rgba(255,255,255,0.5);
}

0 comments on commit d3a0e5e

Please sign in to comment.