File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed
Expand file tree Collapse file tree 3 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,23 @@ import { motion } from "framer-motion";
55
66export default function ContactEmail ( ) {
77 const [ isShown , setIsShown ] = useState < boolean > ( false ) ;
8- const [ email , setEmail ] = useState < string > ( )
8+ const [ email , setEmail ] = useState < string > ( "" ) ;
99
1010 useEffect ( ( ) => {
1111 setEmail ( isShown ? "newclients@devsh.eu" : "" ) ;
1212 } , [ isShown ] )
1313
14+ function toggleVisibility ( visible : boolean ) {
15+ if ( visible ) {
16+ setIsShown ( true ) ;
17+ }
18+ }
19+
1420 return (
15- < motion . div
16- onHoverStart = { ( ) => setIsShown ( true ) }
17- onHoverEnd = { ( ) => setIsShown ( false ) }
18- className = "px-2 border border-[#181818] rounded-md" >
19- { isShown ? email : "Hover your cursor on this text to show" }
20- </ motion . div >
21+ < div
22+ onClick = { ( ) => setIsShown ( true ) }
23+ className = { `inline-block px-2 border ${ isShown ? "border-teal-900" : "border-[#181818]" } rounded-md hover:border-teal-900 transition-colors duration-300` } >
24+ { isShown ? email : "Click to show" }
25+ </ div >
2126 )
2227}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import ContactEmail from "./ContactEmail"
44
55export default function Page ( ) {
66 return (
7- < div className = "container mx-auto p-4 flex flex-col gap-4 sm:gap-8 sm:items-center h-full justify-center" >
7+ < div className = "container mx-auto max-sm:px-8 flex flex-col gap-4 sm:gap-8 sm:items-center h-full justify-center" >
88 < h1 > About Us</ h1 >
99 < TextBlock >
1010 DevSH Graphics Programming (DevSH) sp. z o.o. ( devsh.eu ) is a company specializing in High
@@ -23,7 +23,7 @@ export default function Page() {
2323 </ TextBlock >
2424 < h1 > Contact</ h1 >
2525 < TextBlock >
26- You can contact us at e-mail address < ContactEmail />
26+ If you're interested in our offer, you can reach us at this e-mail address: < ContactEmail />
2727 </ TextBlock >
2828 </ div >
2929 )
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ type Link = {
1313
1414const links : Link [ ] = [
1515 { name : "Home" , url : "/" } ,
16- { name : "About" , url : "/about" } ,
16+ { name : "About|Contact " , url : "/about" } ,
1717 { name : "Nabla" , url : "/nabla" } ,
1818 { name : "Services" , url : "/services" } ,
1919 { name : "Blog" , url : "/blog" } ,
You can’t perform that action at this time.
0 commit comments