Skip to content

Commit

Permalink
Merge pull request #120 from Vinoth-git-17/enhancement
Browse files Browse the repository at this point in the history
Enhancement of Home UI by Changing fonts and adjusting layouts
  • Loading branch information
pradeeptosarkar authored Oct 2, 2023
2 parents 8b76225 + 753829f commit 185ae71
Show file tree
Hide file tree
Showing 11 changed files with 107 additions and 94 deletions.
3 changes: 2 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
* {
padding: 0;
margin: 0;
font-family: "Roboto", sans-serif;
font-family: 'Plus Jakarta Sans', sans-serif;
text-wrap: balance;
scroll-snap-type: y mandatory;
scroll-behavior: smooth;
}
Expand Down
10 changes: 5 additions & 5 deletions src/Sections/About/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const Left = styled.div`
`;

const Title = styled.h1`
font-size: 52px;
font-size:40px;
font-weight: bold;
font-style: italic;
border-bottom:3px solid #F5F5F5;
margin: auto 10%;
background: #3530cf;
background: repeating-radial-gradient(
Expand All @@ -56,10 +56,10 @@ const Title = styled.h1`
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
@media only screen and (max-width: 768px) {
font-size: 52px;
font-size: 30px;
}
@media only screen and (max-width: 1030px) {
font-size: 70px;
font-size: 30px;
}
`;

Expand All @@ -76,7 +76,7 @@ const Right = styled.div`
`;

const Desc = styled.p`
font-size: 24px;
font-size: 22px;
text-align: justify;
color: lightgray;
margin: auto 10%;
Expand Down
4 changes: 2 additions & 2 deletions src/Sections/Contact/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const Left = styled.div`

const Title = styled.h1`
font-size: 50px;
font-weight: 200;
font-style: italic;
font-weight: 600;
`;

const Form = styled.form`
Expand Down
2 changes: 1 addition & 1 deletion src/Sections/Events/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function Events() {
<div className=" px-6 mx-auto">
<section className="mb-3 text-center">
<h2 className="text-5xl font-bold mb-12">
<span className="text-5xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-blue-500 to-blue-600 italic">
<span className="text-5xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-blue-500 to-blue-600">
<a href="/events">Our Timeline</a>
</span>
</h2>
Expand Down
135 changes: 66 additions & 69 deletions src/Sections/Hero/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ const Container = styled.div`
scroll-snap-align: center;
width: 1400px;
display: flex;
padding-top: 100px;
justify-content: center;
@media only screen and (max-width: 768px) {
justify-content:space-between;
margin-top:100px;
padding:9% 14% ;
@media only screen and (max-width: 1030px) {
width: 100%;
height: 100vh;
flex-direction: column;
Expand All @@ -78,109 +78,106 @@ const Left = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
gap: 20px;
@media only screen and (max-width: 768px) {
flex: 1;
align-items: center;
}
@media only screen and (max-width: 1030px) {
flex: 1;
align-items: center;
}
@media only screen and (min-width: 1030px) and (max-width: 1400px) {
flex: 1;
}
`;

const Title = styled.h1`
font-size: 50px;
font-size: 40px;
font-weight:700;
@media only screen and (max-width: 768px) {
text-align: center;
@media only screen and (max-width: 768px) {
font-size: 40px;
}
@media only screen and (max-width: 1030px) {
text-align: center;
font-size: 50px;
font-size: 60px;
}
@media only screen and (min-width: 1030px) and (max-width: 1400px) {
text-align: center;
font-size: 50px;
font-size: 60px;
}
`;

const WhatWeDo = styled.div`
display: flex;
align-items: center;
gap: 10px;
@media only screen and (min-width: 1030px) and (max-width: 1400px) {
text-align: center;
font-size: 50px;
justify-content: center;
}
@media only screen and (min-width: 1030px) and (max-width: 1400px) {
font-size: 50px;
}
`;

const Subtitle = styled.p`
font-size: 84px;
font-weight: bold;
background: #3530cf;
background: repeating-radial-gradient(
circle farthest-side at center center,
#3530cf 0%,
#44cfcf 100%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
@media only screen and (max-width: 768px) {
display: flex;
font-size: 64px;
text-align: center;
}
@media only screen and (max-width: 1030px) {
font-size: 80px;
}
@media only screen and (min-width: 1030px) and (max-width: 1400px) {
text-align: center;
font-size: 50px;
}
font-size: 84px;
font-weight: bold;
background: #3530cf;
background: repeating-radial-gradient(
circle farthest-side at center center,
#3530cf 0%,
#44cfcf 100%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
@media only screen and (max-width: 768px) {
font-size: 40px;
}
}
@media only screen and (max-width: 1030px) {
font-size: 50px;
}
@media only screen and (min-width: 1030px) and (max-width: 1400px) {
font-size: 50px;
}
`;

const Desc = styled.p`
font-size: 24px;
color: lightgray;
@media only screen and (max-width: 768px) {
padding: 20px;
text-align: center;
}
@media only screen and (max-width: 1030px) {
padding: 20px;
text-align: center;
font-size: 30px;
}
@media only screen and (min-width: 1030px) and (max-width: 1400px) {
text-align: center;
font-size: 50px;
font-size: 40px;
}
`;
const ShortDesc = styled.p`
font-size: 16px;
color: lightgray;
padding-top:4px;
@media only screen and (max-width: 1030px) {
font-size: 16px;
}
@media only screen and (min-width: 1030px) and (max-width: 1400px) {
font-size: 24px;
}
`;

const Right = styled.div`
flex: 3;
justify-content: center;
position: relative;
@media only screen and (max-width: 1030px) {
${"" /* flex: 1; */}
display: none;
display:none;
}
@media only screen and (min-width: 1030px) and (max-width: 1400px) {
${"" /* flex: 1; */}
display: none;
flex: 1;
}
`;

const Img = styled.iframe`
width: 800px;
height: 600px;
width: 600px;
height: 500px;
object-fit: contain;
position: absolute;
top: 0;
Expand All @@ -190,16 +187,16 @@ const Img = styled.iframe`
margin: auto;
${"" /* animation: animate 2s infinite ease alternate; */}
@media only screen and (max-width: 768px) {
width: 300px;
height: 300px;
}
// @media only screen and (max-width: 768px) {
// width: 300px;
// height: 300px;
// }
@keyframes animate {
to {
transform: translateY(20px);
}
}
// @keyframes animate {
// to {
// transform: translateY(20px);
// }
// }
`;

const Hero = () => {
Expand All @@ -214,7 +211,7 @@ const Hero = () => {
<Subtitle>Coding Club</Subtitle>
</WhatWeDo>
<Desc>Bhagwan Parshuram Institute of Technology</Desc>
<Desc>GGSIPU, New Delhi, India</Desc>
<ShortDesc>GGSIPU, New Delhi, India</ShortDesc>
</Left>
<Right>
{/* <Img src="./img/logo.png" /> */}
Expand Down
2 changes: 1 addition & 1 deletion src/Sections/Teams/Teams.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function Teams() {
<Container>
<div className="px-6 mx-auto">
<section className="mb-5 text-white text-center">
<h2 className="text-5xl sm:text-xl md:text-5xl font-bold mb-12 mt-12 italic">
<h2 className="text-5xl sm:text-xl md:text-5xl font-bold mb-12 mt-12">
Meet the{" "}
<span className="text-5xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-blue-500 to-blue-800">
<a href="/team">Team</a>
Expand Down
1 change: 1 addition & 0 deletions src/Sections/Testimonials/Testimonials.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const Title = styled.h1`
font-size: calc(1rem + 1.5vw);
font-style: italic;
margin-top: 1.5rem;
border-bottom:3px solid #F5F5F5;
position: relative;
&::before {
content: "";
Expand Down
35 changes: 22 additions & 13 deletions src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,24 @@ const NavbarInnerContainer = styled.div`

const NavbarLinkContainer = styled.div`
display: flex;
`;


const NavLinks = styled.div`
display: flex;
gap: 20px
`;

const NavbarLink = styled(Link)`
color: white;
font-size: 20px;
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
margin: 10px;
@media (max-width: 700px) {
@media (max-width: 900px) {
display: none;
}
`;

const NavbarLinkExtended = styled(Link)`
Expand All @@ -61,6 +67,7 @@ const NavbarLinkExtended = styled(Link)`
font-family: Arial, Helvetica, sans-serif;
text-decoration: none;
margin: 10px;
`;

const Logo = styled.img`
Expand All @@ -79,7 +86,7 @@ const OpenLinksButton = styled.button`
font-size: 50px;
cursor: pointer;
@media (min-width: 700px) {
@media (min-width: 900px) {
display: none;
align-self: center;
}
Expand All @@ -104,7 +111,7 @@ const Button = styled.button`
border: none;
border-radius: 5px;
cursor: pointer;
@media (max-width: 700px) {
@media (max-width: 900px) {
display: none;
}
`;
Expand All @@ -118,13 +125,15 @@ function Navbar() {
<LeftContainer>
<Logo src="./img/logo2.png"></Logo>
{/* <NavbarLink to="/">NSCC</NavbarLink> */}
<NavbarLink to="/"> Home</NavbarLink>
<NavbarLink to="/projects">Projects</NavbarLink>
<NavbarLink to="/events">Events</NavbarLink>
<NavbarLink to="/programs">Programs</NavbarLink>
<NavbarLink to="/team">Team</NavbarLink>
<NavbarLink to="/resources">Resources</NavbarLink>
<NavbarLink to="http://blog.nsccbpit.tech/">Blog</NavbarLink>
<NavLinks>
<NavbarLink to="/"> Home</NavbarLink>
<NavbarLink to="/projects">Projects</NavbarLink>
<NavbarLink to="/events">Events</NavbarLink>
<NavbarLink to="/programs">Programs</NavbarLink>
<NavbarLink to="/team">Team</NavbarLink>
<NavbarLink to="/resources">Resources</NavbarLink>
<NavbarLink to="http://blog.nsccbpit.tech/">Blog</NavbarLink>
</NavLinks>
</LeftContainer>
<RightContainer>
<NavbarLinkContainer>
Expand Down
2 changes: 2 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;
Expand Down
3 changes: 1 addition & 2 deletions src/utils/ImageCrousel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import styled from 'styled-components';
const ImageCarouselContainer = styled.div`
position: relative;
width: 100%;
overflow: hidden;
overflow: hidden;
@media screen and (min-width: 768px) {
margin-bottom: 0;
}
Expand Down
4 changes: 4 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ module.exports = {
boxShadow: {
card: "0px 35px 120px -15px #211e35",
},
fontFamily :{
Inter : ['Inter', 'sans-serif'],
Inter : ['Plus Jakarta Sans', 'sans-serif'],
},
screens: {
xs: "450px",
},
Expand Down

0 comments on commit 185ae71

Please sign in to comment.