import { createClient } from '@supabase/supabase-js'; // Initialize Supabase const supabase = createClient( 'https://YOUR_SUPABASE_URL.supabase.co', 'YOUR_SUPABASE_ANON_KEY' ); // Function to submit user input async function submitQuestion() { const input = document.getElementById('questionInput').value; if (!input) return; // Prevent empty submission const { data, error } = await supabase.from('questions').insert([{ content: input }]); if (error) { console.error('Error submitting:', error); return; } document.getElementById('questionInput').value = ''; // Clear input loadResponses(); // Refresh responses } // Function to load floating responses async function loadResponses() { const { data, error } = await supabase.from('questions').select('*').order('created_at', { ascending: false }); if (error) { console.error('Error fetching responses:', error); return; } const container = document.getElementById('responseContainer'); container.innerHTML = ''; // Clear previous data.forEach(({ content }) => { const bubble = document.createElement('div'); bubble.className = 'floating-response'; bubble.innerText = content; container.appendChild(bubble); // Random positioning for floating effect bubble.style.position = 'absolute'; bubble.style.left = `${Math.random() * 80 + 10}%`; bubble.style.top = `${Math.random() * 80 + 10}%`; }); } // Load responses on page load window.onload = loadResponses;
ALPHA
PRE-TEENS
A Conversation About Faith
What is Alpha?
Alpha is a safe space for young people to ask questions and say what they think. Nothing is off-limits. Seriously.

If you are curious about Alpha, we’d love to invite you to join us for the first week! It will be a fun afternoon where you can discover if it is for you.

Talk to us if you have any questions.

How it works?

CONNECTION
1.00 - 1.20 PM Free Lunch
It can be a full meal, a packet of pizza shapes, and even just a hot milo and bickie.
CONVERSATION
1.20 - 2.00 PM Film series
Watch film series that explore big questions about life and discuss questions that matter to you.
Time & Location
The Alpha series runs over 7 weeks covering different topics and includes a free weekend away out of the city!

Dates: Coming soon…

Come along (or bring a friend)!