-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cssUpdate' of https://github.com/asthanegi14/StyleShare …
…into cssUpdate
- Loading branch information
Showing
41 changed files
with
1,406 additions
and
208 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,35 +1,33 @@ | ||
"use client"; | ||
|
||
import { useTranslation } from "react-i18next"; | ||
import { TypewriterEffectSmooth } from "./ui/TypeWriter"; | ||
|
||
export function TypewriterEffectSmoothDemo() { | ||
const { t } = useTranslation(); | ||
|
||
const words = [ | ||
{ | ||
text: "👋Welcome", | ||
className:"md:text-3xl lg:text-5xl text-3xl text-white" | ||
text: t("hero.h1"), | ||
className: "md:text-3xl lg:text-5xl text-3xl text-white" | ||
}, | ||
{ | ||
text: "To", | ||
className:"text-white lg:text-5xl md:text-3xl text-3xl" | ||
text: t("hero.h2"), | ||
className: "text-white lg:text-5xl md:text-3xl text-3xl" | ||
}, | ||
{ | ||
text: "Style", | ||
className: "text-blue-500 lg:text-5xl md:text-3xl text-3xl", | ||
text: t("hero.h3"), | ||
className: "text-blue-500 lg:text-5xl md:text-3xl text-3xl" | ||
}, | ||
{ | ||
text: "Share", | ||
className: "text-blue-500 lg:text-5xl md:text-3xl text-3xl", | ||
}, | ||
|
||
text: t("hero.h4"), | ||
className: "text-blue-500 lg:text-5xl md:text-3xl text-3xl" | ||
} | ||
]; | ||
|
||
return ( | ||
<div className="max-w-screen-xl mx-auto"> | ||
|
||
<div className=" mx-autofont-bold mb-4"> | ||
<TypewriterEffectSmooth words={words} /> | ||
</div> | ||
<div className="mx-autofont-bold mb-4"> | ||
<TypewriterEffectSmooth words={words} /> | ||
</div> | ||
|
||
|
||
</div> | ||
); | ||
} |
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,39 @@ | ||
import { useEffect } from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
const LanguageDropdown = () => { | ||
const { i18n } = useTranslation(); | ||
|
||
useEffect(() => { | ||
const storedLanguage = localStorage.getItem('i18nextLng') || 'en'; | ||
i18n.changeLanguage(storedLanguage); | ||
}, [i18n]); | ||
|
||
const handleLanguageChange = (event:any) => { | ||
const selectedLanguage = event.target.value; | ||
i18n.changeLanguage(selectedLanguage); | ||
localStorage.setItem('i18nextLng', selectedLanguage); | ||
}; | ||
|
||
return ( | ||
<div className="mx-1 -my-2 fixed z-50"> | ||
<select | ||
onChange={handleLanguageChange} | ||
className="p-1 rounded-md bg-blue-950 backdrop-blur-sm text-gray-100 border-2 border-sky-500" | ||
value={i18n.language} | ||
> | ||
<option value="">Select Language</option> | ||
<option value="en">English</option> | ||
<option value="hi">Hindi</option> | ||
<option value="mh">Marathi</option> | ||
<option value="guj">Gujarati</option> | ||
<option value="wb">Bengali</option> | ||
<option value="tel">Telugu</option> | ||
<option value="tam">Tamil</option> | ||
<option value="ur">Urdu</option> | ||
</select> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LanguageDropdown; |
Oops, something went wrong.