Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RSN-34] - Create navbar and footer #40

Merged
merged 8 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Client/reasn-client/apps/web/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
"use client";

import { HeroSection, QuickFilters } from "@reasn/ui/src";
import { HeroSection, QuickFilters } from "@reasn/ui/src/components/web";
import { Navbar, Footer } from "@reasn/ui/src/components/shared";

export default function Web() {
return (
<div className="min-h-screen bg-[#161618] text-white">
<Navbar />
<HeroSection />
<QuickFilters />
<Footer />
</div>
);
}
3 changes: 3 additions & 0 deletions Client/reasn-client/apps/web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ module.exports = {
content: [
"./app/**/*.{js,jsx,ts,tsx}",
"../../packages/ui/src/**/*.{js,jsx,ts,tsx}",
"./app/**/*.{js,jsx,ts,tsx}",
"./components/**/*.{js,jsx,ts,tsx}",
"../../packages/ui/src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {},
Expand Down
37 changes: 0 additions & 37 deletions Client/reasn-client/packages/ui/src/button.tsx

This file was deleted.

38 changes: 38 additions & 0 deletions Client/reasn-client/packages/ui/src/components/shared/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from "react";

export const Footer = () => {
return (
<footer className="w-full rounded-t-2xl bg-black bg-bottom py-16 text-center">
<div className="mx-auto flex w-4/5 items-center justify-between">
<div className="mx-2 mt-1 h-1 flex-grow rounded-3xl bg-gradient-to-r from-red-400 via-purple-500 to-indigo-600"></div>
<span className="text-3xl font-bold text-white">we are</span>
<div className="mx-2 mt-1 h-1 flex-grow rounded-3xl bg-gradient-to-r from-indigo-600 via-purple-500 to-red-400"></div>
</div>
<div className="-mt-1 text-3xl font-bold text-white">the Reasn.</div>
<div className="mx-auto -mt-8 flex w-3/4 justify-between">
<div className="flex w-1/6 justify-between text-white">
<a href="#" className="hover:text-[#ccc]">
link
</a>
<a href="#" className="hover:text-[#ccc]">
link
</a>
<a href="#" className="hover:text-[#ccc]">
link
</a>
</div>
<div className="flex w-1/6 justify-between text-white">
<a href="#" className="hover:text-[#ccc]">
link
</a>
<a href="#" className="hover:text-[#ccc]">
link
</a>
<a href="#" className="hover:text-[#ccc]">
link
</a>
</div>
</div>
</footer>
);
};
26 changes: 26 additions & 0 deletions Client/reasn-client/packages/ui/src/components/shared/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from "react";

export const Navbar = () => {
return (
<nav className="sticky top-0 z-[50] flex h-16 w-full flex-wrap items-center justify-between rounded-b-2xl bg-black text-base text-white">
<div className="mx-auto flex w-4/5 justify-between">
<div>
<a href="#" className="text-2xl font-bold hover:text-[#ccc]">
Reasn.
</a>
</div>
<div className="flex items-center gap-8">
<a href="#" className="hover:text-[#ccc]">
logowanie
</a>
<a
href="#"
className="rounded-2xl border-2 border-white px-6 py-1.5 hover:bg-white hover:text-black"
>
rejestracja
</a>
</div>
</div>
</nav>
);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export { Card, CardVariant } from "./Card";
export { Navbar } from "./Navbar";
export { Footer } from "./Footer";
2 changes: 2 additions & 0 deletions Client/reasn-client/packages/ui/src/components/web/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { HeroSection } from "./main/HeroSection";
export { QuickFilters } from "./main/QuickFilters";
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { Fire } from "../../icons/Fire";
import { Card, CardVariant } from "../Card";
import { Fire } from "@reasn/ui/src/icons";
import { Card, CardVariant } from "@reasn/ui/src/components/shared";

export const HeroSection = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import clsx from "clsx";
import React, { useState } from "react";
import { Card, CardVariant } from "../Card";
import { Card, CardVariant } from "@reasn/ui/src/components/shared";

interface QuickFiltersButtonProps {
title: string;
Expand Down
1 change: 1 addition & 0 deletions Client/reasn-client/packages/ui/src/icons/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Fire } from "./Fire";
4 changes: 0 additions & 4 deletions Client/reasn-client/packages/ui/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
export { Button, type ButtonProps } from "./button";
export { Card, type CardProps, CardVariant } from "./components/Card";
export { HeroSection } from "./components/main/HeroSection";
export { QuickFilters } from "./components/main/QuickFilters";
Loading