Skip to content

Commit a7c2dbd

Browse files
committed
work on responsiveness
1 parent 7996a9b commit a7c2dbd

File tree

5 files changed

+20
-33
lines changed

5 files changed

+20
-33
lines changed

public/code_for_change.svg

72 KB
Loading

public/hackathon.jpg

-125 KB
Binary file not shown.

public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/Components/Timer/timer.css

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
--shadow-color: rgba(0, 0, 0, 0.3);
99
--button-hover-color: #f0a800;
1010
}
11-
1211
.hackathon-container {
1312
min-height: 100vh;
1413
background-color: var(--background-color);
@@ -63,9 +62,17 @@ h1 {
6362
}
6463

6564
/* Buttons */
66-
.register-btn, .discord-btn {
67-
background-color: #ffffff;
68-
color: var(--primary-box-color);
65+
.apply-button {
66+
display: flex;
67+
justify-content: center;
68+
align-items: center;
69+
height: 44px;
70+
width: 312px;
71+
}
72+
73+
.discord-btn {
74+
background-color: #7289da;
75+
color: #ffffff;
6976
font-size: 1.2rem;
7077
font-weight: bold;
7178
padding: 10px 20px;
@@ -74,31 +81,14 @@ h1 {
7481
cursor: pointer;
7582
transition: 0.3s;
7683
box-shadow: 0 3px 6px var(--shadow-color);
77-
flex: 1; /* Allow buttons to stretch */
7884
max-width: 300px;
7985
text-align: center;
8086
}
81-
.apply-button {
82-
font-style: italic;
83-
text-decoration: underline;
84-
font-weight: bold;
85-
font-family: "Arial", sans-serif; /* Change to any preferred font */
86-
}
87-
88-
89-
.register-btn:hover, .discord-btn:hover {
90-
background-color: var(--card-color);
91-
color: #ffffff;
92-
}
93-
94-
.discord-btn {
95-
background-color: #7289da;
96-
color: #ffffff;
97-
}
9887

9988
.discord-btn:hover {
100-
background-color:rgb(253, 253, 255);
101-
color: #ffffff;
89+
background-color: #ffffff;
90+
color: #7289da;
91+
border-color: #7289da;
10292
}
10393

10494
/* Responsive Design */
@@ -118,7 +108,7 @@ h1 {
118108
gap: 1rem;
119109
}
120110

121-
.register-btn, .discord-btn {
122-
width: 100%; /* Full width on small screens */
111+
.apply-button, .discord-btn {
112+
width: 100%;
123113
}
124114
}

src/Components/Timer/timer.jsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ const Hackathon = () => {
88
script.async = true;
99
script.defer = true;
1010
document.body.appendChild(script);
11-
11+
1212
return () => {
1313
document.body.removeChild(script);
1414
};
1515
}, []);
1616

1717
return (
18-
<div className="hackathon-container">
18+
<div className="hackathon-container" style={{ overflowX: "hidden" }}>
1919
<div className="content-box">
2020
<h1>What is Code for Change</h1>
2121

@@ -25,8 +25,7 @@ const Hackathon = () => {
2525
<strong>Code for Change</strong> is a <strong>24-hour offline hackathon</strong> by
2626
<strong> NSHM Knowledge Campus, Durgapur</strong>, in collaboration with the
2727
<strong> Open Source Student Development Club</strong>. It features two rounds: an online idea submission
28-
followed by an on-campus 24-hour coding challenge for the top 10 teams. Showcase creativity, collaborate,
29-
and solve real-world problems! 🚀
28+
followed by an on-campus 24-hour coding challenge for the top 10 teams. 🚀
3029
</p>
3130
</div>
3231

@@ -39,7 +38,6 @@ const Hackathon = () => {
3938
className="apply-button"
4039
data-hackathon-slug="code-for-change-1"
4140
data-button-theme="light"
42-
style={{ height: "44px", width: "312px" }}
4341
></div>
4442
{/* Discord Button */}
4543
<button className="discord-btn">Join Discord</button>
@@ -50,4 +48,4 @@ const Hackathon = () => {
5048
);
5149
};
5250

53-
export default Hackathon;
51+
export default Hackathon;

0 commit comments

Comments
 (0)