File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export default function About() {
7373 </ p >
7474 < div className = "flex gap-4 mt-4" >
7575 < a
76- href = "https://x.com/warrioraashuu "
76+ href = "https://x.com/enoughaashuu "
7777 target = "_blank"
7878 rel = "noopener noreferrer"
7979 className = "inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-white/5 border border-white/10 hover:bg-white/10 transition-colors"
Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ export default function Contact() {
3333 className = "grid grid-cols-1 md:grid-cols-3 gap-6 mb-16"
3434 >
3535 < a
36- href = "https://x.com/warrioraashuu "
36+ href = "https://x.com/enoughaashuu "
3737 target = "_blank"
3838 rel = "noopener noreferrer"
3939 className = "p-8 rounded-2xl bg-white/5 border border-white/10 hover:border-blue-400/50 transition-all group"
4040 >
4141 < Twitter className = "w-8 h-8 mb-4 text-blue-400 group-hover:scale-110 transition-transform" />
4242 < h3 className = "text-lg font-semibold text-white mb-2" > X (Twitter)</ h3 >
43- < p className = "text-sm text-gray-400" > @warrioraashuu </ p >
43+ < p className = "text-sm text-gray-400" > @enoughaashuu </ p >
4444 < p className = "text-xs text-gray-500 mt-2" > Fastest response</ p >
4545 </ a >
4646
Original file line number Diff line number Diff line change @@ -6,13 +6,45 @@ import { sanitizeLogoState } from "@/iconlogo/domain/logo/logo.validators";
66import TanStackQueryProvider from "@/iconlogo/integrations/tanstack-query/root-provider" ;
77import { AppShell } from "@/iconlogo/features/editor/AppShell" ;
88
9+ const DEFAULT_PRESET_SHARE_ID = "QMfIxW" ;
10+ const LOGO_STORE_KEY = "iconlogo-state" ;
11+
912export default function IconLogoEditorClient ( ) {
1013 const [ sharedLogo , setSharedLogo ] = useState < LogoState | null > ( null ) ;
1114
1215 useEffect ( ( ) => {
1316 const resolveSharedLogo = async ( ) => {
1417 const raw = new URLSearchParams ( window . location . search ) . get ( "s" ) ;
15- if ( ! raw ) return ;
18+ if ( ! raw ) {
19+ // On first-ever open, start from the curated preset.
20+ if ( ! window . localStorage . getItem ( LOGO_STORE_KEY ) ) {
21+ try {
22+ const response = await fetch (
23+ `/api/iconlogo/share/${ DEFAULT_PRESET_SHARE_ID } ` ,
24+ {
25+ method : "GET" ,
26+ cache : "no-store" ,
27+ } ,
28+ ) ;
29+
30+ if ( ! response . ok ) {
31+ setSharedLogo ( null ) ;
32+ return ;
33+ }
34+
35+ const data = ( await response . json ( ) ) as { logo ?: unknown } ;
36+ if ( ! data . logo ) {
37+ setSharedLogo ( null ) ;
38+ return ;
39+ }
40+
41+ setSharedLogo ( sanitizeLogoState ( data . logo ) ) ;
42+ } catch {
43+ setSharedLogo ( null ) ;
44+ }
45+ }
46+ return ;
47+ }
1648
1749 // New format: short id, e.g. ?s=fsfOMX
1850 if ( / ^ [ A - Z a - z 0 - 9 _ - ] { 4 , 16 } $ / . test ( raw ) ) {
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export default function PrivacyPolicy() {
7070 < section >
7171 < h2 className = "text-2xl font-semibold text-white mb-4" > 6. Contact Us</ h2 >
7272 < p >
73- If you have privacy concerns, reach out to us via our contact page or on X @warrioraashuu .
73+ If you have privacy concerns, reach out to us via our contact page or on X @enoughaashuu .
7474 </ p >
7575 </ section >
7676 </ div >
Original file line number Diff line number Diff line change @@ -17,9 +17,14 @@ export function loadLogoFromState(logo: LogoState) {
1717 d . iconBorderWidth = logo . iconBorderWidth ;
1818 d . iconSize = logo . iconSize ;
1919 d . iconRotation = logo . iconRotation ;
20+ d . iconOffsetX = logo . iconOffsetX ;
21+ d . iconOffsetY = logo . iconOffsetY ;
2022 d . background = logo . background ;
2123 d . borderRadius = logo . borderRadius ;
2224 d . borderWidth = logo . borderWidth ;
2325 d . borderColor = logo . borderColor ;
26+ d . textMode = logo . textMode ;
27+ d . logoText = logo . logoText ;
28+ d . fontFamily = logo . fontFamily ;
2429 } ) ;
2530}
You can’t perform that action at this time.
0 commit comments