Revillage Profile Page – Alpine.js Breakdown

This page provides the user's profile view, showing current offers and completed offers that need review. It uses Alpine.js for interactivity and reactive state management.


Front Matter

---
title: Revillage Profile
layout: base
permalink: /profile/
---

This defines the page metadata for 11ty:


Alpine.js Component

<div x-data="profilePage()">
  ...
</div>
<script>
function profilePage() {
  return {
    // reactive properties
  }
}
</script>

Reactive Properties


Key Functions / Methods

init()

fetchProfile()

register()

login()

logout()

markReviewed(offerId)


Form Visibility & Interaction


Reactive Lists


Summary