Commit ffbf2b97 by Sakilesh J

fix code

parent 6100cf3d
...@@ -129,6 +129,10 @@ nav img{ ...@@ -129,6 +129,10 @@ nav img{
object-fit: contain; object-fit: contain;
} }
} */ } */
img{
max-width: 100%;
height: auto;
}
.card.card-1{ .card.card-1{
background: #41ca6e; background: #41ca6e;
} }
...@@ -152,10 +156,10 @@ nav img{ ...@@ -152,10 +156,10 @@ nav img{
nav{ nav{
background-color: black; background-color: black;
width: 100%; width: 100%;
padding: .4rem .6rem; padding: 10px 15px;
} }
nav img{ nav img{
width: 20%; width: 10%;
} }
main{ main{
display: flex; display: flex;
...@@ -164,12 +168,12 @@ main{ ...@@ -164,12 +168,12 @@ main{
} }
.card{ .card{
width: 100%; width: 100%;
height: 100%; min-height: 100vh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: 1.7rem; gap: 1rem;
padding: 2rem; padding: 2rem;
} }
...@@ -206,7 +210,12 @@ main{ ...@@ -206,7 +210,12 @@ main{
margin-block:1rem ; margin-block:1rem ;
} }
@media (min-width:500px){
@media (min-width:800px){
body {
max-width: 1926px;
margin:auto;
}
nav{ nav{
position: fixed; position: fixed;
background-color: transparent; background-color: transparent;
...@@ -224,19 +233,25 @@ main{ ...@@ -224,19 +233,25 @@ main{
flex-shrink: 0; flex-shrink: 0;
flex-basis: 400px; flex-basis: 400px;
min-width: 33.3333%; min-width: 33.3333%;
height: 50vh; min-height: 50vh;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-around;
align-items: center; align-items: center;
padding-inline: 1.7rem;
padding-block: .6rem;
gap: 0;
}
.card>:nth-child(2){
width: auto;
} }
.card .about{ .card .about{
float: left; flex-grow: 1;
flex: 200px; width: 70%;
padding-inline: 1rem; padding-inline: 2rem;
} }
.card .about h4{ .card .about h4{
text-transform: capitalize; text-transform: capitalize;
font-size: 18px; font-size: 20px;
width: 100%; width: 100%;
} }
.card .about img{ .card .about img{
......
...@@ -12,7 +12,7 @@ function App() { ...@@ -12,7 +12,7 @@ function App() {
{ {
data.features.map((Element,index)=>{ data.features.map((Element,index)=>{
return ( return (
<Card {...Element} i={index+1} /> <Card {...Element} i={index+1} key={index}/>
) )
}) })
} }
......
...@@ -2,9 +2,9 @@ import React from 'react' ...@@ -2,9 +2,9 @@ import React from 'react'
const Navbar = ({imgurl}) => { const Navbar = ({imgurl}) => {
return ( return (
<>
<nav><img src={imgurl} alt="*logo"/></nav> <nav><img src={imgurl} alt="*logo"/></nav>
</>
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment