Skip to content

Commit

Permalink
css changed
Browse files Browse the repository at this point in the history
  • Loading branch information
kunal-511 committed Sep 21, 2023
1 parent cb18fec commit 1631d89
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 26 deletions.
28 changes: 27 additions & 1 deletion src/Components/Services.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,34 @@
import React, { useState, useEffect } from "react";
import background from "../assets/background.jpg";
import ChooseTemplate from "./ChooseTempelate";


interface FormData {
fname: string;
lname: string;
email: string;
about: string;
phone: string;
address: string;
skill1: string;
skill2: string;
skill3: string;
skill4: string;
skill5: string;
skill6: string;
skill7: string;
skill8: string;
history1: string;
history2: string;
history3: string;
history4: string;
ed1: string;
affilation1: string;
affilation2: string;
}

function Services() {
const [formData, setFormData] = useState({
const [formData, setFormData] = useState<FormData>({
fname: "",
lname: "",
email: "",
Expand Down
47 changes: 22 additions & 25 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@import "tailwindcss/base";
@import "tailwindcss/components";

@import "tailwindcss/utilities";

* {
Expand Down Expand Up @@ -89,17 +88,17 @@ body {
.animation {
height: 20rem;
}
.skills{
.skills {
flex-wrap: wrap;
}
.skills div{
.skills div {
margin-top: 0.5rem;
}
.person{
.person {
flex-direction: column;
}
.person div:nth-child(1){
margin-right: 1px;
.person div:nth-child(1) {
margin-right: 1px;
}
}
@media (max-width: 615px) {
Expand All @@ -112,7 +111,6 @@ margin-right: 1px;
.space {
margin-top: 1rem;
}

}
@media (max-width: 550px) {
.heads p {
Expand All @@ -126,25 +124,25 @@ margin-right: 1px;
text-align: center;
margin-bottom: 1rem;
}
.home2{
.home2 {
flex-direction: column;
padding-left:1.5rem ;
padding-right:1.5rem ;
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.home2 img{
width: 100%;
.home2 img {
width: 100%;
}
.home2 div{
.home2 div {
width: 100%;
padding: 1rem;
height: 75vh;
}
.mainHead{
.mainHead {
font-size: 1.5rem;
}
.Hline{
margin-top: 0.5rem;
}
}
.Hline {
margin-top: 0.5rem;
}
}
@media (max-width: 500px) {
.nav ul li:nth-child(4) {
Expand All @@ -159,7 +157,6 @@ width: 100%;
.home2 div {
width: 100%;
}

}
@media (max-width: 450px) {
.heads p {
Expand All @@ -175,10 +172,10 @@ width: 100%;
}
}
@media (max-width: 415px) {
.mainHead{
font-size: 1.1rem;
}
.Hline{
margin-top: 0.2rem;
}
.mainHead {
font-size: 1.1rem;
}
.Hline {
margin-top: 0.2rem;
}
}

0 comments on commit 1631d89

Please sign in to comment.