-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from TusharSSurve/test
[test] : Started with Footer CSS
- Loading branch information
Showing
14 changed files
with
325 additions
and
37 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from "react"; | ||
import styles from './Button.module.css'; | ||
|
||
const Button = (props) => { | ||
return ( | ||
<div className={styles.button}> | ||
{props.children} | ||
</div> | ||
) | ||
} | ||
export default Button; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.button { | ||
border: 1px solid var(--neon-color); | ||
border-radius: var(--border-radius); | ||
padding: 12px 16px; | ||
font-family: var(--font-roboto-slab); | ||
line-height: 1; | ||
text-decoration: none; | ||
font-size: var(--font-14); | ||
width: max-content; | ||
cursor: pointer; | ||
transition: all 0.3s ease-in; | ||
} | ||
|
||
.button:hover { | ||
background-color: var(--neon-color); | ||
} | ||
|
||
.button:hover a { | ||
color: var(--black-color); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React, { useState, useEffect } from 'react'; | ||
import styles from './Cursor.module.css'; | ||
const Cursor = () => { | ||
const [cursorPos, setCursorPos] = useState({ x: -100, y: -100 }); | ||
|
||
useEffect(() => { | ||
const updateCursorPosition = (e) => { | ||
setCursorPos({ x: e.clientX, y: e.clientY }); | ||
}; | ||
|
||
window.addEventListener('mousemove', updateCursorPosition); | ||
|
||
return () => { | ||
window.removeEventListener('mousemove', updateCursorPosition); | ||
}; | ||
}, []); | ||
|
||
return ( | ||
<div className={styles['custom-cursor']} style={{ left: cursorPos.x, top: cursorPos.y }}> | ||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#000000" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"> | ||
<circle cx="12" cy="12" r="10" /> | ||
</svg> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Cursor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.custom-cursor { | ||
position: fixed; | ||
pointer-events: none; | ||
z-index: 9999; | ||
transition: transform 0.15s ease-out; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.custom-cursor svg { | ||
width: 20px; | ||
height: 20px; | ||
fill: none; | ||
stroke: var(--neon-color); | ||
stroke-width: 1; | ||
stroke-linecap: round; | ||
stroke-linejoin: round; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
footer { | ||
background-color: var(--dark-grey-color); | ||
} | ||
|
||
.footer-container { | ||
width: 90%; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin: 0 auto; | ||
padding: 40px 0; | ||
} | ||
|
||
.copyright { | ||
font-size: var(--font-14); | ||
color: var(--dark-white-color); | ||
} | ||
|
||
.contact ul { | ||
display: flex; | ||
gap: 16px; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.contact ul li { | ||
list-style-type: none; | ||
} | ||
|
||
.contact ul li a { | ||
text-decoration: none; | ||
color: var(--dark-white-color); | ||
width: 50px; | ||
height: 50px; | ||
border: 1px solid rgba(248, 248, 248, .2); | ||
border-radius: 50%; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
transition: all .2s; | ||
display: flex; | ||
} | ||
|
||
.contact ul li a:hover { | ||
color: var(--neon-color); | ||
background-color: #3b3b3b; | ||
border-color: rgba(0, 0, 0, 0); | ||
} | ||
|
||
@media (max-width: 500px) { | ||
.footer-container { | ||
flex-direction: column-reverse; | ||
gap: 40px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.button { | ||
color: var(--neon-color); | ||
text-decoration: none; | ||
} |
Oops, something went wrong.