Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabu8c committed Sep 8, 2024
1 parent c9ec61e commit 572d3ba
Show file tree
Hide file tree
Showing 53 changed files with 1,899 additions and 139 deletions.
12 changes: 12 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"bracketSpacing": true,
"tabWidth": 2,
"printWidth": 100,
"plugins": [
"prettier-plugin-tailwindcss"
]
}
Binary file modified app/favicon.ico
Binary file not shown.
160 changes: 145 additions & 15 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,157 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--background: #ffffff;
--foreground: #171717;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
font-family: Inter;
}

@layer utilities {
.text-balance {
text-wrap: balance;
.btn_white {
@apply border-white bg-white px-8 py-3 text-green-50
}
.btn_white_text {
@apply border-white bg-white px-8 py-3 text-gray-90
}
.btn_green {
@apply border-orange-600 bg-orange-600 px-8 py-5 text-white
}
.btn_dark_green {
@apply bg-green-90 px-8 py-4 text-white transition-all hover:bg-black
}
.btn_dark_green_outline {
@apply border-gray-20 bg-green-90 px-8 py-5 text-white
}

.max-container {
@apply mx-auto max-w-[1440px];
}

.padding-container {
@apply px-6 lg:px-20 3xl:px-0;
}

.flexCenter {
@apply flex items-center justify-center;
}

.flexBetween {
@apply flex items-center justify-between;
}

.flexStart {
@apply flex items-center justify-start;
}

.flexEnd {
@apply flex items-center justify-end;
}

/* FONTS */
.regular-64 {
@apply text-[64px] font-[400] leading-[120%];
}

.regular-40 {
@apply text-[40px] font-[400] leading-[120%];
}

.regular-32 {
@apply text-[32px] font-[400];
}

.regular-24 {
@apply text-[24px] font-[400];
}

.regular-20 {
@apply text-[20px] font-[400];
}

.regular-18 {
@apply text-[18px] font-[400];
}

.regular-16 {
@apply text-[16px] font-[400];
}

.regular-14 {
@apply text-[14px] font-[400];
}

.medium-14 {
@apply text-[14px] font-[600];
}

.bold-88 {
@apply text-[88px] font-[700] leading-[120%];
}

.bold-64 {
@apply text-[64px] font-[700] leading-[120%];
}

.bold-52 {
@apply text-[52px] font-[700] leading-[120%];
}

.bold-40 {
@apply text-[40px] font-[700] leading-[120%];
}

.bold-32 {
@apply text-[32px] font-[700] leading-[120%];
}

.bold-20 {
@apply text-[20px] font-[700];
}

.bold-18 {
@apply text-[18px] font-[700];
}

.bold-16 {
@apply text-[16px] font-[700];
}

/* Hero */
.hero-map {
@apply absolute right-0 top-0 h-screen w-screen bg-pattern-2 bg-cover bg-center md:-right-28 xl:-top-60;
}

/* Camp */
.camp-quote {
@apply absolute -right-6 bottom-4 w-[140px] lg:bottom-10 xl:-right-8 xl:w-[186px] 3xl:right-0;
}

/* Feature */
.feature-phone {
@apply absolute top-[13%] z-10 hidden max-w-[1500px] rotate-[15deg] md:-left-16 lg:flex 3xl:left-20;
}

/* Get App */
.get-app {
@apply max-container relative flex w-full flex-col justify-between gap-32 overflow-hidden bg-green-90 bg-pattern bg-cover bg-center bg-no-repeat px-6 py-12 text-white sm:flex-row sm:gap-12 sm:py-24 lg:px-20 xl:max-h-[598px] 2xl:rounded-5xl;
}
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hide-scrollbar::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.hide-scrollbar {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
16 changes: 10 additions & 6 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import Navbar from "@/components/Navbar";
import Footer from "@/components/Footer";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
Expand All @@ -14,8 +16,8 @@ const geistMono = localFont({
});

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "Travel",
description: "Travel app",
};

export default function RootLayout({
Expand All @@ -25,10 +27,12 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>
{children}
<body>
<Navbar />
<main className="relative overflow-hidden">
{children}
</main>
<Footer />
</body>
</html>
);
Expand Down
108 changes: 12 additions & 96 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,101 +1,17 @@
import Image from "next/image";
import Camp from "@/components/Camp";
import Features from "@/components/Features";
import { GetApp } from "@/components/GetApp";
import Guide from "@/components/Guide";
import Hero from "@/components/Hero";

export default function Home() {
return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
<Image
className="dark:invert"
src="https://nextjs.org/icons/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
<li className="mb-2">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
app/page.tsx
</code>
.
</li>
<li>Save and see your changes instantly.</li>
</ol>

<div className="flex gap-4 items-center flex-col sm:flex-row">
<a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="https://nextjs.org/icons/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Read our docs
</a>
</div>
</main>
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="https://nextjs.org/icons/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="https://nextjs.org/icons/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="https://nextjs.org/icons/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org →
</a>
</footer>
</div>
<>
<Hero />
<Camp />
<Guide />
<Features />
<GetApp />
</>
);
}
22 changes: 22 additions & 0 deletions components/Button.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Image from "next/image";

type ButtonProps = {
type: 'button' | 'submit';
title: string;
icon?: string;
variant: string
}

const Button = ({type,title,icon,variant}: ButtonProps) => {
return (
<button
className={`flexCenter gap-3 rounded-full border ${variant}`}
type={type}
>
{icon && <Image src={icon} alt={title} width={24} height={24} />}
<label className="bold-16 whitespace-nowrap">{title}</label>
</button>
)
}

export default Button
Loading

0 comments on commit 572d3ba

Please sign in to comment.