Created
September 1, 2021 11:31
-
-
Save opencoca/0e7a9f18e39a5b0dba68c1a3ba776e4b to your computer and use it in GitHub Desktop.
GPT J Vue Code example (this code was generated)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Vue template for FAQ page --> | |
<section> | |
<div id="app" class="container"> | |
<h1 class="content">{{ | |
title | |
}}</h1> | |
<p class="description">{{ | |
description | |
}}</p> | |
<div class="clearfix"></div> | |
<ul class="faq"> | |
<li v-for="(question, index) in questions" :key="index"> | |
<p class="question"> | |
{{ | |
question.title | |
}} | |
</p> | |
<p class="answer">{{ | |
question.answer | |
}}</p> | |
</li> | |
</ul> | |
<div class="clearfix"></div> | |
</div> | |
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = new Vue( { | |
el: "#app", | |
data: { | |
title: 'How can I add content to my FAQ?', | |
description: 'Ask your question here...', | |
questions: [ | |
{ title: 'What is a sitemap?', answer: 'A sitemap is a directory of links that enables a search engine to index the pages on your website.' }, | |
{ title: 'What is an RSS feed?', answer: 'RSS (Really Simple Syndication) is a way of publishing articles on a website.' }, | |
{ title: 'What is a website template?', answer: 'A website template is a ready-made design for building a website. These can be downloaded from a 3rd party website.' }, | |
{ title: 'What is a plugin?', answer: 'A plugin is a piece of software that can be added to your WordPress website to add extra functionality or'} | |
] | |
} | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdn.jsdelivr.net/npm/@exampledev/new.css@1.1.2/new.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment