Commit 82a558cc by Manivasagam S

new changes

parent 4031ca20
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
color: white;
font-family: 'Open Sans', sans-serif;
font-family: "Open Sans", sans-serif;
}
html{
body {
max-width: 1980px;
margin-inline: auto;
}
html {
font-size: 62.5%;
}
nav {
......@@ -19,21 +25,21 @@ nav {
nav img {
height: 70%;
}
image {
max-height: 100%;
}
.main {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-columns: 1fr;
max-width: 100vw;
min-height: 100vh;
margin-inline: auto;
}
.card {
display: grid;
grid-template-columns: 1fr 1fr;
/* max-height: 50vh; */
min-width:0 ;
padding: 2rem 1.7rem;
overflow: hidden;
align-items: center;
......@@ -44,13 +50,10 @@ nav img {
margin-left: 9%;
}
.card .about h4,
.card .about hr {
font-size: 1.8rem;
margin-block: 10px;
width: 70%;
text-wrap: wrap;
font-weight: 400;
.card .about h5 {
font-weight: 100;
font-size: 16px;
text-transform: uppercase;
}
.card .about hr {
......@@ -75,11 +78,9 @@ nav img {
.card > :nth-child(2) img {
width: 100%;
height: 300px;
object-fit: contain;
}
.card.card-1 {
background: #41ca6e;
}
......@@ -98,91 +99,124 @@ nav img {
.card.card-6 {
background: #4ec2e7;
}
@media (max-width: 640px) {
nav {
position: sticky;
background-color: black;
min-width: 400px;
padding-inline:1rem;
margin: 0;
}
.main {
grid-template-columns: 1fr;
}
.card > :nth-child(2) {
max-width: 30rem;
margin-inline: auto;
height: 100%;
}
.card {
display: grid;
grid-template-columns: 1fr;
min-width: 400px;
min-height: 800px;
padding: 4rem ;
justify-items: center;
align-items: center;
height: 100vh;
}
.card .about .logo {
width: 6rem;
margin-block: 7px;
}
.card > :nth-child(2) img {
width: 100%;
height: 560px;
object-fit: contain;
}
nav {
position: sticky;
background-color: black;
width: 100%;
padding-inline: 1rem;
margin: 0;
}
.card .about,
.card > :nth-child(2) {
width: 84%;
margin-inline: auto;
}
.main {
grid-template-columns: 1fr;
}
.card .about h4,
.card .about hr {
width: 100%;
font-size: 20px;
font-weight: 500;
text-transform: uppercase;
}
.card {
display: grid;
grid-template-columns: 1fr;
padding: 4rem;
gap: 3rem;
height: 100vh;
}
.card .about .logo {
width: 6rem;
margin-block: 7px;
}
.card .about > :nth-child(4) {
font-size: larger;
}
.card > :nth-child(2) img {
width: 100%;
height: 100%;
}
.card img {
object-fit: contain;
}
.card .about {
width: 100%;
margin-inline: auto;
}
.card .about h4,
.card .about hr {
width: 100%;
margin-block: 10px;
font-size: 20px;
font-weight: 700;
text-transform: uppercase;
}
.card img {
object-fit: contain;
}
.card-6 > :nth-child(2) img {
width: 100%;
aspect-ratio: 1 / 1;
min-height: 30rem;
transform: scale(1.2);
}
@media (min-width:640px) and (max-width:768px){
.main{
@media (min-width: 640px) {
.main {
display: grid;
grid-template-columns: 1fr;
}
.card > :nth-child(2) img {
width: 110%;
height: 290px;
width: 100%;
object-fit: contain;
}
.card{
padding: 33px;
}
.card {
padding: 33px;
grid-template-columns: repeat(2, 1fr);
height:59vh
}
}
@media (min-width:769px) and (max-width:1024px){
.main{
@media (min-width: 769px) {
nav{
background: transparent;
position: fixed;
top: 0;
}
.main {
display: grid;
grid-template-columns: 1fr 1fr ;
grid-template-columns: 1fr 1fr;
}
.card{
.card {
padding: 20px;
gap: 2rem;
}
.card .about h4 {
font-size: 15px;
text-transform: capitalize;
font-weight: 400;
}
.card .about h5 {
font-size: 14px;
text-transform: uppercase;
font-weight: 100;
}
.card-1 > :nth-child(2) img {
min-height: 100%;
}
}
@media (min-width:1024px) {
.main{
@media (min-width: 1024px) {
.main {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
.card {
padding-left: 5rem;
}
}
\ No newline at end of file
.card-6 > :nth-child(2) img {
transform: scale(1.2);
margin-left: 0.6rem;
margin-top: 6rem;
}
}
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