Skip to content

Commit

Permalink
feat: add daisyui and implement basic home page layout
Browse files Browse the repository at this point in the history
  • Loading branch information
benjuntilla committed Jun 3, 2024
1 parent 367534a commit a54955f
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"daisyui": "^4.11.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
Expand Down
31 changes: 31 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import NavigationBar from "./components/NavigationBar";
import Footer from "./components/Footer";
import Hero from "./components/Hero";
import Home from "./components/Home";

function App() {
return (
<>
<NavigationBar />
<Hero />
<Home />
<Footer />
</>
);
Expand Down
15 changes: 14 additions & 1 deletion src/components/Hero.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
function Hero() {
return <div className="min-h-screen flex flex-col"></div>;
return (
<div class="hero bg-base-200">
<div class="hero-content text-center">
<div class="max-w-md">
<h1 class="text-5xl font-bold">./SoDA</h1>
<p class="my-2">The Software Developers Association</p>
<p class="my-4">
The premiere software development club for university students at Arizona State University
</p>
<button class="btn btn-primary">Get Started</button>
</div>
</div>
</div>
);
}

export default Hero;
14 changes: 14 additions & 0 deletions src/components/Home.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Hero from "./Hero";

function Home() {
return (
<div className="h-[50vh] grid grid-cols-2">
<Hero />
<div className="flex justify-center items-center">
Insert slideshow here
</div>
</div>
);
}

export default Home;
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export default {
},
},
},
plugins: [],
plugins: [require('daisyui')],
};

0 comments on commit a54955f

Please sign in to comment.