From d413fa8f897ae45988ab430f879d31c9abeb91e7 Mon Sep 17 00:00:00 2001 From: Neeraj Rekwar <88387699+neerajrekwar@users.noreply.github.com> Date: Tue, 9 Jul 2024 14:03:00 +0000 Subject: [PATCH] gfsd --- app/components/DeviceAddress.tsx | 14 +++-- app/components/StickyRelativeDemo.tsx | 76 ++++++++++++++++++--------- app/components/backgroundBeams.tsx | 67 +++++++++++++++-------- app/components/reviewSection.tsx | 14 +++-- app/globals.css | 33 +++++++++--- app/layout.tsx | 2 +- app/page.tsx | 4 ++ tailwind.config.ts | 38 ++++++++++---- 8 files changed, 168 insertions(+), 80 deletions(-) diff --git a/app/components/DeviceAddress.tsx b/app/components/DeviceAddress.tsx index 89ef0be61..b02fa023e 100644 --- a/app/components/DeviceAddress.tsx +++ b/app/components/DeviceAddress.tsx @@ -1,6 +1,6 @@ // components/DeviceAddress.tsx -'use client'; -import { useEffect, useState } from 'react'; +"use client"; +import { useEffect, useState } from "react"; type DeviceAddress = { ip: string; @@ -16,9 +16,9 @@ const DeviceAddress: React.FC = () => { useEffect(() => { const fetchDeviceAddress = async () => { try { - const response = await fetch('https://ipapi.co/json/'); + const response = await fetch("https://ipapi.co/json/"); if (!response.ok) { - throw new Error('Failed to fetch device address'); + throw new Error("Failed to fetch device address"); } const data: DeviceAddress = await response.json(); setAddress(data); @@ -38,13 +38,11 @@ const DeviceAddress: React.FC = () => {

Error: {error}

) : address ? ( -
+
{/*

Device Address

*/} {/*

IP: {address.ip}

*/} -

{address.city}

-

{address.region}

+

{address.city},

{address.country}

-
) : (
diff --git a/app/components/StickyRelativeDemo.tsx b/app/components/StickyRelativeDemo.tsx index 73558cff3..a1f144928 100644 --- a/app/components/StickyRelativeDemo.tsx +++ b/app/components/StickyRelativeDemo.tsx @@ -4,17 +4,18 @@ import Image from "next/image"; import Link from "next/link"; import { Source_Code_Pro } from "next/font/google"; - const source_Code_Pro = Source_Code_Pro({ - weight: '400', - subsets: ['latin'], + weight: "400", + subsets: ["latin"], }); const StickyRelativeDemo: NextPage = () => { return (
-
-
+
+
+ • +
Recent projects
@@ -22,16 +23,16 @@ const StickyRelativeDemo: NextPage = () => {
-
+
2024
-

+

Craft & Code: Building the Future, One Line at a Time

-
+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Repudiandae quo natus accusantium eius molestiae expedita @@ -42,23 +43,34 @@ const StickyRelativeDemo: NextPage = () => {

-
    +
    • Role
    • Digital Marketing
    -
      -
    • Deliverables
    • +
        +
      • + Deliverables +
      • Survey checks
      -
        +
        • Company
        • VMR
        -
          +
          • Visit Site
          • - + + +
          @@ -67,7 +79,7 @@ const StickyRelativeDemo: NextPage = () => {
-
+
Showcase
@@ -99,17 +111,17 @@ const StickyRelativeDemo: NextPage = () => {
-
+
2024
-

+

Craft & Code: Building the Future, One Line at a Time

-
-

+

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Repudiandae quo natus accusantium eius molestiae expedita possimus accusamus, aspernatur, quia quae asperiores @@ -119,23 +131,34 @@ const StickyRelativeDemo: NextPage = () => {

-
    +
    • Role
    • Digital Marketing
    -
      -
    • Deliverables
    • +
        +
      • + Deliverables +
      • Survey checks
      -
        +
        • Company
        • VMR
        -
          +
          • Visit Site
          • - + + +
          @@ -144,7 +167,7 @@ const StickyRelativeDemo: NextPage = () => {
-
+
Showcase
@@ -174,6 +197,7 @@ const StickyRelativeDemo: NextPage = () => {
+
); }; diff --git a/app/components/backgroundBeams.tsx b/app/components/backgroundBeams.tsx index 1037b9947..3052553bf 100644 --- a/app/components/backgroundBeams.tsx +++ b/app/components/backgroundBeams.tsx @@ -3,13 +3,33 @@ import React from "react"; import { motion } from "framer-motion"; import { BackgroundBeams } from "./ui/background-beams"; import TextFlipper from "./TextFlipper"; -import AdminWeather from "./AdminWeather"; import Link from "next/link"; +import Image from "next/image"; export function BackgroundBeamsDemo() { return (
+ {/* + Digital marketing for expert +
+

Neeraj Rekwar

+
+

+ • +

+

+ Available for freelance work +

+
+
+
*/} - - + >

+ - - - Get started - - + Get started + - - Learn more + className="bg-secondary border-2 border-tBorder text-base p-1 px-3 md:p-2 md:px-4 rounded-full text-fourText" + > {/* ▲ Next.js 14.2.3 */} + Let's talk diff --git a/app/components/reviewSection.tsx b/app/components/reviewSection.tsx index 96d828606..100ed1e58 100644 --- a/app/components/reviewSection.tsx +++ b/app/components/reviewSection.tsx @@ -1,13 +1,21 @@ import { InfiniteMovingCardsDemo } from "./infiniteCard"; +import { motion } from "framer-motion"; export function ReviewSection() { return ( <> -
-
+
+
+ • +
Recent projects +
+
+
); -}; \ No newline at end of file +} diff --git a/app/globals.css b/app/globals.css index 6c3fbdf04..b878b0775 100644 --- a/app/globals.css +++ b/app/globals.css @@ -6,24 +6,41 @@ @import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap'); :root { --color-primary-bg: #FFFFFF; - --color-secondary-bg: #D9D9D9; + --color-secondary-bg: #cdf4e6; --color-third-bg: #0a0a0a; + --color-four-bg: #79a091; --color-primary-text: #0a0a0a; - --color-secondary-text: #5e716a; - --color-third-text: #709b8c; - --color-four-text: #2b312f; + --color-secondary-text: #4d5150; + --color-third-text: #d9d9d9; + --color-four-text: #464e4b; --color-primary-border: #e7f5f3; - --color-secondary-border: #545454; - --color-third-border: #3535359a; + --color-secondary-border: #abd4c5; + --color-third-border: #79a091; + --color-four-border: #cdf4e6; } /* Dark mode variables */ @media (prefers-color-scheme: dark) { :root { - --color-primary-bg: #100c13; + --color-primary-bg: #0a0a0a; + --color-secondary-bg: #D9D9D9; + --color-third-bg: #FFFFFF; + --color-four-bg: #709b8c; + + --color-primary-text: #0a0a0a; + --color-secondary-text: #709b8c; + --color-third-text: #5e716a; + --color-four-text: #2b312f; + + --color-third-border: #e7f5f3; + --color-secondary-border: #abd4c5; + --color-primary-border: #3535359a; + --color-four-border: #b7d2c7; + + /* --color-primary-bg: #100c13; --color-secondary-bg: #7e6194; --color-third-bg: #d6b4ee; @@ -34,7 +51,7 @@ --color-primary-border: #705D97; --color-secondary-border: #47236067; --color-third-border: #47236067; - + */ } diff --git a/app/layout.tsx b/app/layout.tsx index 209a8f42c..92c3b0780 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -10,7 +10,7 @@ const dm_Sans = DM_Sans({ subsets: ['latin'], }); -const source_Code_Pro = Source_Code_Pro({ +const alata = Alata({ weight: '400', subsets: ['latin'], }); diff --git a/app/page.tsx b/app/page.tsx index 72d0e73b9..18cae68a8 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -5,6 +5,7 @@ import IntroSection from "./components/introSection"; import DeviceAddress from "./components/DeviceAddress"; import { InfiniteMovingCardsDemo } from "./components/infiniteCard"; import { ReviewSection } from "./components/reviewSection"; +import DarkModeToggle from "./components/DarkModeToggle"; export const metadata: Metadata = { title: "nee. - Portfolio Framer Template For Freelancers", @@ -25,6 +26,9 @@ export default function Home() {
+
+ +
Vision to learn
diff --git a/tailwind.config.ts b/tailwind.config.ts index 1da9dcce4..ebeb26a58 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -13,7 +13,7 @@ module.exports = { "./app/**/*.{js,ts,jsx,tsx,mdx}", "./node_modules/@nextui-org/theme/dist/components/[object Object].js", ], - darkMode: "class", + darkMode: ["class","selector"], theme: { extend: { backgroundImage: { @@ -26,9 +26,11 @@ module.exports = { primaryText: "var(--color-primary-text)", thirdText: "var(--color-third-text)", secondaryText: "var(--color-secondary-text)", + fourText: "var(--color-four-text)", pBorder: "var(--color-primary-border)", sBorder: "var(--color-secondary-border)", tBorder: "var(--color-third-border)", + fBorder: "var(--color-four-border)", }, animation: { aurora: "aurora 60s linear infinite", @@ -59,19 +61,33 @@ module.exports = { plugin(function ({ addBase, theme }) { addBase({ ":root": { - "--color-primary": theme("colors.primary"), - "--color-secondary": theme("colors.secondary"), - "--color-white": theme("colors.white"), - "--color-gray-light": theme("colors.grayLight"), - "--color-dark": theme("colors.dark"), + "--color-primary-bg": theme("colors.primary"), + "--color-secondary-bg": theme("colors.secondary"), + "--color-third-bg": theme("colors.third"), + "--color-four-bg": theme("colors.four"), + "--color-primary-text": theme("colors.primaryText"), + "--color-secondary-text": theme("colors.seconadaryText"), + "--color-third-text": theme("colors.thirdText"), + "--color-four-text": theme("colors.fourText"), + "--color-primary-border": theme("colors.pBorder"), + "--color-secondary-border": theme("colors.sBorder"), + "--color-third-border": theme("colors.tBorder"), + "--color-four-border": theme("colors.fBorder"), }, "@media (prefers-color-scheme: dark)": { ":root": { - "--color-primary": theme("colors.secondary"), - "--color-secondary": theme("colors.dark"), - "--color-white": theme("colors.primary"), - "--color-gray-light": theme("colors.primary"), - "--color-dark": theme("colors.grayLight"), + "--color-primary-bg": theme("colors.primary"), + "--color-secondary-bg": theme("colors.secondary"), + "--color-third-bg": theme("colors.third"), + "--color-four-bg": theme("colors.four"), + "--color-primary-text": theme("colors.primaryText"), + "--color-secondary-text": theme("colors.seconadaryText"), + "--color-third-text": theme("colors.thirdText"), + "--color-four-text": theme("colors.fourText"), + "--color-primary-border": theme("colors.pBorder"), + "--color-secondary-border": theme("colors.sBorder"), + "--color-third-border": theme("colors.tBorder"), + "--color-four-border": theme("colors.fBorder"), }, }, });