Skip to content

Commit

Permalink
feat: improve heroUI, footer-button and contribution-card in contact …
Browse files Browse the repository at this point in the history
…section (#535)

## Related Issue

Improving the components of heroUI, Footer and contributor card,

Closes: #514

### Describe the changes you've made

- Make changes in CSS files named heroUI.css and Contect.css
- Updated the behavior of heroUI with screen changes
- In contribution card aligned the content at the center and changed the
background color to blue-gradient.

## Type of change

What sort of change have you made:

- [x] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?

<!-- Describe how have you verified the changes made -->
The changes has tested for different screen like PC, Tab, mobile.

## Checklist

<!--
Example how to mark a checkbox:-
- [x] My code follows the code style of this project.
-->

- [x] My code follows the guidelines of this project.
- [x] I have performed a self-review of my own code.
- [ ] I have commented on my code, particularly wherever it was hard to
understand.
- [ ] I have made corresponding changes to the documentation.
- [x] My changes generate no new warnings.
- [x] I have added tests that prove my fix is effective or that my
feature works.
- [x] Any dependent changes have been merged and published in downstream
modules.

## Screenshots (if applicable)

![Screenshot 2023-07-25
155452](https://github.com/amanjaiman1/Product_3D/assets/107640576/011ff0c4-716c-4a41-b9a0-f9fb8c0e529c)
![Screenshot 2023-07-25
155540](https://github.com/amanjaiman1/Product_3D/assets/107640576/30eefff2-681b-4679-8cb5-b1be19f948b3)
![Screenshot 2023-07-25
155510](https://github.com/amanjaiman1/Product_3D/assets/107640576/7eb74a41-f2c1-49cf-a313-625d64f98926)
![Screenshot 2023-07-25
155617](https://github.com/amanjaiman1/Product_3D/assets/107640576/3ba62fff-a391-4600-8ac5-060d42016a39)


## Code of Conduct

- [x] I agree to follow this project's [Code of
Conduct](https://github.com/amanjaiman1/Product_3D/blob/main/CODE_OF_CONDUCT.md)
  • Loading branch information
amanjaiman1 authored Jul 25, 2023
2 parents ebea85e + bdf89d2 commit 1ad13f5
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/containers/Footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ const Button = ({ styles }) => {
<button
type="button"
className={`
py-4 px-6 bg-gradient-to-r from-[#5867DD] to-[#b379ff] font-poppins font-medium
py-2 px-4 bg-gradient-to-r from-[#5867DD] to-[#b379ff] font-poppins font-medium
text-[18px] text-white outline-none ${styles} rounded-[5px] w-full md:w-auto h-[49px]
md:ml-0 max-sm:w-auto max-sm:h-[67px]
md:ml-0 max-sm:w-auto f-btn
`}
style={{
boxShadow: " rgb(38, 57, 77) 0px 20px 30px -10px ",
boxShadow: " rgb(38, 57, 77) 0px 20px 25px -15px ",
letterSpacing: "1px",
}}
>
Expand Down
13 changes: 8 additions & 5 deletions src/containers/Hero/homeUI.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
padding: 4rem 2rem 5rem 2rem;
}
.title {
font-size: 3rem;
font-size: 3rem !important;
font-weight: 700 !important;
}

@media screen and (min-width: 850px) and (max-width: 1000px) {
.heroUI {
padding: 4rem 1rem 4rem 1rem;
}
.title {
font-size: 2.2rem;
font-size: 2.2rem !important;
width: 105%;
}
}
Expand All @@ -31,11 +31,14 @@
.heroUI {
margin: auto;
width: 90%;
padding: 3rem 1rem 3rem 1rem;
padding: 3rem 0.7rem 3rem 0.7rem;
}
.heroimg {
transform: scale(1);
}
.f-btn {
width: max-content !important;
}
}
@media only screen and (max-width: 850px) {
.heroUI {
Expand All @@ -47,7 +50,7 @@
margin-top: -50px !important;
}
.title {
font-size: 2rem;
font-size: 2rem !important;
}
}
@media only screen and (max-width: 600px) {
Expand Down
4 changes: 2 additions & 2 deletions src/containers/Hero/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ function Hero() {
<button
onClick={navigateToCustomisation}
className="bg-gradient-to-r from-purple-500 to-blue-500 hover:from-pink-500 hover:to-purple-500
text-white font-semibold py-4 px-6 rounded-[10px] shadow-lg
text-white font-semibold py-4 px-6 rounded-[10px] shadow-lg
transform transition-transform ease-in-out focus:outline-none focus:ring-2 focus:ring-purple-600"
>
<span className="flex items-center">
<span className="flex items-center f-btn">
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-5 w-5 mr-2"
Expand Down
19 changes: 13 additions & 6 deletions src/pages/Contact/Contact.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,12 @@
position: absolute;
width: 99%;
height: 99%;
background-color: paleturquoise;
/* background-color: paleturquoise; */
background: radial-gradient(
circle at 50% 20%,
rgb(59, 149, 237) 0%,
rgb(7, 90, 173) 90%
);
border-radius: 5px;
color: white;
display: flex;
Expand All @@ -66,6 +71,11 @@
gap: 30px;
}

.font-p {
font-weight: 600;
word-break: break-word;
}

.card:hover .content {
transform: rotateY();
}
Expand Down Expand Up @@ -109,7 +119,6 @@
}

.title {
font-size: 11px;
max-width: 100%;
display: flex;
justify-content: space-between;
Expand All @@ -120,10 +129,8 @@
}

.card-footer {
color: black;
/* margin-top: 5px; */
font-size: 10px;
/* content: flex-end; */
color: rgb(235, 235, 235);
font-size: 13px;
}

.front .img {
Expand Down
27 changes: 20 additions & 7 deletions src/pages/Contact/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,35 @@ function Contact() {
window.open(`https://github.com/${contributor.login}`)
}
>
<div className="title">
<p className="title">
<div className="">
<p
className="text-black font-p"
style={{ marginBottom: "0.4rem" }}
>
<strong>{contributor.login}</strong>
</p>
</div>
{contributor.bio === null ? (
<p className="card-footer mx-10">Bio: Not Available</p>
<p className="card-footer mx-4">
<span className="font-p">Bio:</span>
<br /> Not Available
</p>
) : (
<p className="card-footer mx-10">Bio: {contributor.bio}</p>
<p className="card-footer mx-4">
<span className="font-p">Bio:</span>
<br /> {contributor.bio}
</p>
)}

{contributor.location === null ? (
<p className="card-footer">Location: Not Available</p>
<p className="card-footer">
<span className="font-p">Location:</span>
<br /> Not Available
</p>
) : (
<p className="card-footer">
Location: {contributor.location}
<span className="font-p">Location:</span>
<br /> {contributor.location}
</p>
)}
</div>
Expand All @@ -149,7 +162,7 @@ function Contact() {
</strong>

<div className="text-black text-xs">
<h4>{contributor.location}</h4>
{/* <h4>{contributor.location}</h4> */}
<h4>Contributions : {contributor.contributions}</h4>
</div>
</div>
Expand Down

1 comment on commit 1ad13f5

@vercel
Copy link

@vercel vercel bot commented on 1ad13f5 Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

product-3-d – ./

product-3-d-git-main-amanjaiman1.vercel.app
product-3-d.vercel.app
product-3-d-amanjaiman1.vercel.app

Please sign in to comment.