Skip to content

Commit

Permalink
Updated imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalnomad91 committed Dec 20, 2024
1 parent 1857450 commit 5fc9468
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 60 deletions.
2 changes: 1 addition & 1 deletion src/app/about/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Image from 'next/image'
import VideoPlayer from '../../components/VideoPlayer'
import VideoPlayer from '../../components/video-player'

export default function About() {
return (
Expand Down
27 changes: 27 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,33 @@ body {
}
}

.header {
height: 74px;
position: relative;
transition: all 0.5s ease; /* Smooth transition for the position */
box-shadow: none; /* Optional: Add shadow if desired */
display: flex;
align-items: center;
padding: 0 20px; /* Optional: Add padding */
z-index: 1000; /* Ensure the header is on top */
}

.header.sticky {
position: fixed;
top: 0;
animation: slideDown 0.5s ease forwards; /* Slide down animation */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add shadow when sticky */
}

@keyframes slideDown {
from {
transform: translateY(-100%); /* Start off-screen */
}
to {
transform: translateY(0); /* End at normal position */
}
}

.text-shadow {
text-shadow: 1px 1px rgba(0, 0, 0, 0.4);
}
Expand Down
15 changes: 7 additions & 8 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Metadata } from 'next'
import './globals.css'
import Header from './Header'
import Header from '@/components/layout/header'
import { geistMono, geistSans, Raleway } from './fonts'
import 'animate.css/animate.min.css'
//import LoadingBar from './LoadingBar'
Expand Down Expand Up @@ -69,14 +69,13 @@ export default function RootLayout({
{' '}
<div className="w-screen">{children}</div>
</main>
{/* Footer */}
<footer className="bg-gray-800 text-white py-4">
<div className="container mx-auto px-4">
<p>Footer Content</p>
</div>
</footer>
</LayoutTransition>

{/* Footer */}
<footer className="bg-gray-800 text-white py-4">
<div className="container mx-auto px-4">
<p>Footer Content</p>
</div>
</footer>
</div>
</body>
</html>
Expand Down
69 changes: 18 additions & 51 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { faConnectdevelop } from '@fortawesome/free-brands-svg-icons'
import { Raleway } from './fonts'
import FeatureSection from '../components/index/feature-section'
import { motion, useAnimation } from 'framer-motion'
import AutoScrollingPortfolio from '../components/scrolling-portfolio'
export default function Home() {
const [activeTab, setActiveTab] = useState('flexibility')
// Defining the custom animation duration style
Expand Down Expand Up @@ -157,6 +158,23 @@ export default function Home() {
</div>
</div>
</div>
</div>
</section>

<section className="bg-gray-100 py-4 md:py-6">
<div className="container mx-auto py-4 px-8 md:px-20 lg:px-32">
<h1
className={`mb-2 text-2xl text-[#333333] font-normal tracking-normal ${Raleway.className}`}
>
Recent Clients
</h1>
<div className="separator-2 mb-2" />
<AutoScrollingPortfolio clients={clients} />
</div>
</section>

<section className="bg-gray-100 py-4 md:py-6">
<div className="container mx-auto py-4 px-8 md:px-20 lg:px-32">
<h1
className={`mb-2 text-2xl text-[#333333] font-normal tracking-normal ${Raleway.className}`}
>
Expand Down Expand Up @@ -229,36 +247,6 @@ export default function Home() {
</div>
</section>

<div
className="hidden dark-translucent-bg footer-top animated-text default-hovered"
style={{ backgroundColor: 'rgba(0,0,0,0.6)' }}
>
<div className="container">
<div className="row">
<div className="col-md-12">
<div className="call-to-action text-center">
<div className="row">
<div className="col-sm-8">
<h2>Reach out and get in touch with us today!</h2>
<h2>Don't hesitate—seize the moment!</h2>
</div>
<div className="col-sm-4">
<p className="mt-10">
<a
href="/contact"
className="pjax btn btn-animated btn-lg btn-gray-transparent"
>
Contact Us
<i className="fa fa-envelope pl-20"></i>
</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<motion.div
className="h-24 bg-blue-500 text-white flex items-center justify-center relative overflow-hidden"
onHoverStart={handleHoverStart}
Expand Down Expand Up @@ -307,27 +295,6 @@ export default function Home() {
</div>
</div>
</motion.div>

<div className="bg-black bg-opacity-60 py-10">
<div className="container mx-auto">
<div className="flex flex-wrap justify-center text-center text-white">
<div className="w-full md:w-2/3">
<h2 className="text-2xl font-semibold">
Reach out and get in touch with us today!
</h2>
<h2 className="text-2xl font-semibold">Don't hesitate—seize the moment!</h2>
</div>
<div className="w-full md:w-1/3 mt-4 md:mt-0 flex justify-center items-center">
<a
href="/contact"
className="px-6 py-3 text-lg bg-transparent border border-gray-300 text-white hover:bg-gray-300 hover:text-black rounded transition"
>
Contact Us <i className="fas fa-envelope ml-2"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
)
Expand Down

0 comments on commit 5fc9468

Please sign in to comment.