Initial commit

This commit is contained in:
Brian McGonagill 2026-02-03 16:03:34 -06:00
parent 9ed5089508
commit 78e0e82449
16 changed files with 317 additions and 15 deletions

View file

@ -0,0 +1,3 @@
.infoCard {
cursor: pointer;
}

View file

@ -1,6 +1,22 @@
<template name="home">
{{#if currentUser}}
<h1>This is Home.</h1>
<div class="grid">
<div>
<article class="infoCard" id="workouts">
<h3>Workouts</h3>
</article>
</div>
<div>
<article class="infoCard" id="meals">
<h3>Meals</h3>
</article>
</div>
<div>
<article class="infoCard" id="measurements">
<h3>Measurements</h3>
</article>
</div>
</div>
{{else}}
{{#if $eq loginOrReg 'login'}}
{{> login}}

View file

@ -1,11 +1,14 @@
import { FlowRouter } from 'meteor/ostrio:flow-router-extra';
Template.home.helpers({
loginOrReg: function() {
loginOrReg: function () {
return Session.get("loginOrReg");
},
});
Template.home.events({
'click .infoCard'(e) {
let route = e.currentTarget.id;
FlowRouter.go('/' + route);
},
});