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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <v-app id="app">
    <v-main>
      <v-container class="back" fill-height fluid>
        <v-row align="center" justify="center">
          <v-col cols="12">
            <v-dialog width="20%" v-model="alert">
              <v-card>
                <v-card-title>
                  Login
                </v-card-title>
                <v-card-text>
                  {{log}}
                </v-card-text>
                <v-card-actions>
                  <v-spacer></v-spacer>
                  <v-btn color="green darken-1" @click="alert = false" dark>Ok</v-btn>
                </v-card-actions>
              </v-card>
            </v-dialog>
          </v-col>
          <v-col cols="5">
            <v-card class="card-login mx-a">
              <v-card-title>Login</v-card-title>
              <v-divider></v-divider>
              <v-card-text class="pa-5">
                <v-form v-on:submit="sub" action="#" method="post">

                  <v-text-field color="green darken-1" v-model="login" label="User"></v-text-field>
                  <v-text-field color="green darken-1" v-model="senha" label="Password"></v-text-field>
                  <v-btn class="green darken-1" type="submit" large dark>Let's go</v-btn>

                </v-form>
              </v-card-text>
            </v-card>
          </v-col>
        </v-row>
      </v-container>
    </v-main>
 </v-app>
  

              
            
!

CSS

              
                html, body{
  width: 100%;
  heigh: 100%;
  margin: 0;
  padding: 0;
}
.back{
  background-image: url('https://i.ytimg.com/vi/QN7l3ydXvx0/maxresdefault.jpg');
  background-size: cover;
  background-repeat: no-repeat;
}

@keyframes opacity-in {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

@keyframes opacity-out {
  from {opacity: 1;}
  to {opacity: 0.4;}
}

.card-login{
  opacity: 0.4;
  animation-name: opacity-out;
  animation-duration: 2s;
}

.card-login:hover{
  opacity: 1;
  animation-name: opacity-in;
  animation-duration: 2s;
}

.alert-in{
  animation-name: opacity-in;
  animation-duration: 2s;
}
              
            
!

JS

              
                new Vue({
  el: "#app",
  vuetify: new Vuetify(),
  data:{
      login: "",
      senha: "",
      log: "",
      alert: false
  },
  
  methods: {
      
      sub: function(event){
          
          if(this.login == "" || this.senha == ""){
            this.alert = true
            this.log = "User and Password is required."
            event.preventDefault()
          }else{
            this.log = "Go"
          }   
      }
  }
  
});
              
            
!
999px

Console