Pen Settings



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


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


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.


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.


                <div id="app" method="post">
      <projetos :dados="teste"></projetos>





Vue.component('projetos', {
	props: {
        dados: { type: Array, default: null, required: true },
        tamanho: {type: Number, default: 50},
        placeholder: {type: String, default: "Busque por uma palavra chave, tecnologia ou ano"}
   data: function(){
        return {
            filtro: ""
  computed: {
     filtrada: function () {
       var resultado
          resultado = this.dados.filter((item)=> {
            let result = false;
            for (var [key, value] of Object.entries(item)) {
                result = result || value.toLowerCase().trim().includes(this.filtro.toLowerCase().trim())
            return result
        } else {
          resultado = this.dados
       let sortBy = [{
        direction: -1
        direction: 1
       return resultado.sort(function(a,b){
          let i = 0, result = 0;
          while(i < sortBy.length && result === 0) {
            result = sortBy[i].direction*(a[ sortBy[i].prop ].toString() < b[ sortBy[i].prop ].toString() ? -1 : (a[ sortBy[i].prop].toString() > b[ sortBy[i].prop ].toString() ? 1 : 0));
          return result;
	template: `
    <div class="container section">
        <div class="row">
          <div class="col-md-12 py-2">
            <input type="text" class="form-control" v-model="filtro" :placeholder="placeholder" />
        <div id="projetos_" :style="{
            'min-height': tamanho+'vh',  
            'max-height': tamanho+'vh',
            'overflow-y': 'auto',
        <div class="pj" v-for="projeto in filtrada" :key="projeto">    
         <div class="row align-items-center h-100 text-center text-lg-left projeto">
            <div class="col-lg-6 p-lg-0 text-center text-white" v-if="!projeto.imagem" :style="{  
          'background-color': projeto.fundo,
          'height': projeto.height+'vh',
                <p style="margin-top: calc(15vh - 1em); 
            font-family: Verdana, Geneva, Tahoma, sans-serif;
            font-weight: 200;            
            font-size: 3em;">{{projeto.titulo}}</p>
            <div class="col-lg-6 p-lg-0 text-center text-white" v-else>
                <img class="card-img-top img-fluid lazyload" :data-src="projeto.imagem" :alt="projeto.descricao">
                <div class="col-lg-5 mx-auto py-3">
                    <h3 class="h3">{{projeto.titulo}}
            v-if="projeto.ano" class="badge primary_background secondary_text badge-sm ml-1">{{projeto.ano}}</span>
                        <span v-if="projeto.linguagem" class="badge complementary_background secondary_text badge-sm">{{projeto.linguagem}}</span>
                    <p class="showcase__description mb-4 color-gray" v-html="projeto.descricao" v-if="projeto.descricao"></p>
                    <a :href="" v-if="" class="btn botao-primario" target="_blank">{{projeto.site_name}}</a>
                    <a :href="projeto.source" v-if="projeto.source" class="btn botao-contornado-primario" target="_blank">{{projeto.source_name}}</a>
                <hr class="text-white AA">

var app = new Vue({
  el: "#app",
  data: {
    teste: [
      {titulo:"Project List",imagem:null,ano:"2020",linguagem:null,descricao:"Rafael Faustini's list of projects component",source:null, source_name:"Código-Fonte",site:null,site_name:"Visualizar",fundo:"darkcyan",height:"30"},
      {titulo:"Test 2",imagem:null,ano:"2011",linguagem:null,descricao:'',source:null,
      {titulo:"Test 1",imagem:null,ano:"2011",linguagem:null,descricao:'',source:null,
      {titulo:"Test 3",imagem:null,ano:"2012",linguagem:null,descricao:'',source:null,
  methods: {