gpt-3.5-turbo-0613· openai
Suzhen/CodeChat
give me example code of Vue footer component and its usage
- User
give me example code of Vue footer component and its usage
- Assistant
Sure! Here's an example of a Vue footer component and its usage:
Footer.vue:
<template> <footer> <div class="footer-content"> <p>© {{ currentYear }} Example Website</p> <ul> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Contact</a></li> </ul> </div> </footer> </template> <script> export default { data() { return { currentYear: new Date().getFullYear() }; } }; </script> <style scoped> footer { background-color: #f2f2f2; padding: 20px; text-align: center; } .footer-content { display: flex; justify-content: space-between; align-items: center; } ul { list-style-type: none; display: flex; justify-content: center; align-items: center; } li { margin: 0 10px; } a { text-decoration: none; color: #555; } </style>App.vue (Usage):
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.