Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <head>
<link href="https://fonts.googleapis.com/css2?family=Kings&display=swap" rel="stylesheet">
  </head>
<head>
  <link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap" rel="stylesheet">
  </head>
<head>
  <link href="https://fonts.googleapis.com/css2?family=Smokum&display=swap" rel="stylesheet">
  </head>

  <div id = "main"></div>  






      

              
            
!

CSS

              
                #heading{
  text-align:center;
  background-color: white;
  border-style: none;
  border-bottom: 2px solid red;
  font-family: 'Smokum', cursive;
  font-size : 20px;
  
}
#quote-box{
  background-color: white;
  width : 380px;
  height : 330px; 
  border: 2px solid red;
  
}
#boarder{
  background-color: pink;
  width : 100vw;
  height : 100vh;
  display : flex;
  align-items : center; 
  justify-content:center
}
#text{
  margin-left:220px;
  font-family: 'Kings', cursive;
  
}
#author{
  line-height: 35px;
  font-family: 'Dancing Script', cursive; 
  font-size : 20px;
  text-shadow : 2px 2px pink;
  animation : Zoom 6s;
}
#tweet-quote{
  text-decoration : none
}
@keyframes Zoom{
  100%{
  text-shadow : 1px 1px #660000  
  }
}
#boarder:hover{
    background : url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRa0RFjbN1Qd6RRi_wQmK0BouTYTGN20U_GAQ&usqp=CAU?');
background-repeat:no-repeat;
  background-size : cover;
  background-attachment : fixed;
  
}

              
            
!

JS

              
                import * as React from "https://cdn.skypack.dev/react@17.0.1";
import * as ReactDOM from "https://cdn.skypack.dev/react-dom@17.0.1";
const quote = [
  {
    name : 'PAIN',
    word : 'Do U Hate Me Now?'
  },{
    name : 'Uchiha ID',
    word : 'Im A Ninja In Our World Whose Ninja Way Is Never Giving Up'   
  },{
    name : 'PAIN',
    word : 'Those Who Dont Understand True Pain Will Never Understand True Peace'   
  },
  {
    name : 'Strauss',
    word : 'People Cry Not Cause They Are Weak.Its Cause They"ve Been Strong For Too Long' 
  },
  {
    name : 'Luffy',
    word : 'Forgetting Is Like A Word,They May Heal But It Has Already Left A Scar'   
  },
  {
    name : 'Juice Wrld',
    word : 'Bitch I"m tking Bout My Tears Turned Around And Face My Fears'
  },
  {
    name : 'Juice Wrld',
    word : 'Happiness Will Come When Its Ready,Hold Up Your Hands And Embrace It With Open Arms'
  },{
    name : 'Juice Wrld',
    word : 'Dain Out Bad Energy,Forget The Bad Memories'   
  },{
    name : 'Itachi',
    word : 'One"s Reality Might Be Another"s Illusion,We All Live Inside Our Own Fantasies'     
  },{
    name : 'Asta',
    word : 'I"m Not Done Yet!!!'       
  },
  {
    name : 'Yaeow',
    word : 'It Might Be Dark Outside But There"s A Sun Behind The Clouds'       
  },{
    name : 'Asta',
    word : 'I May Not Be Be Blessed With Magic,But I Was Blessed With Good Friends/Family,That"s My Magic:)'   
  },
  {
    name : 'Obito',
    word : 'There Is Nothing In My Heart,I don"t Feel Pain Any Longer.There Used To be Pain In There Bfore,But Really What"s The Meaning In That(¬_¬)ノ '       
  },
  {
    name : 'Anonymous I',
    word : 'I Spent Days,Hours,Minutes Trying To Please You And Give U All My Attention.Meanwhile You Spent Seconds Proving To Me U Ain"t Worth Itಥ⌣ಥ '       
  }
]

function Contain(props){
  const[count,setCount] = React.useState(function generateNum(){
    return quote[Math.floor(Math.random() * quote.length)]})
  function click(){
    setCount(quote[Math.floor(Math.random() * quote.length)])
  }
return(
  <div>
  <div id = 'quote-box'>
<div id = 'heading'>Anime/Legend Quote</div>
  <div id = 'author'>
    <em><i class = 'fa fa-quote-left'></i>{count.word}</em>
    </div>
  <div id = 'text'>
    <h1>-{count.name}</h1>
    </div>
    <br />
    <br />
    <button id = 'new-quote' class = ' btn btn-danger w-100' onClick = {click}><i class = 'fa fa-smile'></i>Free Quotes</button>
 <button class = 'btn btn-info w-100'><a id = 'tweet-quote' href = 'https://twitter.com/intent/tweet' target = '_blank'><i class = 'fa fa-comments'></i>Tweet quote!!</a></button>
   </div>
    <p  style ={{color : 'yellow',textAlign: 'center',fontFamily : 'cursive',fontWeight : 'bold',marginTop: '20px'}}id = 'user'>by Id...</p>
      </div>
  )
  }
function App(){
  return (
<div id = "boarder">
    <Contain />
  </div>)
  }
  
  

ReactDOM.render(<App />,document.getElementById('main'))


              
            
!
999px

Console