Skip to content

Commit 14213c8

Browse files
committed
contact page and banner responsive design
1 parent d148867 commit 14213c8

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/components/contact/ContactDetails.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const contacts = [
2020

2121
const ContactDetails = () => {
2222
return (
23-
<div className="w-full sm:w-1/2">
23+
<div className="w-full lg:w-1/2">
2424
<div className="text-left max-w-xl px-6">
2525
<h2 className="text-2xl text-primary-dark dark:text-primary-light font-semibold mt-12 mb-8">
2626
Contact details

src/components/contact/ContactForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const ContactForm = () => {
22
return (
3-
<div className="w-full sm:w-1/2">
3+
<div className="w-full lg:w-1/2">
44
<div className="leading-loose">
55
<form
66
onSubmit={(e) => {

src/components/shared/AppBanner.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ const AppBanner = () => {
77
const [activeTheme] = useThemeSwitcher();
88

99
return (
10-
<section className="flex flex-col sm:justify-between items-center sm:flex-row mt-12 sm:mt-2">
11-
<div className="w-full sm:w-1/3 text-left">
12-
<h1 className="text-2xl sm:text-3xl lg:text-4xl xl:text-5xl text-center sm:text-left font-semibold text-ternary-dark dark:text-primary-light uppercase">
10+
<section className="flex flex-col sm:justify-between items-center sm:flex-row mt-12 md:mt-2">
11+
<div className="w-full md:w-1/3 text-left">
12+
<h1 className="text-2xl lg:text-4xl xl:text-5xl text-center sm:text-left font-semibold text-ternary-dark dark:text-primary-light uppercase">
1313
Hi, Iam Stoman
1414
</h1>
15-
<p className="mt-4 text-xl sm:text-2xl lg:text-3xl xl:text-4xl text-center sm:text-left font-semibold leading-none text-gray-400">
15+
<p className="mt-4 text-lg sm:text-xl lg:text-3xl xl:text-4xl text-center sm:text-left font-semibold leading-none text-gray-400">
1616
A Full-Stack Developer & Design Enthusiast
1717
</p>
1818
<div className="flex justify-center sm:block">

src/components/shared/AppHeader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ const AppHeader = () => {
178178
{/* Header right section buttons start */}
179179
<div className="hidden sm:flex justify-between items-center flex-col md:flex-row">
180180
{/* Hire me button start */}
181-
<div>
181+
<div className="hidden md:flex">
182182
<button
183183
onClick={showHireMeModal}
184184
className="text-md font-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-md px-5 py-2.5"

src/pages/Contact.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import ContactForm from '../components/contact/ContactForm';
33

44
const Contact = () => {
55
return (
6-
<div className="container mx-auto sm:flex py-5 sm:py-10 mt-5 sm:mt-10">
6+
<div className="container mx-auto flex flex-col-reverse lg:flex-row py-5 lg:py-10 lg:mt-10">
77
<ContactForm />
88
<ContactDetails />
99
</div>

0 commit comments

Comments
 (0)