Skip to main content

Navigation & Layout

GospeLib's navigation adapts to each platform while maintaining a consistent information architecture. Four navigation modes serve different display contexts, and a flexible panel system provides contextual information alongside the reader.

ModePlatformPrimary NavSecondary Nav
A — Bottom TabPhone (portrait)5-icon tab bar at bottomStack navigation within each tab
B — Side TabTablet (portrait)Compact icon rail on leftContextual panel on right
C — Side RailTablet (landscape) + WebIcon + label rail on leftPersistent side panel on right
D — Full DesktopWeb (wide viewport)Full sidebar with sectionsMulti-panel layout

Tab Bar Items (Mode A)

PositionIconLabelDestination
1📖 readerReadScripture reader
2✳ exploreExploreKnowledge graph + discovery
3✎ studyStudyJournal, collections, schedules
4🔍 searchSearchCommand palette (focused mode)
5👤 profileMeSettings, account, preferences

Side Rail Items (Modes B/C/D)

Same items as the tab bar plus additional entries for wider viewports:

IconLabelAdded In
📋Reading ListMode C+
📅Study PlanMode C+
SettingsMode D

Screen Hierarchy

Phone

Tab Bar → Stack Navigator
Read → Book Picker → Chapter → Verse Reader
Explore → Graph View → Node Detail
Study → Journal / Collections / Schedules
Search → Results → Passage
Me → Settings / Account / Premium

Bottom sheets overlay the current stack for contextual panels (cross-references, lexicon, notes).

Tablet

Side Rail (persistent) + Content Area + Optional Context Panel
Content fills center
Context panel slides in from right (notes, cross-refs, commentary)

Web

Side Rail/Sidebar + Content Area + Context Panel (persistent or toggleable)
Wide: three-column layout (rail + reader + panel)
Narrow: collapses to tablet-like layout

Contextual Panel System

The contextual panel provides supplementary information alongside the reader. It progresses through six states:

StateVisualTrigger
HiddenNo panel visibleDefault reading mode (phone)
PeekSmall handle visible at edgeOne-finger swipe from right edge
HalfPanel covers 40% of screen widthContinue swipe or tap panel handle
FullPanel covers 80% of screenContinue swipe or expand gesture
Sheet (phone only)Bottom sheet covering 60% of screenPhone: replaces side panel
Detached (desktop)Floating windowDrag panel away from edge

Panel Content Types

ContentSourceTrigger
Cross-referencesVerse swipe or graph linkSwipe left on verse
LexiconWord tap in lens/interlinear modeTap "See full entry" in bubble
NotesStudy mode or margin indicatorTap pencil icon
CommentaryAvailable for select passagesToggle in study toolbar
FootnotesFootnote tap in mode C/DTap footnote indicator
AI AssistantCommand palette or study toolbarInvoke AI action

Panel Transitions

TransitionDurationEasing
Hidden → Peek160msdecelerate
Peek → Half220mssmoothInOut
Half → Full220mssmoothInOut
Any → Hidden200msaccelerate
Phone: Hidden → Sheet280msdecelerate

Reader Chrome Behavior

Navigation chrome (top bar, tab bar, tool strip) adapts to reading state:

ModeBehaviorPlatform Default
SummonChrome hidden. Tap top/bottom safe area to reveal.
Auto-hideChrome visible initially, hides after 3s of reading.Phone
Scroll-revealChrome appears on scroll-up, hides on scroll-down.Tablet
Study modeChrome always visible — tools needed continuously.Web, or when study mode active

Chrome Elements

ElementPositionContent
Top barTopBook/chapter title, view mode toggle, study mode toggle
Tool stripBelow top bar (study mode)Highlight, note, bookmark, share, layout mode
Tab barBottom (phone)5 navigation tabs
Quick settingsBottom-right floatingFont size, density, verse mode
Status indicatorsTop-rightSync status, offline indicator

Responsive Breakpoints

BreakpointWidthLayout Mode
Phone< 768pxBottom tab + stack navigation
Tablet portrait768px–1024pxSide tab + optional panel
Tablet landscape1024px–1280pxSide rail + panel
Desktop> 1280pxFull sidebar + persistent panel

Content area max-width remains 680px for optimal reading line length regardless of viewport width. Excess space goes to margins and panels.