File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed 
wallpaper-generator/pages Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ import Image from "next/image";
55import  axios  from  "axios" ; 
66
77const  Home : NextPage  =  ( )  =>  { 
8-   const  [ hexValueInputBox ,  setHexValueInputBox ]  =  useState < number [ ] > ( [ 1 ] ) ; 
9-   const  [ description ,  setDescription ]  =  useState < string > ( "Generate milky way wallpaper" ) ; 
8+   const  [ description ,  setDescription ]  =  useState < string > ( 
9+     "Generate milky way wallpaper" 
10+   ) ; 
1011  const  buttonRef  =  useRef < HTMLButtonElement > ( null ) ; 
1112  const  [ wallpaper ,  setWallpaper ]  =  useState < string  |  null > ( null ) ; 
1213
@@ -76,7 +77,7 @@ const Home: NextPage = () => {
7677        { wallpaper  &&  ( 
7778          < div  className = "mt-12" > 
7879            < h2  className = "mb-12 font-bold" > Here is your wallpaper ↓</ h2 > 
79-             < a  href = { wallpaper ! }  title = "wallpaper" > 
80+             < a  href = { wallpaper ! }  title = "wallpaper"   download = { true } > 
8081              < Image 
8182                src = { wallpaper ! } 
8283                width = { 512 } 
@@ -88,6 +89,15 @@ const Home: NextPage = () => {
8889          </ div > 
8990        ) } 
9091      </ main > 
92+       < div  className = "flex flex-col mt-10 justify-center" > 
93+         < p  className = "block mt-10 mb-10 text-center text-secondary text-xs uppercase font-bold" > 
94+           Made by{ " " } 
95+           < a  href = "https://rapidapi.com/?utm_source=github.com/RapidAPI& utm_medium = DevRel & utm_campaign = DevRel "  className = "underline" > 
96+             Rapid
97+           </ a > { " " } 
98+           DevRel Team • Powered by < a  href = "https://openai.com/"  className = "underline" > OpenAI</ a > 
99+         </ p > 
100+       </ div > 
91101    </ div > 
92102  ) ; 
93103} ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments