Skip to content

Commit a47d85b

Browse files
fix: required changes
2 parents 3997877 + e04e3e6 commit a47d85b

File tree

4 files changed

+42
-29
lines changed

4 files changed

+42
-29
lines changed

src/components/Heading/index.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
import PropTypes from "prop-types";
22

3-
function Heading({ headingText }) {
3+
function Heading({ text }) {
44
return (
5-
<div className="relative text-center font-black uppercase tracking-tighter">
6-
<div className="xs:text-4xl sm:text-6xl lg:text-[6.5rem] text-outlined text-transparent ">
7-
{headingText}
5+
<div className="relative text-center font-black uppercase tracking-tighter m-4">
6+
<div className="xs:text-4xl sm:text-6xl lg:text-8xl text-outlined text-transparent leading-[145%]">
7+
{text}
88
</div>
9-
<div className="xs:text-2xl sm:text-4xl lg:text-[3.75rem] text-foreground absolute w-full xs:bottom-[-10px] sm:bottom-[-18px] lg:bottom-[-12px]">
10-
{headingText}
9+
<div className="xs:text-2xl sm:text-4xl lg:text-6xl text-text-light absolute w-full leading-none bottom-[-20%]">
10+
{text}
1111
</div>
1212
</div>
1313
);
1414
}
1515

1616
Heading.propTypes = {
17-
headingText: PropTypes.string.isRequired,
17+
text: PropTypes.string.isRequired,
1818
};
1919

2020
export default Heading;

src/pages/Home/Hero.jsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/pages/Home/index.jsx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1-
import Hero from "./Hero";
1+
import Heading from "@/components/Heading";
22

33
function Home() {
4-
return <Hero />;
4+
return (
5+
<>
6+
<div className="bg-background-dark h-screen flex">
7+
<div className="m-auto">
8+
<div className="text-7xl md:text-9xl lg:text-[11rem] text-primary text-center font-gothic uppercase">
9+
Codex, SIT
10+
</div>
11+
<div className="text-lg md:text-2xl lg:text-3xl mt-4 text-text-light text-center">
12+
Coding Club
13+
</div>
14+
</div>
15+
</div>
16+
<Heading text="What do we do?" />
17+
</>
18+
);
519
}
620

721
export default Home;

tailwind.config.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,25 @@ export default {
44
theme: {
55
extend: {
66
colors: {
7-
background: "#232323",
8-
primary: "#E76941",
9-
foreground: "#F7F7F7",
10-
gray: "737373",
7+
primary: {
8+
DEFAULT: "#E76941",
9+
light: "#FFA06D",
10+
dark: "#B54B1E",
11+
contrastText: "#F7F7F7",
12+
},
13+
secondary: {
14+
DEFAULT: "#737373",
15+
light: "#A3A3A3",
16+
dark: "#494949",
17+
},
18+
background: {
19+
dark: "#232323",
20+
light: "#F7F7F7",
21+
},
22+
text: {
23+
light: "#F7F7F7",
24+
dark: "#232323",
25+
}
1126
},
1227
screens: {
1328
xs: "0px",

0 commit comments

Comments
 (0)