feat: extract public Razor website with isolated content services
6
.gitignore
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
**/bin/
|
||||
**/obj/
|
||||
**/node_modules/
|
||||
artifacts/
|
||||
*.user
|
||||
.env
|
||||
3
PlotDirector.Website.slnx
Normal file
@ -0,0 +1,3 @@
|
||||
<Solution>
|
||||
<Project Path="PlotDirector.Website/PlotDirector.Website.csproj" />
|
||||
</Solution>
|
||||
1456
PlotDirector.Website/Content/WritingSolver/Editorial/pages-v1.json
Normal file
@ -0,0 +1,766 @@
|
||||
{
|
||||
"results": [
|
||||
{
|
||||
"solution": "d01",
|
||||
"family": "overview",
|
||||
"action": "Put the open threads beside one another and choose which unresolved commitment to follow next."
|
||||
},
|
||||
{
|
||||
"solution": "d02",
|
||||
"family": "plot-map",
|
||||
"action": "Find the last contribution before the gap and the first one after it. Read the return before deciding whether a bridge is missing."
|
||||
},
|
||||
{
|
||||
"solution": "d03",
|
||||
"family": "plot-map",
|
||||
"action": "Choose one event in each thread and trace what changes in the other. Look for a consequence, not merely a shared character."
|
||||
},
|
||||
{
|
||||
"solution": "d04",
|
||||
"family": "workflow",
|
||||
"action": "Compare the space each thread receives with the emphasis you intended. Equal shares are not the aim."
|
||||
},
|
||||
{
|
||||
"solution": "d05",
|
||||
"family": "chronology",
|
||||
"action": "Ask what would be lost if this scene disappeared: a decision, discovery, change or later consequence."
|
||||
},
|
||||
{
|
||||
"solution": "d06",
|
||||
"family": "plot-map",
|
||||
"action": "Choose one promise and follow it from introduction to answer. Check the preparation as well as the payoff."
|
||||
},
|
||||
{
|
||||
"solution": "d07",
|
||||
"family": "plot-map",
|
||||
"action": "Follow an action into the next consequential event. Identify what would happen differently without the earlier scene."
|
||||
},
|
||||
{
|
||||
"solution": "d08",
|
||||
"family": "overview",
|
||||
"action": "Create a small reference for the people you keep having to look up. Start with roles and distinguishing details."
|
||||
},
|
||||
{
|
||||
"solution": "d09",
|
||||
"family": "people",
|
||||
"action": "Compare the decisions and pressures belonging to each character before deciding whether their roles overlap."
|
||||
},
|
||||
{
|
||||
"solution": "d10",
|
||||
"family": "people",
|
||||
"action": "Read the last unresolved moment before the character disappears, then their return. Decide what the reader needs to carry across."
|
||||
},
|
||||
{
|
||||
"solution": "d11",
|
||||
"family": "people",
|
||||
"action": "Compare appearances with the roles you intended. A minor character and a protagonist need not receive equal space."
|
||||
},
|
||||
{
|
||||
"solution": "d12",
|
||||
"family": "people",
|
||||
"action": "Check what each viewpoint uniquely lets the reader experience before changing its share of the manuscript."
|
||||
},
|
||||
{
|
||||
"solution": "d13",
|
||||
"family": "trace",
|
||||
"action": "Choose the established version of one conflicting fact, then check the passages that rely on it."
|
||||
},
|
||||
{
|
||||
"solution": "d14",
|
||||
"family": "workflow",
|
||||
"action": "Find the last known location and the next appearance. Check the available interval and the move connecting them."
|
||||
},
|
||||
{
|
||||
"solution": "d15",
|
||||
"family": "overview",
|
||||
"action": "Lay out the connections you repeatedly reconstruct. Begin with the few relationships relevant to your current scene."
|
||||
},
|
||||
{
|
||||
"solution": "d16",
|
||||
"family": "people",
|
||||
"action": "Compare the last clear relationship state with the behaviour in the current scene. Find the encounter connecting them."
|
||||
},
|
||||
{
|
||||
"solution": "d17",
|
||||
"family": "people",
|
||||
"action": "Read the encounters before the change. Check which choice or consequence makes the new relationship state believable."
|
||||
},
|
||||
{
|
||||
"solution": "d18",
|
||||
"family": "people",
|
||||
"action": "Compare what survives from one encounter into the next: a changed expectation can matter more than a new label."
|
||||
},
|
||||
{
|
||||
"solution": "d19",
|
||||
"family": "people",
|
||||
"action": "Compare each person\u2019s understanding of the relationship. Check whether the difference is deliberate and visible in their behaviour."
|
||||
},
|
||||
{
|
||||
"solution": "d20",
|
||||
"family": "people",
|
||||
"action": "Choose the event that changes the network, then follow its consequences into the connected relationships."
|
||||
},
|
||||
{
|
||||
"solution": "d21",
|
||||
"family": "trace",
|
||||
"action": "Find the first use of the information, then the first opportunity to learn it. Inspect the missing or reversed link."
|
||||
},
|
||||
{
|
||||
"solution": "d22",
|
||||
"family": "trace",
|
||||
"action": "Find the conversation, witness or discovery that supplies the fact. Then check the first scene that relies on it."
|
||||
},
|
||||
{
|
||||
"solution": "d23",
|
||||
"family": "trace",
|
||||
"action": "Choose one fact and compare who knows it, who suspects it and whose position changes in the next scene."
|
||||
},
|
||||
{
|
||||
"solution": "d24",
|
||||
"family": "trace",
|
||||
"action": "Check the acquisition and use of information around the moved scenes before changing either event."
|
||||
},
|
||||
{
|
||||
"solution": "d25",
|
||||
"family": "trace",
|
||||
"action": "Follow one clue through discovery and interpretation. A clue can be present without its significance being understood."
|
||||
},
|
||||
{
|
||||
"solution": "d26",
|
||||
"family": "trace",
|
||||
"action": "Compare preparation, revelation and the reader\u2019s intended moment of understanding."
|
||||
},
|
||||
{
|
||||
"solution": "d27",
|
||||
"family": "chronology",
|
||||
"action": "Find the two conflicting points, then inspect the neighbouring scenes to decide which date, event or assumption needs correcting."
|
||||
},
|
||||
{
|
||||
"solution": "d28",
|
||||
"family": "chronology",
|
||||
"action": "Mark the start and finish of the interval. Check whether the intervening action fits the time available."
|
||||
},
|
||||
{
|
||||
"solution": "d29",
|
||||
"family": "workflow",
|
||||
"action": "Compare the age stated in the scene with the birthday and elapsed years. Then check the established character record."
|
||||
},
|
||||
{
|
||||
"solution": "d30",
|
||||
"family": "chronology",
|
||||
"action": "Separate when events happen from when the reader encounters them. Check whether each jump supplies the context you intended."
|
||||
},
|
||||
{
|
||||
"solution": "d31",
|
||||
"family": "chronology",
|
||||
"action": "Place the parallel events around their shared deadline and check which reactions depend on another sequence."
|
||||
},
|
||||
{
|
||||
"solution": "d32",
|
||||
"family": "chronology",
|
||||
"action": "Keep the fixed date visible, then test the time available for the events immediately before and after it."
|
||||
},
|
||||
{
|
||||
"solution": "d33",
|
||||
"family": "overview",
|
||||
"action": "Create a navigable overview of the scenes you already have. Choose one crowded or hard-to-find stretch first."
|
||||
},
|
||||
{
|
||||
"solution": "d34",
|
||||
"family": "workflow",
|
||||
"action": "Identify what must happen before this scene and what depends on it. Preserve a reference before trying a different placement."
|
||||
},
|
||||
{
|
||||
"solution": "d35",
|
||||
"family": "chronology",
|
||||
"action": "Read across the chapter break. Check what it interrupts, withholds or allows the reader to absorb."
|
||||
},
|
||||
{
|
||||
"solution": "d36",
|
||||
"family": "chronology",
|
||||
"action": "Compare the unique work of the two scenes. Repetition can be useful when its meaning or consequences change."
|
||||
},
|
||||
{
|
||||
"solution": "d37",
|
||||
"family": "chronology",
|
||||
"action": "Keep a reference arrangement, then try one meaningful move. Compare the setup and consequences around it."
|
||||
},
|
||||
{
|
||||
"solution": "d38",
|
||||
"family": "workflow",
|
||||
"action": "Compare the journey\u2019s available time with a plausible route. Check the scenes that establish departure and arrival."
|
||||
},
|
||||
{
|
||||
"solution": "d39",
|
||||
"family": "trace",
|
||||
"action": "Choose the intended version of the place, then check the descriptions and actions that depend on its layout."
|
||||
},
|
||||
{
|
||||
"solution": "d40",
|
||||
"family": "trace",
|
||||
"action": "Follow the object from its last clear holder or position to its next appearance. Identify the connecting handover or move."
|
||||
},
|
||||
{
|
||||
"solution": "d41",
|
||||
"family": "trace",
|
||||
"action": "Trace how the new holder acquires the object before their first use of it."
|
||||
},
|
||||
{
|
||||
"solution": "d42",
|
||||
"family": "trace",
|
||||
"action": "Compare the object\u2019s earlier damage, loss or destruction with its later state. Look for the intended explanation between them."
|
||||
},
|
||||
{
|
||||
"solution": "d43",
|
||||
"family": "progression",
|
||||
"action": "Choose a quiet stretch and ask what changes in the available choices. Quietness itself is not a fault."
|
||||
},
|
||||
{
|
||||
"solution": "d44",
|
||||
"family": "progression",
|
||||
"action": "Find the transition between a long wait and a cluster of changes. Read the scenes before smoothing any graph."
|
||||
},
|
||||
{
|
||||
"solution": "d45",
|
||||
"family": "progression",
|
||||
"action": "Choose one rise or drop in pressure. Check what the reader is anticipating, and whether the release is intentional."
|
||||
},
|
||||
{
|
||||
"solution": "d46",
|
||||
"family": "workflow",
|
||||
"action": "Follow the character\u2019s response to one significant event. Look for a changed choice, then check its effect on the wider story."
|
||||
},
|
||||
{
|
||||
"solution": "d47",
|
||||
"family": "progression",
|
||||
"action": "Compare the closing cluster of changes with their earlier preparation. Decide which developments need room sooner."
|
||||
},
|
||||
{
|
||||
"solution": "d48",
|
||||
"family": "trace",
|
||||
"action": "Choose the first changed fact or event and trace later references that may still assume the previous version."
|
||||
},
|
||||
{
|
||||
"solution": "d49",
|
||||
"family": "chronology",
|
||||
"action": "Name the alternatives and preserve a reference. Compare one meaningful difference before choosing which version to keep."
|
||||
},
|
||||
{
|
||||
"solution": "d50",
|
||||
"family": "trace",
|
||||
"action": "Find the book that establishes the fact, then the later passage relying on it. Record the agreed reference."
|
||||
},
|
||||
{
|
||||
"solution": "d51",
|
||||
"family": "workflow",
|
||||
"action": "Trace the last meaningful contribution in each book, then check the series-level promise and eventual payoff."
|
||||
},
|
||||
{
|
||||
"solution": "d52",
|
||||
"family": "overview",
|
||||
"action": "Externalise the small set of references you repeatedly search for. You do not need to catalogue the entire novel first."
|
||||
}
|
||||
],
|
||||
"uncertainty": [
|
||||
{
|
||||
"node": "entry",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "rescue-happening",
|
||||
"choice": "really-dont-know"
|
||||
},
|
||||
{
|
||||
"node": "story-connection",
|
||||
"choice": "cant-tell"
|
||||
},
|
||||
{
|
||||
"node": "story-payoff",
|
||||
"choice": "dont-know"
|
||||
},
|
||||
{
|
||||
"node": "feel-where",
|
||||
"choice": "cant-tell"
|
||||
},
|
||||
{
|
||||
"node": "feel-how",
|
||||
"choice": "only-feel"
|
||||
},
|
||||
{
|
||||
"node": "flow-target",
|
||||
"choice": "not-sure"
|
||||
},
|
||||
{
|
||||
"node": "flow-tension",
|
||||
"choice": "cant-tell"
|
||||
},
|
||||
{
|
||||
"node": "change-damage",
|
||||
"choice": "dont-know"
|
||||
},
|
||||
{
|
||||
"node": "change-knowledge",
|
||||
"choice": "dont-know"
|
||||
},
|
||||
{
|
||||
"node": "cast-presence",
|
||||
"choice": "cant-see"
|
||||
},
|
||||
{
|
||||
"node": "check-threads",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-threads",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-purpose",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-purpose",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-causality",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-causality",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-payoff",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-payoff",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-cast",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-cast",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-relationships",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-knowledge",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-time",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-whereabouts",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-whereabouts",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-structure",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-object",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-place",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-place",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-progression",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-arc",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-arc",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-change",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-change",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-series",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-series",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-overload",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-overload",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "dominance-observation",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "dominance-intention",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-facts",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "intent-facts",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge-no-source-source-order",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge-source-no-source",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge-povs-no-source-order",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge-reader-order-povs",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge-clues-source",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge-order-no-source-reader",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge-source-povs",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge-reader-order",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-knowledge-povs-source",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-clash-elapsed",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-clash-age",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-age-clash",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-reading-clash",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-fixed-clash",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-threads-lost-gap",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-threads-gap-lost",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-threads-apart-lost",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-threads-scenes-lost",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-threads-gap-apart",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-object-track-holder",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-object-holder-track",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-object-track-history",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-object-history-track",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-object-track-place",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-structure-place-purpose",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-structure-chapter-place",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-structure-purpose-repeat",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-structure-volume-purpose",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-structure-purpose-volume",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-structure-repeat-purpose",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-structure-place-chapter",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-threads-lost-apart",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-threads-apart-gap",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-threads-scenes-apart",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression-uneven-late",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression-uneven-character",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression-nothing-uneven",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression-uneven-nothing",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression-late-uneven",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression-nothing-character",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-repeat-moving",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-unprepared-stage",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-stage-views",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-ripples-network",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-views-stage",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-stage-moving",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-moving-repeat",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression-tension-nothing",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression-tension-uneven",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-progression-tension-late",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-elapsed-travel",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-elapsed-clash",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-travel-elapsed",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-clash-reading",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-object-place-holder",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-object-holder-history",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-object-history-place",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-cast-remember-same-job",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-cast-same-job-remember",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-cast-share-remember",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-cast-gap-share",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-cast-voice-share",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-cast-gap-none",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-cast-share-voice",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-cast-share-gap",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-network-stage",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-network-views",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-network-ripples",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-elapsed-fixed",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-parallel-clash",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-time-reading-parallel",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-stage-network",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships-stage-ripples",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-object",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-structure",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "check-relationships",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "final-cast",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "final-progression",
|
||||
"choice": "unsure"
|
||||
},
|
||||
{
|
||||
"node": "final-dominance",
|
||||
"choice": "unsure"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,831 @@
|
||||
{
|
||||
"version": 1,
|
||||
"capturedOn": "2026-11-02",
|
||||
"source": "https://dev.plotdirector.com",
|
||||
"theme": "plotdirector",
|
||||
"assets": [
|
||||
{
|
||||
"asset": "plot-lines-weave",
|
||||
"route": "/PlotLineWorkspace?projectId={id}&bookId={id}&plotLineId={id}&plotLineId={id}",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 800,
|
||||
"sourceViews": [
|
||||
"PlotLineWorkspace/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"plot"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d01",
|
||||
"d02",
|
||||
"d03",
|
||||
"d04",
|
||||
"d06",
|
||||
"d07",
|
||||
"d51"
|
||||
],
|
||||
"alt": "PlotDirector Plot Lines workspace showing two narrative threads meeting at shared scenes.",
|
||||
"aspect": "1280:800",
|
||||
"masterSha256": "c9c832bfc7b3e830475e5aa11d08954fdd69655ed22c22165f6e3a0dcebf1be4",
|
||||
"variants": [
|
||||
{
|
||||
"file": "plot-lines-weave-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 14201
|
||||
},
|
||||
{
|
||||
"file": "plot-lines-weave-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 21878
|
||||
},
|
||||
{
|
||||
"file": "plot-lines-weave-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 24533
|
||||
},
|
||||
{
|
||||
"file": "plot-lines-weave-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 39076
|
||||
},
|
||||
{
|
||||
"file": "plot-lines-weave.avif",
|
||||
"width": 1280,
|
||||
"bytes": 28577
|
||||
},
|
||||
{
|
||||
"file": "plot-lines-weave.webp",
|
||||
"width": 1280,
|
||||
"bytes": 55858
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "timeline-chronology",
|
||||
"route": "/Timeline?projectId={id}&bookId={id}",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 800,
|
||||
"sourceViews": [
|
||||
"Timeline/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"timeline"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d14",
|
||||
"d27",
|
||||
"d28",
|
||||
"d29",
|
||||
"d30",
|
||||
"d31",
|
||||
"d32",
|
||||
"d38"
|
||||
],
|
||||
"alt": "PlotDirector Timeline comparing scene dates, locations and events in manuscript order.",
|
||||
"aspect": "1280:800",
|
||||
"masterSha256": "d76ddd331490d2557a988d3b5b0cb298972cb09dcc67cee1cbdbbbb063c7521b",
|
||||
"variants": [
|
||||
{
|
||||
"file": "timeline-chronology-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 18048
|
||||
},
|
||||
{
|
||||
"file": "timeline-chronology-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 28638
|
||||
},
|
||||
{
|
||||
"file": "timeline-chronology-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 33902
|
||||
},
|
||||
{
|
||||
"file": "timeline-chronology-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 54346
|
||||
},
|
||||
{
|
||||
"file": "timeline-chronology.avif",
|
||||
"width": 1280,
|
||||
"bytes": 42874
|
||||
},
|
||||
{
|
||||
"file": "timeline-chronology.webp",
|
||||
"width": 1280,
|
||||
"bytes": 75876
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "character-records",
|
||||
"route": "/Characters?projectId={id}",
|
||||
"width": 1280,
|
||||
"height": 520,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 520,
|
||||
"sourceViews": [
|
||||
"Characters/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"cast"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d08",
|
||||
"d09",
|
||||
"d13"
|
||||
],
|
||||
"alt": "PlotDirector Characters bringing six cast records together for consistent reference.",
|
||||
"aspect": "1280:520",
|
||||
"masterSha256": "ec66a0d741b57c4ce0eac7593a1817fd0a473cb83426ac0c86e1469c279781f5",
|
||||
"variants": [
|
||||
{
|
||||
"file": "character-records-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 7789
|
||||
},
|
||||
{
|
||||
"file": "character-records-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 11610
|
||||
},
|
||||
{
|
||||
"file": "character-records-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 14342
|
||||
},
|
||||
{
|
||||
"file": "character-records-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 21714
|
||||
},
|
||||
{
|
||||
"file": "character-records.avif",
|
||||
"width": 1280,
|
||||
"bytes": 17531
|
||||
},
|
||||
{
|
||||
"file": "character-records.webp",
|
||||
"width": 1280,
|
||||
"bytes": 31248
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "relationship-map",
|
||||
"route": "/RelationshipMap?projectId={id}&bookId={id}",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 800,
|
||||
"sourceViews": [
|
||||
"RelationshipMap/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"relationships"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d15",
|
||||
"d16",
|
||||
"d17",
|
||||
"d18",
|
||||
"d19",
|
||||
"d20"
|
||||
],
|
||||
"alt": "PlotDirector Relationship Map showing six characters, their connections and relationship details.",
|
||||
"aspect": "1280:800",
|
||||
"masterSha256": "b49675d01f765a86e6c5bd3366c1efb307b4ba672b0f55b82137d1ec9347a554",
|
||||
"variants": [
|
||||
{
|
||||
"file": "relationship-map-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 11736
|
||||
},
|
||||
{
|
||||
"file": "relationship-map-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 18302
|
||||
},
|
||||
{
|
||||
"file": "relationship-map-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 20134
|
||||
},
|
||||
{
|
||||
"file": "relationship-map-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 31426
|
||||
},
|
||||
{
|
||||
"file": "relationship-map.avif",
|
||||
"width": 1280,
|
||||
"bytes": 24992
|
||||
},
|
||||
{
|
||||
"file": "relationship-map.webp",
|
||||
"width": 1280,
|
||||
"bytes": 45264
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "character-knowledge",
|
||||
"route": "/Dynamics/Knowledge/{id}?projectId={id}",
|
||||
"width": 1280,
|
||||
"height": 660,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 660,
|
||||
"sourceViews": [
|
||||
"Dynamics/Knowledge"
|
||||
],
|
||||
"capabilities": [
|
||||
"knowledge"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d21",
|
||||
"d22",
|
||||
"d23",
|
||||
"d24",
|
||||
"d25",
|
||||
"d26"
|
||||
],
|
||||
"alt": "PlotDirector knowledge timeline showing Mara moving from suspicion to confirmed knowledge across scenes.",
|
||||
"aspect": "1280:660",
|
||||
"masterSha256": "0eaef415b71419e07049e6b862245cbc457213ca1138e3cd2bbcf6e2840ad3d6",
|
||||
"variants": [
|
||||
{
|
||||
"file": "character-knowledge-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 11777
|
||||
},
|
||||
{
|
||||
"file": "character-knowledge-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 17538
|
||||
},
|
||||
{
|
||||
"file": "character-knowledge-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 22609
|
||||
},
|
||||
{
|
||||
"file": "character-knowledge-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 33244
|
||||
},
|
||||
{
|
||||
"file": "character-knowledge.avif",
|
||||
"width": 1280,
|
||||
"bytes": 29985
|
||||
},
|
||||
{
|
||||
"file": "character-knowledge.webp",
|
||||
"width": 1280,
|
||||
"bytes": 48582
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "character-arc",
|
||||
"route": "/Dynamics/Character/{id}?projectId={id}",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 800,
|
||||
"sourceViews": [
|
||||
"Dynamics/Character"
|
||||
],
|
||||
"capabilities": [
|
||||
"development"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d46"
|
||||
],
|
||||
"alt": "PlotDirector character arc comparing emotional weight, tension and intensity across Mara’s scenes.",
|
||||
"aspect": "1280:800",
|
||||
"masterSha256": "2ffa01cf2b06651ac2d8e14f00bf04d6af4f8003c6a2278d19ebb79d1b427935",
|
||||
"variants": [
|
||||
{
|
||||
"file": "character-arc-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 16410
|
||||
},
|
||||
{
|
||||
"file": "character-arc-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 26188
|
||||
},
|
||||
{
|
||||
"file": "character-arc-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 27979
|
||||
},
|
||||
{
|
||||
"file": "character-arc-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 44612
|
||||
},
|
||||
{
|
||||
"file": "character-arc.avif",
|
||||
"width": 1280,
|
||||
"bytes": 35362
|
||||
},
|
||||
{
|
||||
"file": "character-arc.webp",
|
||||
"width": 1280,
|
||||
"bytes": 65396
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "location-reference",
|
||||
"route": "/Locations?projectId={id}",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 800,
|
||||
"sourceViews": [
|
||||
"Locations/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"locations"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d39"
|
||||
],
|
||||
"alt": "PlotDirector Locations organising a harbour, pier, archive and beacon in a nested hierarchy.",
|
||||
"aspect": "1280:800",
|
||||
"masterSha256": "359101977d1cb965835c032e941dfe027c33f19088555b9ac8a43b12f698d422",
|
||||
"variants": [
|
||||
{
|
||||
"file": "location-reference-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 7965
|
||||
},
|
||||
{
|
||||
"file": "location-reference-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 12980
|
||||
},
|
||||
{
|
||||
"file": "location-reference-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 13856
|
||||
},
|
||||
{
|
||||
"file": "location-reference-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 21732
|
||||
},
|
||||
{
|
||||
"file": "location-reference.avif",
|
||||
"width": 1280,
|
||||
"bytes": 17116
|
||||
},
|
||||
{
|
||||
"file": "location-reference.webp",
|
||||
"width": 1280,
|
||||
"bytes": 33150
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "object-journey",
|
||||
"route": "/ContinuityExplorer?projectId={id}&mode=Journey&EntityTypes=Assets&assetId={id}&SceneRangeMode=Book&BookID={id}",
|
||||
"width": 1280,
|
||||
"height": 520,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 520,
|
||||
"sourceViews": [
|
||||
"ContinuityExplorer/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"objects"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d40",
|
||||
"d41",
|
||||
"d42"
|
||||
],
|
||||
"alt": "PlotDirector object journey following the sealed letter between recorded locations across scenes.",
|
||||
"aspect": "1280:520",
|
||||
"masterSha256": "5c1b78e798b559ae9fe48fe9a95680b3b00623a5af8a63702a138891ffac50b1",
|
||||
"variants": [
|
||||
{
|
||||
"file": "object-journey-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 8289
|
||||
},
|
||||
{
|
||||
"file": "object-journey-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 12622
|
||||
},
|
||||
{
|
||||
"file": "object-journey-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 14360
|
||||
},
|
||||
{
|
||||
"file": "object-journey-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 23672
|
||||
},
|
||||
{
|
||||
"file": "object-journey.avif",
|
||||
"width": 1280,
|
||||
"bytes": 17380
|
||||
},
|
||||
{
|
||||
"file": "object-journey.webp",
|
||||
"width": 1280,
|
||||
"bytes": 32674
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "timeline-story-values",
|
||||
"route": "/Timeline?projectId={id}&bookId={id}",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 800,
|
||||
"sourceViews": [
|
||||
"Timeline/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"flow"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d43",
|
||||
"d44",
|
||||
"d45",
|
||||
"d47"
|
||||
],
|
||||
"alt": "PlotDirector Timeline graph comparing recorded tension, emotional weight, intensity and action.",
|
||||
"aspect": "1280:800",
|
||||
"masterSha256": "c647da7e010f4c323ff18b30102a8b6cbdbd027ae0f73eae250d17eb925805fe",
|
||||
"variants": [
|
||||
{
|
||||
"file": "timeline-story-values-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 13776
|
||||
},
|
||||
{
|
||||
"file": "timeline-story-values-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 23746
|
||||
},
|
||||
{
|
||||
"file": "timeline-story-values-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 23930
|
||||
},
|
||||
{
|
||||
"file": "timeline-story-values-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 41548
|
||||
},
|
||||
{
|
||||
"file": "timeline-story-values.avif",
|
||||
"width": 1280,
|
||||
"bytes": 28599
|
||||
},
|
||||
{
|
||||
"file": "timeline-story-values.webp",
|
||||
"width": 1280,
|
||||
"bytes": 58486
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "scenario-alternatives",
|
||||
"route": "/Scenarios?projectId={id}",
|
||||
"width": 1280,
|
||||
"height": 420,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 420,
|
||||
"sourceViews": [
|
||||
"Scenarios/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"scenarios"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d37",
|
||||
"d49"
|
||||
],
|
||||
"alt": "PlotDirector Scenarios showing three named alternative arrangements kept separate from the main manuscript.",
|
||||
"aspect": "1280:420",
|
||||
"masterSha256": "5a2f6f3cff579f03f15c88ccacd20b259e38d67a3e168fdfcbd139dee596f4f0",
|
||||
"variants": [
|
||||
{
|
||||
"file": "scenario-alternatives-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 10400
|
||||
},
|
||||
{
|
||||
"file": "scenario-alternatives-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 15504
|
||||
},
|
||||
{
|
||||
"file": "scenario-alternatives-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 18367
|
||||
},
|
||||
{
|
||||
"file": "scenario-alternatives-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 28260
|
||||
},
|
||||
{
|
||||
"file": "scenario-alternatives.avif",
|
||||
"width": 1280,
|
||||
"bytes": 24197
|
||||
},
|
||||
{
|
||||
"file": "scenario-alternatives.webp",
|
||||
"width": 1280,
|
||||
"bytes": 43820
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "continuity-story-state",
|
||||
"route": "/ContinuityExplorer?projectId={id}&sceneId={id}&EntityTypes=Assets&EntityTypes=Characters",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 800,
|
||||
"sourceViews": [
|
||||
"ContinuityExplorer/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"continuity"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d48"
|
||||
],
|
||||
"alt": "PlotDirector Continuity Explorer showing recorded character and object locations at a story position.",
|
||||
"aspect": "1280:800",
|
||||
"masterSha256": "1fee1981e3a0269e26ce97290b10d37adbd24184cc8c91643fb399cc1cb6a4ee",
|
||||
"variants": [
|
||||
{
|
||||
"file": "continuity-story-state-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 14041
|
||||
},
|
||||
{
|
||||
"file": "continuity-story-state-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 21750
|
||||
},
|
||||
{
|
||||
"file": "continuity-story-state-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 24718
|
||||
},
|
||||
{
|
||||
"file": "continuity-story-state-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 39868
|
||||
},
|
||||
{
|
||||
"file": "continuity-story-state.avif",
|
||||
"width": 1280,
|
||||
"bytes": 29449
|
||||
},
|
||||
{
|
||||
"file": "continuity-story-state.webp",
|
||||
"width": 1280,
|
||||
"bytes": 56780
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "series-project",
|
||||
"route": "/Projects/Details/{id}",
|
||||
"width": 1280,
|
||||
"height": 676,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1440,
|
||||
"sourceHeight": 760,
|
||||
"sourceViews": [
|
||||
"Projects/Details"
|
||||
],
|
||||
"capabilities": [
|
||||
"series"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d50"
|
||||
],
|
||||
"alt": "PlotDirector series dashboard showing three ordered books and shared story records.",
|
||||
"aspect": "1280:676",
|
||||
"masterSha256": "4929ae118e6aaab7ef1c7380bcda896d914b367dad36ec724f6d94f6ab5fb7c2",
|
||||
"variants": [
|
||||
{
|
||||
"file": "series-project-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 11704
|
||||
},
|
||||
{
|
||||
"file": "series-project-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 18676
|
||||
},
|
||||
{
|
||||
"file": "series-project-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 21400
|
||||
},
|
||||
{
|
||||
"file": "series-project-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 32906
|
||||
},
|
||||
{
|
||||
"file": "series-project.avif",
|
||||
"width": 1280,
|
||||
"bytes": 32074
|
||||
},
|
||||
{
|
||||
"file": "series-project.webp",
|
||||
"width": 1280,
|
||||
"bytes": 47478
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "story-bible",
|
||||
"route": "/StoryBible?projectId={id}",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 800,
|
||||
"sourceViews": [
|
||||
"StoryBible/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"organisation"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d52"
|
||||
],
|
||||
"alt": "PlotDirector Story Bible linking searchable character records to their scenes, viewpoints and knowledge notes.",
|
||||
"aspect": "1280:800",
|
||||
"masterSha256": "70927dd3db325ced0c8aa489cb81e65c589b203708d61da2ef34ca71407137cf",
|
||||
"variants": [
|
||||
{
|
||||
"file": "story-bible-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 21872
|
||||
},
|
||||
{
|
||||
"file": "story-bible-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 35210
|
||||
},
|
||||
{
|
||||
"file": "story-bible-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 41525
|
||||
},
|
||||
{
|
||||
"file": "story-bible-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 64310
|
||||
},
|
||||
{
|
||||
"file": "story-bible.avif",
|
||||
"width": 1280,
|
||||
"bytes": 54775
|
||||
},
|
||||
{
|
||||
"file": "story-bible.webp",
|
||||
"width": 1280,
|
||||
"bytes": 94090
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"asset": "timeline-scene-overview",
|
||||
"route": "/Timeline?projectId={id}&bookId={id}",
|
||||
"width": 1280,
|
||||
"height": 800,
|
||||
"cropY": 44,
|
||||
"theme": "plotdirector",
|
||||
"presentation": "actual-installed-pwa",
|
||||
"privacyChecked": true,
|
||||
"sourceWidth": 1280,
|
||||
"sourceHeight": 800,
|
||||
"sourceViews": [
|
||||
"Timeline/Index"
|
||||
],
|
||||
"capabilities": [
|
||||
"scenes",
|
||||
"appearances"
|
||||
],
|
||||
"diagnoses": [
|
||||
"d05",
|
||||
"d10",
|
||||
"d11",
|
||||
"d12",
|
||||
"d33",
|
||||
"d34",
|
||||
"d35",
|
||||
"d36"
|
||||
],
|
||||
"alt": "PlotDirector Timeline organising chapters and scene summaries with characters and viewpoints.",
|
||||
"aspect": "1280:800",
|
||||
"masterSha256": "8304bd62b004abc7e24f25e3c61f445715ab27837fbf9b874b1c3955aadb034b",
|
||||
"variants": [
|
||||
{
|
||||
"file": "timeline-scene-overview-640.avif",
|
||||
"width": 640,
|
||||
"bytes": 15537
|
||||
},
|
||||
{
|
||||
"file": "timeline-scene-overview-640.webp",
|
||||
"width": 640,
|
||||
"bytes": 24850
|
||||
},
|
||||
{
|
||||
"file": "timeline-scene-overview-960.avif",
|
||||
"width": 960,
|
||||
"bytes": 29303
|
||||
},
|
||||
{
|
||||
"file": "timeline-scene-overview-960.webp",
|
||||
"width": 960,
|
||||
"bytes": 47054
|
||||
},
|
||||
{
|
||||
"file": "timeline-scene-overview.avif",
|
||||
"width": 1280,
|
||||
"bytes": 37895
|
||||
},
|
||||
{
|
||||
"file": "timeline-scene-overview.webp",
|
||||
"width": 1280,
|
||||
"bytes": 65628
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
82
PlotDirector.Website/Content/pricing.json
Normal file
@ -0,0 +1,82 @@
|
||||
[
|
||||
{
|
||||
"SubscriptionLevelID": 2,
|
||||
"Name": "DraftDesk",
|
||||
"DisplayName": "Draft Desk",
|
||||
"Description": "Trial and evaluation.",
|
||||
"MaxBooks": 2,
|
||||
"MaxChaptersPerBook": 75,
|
||||
"MaxScenesPerBook": 300,
|
||||
"MaxCharactersPerProject": 75,
|
||||
"MaxStorageMB": 100,
|
||||
"MaxCollaborators": 0,
|
||||
"IsActive": true,
|
||||
"SortOrder": 10,
|
||||
"CreatedDateUTC": "2026-07-10T18:29:44.9771574",
|
||||
"ModifiedDateUTC": "2026-07-10T18:29:47.8952077",
|
||||
"RequiresStripeSubscription": false,
|
||||
"MonthlyPricePence": null,
|
||||
"AnnualPricePence": null,
|
||||
"CurrencyCode": "GBP"
|
||||
},
|
||||
{
|
||||
"SubscriptionLevelID": 4,
|
||||
"Name": "WritingRoom",
|
||||
"DisplayName": "Writing Room",
|
||||
"Description": "Standard subscription for most authors.",
|
||||
"MaxBooks": 10,
|
||||
"MaxChaptersPerBook": 150,
|
||||
"MaxScenesPerBook": 1000,
|
||||
"MaxCharactersPerProject": 250,
|
||||
"MaxStorageMB": 1024,
|
||||
"MaxCollaborators": 1,
|
||||
"IsActive": true,
|
||||
"SortOrder": 20,
|
||||
"CreatedDateUTC": "2026-07-10T18:29:44.9771574",
|
||||
"ModifiedDateUTC": "2026-07-10T18:29:47.8952077",
|
||||
"RequiresStripeSubscription": true,
|
||||
"MonthlyPricePence": 499,
|
||||
"AnnualPricePence": 4999,
|
||||
"CurrencyCode": "GBP"
|
||||
},
|
||||
{
|
||||
"SubscriptionLevelID": 3,
|
||||
"Name": "StoryForge",
|
||||
"DisplayName": "Story Forge",
|
||||
"Description": "Professional authors and co-authors.",
|
||||
"MaxBooks": 30,
|
||||
"MaxChaptersPerBook": 200,
|
||||
"MaxScenesPerBook": 2000,
|
||||
"MaxCharactersPerProject": 500,
|
||||
"MaxStorageMB": 5120,
|
||||
"MaxCollaborators": 3,
|
||||
"IsActive": true,
|
||||
"SortOrder": 30,
|
||||
"CreatedDateUTC": "2026-07-10T18:29:44.9771574",
|
||||
"ModifiedDateUTC": "2026-07-10T18:29:47.8952077",
|
||||
"RequiresStripeSubscription": true,
|
||||
"MonthlyPricePence": 799,
|
||||
"AnnualPricePence": 7999,
|
||||
"CurrencyCode": "GBP"
|
||||
},
|
||||
{
|
||||
"SubscriptionLevelID": 1,
|
||||
"Name": "AuthorStudio",
|
||||
"DisplayName": "Author Studio",
|
||||
"Description": "Advanced users and writing teams.",
|
||||
"MaxBooks": 999999,
|
||||
"MaxChaptersPerBook": 999999,
|
||||
"MaxScenesPerBook": 999999,
|
||||
"MaxCharactersPerProject": 999999,
|
||||
"MaxStorageMB": 20480,
|
||||
"MaxCollaborators": 10,
|
||||
"IsActive": true,
|
||||
"SortOrder": 40,
|
||||
"CreatedDateUTC": "2026-07-10T18:29:44.9771574",
|
||||
"ModifiedDateUTC": "2026-07-10T18:29:47.8952077",
|
||||
"RequiresStripeSubscription": true,
|
||||
"MonthlyPricePence": 1299,
|
||||
"AnnualPricePence": 12999,
|
||||
"CurrencyCode": "GBP"
|
||||
}
|
||||
]
|
||||
23546
PlotDirector.Website/Content/solver.json
Normal file
186
PlotDirector.Website/Controllers/HelpController.cs
Normal file
@ -0,0 +1,186 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using PlotDirector.Website.Services;
|
||||
using PlotDirector.Website.ViewModels;
|
||||
using System.Net;
|
||||
|
||||
namespace PlotDirector.Website.Controllers;
|
||||
|
||||
[Route("help")]
|
||||
[AllowAnonymous]
|
||||
public sealed class HelpController(IHelpService help, IHelpMarkdownRenderer markdown, IConfiguration configuration) : Controller
|
||||
{
|
||||
[HttpGet("", Name = PublicRouteNames.Help)]
|
||||
public IActionResult Index(string? q)
|
||||
{
|
||||
if (!IsCanonicalPath("/help"))
|
||||
{
|
||||
return RedirectPermanent(PreserveQuery("/help"));
|
||||
}
|
||||
|
||||
var canonicalUrl = PublicSeo.AbsoluteUrl(configuration, "/help");
|
||||
const string description = "Browse PlotDirector help articles covering projects, books, chapters, scenes, timelines, continuity, characters, locations, and writing tools.";
|
||||
PublicSeo.Apply(ViewData, configuration, new SeoMetadata
|
||||
{
|
||||
Title = "Help Centre",
|
||||
Description = description,
|
||||
Keywords = "PlotDirector help, writing software help, story planning help, novel planning guides",
|
||||
CanonicalPath = "/help",
|
||||
JsonLd =
|
||||
[
|
||||
PublicSeo.JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = "CollectionPage",
|
||||
["name"] = "Help Centre",
|
||||
["url"] = canonicalUrl,
|
||||
["description"] = description
|
||||
}),
|
||||
PublicSeo.BreadcrumbJsonLd(
|
||||
("Help", canonicalUrl))
|
||||
]
|
||||
});
|
||||
var articles = help.GetAllArticles();
|
||||
return View(new HelpCentreIndexViewModel
|
||||
{
|
||||
Query = q,
|
||||
ArticleCount = articles.Count,
|
||||
Categories = help.GetCategories()
|
||||
.Select(category => new HelpCategoryViewModel
|
||||
{
|
||||
CategoryName = category,
|
||||
CategorySlug = HelpService.Slugify(category),
|
||||
ArticleCount = help.GetByCategory(category).Count
|
||||
})
|
||||
.ToList(),
|
||||
SearchResults = string.IsNullOrWhiteSpace(q) ? [] : help.Search(q),
|
||||
RecentArticles = articles.OrderByDescending(x => x.RelativePath).Take(5).ToList()
|
||||
});
|
||||
}
|
||||
|
||||
[HttpGet("{categorySlug}", Name = PublicRouteNames.HelpCategory)]
|
||||
public IActionResult Category(string categorySlug)
|
||||
{
|
||||
var category = help.GetCategoryBySlug(categorySlug);
|
||||
if (category is null)
|
||||
{
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
var canonicalPath = $"/help/{HelpService.Slugify(category)}";
|
||||
if (!IsCanonicalPath(canonicalPath))
|
||||
{
|
||||
return RedirectPermanent(canonicalPath);
|
||||
}
|
||||
|
||||
var articles = help.GetByCategorySlug(categorySlug);
|
||||
var canonicalUrl = PublicSeo.AbsoluteUrl(configuration, canonicalPath);
|
||||
var description = CategoryDescription(category);
|
||||
PublicSeo.Apply(ViewData, configuration, new SeoMetadata
|
||||
{
|
||||
Title = $"{category} Help",
|
||||
Description = description,
|
||||
Keywords = PublicSeo.Keywords([category, "PlotDirector help", "novel planning guides"], articles.SelectMany(article => article.Tags)),
|
||||
CanonicalPath = canonicalPath,
|
||||
JsonLd =
|
||||
[
|
||||
PublicSeo.JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = "CollectionPage",
|
||||
["name"] = $"{category} Help",
|
||||
["url"] = canonicalUrl,
|
||||
["description"] = description
|
||||
}),
|
||||
PublicSeo.BreadcrumbJsonLd(
|
||||
("Help", PublicSeo.AbsoluteUrl(configuration, "/help")),
|
||||
(category, canonicalUrl))
|
||||
]
|
||||
});
|
||||
return View(new HelpCategoryArticlesViewModel
|
||||
{
|
||||
CategoryName = category,
|
||||
CategorySlug = HelpService.Slugify(category),
|
||||
Articles = articles
|
||||
});
|
||||
}
|
||||
|
||||
[HttpGet("{categorySlug}/{articleSlug}", Name = PublicRouteNames.HelpArticle)]
|
||||
public IActionResult Article(string categorySlug, string articleSlug)
|
||||
{
|
||||
var article = help.GetBySlugs(categorySlug, articleSlug);
|
||||
if (article is null)
|
||||
{
|
||||
return View("ArticleNotFound", $"{categorySlug}/{articleSlug}");
|
||||
}
|
||||
|
||||
if (!IsCanonicalPath(article.Url))
|
||||
{
|
||||
return RedirectPermanent(article.Url);
|
||||
}
|
||||
|
||||
var canonicalUrl = PublicSeo.AbsoluteUrl(configuration, article.Url);
|
||||
var description = PublicSeo.HelpArticleDescription(article, help.GetAllArticles());
|
||||
PublicSeo.Apply(ViewData, configuration, new SeoMetadata
|
||||
{
|
||||
Title = article.Title,
|
||||
Description = description,
|
||||
Keywords = PublicSeo.Keywords([article.Category, article.Title, "PlotDirector help"], article.Tags),
|
||||
CanonicalPath = article.Url,
|
||||
OgType = "article",
|
||||
JsonLd =
|
||||
[
|
||||
PublicSeo.JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = "TechArticle",
|
||||
["headline"] = article.Title,
|
||||
["name"] = article.Title,
|
||||
["url"] = canonicalUrl,
|
||||
["description"] = description,
|
||||
["dateModified"] = article.LastModifiedUtc == default ? null : article.LastModifiedUtc.ToString("O")
|
||||
}),
|
||||
PublicSeo.BreadcrumbJsonLd(
|
||||
("Help", PublicSeo.AbsoluteUrl(configuration, "/help")),
|
||||
(article.Category, PublicSeo.AbsoluteUrl(configuration, article.CategoryUrl)),
|
||||
(article.Title, canonicalUrl))
|
||||
]
|
||||
});
|
||||
return View(new HelpCentreArticleViewModel
|
||||
{
|
||||
Article = article,
|
||||
RenderedHtml = markdown.Render(article.MarkdownContent),
|
||||
RelatedArticles = help.GetRelatedArticles(article)
|
||||
});
|
||||
}
|
||||
|
||||
[HttpGet("/Help/Category/{category}")]
|
||||
public IActionResult LegacyCategory(string category)
|
||||
{
|
||||
var articles = help.GetByCategory(WebUtility.UrlDecode(category));
|
||||
var firstArticle = articles.FirstOrDefault();
|
||||
return firstArticle is null
|
||||
? NotFound()
|
||||
: RedirectPermanent(firstArticle.CategoryUrl);
|
||||
}
|
||||
|
||||
[HttpGet("/Help/Article/{key}")]
|
||||
public IActionResult LegacyArticle(string key)
|
||||
{
|
||||
var article = help.GetByContextKey(WebUtility.UrlDecode(key));
|
||||
return article is null
|
||||
? View("ArticleNotFound", key)
|
||||
: RedirectPermanent(article.Url);
|
||||
}
|
||||
|
||||
private bool IsCanonicalPath(string path) =>
|
||||
string.Equals(HttpContext.Request.Path.Value, path, StringComparison.Ordinal);
|
||||
|
||||
private string PreserveQuery(string path) =>
|
||||
string.IsNullOrWhiteSpace(HttpContext.Request.QueryString.Value)
|
||||
? path
|
||||
: $"{path}{HttpContext.Request.QueryString.Value}";
|
||||
|
||||
private static string CategoryDescription(string category) =>
|
||||
$"Find PlotDirector help articles for {category.ToLowerInvariant()}, including practical guidance for organising story details, reviewing continuity, and keeping your novel on track.";
|
||||
}
|
||||
54
PlotDirector.Website/Controllers/HomeController.cs
Normal file
@ -0,0 +1,54 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using PlotDirector.Website.Models;
|
||||
using PlotDirector.Website.Services;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace PlotDirector.Website.Controllers
|
||||
{
|
||||
[AllowAnonymous]
|
||||
public class HomeController(IConfiguration configuration) : Controller
|
||||
{
|
||||
[HttpGet("/", Name = PublicRouteNames.Home)]
|
||||
public IActionResult Index()
|
||||
{
|
||||
const string description = "PlotDirector helps authors organise characters, plot threads, timelines, story assets, relationships, and continuity so they can finish complex novels with confidence.";
|
||||
PublicSeo.Apply(ViewData, configuration, new SeoMetadata
|
||||
{
|
||||
Title = "Novel Planning Software for Authors",
|
||||
Description = description,
|
||||
Keywords = "novel planning software, writing software, story planning app, author tools, plot tracking, character tracking, story timeline, novel organisation, fiction writing software, series writing software, continuity tracking, plot threads, story bible",
|
||||
CanonicalPath = "/",
|
||||
JsonLd =
|
||||
[
|
||||
PublicSeo.JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = "WebSite",
|
||||
["name"] = "PlotDirector",
|
||||
["url"] = PublicSeo.BaseUrl(configuration),
|
||||
["description"] = "Novel planning and story organisation software for authors."
|
||||
}),
|
||||
PublicSeo.JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = "SoftwareApplication",
|
||||
["name"] = "PlotDirector",
|
||||
["applicationCategory"] = "WritingApplication",
|
||||
["operatingSystem"] = "Web",
|
||||
["url"] = PublicSeo.BaseUrl(configuration),
|
||||
["description"] = description
|
||||
}),
|
||||
PublicSeo.WebPageJsonLd(configuration, "WebPage", "PlotDirector", "/", description)
|
||||
]
|
||||
});
|
||||
return View();
|
||||
}
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
public IActionResult Error()
|
||||
{
|
||||
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
namespace PlotDirector.Website.Controllers;
|
||||
|
||||
[AllowAnonymous]
|
||||
public sealed class LegacyProblemSolverController : Controller
|
||||
{
|
||||
// 308 keeps existing POST answers and opaque query state intact in one hop.
|
||||
[Route("/writing-problems/{**path}")]
|
||||
public IActionResult Move()
|
||||
{
|
||||
var suffix = Request.Path.Value!["/writing-problems".Length..];
|
||||
return RedirectPermanentPreserveMethod("/problem-solver" + suffix + Request.QueryString.Value);
|
||||
}
|
||||
}
|
||||
54
PlotDirector.Website/Controllers/PricingController.cs
Normal file
@ -0,0 +1,54 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using PlotDirector.Website.Models;
|
||||
using PlotDirector.Website.Services;
|
||||
using PlotDirector.Website.ViewModels;
|
||||
namespace PlotDirector.Website.Controllers;
|
||||
public sealed class PricingController(IConfiguration configuration, IWebHostEnvironment environment) : Controller
|
||||
{
|
||||
[HttpGet("/pricing", Name=PublicRouteNames.Pricing)]
|
||||
public IActionResult Index()
|
||||
{
|
||||
const string description = "Compare PlotDirector plans and choose the right subscription for organising your novel, series, characters, plot threads, timelines, and story details.";
|
||||
PublicSeo.Apply(ViewData, configuration, new SeoMetadata
|
||||
{
|
||||
Title = "Pricing",
|
||||
Description = description,
|
||||
Keywords = "PlotDirector pricing, novel planning software pricing, writing software plans, author tools subscription",
|
||||
CanonicalPath = "/pricing",
|
||||
JsonLd =
|
||||
[
|
||||
PublicSeo.WebPageJsonLd(configuration, "WebPage", "Pricing", "/pricing", description),
|
||||
PublicSeo.JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = "FAQPage",
|
||||
["mainEntity"] = new[]
|
||||
{
|
||||
new Dictionary<string, object?>
|
||||
{
|
||||
["@type"] = "Question",
|
||||
["name"] = "Can I start with a free trial?",
|
||||
["acceptedAnswer"] = new Dictionary<string, object?>
|
||||
{
|
||||
["@type"] = "Answer",
|
||||
["text"] = "Yes. Creating an account starts a 30-day Draft Desk trial immediately."
|
||||
}
|
||||
},
|
||||
new Dictionary<string, object?>
|
||||
{
|
||||
["@type"] = "Question",
|
||||
["name"] = "Do I need a credit card for the trial?",
|
||||
["acceptedAnswer"] = new Dictionary<string, object?>
|
||||
{
|
||||
["@type"] = "Answer",
|
||||
["text"] = "No. Payment details are not required for the free trial."
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
]
|
||||
});
|
||||
|
||||
return View(new PricingViewModel { Plans = System.Text.Json.JsonSerializer.Deserialize<List<SubscriptionLevel>>(System.IO.File.ReadAllText(System.IO.Path.Combine(environment.ContentRootPath,"Content/pricing.json")))! });
|
||||
}
|
||||
}
|
||||
145
PlotDirector.Website/Controllers/PublicController.cs
Normal file
@ -0,0 +1,145 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using PlotDirector.Website.Services;
|
||||
using PlotDirector.Website.ViewModels;
|
||||
|
||||
namespace PlotDirector.Website.Controllers;
|
||||
|
||||
[AllowAnonymous]
|
||||
[Route("")]
|
||||
public sealed class PublicController(IConfiguration configuration) : Controller
|
||||
{
|
||||
private const string SupportEmail = "hello@plotdirector.com";
|
||||
private const string PolicyDate = "June 24, 2026";
|
||||
private const string Keywords = "novel planning software, writing software, story planning app, author tools, plot tracking, character tracking, story timeline, novel organisation, fiction writing software, series writing software, continuity tracking, plot threads, story bible";
|
||||
private const string FeaturesDescription = "Explore PlotDirector's features for novel planning, story timelines, character tracking, continuity management, scene organisation, writing schedules, story bibles, floor plans and Microsoft Word integration.";
|
||||
private const string FeaturesKeywords = "novel planning software, story planning software, writing software, book planning tool, story timeline software, character tracking software, continuity software for writers, story bible software, novel writing app, manuscript planning software, plot tracking software, character relationship map, story structure software, writing schedule planner, Microsoft Word writing companion, series bible software, worldbuilding software, fiction writing software, author tools";
|
||||
|
||||
[HttpGet("features", Name = PublicRouteNames.Features)]
|
||||
public IActionResult Features()
|
||||
{
|
||||
var featuresUrl = PublicSeo.AbsoluteUrl(configuration, "/features");
|
||||
var homeUrl = PublicSeo.AbsoluteUrl(configuration, "/");
|
||||
var pricingUrl = PublicSeo.AbsoluteUrl(configuration, "/pricing");
|
||||
PublicSeo.Apply(ViewData, configuration, new SeoMetadata
|
||||
{
|
||||
Title = "PlotDirector Tour | Novel Planning, Continuity & Story Writing Software",
|
||||
Description = FeaturesDescription,
|
||||
Keywords = FeaturesKeywords,
|
||||
CanonicalPath = "/features",
|
||||
OgTitle = "PlotDirector Tour | Plan, Write and Manage Your Story",
|
||||
OgDescription = "Discover the connected story planning tools inside PlotDirector, including timelines, scene management, characters, relationships, continuity tracking, story health, floor plans, exports and Word integration.",
|
||||
OgType = "website",
|
||||
OgImage = PublicSeo.AbsoluteUrl(configuration, "/images/public/workspace.jpg"),
|
||||
TwitterCard = "summary_large_image",
|
||||
JsonLd =
|
||||
[
|
||||
PublicSeo.JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = "WebPage",
|
||||
["name"] = "PlotDirector Tour",
|
||||
["description"] = FeaturesDescription,
|
||||
["url"] = featuresUrl,
|
||||
["isPartOf"] = new Dictionary<string, object?>
|
||||
{
|
||||
["@type"] = "WebSite",
|
||||
["name"] = "PlotDirector",
|
||||
["url"] = homeUrl
|
||||
}
|
||||
}),
|
||||
PublicSeo.JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = "SoftwareApplication",
|
||||
["name"] = "PlotDirector",
|
||||
["applicationCategory"] = "WritingApplication",
|
||||
["operatingSystem"] = "Web",
|
||||
["description"] = "PlotDirector is story planning and writing software for authors, helping writers manage novels, characters, timelines, continuity, story bibles, floor plans, writing schedules and Microsoft Word integration.",
|
||||
["url"] = homeUrl,
|
||||
["offers"] = new Dictionary<string, object?>
|
||||
{
|
||||
["@type"] = "Offer",
|
||||
["url"] = pricingUrl
|
||||
}
|
||||
}),
|
||||
PublicSeo.BreadcrumbJsonLd(
|
||||
("Home", homeUrl),
|
||||
("Tour", featuresUrl))
|
||||
]
|
||||
});
|
||||
ViewData["SeoTitle"] = "PlotDirector Tour | Novel Planning, Continuity & Story Writing Software";
|
||||
ViewData["OgTitle"] = "PlotDirector Tour | Plan, Write and Manage Your Story";
|
||||
|
||||
return View();
|
||||
}
|
||||
|
||||
[HttpGet("about", Name = PublicRouteNames.About)]
|
||||
public IActionResult About()
|
||||
{
|
||||
SetSeo(
|
||||
"About",
|
||||
"Learn why PlotDirector was created by a novelist to help writers organise complex stories, manage continuity, and finish their books with confidence.",
|
||||
"/about",
|
||||
"AboutPage",
|
||||
"About PlotDirector");
|
||||
return View(CreateModel());
|
||||
}
|
||||
|
||||
[HttpGet("contact", Name = PublicRouteNames.Contact)]
|
||||
public IActionResult Contact()
|
||||
{
|
||||
SetSeo(
|
||||
"Contact",
|
||||
"Contact PlotDirector for support, questions, feedback, or feature suggestions about our novel planning and story organisation platform.",
|
||||
"/contact",
|
||||
"ContactPage",
|
||||
"Contact PlotDirector");
|
||||
return View(CreateModel());
|
||||
}
|
||||
|
||||
[HttpGet("privacy", Name = PublicRouteNames.Privacy)]
|
||||
public IActionResult Privacy()
|
||||
{
|
||||
SetSeo(
|
||||
"Privacy Policy",
|
||||
"Read the PlotDirector Privacy Policy to learn how we protect your account information, subscription data, and story content.",
|
||||
"/privacy",
|
||||
"PrivacyPolicy",
|
||||
"Privacy Policy");
|
||||
return View(CreateModel());
|
||||
}
|
||||
|
||||
[HttpGet("terms", Name = PublicRouteNames.Terms)]
|
||||
public IActionResult Terms()
|
||||
{
|
||||
SetSeo(
|
||||
"Terms of Service",
|
||||
"Read the PlotDirector Terms of Service for information about subscriptions, user content, acceptable use, and account responsibilities.",
|
||||
"/terms",
|
||||
"WebPage",
|
||||
"Terms of Service");
|
||||
return View(CreateModel());
|
||||
}
|
||||
|
||||
private void SetSeo(string title, string description, string path, string schemaType, string pageName)
|
||||
{
|
||||
PublicSeo.Apply(ViewData, configuration, new SeoMetadata
|
||||
{
|
||||
Title = title,
|
||||
Description = description,
|
||||
Keywords = Keywords,
|
||||
CanonicalPath = path,
|
||||
JsonLd =
|
||||
[
|
||||
PublicSeo.WebPageJsonLd(configuration, schemaType, pageName, path, description)
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
private static PublicPageViewModel CreateModel() => new()
|
||||
{
|
||||
SupportEmail = SupportEmail,
|
||||
LastUpdated = PolicyDate
|
||||
};
|
||||
}
|
||||
104
PlotDirector.Website/Controllers/SitemapController.cs
Normal file
@ -0,0 +1,104 @@
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using PlotDirector.Website.Models;
|
||||
using PlotDirector.Website.Services;
|
||||
|
||||
namespace PlotDirector.Website.Controllers;
|
||||
|
||||
[AllowAnonymous]
|
||||
public sealed class SitemapController(IHelpService help, IConfiguration configuration, PlotDirector.Website.Data.IWritingSolverRepository solver, WritingProblemEditorial? editorial = null) : Controller
|
||||
{
|
||||
[HttpGet("/sitemap.xml")]
|
||||
public async Task<IActionResult> Index()
|
||||
{
|
||||
var urls = new List<SitemapUrl>
|
||||
{
|
||||
new("/", "weekly", "1.0"),
|
||||
new("/features", "weekly", "0.9"),
|
||||
new("/pricing", "weekly", "0.8"),
|
||||
new("/help", "weekly", "0.7"),
|
||||
new("/about", "monthly", "0.6"),
|
||||
new("/contact", "monthly", "0.5"),
|
||||
new("/privacy", "yearly", "0.3"),
|
||||
new("/terms", "yearly", "0.3")
|
||||
};
|
||||
|
||||
if (configuration.GetValue("WritingSolver:EnableIndexing", true))
|
||||
{
|
||||
var graph = await solver.GetAsync();
|
||||
urls.Add(new("/problem-solver", "monthly", "0.8"));
|
||||
if(editorial is not null)
|
||||
{
|
||||
urls.Add(new("/problem-solver/browse", "monthly", "0.7"));
|
||||
urls.AddRange(editorial.Catalog.Areas.Select(a=>new SitemapUrl("/problem-solver/browse/"+a.Id,"monthly","0.6")));
|
||||
}
|
||||
urls.AddRange(graph.Solutions.Where(p => p.Active && p.Index).Select(p => new SitemapUrl($"/problem-solver/{p.Slug}", "monthly", "0.7")));
|
||||
urls.AddRange(graph.Features.Where(p => p.Active && p.Index).Select(p => new SitemapUrl($"/features/{p.Slug}", "monthly", "0.7")));
|
||||
}
|
||||
|
||||
var articles = help.GetAllArticles();
|
||||
urls.AddRange(articles
|
||||
.Where(article => !string.IsNullOrWhiteSpace(article.CategorySlug))
|
||||
.GroupBy(article => article.CategorySlug, StringComparer.OrdinalIgnoreCase)
|
||||
.OrderBy(group => group.Key, StringComparer.OrdinalIgnoreCase)
|
||||
.Select(group => new SitemapUrl(
|
||||
$"/help/{group.Key}",
|
||||
"monthly",
|
||||
"0.6",
|
||||
group.Max(article => article.LastModifiedUtc))));
|
||||
|
||||
urls.AddRange(articles
|
||||
.Where(article => !string.IsNullOrWhiteSpace(article.CategorySlug) && !string.IsNullOrWhiteSpace(article.Slug))
|
||||
.OrderBy(article => article.CategorySlug, StringComparer.OrdinalIgnoreCase)
|
||||
.ThenBy(article => article.Slug, StringComparer.OrdinalIgnoreCase)
|
||||
.Select(article => new SitemapUrl(
|
||||
article.Url,
|
||||
"monthly",
|
||||
"0.5",
|
||||
article.LastModifiedUtc)));
|
||||
|
||||
return Content(BuildXml(urls), "application/xml", Encoding.UTF8);
|
||||
}
|
||||
|
||||
private string BuildXml(IEnumerable<SitemapUrl> urls)
|
||||
{
|
||||
var settings = new XmlWriterSettings
|
||||
{
|
||||
Encoding = new UTF8Encoding(false),
|
||||
Indent = true,
|
||||
OmitXmlDeclaration = false
|
||||
};
|
||||
using var writer = new Utf8StringWriter();
|
||||
using var xml = XmlWriter.Create(writer, settings);
|
||||
xml.WriteStartDocument();
|
||||
xml.WriteStartElement("urlset", "http://www.sitemaps.org/schemas/sitemap/0.9");
|
||||
|
||||
foreach (var url in urls)
|
||||
{
|
||||
xml.WriteStartElement("url");
|
||||
xml.WriteElementString("loc", PublicSeo.AbsoluteUrl(configuration, url.Path));
|
||||
if (url.LastModifiedUtc is DateTime lastModifiedUtc && lastModifiedUtc != default)
|
||||
{
|
||||
xml.WriteElementString("lastmod", lastModifiedUtc.ToString("yyyy-MM-dd"));
|
||||
}
|
||||
|
||||
xml.WriteElementString("changefreq", url.ChangeFrequency);
|
||||
xml.WriteElementString("priority", url.Priority);
|
||||
xml.WriteEndElement();
|
||||
}
|
||||
|
||||
xml.WriteEndElement();
|
||||
xml.WriteEndDocument();
|
||||
xml.Flush();
|
||||
return writer.ToString();
|
||||
}
|
||||
|
||||
private sealed record SitemapUrl(string Path, string ChangeFrequency, string Priority, DateTime? LastModifiedUtc = null);
|
||||
|
||||
private sealed class Utf8StringWriter : StringWriter
|
||||
{
|
||||
public override Encoding Encoding => Encoding.UTF8;
|
||||
}
|
||||
}
|
||||
115
PlotDirector.Website/Controllers/WritingProblemsController.cs
Normal file
@ -0,0 +1,115 @@
|
||||
using System.Security.Cryptography;
|
||||
using System.Text.Json;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using PlotDirector.Website.Data;
|
||||
using PlotDirector.Website.Models.WritingSolver;
|
||||
using PlotDirector.Website.Services;
|
||||
namespace PlotDirector.Website.Controllers;
|
||||
|
||||
[AllowAnonymous]
|
||||
public sealed class WritingProblemsController(IWritingSolverRepository repository, IDataProtectionProvider protection, IConfiguration configuration, WritingSolverResultContext resultContext, WritingProblemEditorial? editorial = null) : Controller
|
||||
{
|
||||
private readonly ITimeLimitedDataProtector protector = protection.CreateProtector("WritingSolver.history.v1").ToTimeLimitedDataProtector();
|
||||
private sealed record History(string Version, List<SolverAnswer> Answers);
|
||||
private string Encode(SolverGraph graph, IEnumerable<SolverAnswer> answers) => protector.Protect(JsonSerializer.Serialize(new History(graph.Version, answers.ToList())), TimeSpan.FromHours(2));
|
||||
private List<SolverAnswer> Decode(SolverGraph graph, string? state)
|
||||
{
|
||||
if (string.IsNullOrEmpty(state)) return [];
|
||||
if (state.Length > 16000) throw new InvalidDataException("History too large.");
|
||||
var history = JsonSerializer.Deserialize<History>(protector.Unprotect(state, out _));
|
||||
if (history is null || history.Version != graph.Version) throw new InvalidDataException("The question collection has changed. Please begin again.");
|
||||
return history.Answers;
|
||||
}
|
||||
[HttpGet("/problem-solver")]
|
||||
public async Task<IActionResult> Index(string? state = null, bool choose = false)
|
||||
{
|
||||
Response.Headers.CacheControl = "no-store";
|
||||
Response.Headers["Referrer-Policy"] = "no-referrer";
|
||||
var graph = await repository.GetAsync();
|
||||
List<SolverAnswer> history = [];
|
||||
string? error = choose ? "Choose an answer to continue, keeping to the number shown in the question. Use Something else on its own if the other answers don’t fit." : null;
|
||||
try { history = Decode(graph,state); }
|
||||
catch (Exception ex) when (ex is CryptographicException or JsonException or InvalidDataException)
|
||||
{ error = "Your previous conversation has expired or changed. Let’s start afresh."; }
|
||||
var outcome = WritingSolverEngine.Evaluate(graph,history);
|
||||
if (state is not null || choose) Response.Headers["X-Robots-Tag"] = "noindex, follow";
|
||||
if (Complete(graph, outcome) is {} completed) return completed;
|
||||
SetSeo("The Problem Solver", "Tell us what’s making your novel complicated and find a practical way to untangle it.", "/problem-solver", state is null && !choose);
|
||||
ViewData["BackState"] = outcome.Answers.Count > 0 ? Encode(graph,outcome.Answers.Take(outcome.Answers.Count-1)) : null;
|
||||
return View(new SolverJourney(graph,outcome,Encode(graph,outcome.Answers),error));
|
||||
}
|
||||
[HttpPost("/problem-solver/answer")]
|
||||
[ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> Answer(string state, string node, string[] choices)
|
||||
{
|
||||
var graph = await repository.GetAsync();
|
||||
try
|
||||
{
|
||||
var history = Decode(graph,state);
|
||||
var before = WritingSolverEngine.Evaluate(graph,history);
|
||||
if (before.Next?.Id != node) return BadRequest("That question is no longer current. Go back and try again.");
|
||||
history.Add(new(node, choices));
|
||||
var after = WritingSolverEngine.Evaluate(graph,history);
|
||||
if (after.Answers.Count != history.Count) return RedirectToAction(nameof(Index), new { state, choose = true });
|
||||
if (Complete(graph, after) is {} completed) return completed;
|
||||
return RedirectToAction(nameof(Index), new { state = Encode(graph, after.Answers) });
|
||||
}
|
||||
catch (Exception ex) when (ex is CryptographicException or JsonException or InvalidDataException)
|
||||
{ return RedirectToAction(nameof(Index)); }
|
||||
}
|
||||
private IActionResult? Complete(SolverGraph graph, SolverOutcome outcome)
|
||||
{
|
||||
if (outcome.Next is not null || outcome.Reassurance is not null || outcome.Solutions.FirstOrDefault() is not {} solution) return null;
|
||||
resultContext.Save(HttpContext, graph, outcome, solution.Slug);
|
||||
return RedirectToAction(nameof(Solution), new { slug = solution.Slug });
|
||||
}
|
||||
[HttpGet("/problem-solver/browse")]
|
||||
[HttpGet("/problem-solver/browse/{problemArea}")]
|
||||
public async Task<IActionResult> Browse(string? problemArea=null)
|
||||
{
|
||||
if(editorial is null)return NotFound();
|
||||
var group=problemArea is null?null:editorial.Catalog.Areas.FirstOrDefault(a=>a.Id==problemArea);
|
||||
if(problemArea is not null && group is null)return NotFound();
|
||||
var path="/problem-solver/browse"+(group is null?"":"/"+group.Id);
|
||||
SetSeo(group is null?"Browse writing problems":group.Title+" writing problems",group?.Description??"Explore writing problems by area, with practical ways to recognise and inspect them.",path,true);
|
||||
return View("Browse",new WritingProblemBrowse(await repository.GetAsync(),editorial.Catalog,group));
|
||||
}
|
||||
[HttpGet("/problem-solver/{slug}")]
|
||||
public async Task<IActionResult> Solution(string slug) => await Page(slug,false);
|
||||
[HttpGet("/features/{slug}")]
|
||||
public async Task<IActionResult> Feature(string slug) => await Page(slug,true);
|
||||
private async Task<IActionResult> Page(string slug,bool feature)
|
||||
{
|
||||
var graph = await repository.GetAsync();
|
||||
SolverPage? page = feature ? graph.Features.FirstOrDefault(p => p.Active && p.Slug == slug) : graph.Solutions.FirstOrDefault(p => p.Active && p.Slug == slug);
|
||||
if (page is null) return NotFound();
|
||||
var article=feature?null:editorial?.Find(page.Id);
|
||||
SetSeo(article?.Title??page.PageTitle,article?.Description??page.Description,$"/{(feature ? "features" : "problem-solver")}/{page.Slug}",page.Index,page.SocialImage);
|
||||
SolverJourney? journey = null;
|
||||
if (!feature)
|
||||
{
|
||||
Response.Headers.CacheControl = "private, no-store";
|
||||
Response.Headers.Vary = "Cookie";
|
||||
Response.Headers["Referrer-Policy"] = "no-referrer";
|
||||
if (resultContext.Read(HttpContext, graph, slug) is {} outcome)
|
||||
{
|
||||
journey = new(graph, outcome, Encode(graph, outcome.Answers));
|
||||
ViewData["BackState"] = Encode(graph, outcome.Answers.Take(outcome.Answers.Count - 1));
|
||||
}
|
||||
}
|
||||
return View("Page",new SolverPageView(graph,page,feature,journey));
|
||||
}
|
||||
private void SetSeo(string title,string description,string path,bool index,string? image=null)
|
||||
{
|
||||
index = index && configuration.GetValue("WritingSolver:EnableIndexing", true);
|
||||
if (!index) Response.Headers["X-Robots-Tag"] = "noindex, follow";
|
||||
ViewData["Robots"] = index ? "index, follow" : "noindex, follow";
|
||||
PublicSeo.Apply(ViewData,configuration,new SeoMetadata
|
||||
{
|
||||
Title=title, Description=description, CanonicalPath=path, OgImage=image,
|
||||
JsonLd=[PublicSeo.WebPageJsonLd(configuration,"WebPage",title,path,description)]
|
||||
});
|
||||
}
|
||||
}
|
||||
24
PlotDirector.Website/Data/WritingSolverRepository.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using PlotDirector.Website.Models.WritingSolver;
|
||||
using PlotDirector.Website.Services;
|
||||
namespace PlotDirector.Website.Data;
|
||||
public interface IWritingSolverRepository { Task<SolverGraph> GetAsync(); }
|
||||
public sealed class WritingSolverRepository(IWebHostEnvironment environment) : IWritingSolverRepository
|
||||
{
|
||||
public static readonly JsonSerializerOptions JsonOptions = new(JsonSerializerDefaults.Web)
|
||||
{
|
||||
UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow,
|
||||
RespectNullableAnnotations = true,
|
||||
WriteIndented = true
|
||||
};
|
||||
public static SolverGraph Parse(string json)
|
||||
{
|
||||
var graph = JsonSerializer.Deserialize<SolverGraph>(json, JsonOptions) ?? throw new InvalidDataException("Empty graph.");
|
||||
var errors = WritingSolverValidator.Validate(graph);
|
||||
if (errors.Count > 0) throw new InvalidDataException(string.Join("\n", errors));
|
||||
return graph;
|
||||
}
|
||||
private SolverGraph? graph;
|
||||
public Task<SolverGraph> GetAsync() => Task.FromResult(graph ??= Parse(File.ReadAllText(Path.Combine(environment.ContentRootPath,"Content/solver.json"))));
|
||||
}
|
||||
1
PlotDirector.Website/Help/assets/.gitkeep
Normal file
@ -0,0 +1 @@
|
||||
|
||||
10
PlotDirector.Website/Help/manifest.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"format": 1,
|
||||
"sourceCommit": "3b391ca876f225aa3a29d0dce8d872a2d69df996",
|
||||
"channel": "Production",
|
||||
"version": "2026.11.27-baseline",
|
||||
"files": {
|
||||
"articles.json": "3b9d8c915f5ed9f10dc5c862ff5431a97254f8fa41620032bf9d51c9539f14df",
|
||||
"assets/.gitkeep": "01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b"
|
||||
}
|
||||
}
|
||||
9713
PlotDirector.Website/Help/published/articles.json
Normal file
9
PlotDirector.Website/Models/ErrorViewModel.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace PlotDirector.Website.Models
|
||||
{
|
||||
public class ErrorViewModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
}
|
||||
30
PlotDirector.Website/Models/HelpModels.cs
Normal file
@ -0,0 +1,30 @@
|
||||
namespace PlotDirector.Website.Models;
|
||||
|
||||
public sealed class HelpArticle
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string Category { get; set; } = string.Empty;
|
||||
public string CategorySlug { get; set; } = string.Empty;
|
||||
public IReadOnlyList<string> Tags { get; set; } = [];
|
||||
public string ContextKey { get; set; } = string.Empty;
|
||||
public string Slug { get; set; } = string.Empty;
|
||||
public string Micro { get; set; } = string.Empty;
|
||||
public string QuickTitle { get; set; } = string.Empty;
|
||||
public string QuickSummary { get; set; } = string.Empty;
|
||||
public string Screenshot { get; set; } = string.Empty;
|
||||
public string MarkdownContent { get; set; } = string.Empty;
|
||||
public string RelativePath { get; set; } = string.Empty;
|
||||
public DateTime LastModifiedUtc { get; set; }
|
||||
public IReadOnlyList<string> ValidationIssues { get; set; } = [];
|
||||
public string CategoryUrl => $"/help/{CategorySlug}";
|
||||
public string Url => $"/help/{CategorySlug}/{Slug}";
|
||||
public bool IsValid => ValidationIssues.Count == 0;
|
||||
}
|
||||
|
||||
public sealed class HelpCoverageItem
|
||||
{
|
||||
public string ContextKey { get; set; } = string.Empty;
|
||||
public string FilePath { get; set; } = string.Empty;
|
||||
public bool IsValid { get; set; }
|
||||
public IReadOnlyList<string> ValidationIssues { get; set; } = [];
|
||||
}
|
||||
28
PlotDirector.Website/Models/PublicModels.cs
Normal file
@ -0,0 +1,28 @@
|
||||
namespace PlotDirector.Website.Models;
|
||||
|
||||
|
||||
public sealed class SubscriptionLevel
|
||||
{
|
||||
public int SubscriptionLevelID { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public string DisplayName { get; set; } = string.Empty;
|
||||
public string? Description { get; set; }
|
||||
public int MaxBooks { get; set; }
|
||||
public int MaxChaptersPerBook { get; set; }
|
||||
public int MaxScenesPerBook { get; set; }
|
||||
public int MaxCharactersPerProject { get; set; }
|
||||
public int MaxStorageMB { get; set; }
|
||||
public int MaxCollaborators { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public int SortOrder { get; set; }
|
||||
public DateTime CreatedDateUTC { get; set; }
|
||||
public DateTime ModifiedDateUTC { get; set; }
|
||||
public string? StripeMonthlyPriceId { get; set; }
|
||||
public string? StripeAnnualPriceId { get; set; }
|
||||
public bool RequiresStripeSubscription { get; set; }
|
||||
public string? BillingInterval { get; set; }
|
||||
public int? MonthlyPricePence { get; set; }
|
||||
public int? AnnualPricePence { get; set; }
|
||||
public string CurrencyCode { get; set; } = "GBP";
|
||||
}
|
||||
|
||||
104
PlotDirector.Website/Models/WritingSolver/SolverGraph.cs
Normal file
@ -0,0 +1,104 @@
|
||||
namespace PlotDirector.Website.Models.WritingSolver;
|
||||
|
||||
// Stable string IDs make editorial imports diffable. Published versions are immutable.
|
||||
public sealed class SolverGraph
|
||||
{
|
||||
public int SchemaVersion { get; set; } = 1;
|
||||
public string Version { get; set; } = "";
|
||||
public string ChangeNote { get; set; } = "";
|
||||
public bool IsDemo { get; set; }
|
||||
public bool RequireCorroboratedResults { get; set; }
|
||||
public int MinAnswers { get; set; } = 3;
|
||||
public int MaxAnswers { get; set; } = 6;
|
||||
public string EntryNode { get; set; } = "";
|
||||
public List<SolverNode> Nodes { get; set; } = [];
|
||||
public List<SolverSolution> Solutions { get; set; } = [];
|
||||
public List<SolverFeature> Features { get; set; } = [];
|
||||
}
|
||||
public sealed class SolverNode
|
||||
{
|
||||
public string Id { get; set; } = "";
|
||||
public string Type { get; set; } = "question";
|
||||
public string Title { get; set; } = "";
|
||||
public string Help { get; set; } = "";
|
||||
public bool Active { get; set; } = true;
|
||||
public bool Multiple { get; set; }
|
||||
public int MaxChoices { get; set; }
|
||||
public bool NeutralEndpoint { get; set; }
|
||||
public bool RequireAnswer { get; set; }
|
||||
public bool AllowNeutralChoices { get; set; }
|
||||
public SolverReassurance? Reassurance { get; set; }
|
||||
public int Order { get; set; }
|
||||
public Dictionary<string,int> Affinity { get; set; } = [];
|
||||
public List<SolverChoice> Choices { get; set; } = [];
|
||||
public List<SolverRoute> Routes { get; set; } = [];
|
||||
}
|
||||
public sealed class SolverChoice
|
||||
{
|
||||
public string Id { get; set; } = "";
|
||||
public string Text { get; set; } = "";
|
||||
public string Help { get; set; } = "";
|
||||
public string Icon { get; set; } = "book";
|
||||
public bool Active { get; set; } = true;
|
||||
public bool Fallback { get; set; }
|
||||
public int Order { get; set; }
|
||||
public Dictionary<string,int> Weights { get; set; } = [];
|
||||
public SolverReassurance? Reassurance { get; set; }
|
||||
}
|
||||
public sealed class SolverReassurance
|
||||
{
|
||||
public string Title { get; set; } = "";
|
||||
public string Summary { get; set; } = "";
|
||||
public List<string> Advice { get; set; } = [];
|
||||
public string? Feature { get; set; }
|
||||
}
|
||||
public sealed class SolverRoute
|
||||
{
|
||||
public string Target { get; set; } = "";
|
||||
public string? Choice { get; set; }
|
||||
public string? Signal { get; set; }
|
||||
public int Minimum { get; set; }
|
||||
public int FromAnswers { get; set; }
|
||||
public int BeforeAnswers { get; set; }
|
||||
public int Priority { get; set; }
|
||||
public bool AllowCycle { get; set; }
|
||||
}
|
||||
public class SolverPage
|
||||
{
|
||||
public string Id { get; set; } = "";
|
||||
public string Slug { get; set; } = "";
|
||||
public string Title { get; set; } = "";
|
||||
public string PageTitle { get; set; } = "";
|
||||
public string Description { get; set; } = "";
|
||||
public string Summary { get; set; } = "";
|
||||
public string Content { get; set; } = "";
|
||||
public List<string> Questions { get; set; } = [];
|
||||
public List<string> SearchIntents { get; set; } = [];
|
||||
public bool Active { get; set; } = true;
|
||||
public bool Index { get; set; }
|
||||
public int Order { get; set; }
|
||||
public string? SocialImage { get; set; }
|
||||
}
|
||||
public sealed class SolverSolution : SolverPage
|
||||
{
|
||||
public Dictionary<string,int> Signals { get; set; } = [];
|
||||
public int Threshold { get; set; } = 3;
|
||||
public Dictionary<string,int> RequiredSignals { get; set; } = [];
|
||||
public string Principle { get; set; } = "";
|
||||
public List<SolverFeatureLink> Features { get; set; } = [];
|
||||
public List<string> Related { get; set; } = [];
|
||||
}
|
||||
public sealed class SolverFeature : SolverPage
|
||||
{
|
||||
public string? Screenshot { get; set; }
|
||||
}
|
||||
public sealed class SolverFeatureLink
|
||||
{
|
||||
public string Feature { get; set; } = "";
|
||||
public bool Primary { get; set; }
|
||||
public string Reason { get; set; } = "";
|
||||
}
|
||||
public sealed record SolverAnswer(string Node, string[] Choices);
|
||||
public sealed record SolverOutcome(SolverNode? Next, IReadOnlyList<SolverSolution> Solutions, IReadOnlyDictionary<string,int> Scores, IReadOnlyList<SolverAnswer> Answers, SolverReassurance? Reassurance = null);
|
||||
public sealed record SolverJourney(SolverGraph Graph, SolverOutcome Outcome, string History, string? Error = null);
|
||||
public sealed record SolverPageView(SolverGraph Graph, SolverPage Page, bool IsFeature, SolverJourney? Journey = null);
|
||||
@ -0,0 +1,48 @@
|
||||
namespace PlotDirector.Website.Models.WritingSolver;
|
||||
|
||||
public sealed class SolverResultCatalog
|
||||
{
|
||||
public List<SolverCapability> Capabilities { get; set; } = [];
|
||||
public List<SolverResultContent> Results { get; set; } = [];
|
||||
public List<SolverEvidenceCopy> Evidence { get; set; } = [];
|
||||
}
|
||||
public sealed class SolverCapability
|
||||
{
|
||||
public string Id { get; set; } = "";
|
||||
public string Feature { get; set; } = "";
|
||||
public string Name { get; set; } = "";
|
||||
public string Shows { get; set; } = "";
|
||||
public string Tour { get; set; } = "";
|
||||
public string WorkspaceRoute { get; set; } = "";
|
||||
public string CaptureView { get; set; } = "";
|
||||
public string Asset { get; set; } = "";
|
||||
public string Capture { get; set; } = "";
|
||||
public string PreviewCaption { get; set; } = "";
|
||||
public string? Image { get; set; }
|
||||
public string ImageAlt { get; set; } = "";
|
||||
public int ImageWidth { get; set; } = 1280;
|
||||
public int ImageHeight { get; set; } = 800;
|
||||
}
|
||||
public sealed class SolverResultContent
|
||||
{
|
||||
public string Solution { get; set; } = "";
|
||||
public string Capability { get; set; } = "";
|
||||
public string Explanation { get; set; } = "";
|
||||
public string Reason { get; set; } = "";
|
||||
public string LookFor { get; set; } = "";
|
||||
public string? Principle { get; set; }
|
||||
public string? Secondary { get; set; }
|
||||
public string? SecondaryReason { get; set; }
|
||||
public string? ArticleKey { get; set; }
|
||||
}
|
||||
public sealed class SolverEvidenceCopy
|
||||
{
|
||||
public string Node { get; set; } = "";
|
||||
public string Choice { get; set; } = "";
|
||||
public List<string> Solutions { get; set; } = [];
|
||||
public string Text { get; set; } = "";
|
||||
public int Priority { get; set; }
|
||||
}
|
||||
public sealed record SolverDiagnosticPresentation(SolverSolution Solution,SolverResultContent Content,SolverCapability Capability,
|
||||
IReadOnlyList<string> Evidence,IReadOnlyList<SolverSupportingPresentation> Supporting);
|
||||
public sealed record SolverSupportingPresentation(SolverSolution Solution,IReadOnlyList<string> Evidence);
|
||||
@ -0,0 +1,29 @@
|
||||
namespace PlotDirector.Website.Models.WritingSolver;
|
||||
|
||||
public sealed class WritingProblemCatalog
|
||||
{
|
||||
public int Version { get; set; }
|
||||
public List<WritingProblemArea> Areas { get; set; } = [];
|
||||
public List<WritingProblemArticle> Pages { get; set; } = [];
|
||||
}
|
||||
public sealed class WritingProblemArea
|
||||
{
|
||||
public string Id { get; set; } = "";
|
||||
public string Title { get; set; } = "";
|
||||
public string Description { get; set; } = "";
|
||||
}
|
||||
public sealed class WritingProblemArticle
|
||||
{
|
||||
public string Solution { get; set; } = "";
|
||||
public string Area { get; set; } = "";
|
||||
public string Title { get; set; } = "";
|
||||
public string Description { get; set; } = "";
|
||||
public string Recognition { get; set; } = "";
|
||||
public string Cause { get; set; } = "";
|
||||
public List<string> Inspect { get; set; } = [];
|
||||
public string Model { get; set; } = "";
|
||||
public string Distinction { get; set; } = "";
|
||||
public List<string> SearchIntents { get; set; } = [];
|
||||
public List<string> Related { get; set; } = [];
|
||||
}
|
||||
public sealed record WritingProblemBrowse(SolverGraph Graph, WritingProblemCatalog Catalog, WritingProblemArea? Area);
|
||||
4
PlotDirector.Website/PlotDirector.Website.csproj
Normal file
@ -0,0 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup><TargetFramework>net10.0</TargetFramework><Nullable>enable</Nullable><ImplicitUsings>enable</ImplicitUsings></PropertyGroup>
|
||||
<ItemGroup><Content Include="Help/**/*.md" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" /></ItemGroup>
|
||||
</Project>
|
||||
26
PlotDirector.Website/Program.cs
Normal file
@ -0,0 +1,26 @@
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using PlotDirector.Website.Data;
|
||||
using PlotDirector.Website.Services;
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Services.AddControllersWithViews();
|
||||
builder.Services.AddMemoryCache();
|
||||
builder.Services.AddDataProtection().SetApplicationName("PlotDirector.Website");
|
||||
builder.Services.Configure<ForwardedHeadersOptions>(o => { o.ForwardedHeaders=ForwardedHeaders.XForwardedFor|ForwardedHeaders.XForwardedProto; });
|
||||
builder.Services.AddResponseCompression(o=>o.EnableForHttps=true);
|
||||
builder.Services.AddSingleton<IHelpService,HelpService>();
|
||||
builder.Services.AddSingleton<IHelpMarkdownRenderer,HelpMarkdownRenderer>();
|
||||
builder.Services.AddSingleton<IWritingSolverRepository,WritingSolverRepository>();
|
||||
builder.Services.AddSingleton<WritingSolverResultContext>();
|
||||
builder.Services.AddSingleton(s=>new WritingProblemEditorial(Path.Combine(builder.Environment.ContentRootPath,"Content/WritingSolver/Editorial/pages-v1.json")));
|
||||
builder.Services.AddSingleton(s=>new WritingSolverResults(Path.Combine(builder.Environment.ContentRootPath,"Content/WritingSolver/Presentation/results-v1.json")));
|
||||
builder.Services.AddSingleton(s=>new WritingSolverPayoff(Path.Combine(builder.Environment.ContentRootPath,"Content/WritingSolver/Presentation/payoff-v1.json")));
|
||||
var app=builder.Build();
|
||||
app.UseForwardedHeaders();
|
||||
app.UseResponseCompression();
|
||||
app.UseDevelopmentNoIndex();
|
||||
app.UseStaticFiles(new StaticFileOptions { OnPrepareResponse=c=>c.Context.Response.Headers.CacheControl="public,max-age=86400" });
|
||||
app.MapGet("/robots.txt",(IWebHostEnvironment env)=>Results.Text(env.IsProduction()?"User-agent: *\nAllow: /\nDisallow: /Account/\nDisallow: /Pricing/Checkout\nSitemap: https://plotdirector.com/sitemap.xml\n":"User-agent: *\nDisallow: /\n","text/plain"));
|
||||
app.MapGet("/health",()=>Results.Json(new {healthy=true,product="PlotDirector.Website"}));
|
||||
app.MapControllerRoute("default","{controller=Home}/{action=Index}/{id?}");
|
||||
app.Run();
|
||||
192
PlotDirector.Website/Services/HelpMarkdownRenderer.cs
Normal file
@ -0,0 +1,192 @@
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace PlotDirector.Website.Services;
|
||||
|
||||
public interface IHelpMarkdownRenderer
|
||||
{
|
||||
string Render(string markdown);
|
||||
}
|
||||
|
||||
public sealed partial class HelpMarkdownRenderer(IHelpService help) : IHelpMarkdownRenderer
|
||||
{
|
||||
public string Render(string markdown)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(markdown))
|
||||
{
|
||||
return "<p class=\"muted\">This help article has no body content yet.</p>";
|
||||
}
|
||||
|
||||
var lines = markdown.Replace("\r\n", "\n").Split('\n');
|
||||
var html = new StringBuilder();
|
||||
var paragraph = new List<string>();
|
||||
var listItems = new List<string>();
|
||||
var inTable = false;
|
||||
|
||||
void FlushParagraph()
|
||||
{
|
||||
if (paragraph.Count == 0) return;
|
||||
html.Append("<p>").Append(RenderInline(string.Join(" ", paragraph))).AppendLine("</p>");
|
||||
paragraph.Clear();
|
||||
}
|
||||
|
||||
void FlushList()
|
||||
{
|
||||
if (listItems.Count == 0) return;
|
||||
html.AppendLine("<ul>");
|
||||
foreach (var item in listItems)
|
||||
{
|
||||
html.Append("<li>").Append(RenderInline(item)).AppendLine("</li>");
|
||||
}
|
||||
html.AppendLine("</ul>");
|
||||
listItems.Clear();
|
||||
}
|
||||
|
||||
void CloseTable()
|
||||
{
|
||||
if (!inTable) return;
|
||||
html.AppendLine("</tbody></table>");
|
||||
inTable = false;
|
||||
}
|
||||
|
||||
for (var index = 0; index < lines.Length; index++)
|
||||
{
|
||||
var line = lines[index].Trim();
|
||||
if (string.IsNullOrWhiteSpace(line))
|
||||
{
|
||||
FlushParagraph();
|
||||
FlushList();
|
||||
CloseTable();
|
||||
continue;
|
||||
}
|
||||
|
||||
if (line.StartsWith("#", StringComparison.Ordinal))
|
||||
{
|
||||
FlushParagraph();
|
||||
FlushList();
|
||||
CloseTable();
|
||||
var level = Math.Clamp(line.TakeWhile(ch => ch == '#').Count(), 1, 4);
|
||||
var text = line[level..].Trim();
|
||||
html.Append("<h").Append(level).Append(">")
|
||||
.Append(RenderInline(text))
|
||||
.Append("</h").Append(level).AppendLine(">");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (line.StartsWith("- ", StringComparison.Ordinal) || line.StartsWith("* ", StringComparison.Ordinal))
|
||||
{
|
||||
FlushParagraph();
|
||||
CloseTable();
|
||||
listItems.Add(line[2..].Trim());
|
||||
continue;
|
||||
}
|
||||
|
||||
if (LooksLikeTableRow(line))
|
||||
{
|
||||
FlushParagraph();
|
||||
FlushList();
|
||||
if (index + 1 < lines.Length && LooksLikeTableSeparator(lines[index + 1].Trim()))
|
||||
{
|
||||
if (inTable) CloseTable();
|
||||
html.AppendLine("<table class=\"table table-sm help-markdown-table\"><thead><tr>");
|
||||
foreach (var cell in SplitTableCells(line))
|
||||
{
|
||||
html.Append("<th>").Append(RenderInline(cell)).AppendLine("</th>");
|
||||
}
|
||||
html.AppendLine("</tr></thead><tbody>");
|
||||
inTable = true;
|
||||
index++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (inTable)
|
||||
{
|
||||
html.AppendLine("<tr>");
|
||||
foreach (var cell in SplitTableCells(line))
|
||||
{
|
||||
html.Append("<td>").Append(RenderInline(cell)).AppendLine("</td>");
|
||||
}
|
||||
html.AppendLine("</tr>");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
paragraph.Add(line);
|
||||
}
|
||||
|
||||
FlushParagraph();
|
||||
FlushList();
|
||||
CloseTable();
|
||||
return html.ToString();
|
||||
}
|
||||
|
||||
private static bool LooksLikeTableRow(string line) => line.Contains('|');
|
||||
|
||||
private static bool LooksLikeTableSeparator(string line) =>
|
||||
line.Split('|', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries)
|
||||
.All(cell => cell.Length > 0 && cell.All(ch => ch is '-' or ':'));
|
||||
|
||||
private static IReadOnlyList<string> SplitTableCells(string line) =>
|
||||
line.Trim('|').Split('|', StringSplitOptions.TrimEntries).ToList();
|
||||
|
||||
private string RenderInline(string value)
|
||||
{
|
||||
var encoded = WebUtility.HtmlEncode(value);
|
||||
encoded = ImageRegex().Replace(encoded, match =>
|
||||
{
|
||||
var alt = match.Groups["alt"].Value;
|
||||
var url = match.Groups["url"].Value;
|
||||
return $"<img src=\"/HelpDrawer/Image?file={WebUtility.UrlEncode(url)}\" alt=\"{alt}\" class=\"help-article-image\" />";
|
||||
});
|
||||
encoded = LinkRegex().Replace(encoded, match =>
|
||||
{
|
||||
var text = match.Groups["text"].Value;
|
||||
var url = RewriteHelpUrl(match.Groups["url"].Value);
|
||||
return $"<a href=\"{url}\" target=\"_blank\" rel=\"noopener\">{text}</a>";
|
||||
});
|
||||
encoded = StrongRegex().Replace(encoded, "<strong>$1</strong>");
|
||||
encoded = EmphasisRegex().Replace(encoded, "<em>$1</em>");
|
||||
return encoded;
|
||||
}
|
||||
|
||||
private string RewriteHelpUrl(string url)
|
||||
{
|
||||
var decodedUrl = WebUtility.HtmlDecode(url);
|
||||
const string articlePrefix = "/Help/Article/";
|
||||
if (decodedUrl.StartsWith(articlePrefix, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var key = Uri.UnescapeDataString(decodedUrl[articlePrefix.Length..]);
|
||||
var article = help.GetByContextKey(key);
|
||||
if (article is not null)
|
||||
{
|
||||
return article.Url;
|
||||
}
|
||||
}
|
||||
|
||||
const string categoryPrefix = "/Help/Category/";
|
||||
if (decodedUrl.StartsWith(categoryPrefix, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var category = Uri.UnescapeDataString(decodedUrl[categoryPrefix.Length..]);
|
||||
var categoryName = help.GetByCategory(category).FirstOrDefault()?.Category;
|
||||
if (!string.IsNullOrWhiteSpace(categoryName))
|
||||
{
|
||||
return $"/help/{HelpService.Slugify(categoryName)}";
|
||||
}
|
||||
}
|
||||
|
||||
return url;
|
||||
}
|
||||
|
||||
[GeneratedRegex(@"!\[(?<alt>[^\]]*)\]\((?<url>[^)]+)\)")]
|
||||
private static partial Regex ImageRegex();
|
||||
|
||||
[GeneratedRegex(@"\[(?<text>[^\]]+)\]\((?<url>[^)]+)\)")]
|
||||
private static partial Regex LinkRegex();
|
||||
|
||||
[GeneratedRegex(@"\*\*([^*]+)\*\*")]
|
||||
private static partial Regex StrongRegex();
|
||||
|
||||
[GeneratedRegex(@"\*([^*]+)\*")]
|
||||
private static partial Regex EmphasisRegex();
|
||||
}
|
||||
399
PlotDirector.Website/Services/HelpService.cs
Normal file
@ -0,0 +1,399 @@
|
||||
using Microsoft.AspNetCore.Hosting;
|
||||
using PlotDirector.Website.Models;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
|
||||
namespace PlotDirector.Website.Services;
|
||||
|
||||
public interface IHelpService
|
||||
{
|
||||
IReadOnlyList<HelpArticle> GetAllArticles();
|
||||
HelpArticle? GetByContextKey(string contextKey);
|
||||
HelpArticle? GetByRelativePath(string relativePath);
|
||||
IReadOnlyList<HelpArticle> GetByCategory(string category);
|
||||
IReadOnlyList<HelpArticle> GetByCategorySlug(string categorySlug);
|
||||
string? GetCategoryBySlug(string categorySlug);
|
||||
IReadOnlyList<string> GetCategories();
|
||||
HelpArticle? GetBySlugs(string categorySlug, string articleSlug);
|
||||
IReadOnlyList<HelpArticle> Search(string query);
|
||||
IReadOnlyList<HelpArticle> GetRelatedArticles(HelpArticle article, int maxItems = 5);
|
||||
IReadOnlyList<HelpCoverageItem> GetCoverage();
|
||||
}
|
||||
|
||||
public sealed class HelpService(IWebHostEnvironment environment) : IHelpService
|
||||
{
|
||||
private readonly object cacheLock = new();
|
||||
private IReadOnlyList<HelpArticle>? cachedArticles;
|
||||
|
||||
private DateTime packageModified;
|
||||
public IReadOnlyList<HelpArticle> GetAllArticles()
|
||||
{
|
||||
var package = Path.Combine(environment.ContentRootPath, "Help", "published", "articles.json");
|
||||
var modified = File.GetLastWriteTimeUtc(package);
|
||||
lock(cacheLock)
|
||||
{
|
||||
if(cachedArticles is null || modified != packageModified)
|
||||
{
|
||||
cachedArticles = System.Text.Json.JsonSerializer.Deserialize<List<HelpArticle>>(File.ReadAllText(package))!;
|
||||
packageModified = modified;
|
||||
}
|
||||
return cachedArticles;
|
||||
}
|
||||
}
|
||||
|
||||
public HelpArticle? GetByContextKey(string contextKey)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(contextKey))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return GetAllArticles().FirstOrDefault(x => string.Equals(x.ContextKey, contextKey, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
public HelpArticle? GetByRelativePath(string relativePath)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(relativePath))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var normalisedPath = relativePath.Replace('\\', '/');
|
||||
return GetAllArticles().FirstOrDefault(x => string.Equals(x.RelativePath, normalisedPath, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
public IReadOnlyList<HelpArticle> GetByCategory(string category)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(category))
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
return GetAllArticles()
|
||||
.Where(x => string.Equals(x.Category, category, StringComparison.OrdinalIgnoreCase))
|
||||
.OrderBy(x => x.Title)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public IReadOnlyList<HelpArticle> GetByCategorySlug(string categorySlug)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(categorySlug))
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
return GetAllArticles()
|
||||
.Where(x => string.Equals(x.CategorySlug, categorySlug, StringComparison.OrdinalIgnoreCase))
|
||||
.OrderBy(x => x.Title)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public string? GetCategoryBySlug(string categorySlug)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(categorySlug))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return GetAllArticles()
|
||||
.Select(x => x.Category)
|
||||
.FirstOrDefault(category => string.Equals(Slugify(category), categorySlug, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
public IReadOnlyList<string> GetCategories() =>
|
||||
GetAllArticles()
|
||||
.Where(x => !string.IsNullOrWhiteSpace(x.Category))
|
||||
.Select(x => x.Category)
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.OrderBy(x => x)
|
||||
.ToList();
|
||||
|
||||
public HelpArticle? GetBySlugs(string categorySlug, string articleSlug)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(categorySlug) || string.IsNullOrWhiteSpace(articleSlug))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return GetAllArticles().FirstOrDefault(x =>
|
||||
string.Equals(x.CategorySlug, categorySlug, StringComparison.OrdinalIgnoreCase)
|
||||
&& string.Equals(x.Slug, articleSlug, StringComparison.OrdinalIgnoreCase));
|
||||
}
|
||||
|
||||
public IReadOnlyList<HelpArticle> Search(string query)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(query))
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
var terms = query.Split(' ', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries);
|
||||
return GetAllArticles()
|
||||
.Select(article => new { Article = article, Score = SearchScore(article, terms) })
|
||||
.Where(x => x.Score > 0)
|
||||
.OrderByDescending(x => x.Score)
|
||||
.ThenBy(x => x.Article.Title)
|
||||
.Select(x => x.Article)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public IReadOnlyList<HelpArticle> GetRelatedArticles(HelpArticle article, int maxItems = 5)
|
||||
{
|
||||
var tags = article.Tags.Select(x => x.ToLowerInvariant()).ToHashSet();
|
||||
return GetAllArticles()
|
||||
.Where(x => !string.Equals(x.ContextKey, article.ContextKey, StringComparison.OrdinalIgnoreCase))
|
||||
.Select(x => new
|
||||
{
|
||||
Article = x,
|
||||
Score = (string.Equals(x.Category, article.Category, StringComparison.OrdinalIgnoreCase) ? 2 : 0)
|
||||
+ x.Tags.Count(tag => tags.Contains(tag.ToLowerInvariant()))
|
||||
})
|
||||
.Where(x => x.Score > 0)
|
||||
.OrderByDescending(x => x.Score)
|
||||
.ThenBy(x => x.Article.Title)
|
||||
.Take(maxItems)
|
||||
.Select(x => x.Article)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public IReadOnlyList<HelpCoverageItem> GetCoverage() =>
|
||||
GetAllArticles()
|
||||
.Select(x => new HelpCoverageItem
|
||||
{
|
||||
ContextKey = x.ContextKey,
|
||||
FilePath = x.RelativePath,
|
||||
IsValid = x.IsValid,
|
||||
ValidationIssues = x.ValidationIssues
|
||||
})
|
||||
.OrderBy(x => x.ContextKey)
|
||||
.ThenBy(x => x.FilePath)
|
||||
.ToList();
|
||||
|
||||
private IReadOnlyList<HelpArticle> LoadArticles()
|
||||
{
|
||||
var articleRoot = Path.Combine(environment.ContentRootPath, "Help", "Articles");
|
||||
if (!Directory.Exists(articleRoot))
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
var articles = Directory
|
||||
.EnumerateFiles(articleRoot, "*.md", SearchOption.AllDirectories)
|
||||
.OrderBy(x => x, StringComparer.OrdinalIgnoreCase)
|
||||
.Select(path => ParseArticle(articleRoot, path))
|
||||
.ToList();
|
||||
EnsureUniqueArticleSlugs(articles);
|
||||
return articles;
|
||||
}
|
||||
|
||||
private static HelpArticle ParseArticle(string articleRoot, string filePath)
|
||||
{
|
||||
var rawContent = File.ReadAllText(filePath);
|
||||
var relativePath = Path.GetRelativePath(articleRoot, filePath).Replace('\\', '/');
|
||||
var metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
var markdownContent = rawContent;
|
||||
var issues = new List<string>();
|
||||
|
||||
if (rawContent.StartsWith("---", StringComparison.Ordinal))
|
||||
{
|
||||
using var reader = new StringReader(rawContent);
|
||||
_ = reader.ReadLine();
|
||||
var frontMatterLines = new List<string>();
|
||||
string? line;
|
||||
var frontMatterClosed = false;
|
||||
|
||||
while ((line = reader.ReadLine()) is not null)
|
||||
{
|
||||
if (line.Trim() == "---")
|
||||
{
|
||||
frontMatterClosed = true;
|
||||
break;
|
||||
}
|
||||
|
||||
frontMatterLines.Add(line);
|
||||
}
|
||||
|
||||
if (frontMatterClosed)
|
||||
{
|
||||
metadata = ParseFrontMatter(frontMatterLines);
|
||||
markdownContent = reader.ReadToEnd().TrimStart();
|
||||
}
|
||||
else
|
||||
{
|
||||
issues.Add("Front matter was opened but not closed.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
issues.Add("Front matter is missing.");
|
||||
}
|
||||
|
||||
var article = new HelpArticle
|
||||
{
|
||||
Title = GetValue(metadata, "title"),
|
||||
Category = GetValue(metadata, "category"),
|
||||
CategorySlug = Slugify(GetValue(metadata, "category")),
|
||||
Tags = SplitTags(GetValue(metadata, "tags")),
|
||||
ContextKey = GetValue(metadata, "contextKey"),
|
||||
Slug = GetArticleSlug(metadata, relativePath),
|
||||
Micro = GetValue(metadata, "micro"),
|
||||
QuickTitle = GetValue(metadata, "quickTitle"),
|
||||
QuickSummary = GetValue(metadata, "quickSummary"),
|
||||
Screenshot = GetValue(metadata, "screenshot"),
|
||||
MarkdownContent = markdownContent,
|
||||
RelativePath = relativePath,
|
||||
LastModifiedUtc = File.GetLastWriteTimeUtc(filePath)
|
||||
};
|
||||
|
||||
issues.AddRange(Validate(article));
|
||||
article.ValidationIssues = issues;
|
||||
return article;
|
||||
}
|
||||
|
||||
private static Dictionary<string, string> ParseFrontMatter(IEnumerable<string> lines)
|
||||
{
|
||||
var metadata = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
foreach (var line in lines)
|
||||
{
|
||||
var separatorIndex = line.IndexOf(':');
|
||||
if (separatorIndex <= 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
var key = line[..separatorIndex].Trim();
|
||||
var value = line[(separatorIndex + 1)..].Trim().Trim('"');
|
||||
metadata[key] = value;
|
||||
}
|
||||
|
||||
return metadata;
|
||||
}
|
||||
|
||||
private static IReadOnlyList<string> Validate(HelpArticle article)
|
||||
{
|
||||
var issues = new List<string>();
|
||||
if (string.IsNullOrWhiteSpace(article.Title)) issues.Add("Title is required.");
|
||||
if (string.IsNullOrWhiteSpace(article.ContextKey)) issues.Add("ContextKey is required.");
|
||||
if (string.IsNullOrWhiteSpace(article.QuickTitle)) issues.Add("QuickTitle is required.");
|
||||
if (string.IsNullOrWhiteSpace(article.QuickSummary)) issues.Add("QuickSummary is required.");
|
||||
if (string.IsNullOrWhiteSpace(article.CategorySlug)) issues.Add("Category slug could not be generated.");
|
||||
if (string.IsNullOrWhiteSpace(article.Slug)) issues.Add("Article slug could not be generated.");
|
||||
return issues;
|
||||
}
|
||||
|
||||
private static string GetValue(IReadOnlyDictionary<string, string> metadata, string key) =>
|
||||
metadata.TryGetValue(key, out var value) ? value : string.Empty;
|
||||
|
||||
private static IReadOnlyList<string> SplitTags(string tags) =>
|
||||
string.IsNullOrWhiteSpace(tags)
|
||||
? []
|
||||
: tags.Split(',', StringSplitOptions.TrimEntries | StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
private static int SearchScore(HelpArticle article, IEnumerable<string> terms)
|
||||
{
|
||||
var score = 0;
|
||||
foreach (var term in terms)
|
||||
{
|
||||
if (Contains(article.Title, term)) score += 8;
|
||||
if (Contains(article.Category, term)) score += 4;
|
||||
if (article.Tags.Any(tag => Contains(tag, term))) score += 5;
|
||||
if (Contains(article.QuickSummary, term)) score += 3;
|
||||
if (Contains(article.MarkdownContent, term)) score += 1;
|
||||
}
|
||||
|
||||
return score;
|
||||
}
|
||||
|
||||
private static string GetArticleSlug(IReadOnlyDictionary<string, string> metadata, string relativePath)
|
||||
{
|
||||
var explicitSlug = Slugify(GetValue(metadata, "slug"));
|
||||
if (!string.IsNullOrWhiteSpace(explicitSlug))
|
||||
{
|
||||
return explicitSlug;
|
||||
}
|
||||
|
||||
var titleSlug = Slugify(GetValue(metadata, "title"));
|
||||
if (!string.IsNullOrWhiteSpace(titleSlug))
|
||||
{
|
||||
return titleSlug;
|
||||
}
|
||||
|
||||
var contextKey = GetValue(metadata, "contextKey");
|
||||
var finalContextSegment = contextKey.Split('.', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries).LastOrDefault();
|
||||
var contextSlug = Slugify(finalContextSegment ?? string.Empty);
|
||||
if (!string.IsNullOrWhiteSpace(contextSlug))
|
||||
{
|
||||
return contextSlug;
|
||||
}
|
||||
|
||||
return Slugify(Path.GetFileNameWithoutExtension(relativePath));
|
||||
}
|
||||
|
||||
private static void EnsureUniqueArticleSlugs(IReadOnlyList<HelpArticle> articles)
|
||||
{
|
||||
foreach (var group in articles.GroupBy(x => x.CategorySlug, StringComparer.OrdinalIgnoreCase))
|
||||
{
|
||||
var used = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
|
||||
foreach (var article in group.OrderBy(x => x.RelativePath, StringComparer.OrdinalIgnoreCase))
|
||||
{
|
||||
var baseSlug = string.IsNullOrWhiteSpace(article.Slug) ? "article" : article.Slug;
|
||||
var slug = baseSlug;
|
||||
if (used.Contains(slug))
|
||||
{
|
||||
var contextSuffix = Slugify(article.ContextKey.Replace('.', ' '));
|
||||
slug = string.IsNullOrWhiteSpace(contextSuffix) ? baseSlug : $"{baseSlug}-{contextSuffix}";
|
||||
}
|
||||
|
||||
var sequence = 2;
|
||||
var uniqueSlug = slug;
|
||||
while (!used.Add(uniqueSlug))
|
||||
{
|
||||
uniqueSlug = $"{slug}-{sequence}";
|
||||
sequence++;
|
||||
}
|
||||
|
||||
article.Slug = uniqueSlug;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static string Slugify(string? value)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(value))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
var normalised = value.Normalize(NormalizationForm.FormD);
|
||||
var builder = new StringBuilder();
|
||||
var pendingSeparator = false;
|
||||
foreach (var character in normalised)
|
||||
{
|
||||
var category = CharUnicodeInfo.GetUnicodeCategory(character);
|
||||
if (category == UnicodeCategory.NonSpacingMark)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (char.IsLetterOrDigit(character))
|
||||
{
|
||||
if (pendingSeparator && builder.Length > 0)
|
||||
{
|
||||
builder.Append('-');
|
||||
}
|
||||
|
||||
builder.Append(char.ToLowerInvariant(character));
|
||||
pendingSeparator = false;
|
||||
continue;
|
||||
}
|
||||
|
||||
pendingSeparator = builder.Length > 0;
|
||||
}
|
||||
|
||||
return builder.ToString();
|
||||
}
|
||||
|
||||
private static bool Contains(string? source, string value) =>
|
||||
!string.IsNullOrWhiteSpace(source)
|
||||
&& source.Contains(value, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
20
PlotDirector.Website/Services/PublicIndexing.cs
Normal file
@ -0,0 +1,20 @@
|
||||
namespace PlotDirector.Website.Services;
|
||||
|
||||
// Environment protection is independent of catalogue publication/index eligibility.
|
||||
public static class PublicIndexing
|
||||
{
|
||||
public static string Robots(string environment, string requested) =>
|
||||
string.Equals(environment, Environments.Development, StringComparison.OrdinalIgnoreCase)
|
||||
? "noindex, follow" : requested;
|
||||
|
||||
public static IApplicationBuilder UseDevelopmentNoIndex(this IApplicationBuilder app)
|
||||
{
|
||||
if (app.ApplicationServices.GetRequiredService<IWebHostEnvironment>().IsDevelopment())
|
||||
app.Use(async (context, next) =>
|
||||
{
|
||||
context.Response.Headers["X-Robots-Tag"] = "noindex, follow";
|
||||
await next();
|
||||
});
|
||||
return app;
|
||||
}
|
||||
}
|
||||
272
PlotDirector.Website/Services/PublicSeo.cs
Normal file
@ -0,0 +1,272 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Text.RegularExpressions;
|
||||
using Microsoft.AspNetCore.Mvc.ViewFeatures;
|
||||
using PlotDirector.Website.Models;
|
||||
|
||||
namespace PlotDirector.Website.Services;
|
||||
|
||||
public static class PublicRouteNames
|
||||
{
|
||||
public const string Home = "PublicHome";
|
||||
public const string Features = "PublicFeatures";
|
||||
public const string Pricing = "PublicPricing";
|
||||
public const string Help = "PublicHelp";
|
||||
public const string HelpCategory = "PublicHelpCategory";
|
||||
public const string HelpArticle = "PublicHelpArticle";
|
||||
public const string About = "PublicAbout";
|
||||
public const string Contact = "PublicContact";
|
||||
public const string Privacy = "PublicPrivacy";
|
||||
public const string Terms = "PublicTerms";
|
||||
}
|
||||
|
||||
public static partial class PublicSeo
|
||||
{
|
||||
public const string DefaultBaseUrl = "https://plotdirector.com";
|
||||
public const string DefaultOgImagePath = "/images/public/plotdirector-social.png";
|
||||
private const int DescriptionTargetLength = 155;
|
||||
|
||||
public static string BaseUrl(IConfiguration configuration)
|
||||
{
|
||||
var baseUrl = configuration["Site:PublicBaseUrl"]?.TrimEnd('/');
|
||||
if (string.IsNullOrWhiteSpace(baseUrl))
|
||||
{
|
||||
return DefaultBaseUrl;
|
||||
}
|
||||
|
||||
if (!Uri.TryCreate(baseUrl, UriKind.Absolute, out var uri)
|
||||
|| !string.Equals(uri.Host, "plotdirector.com", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return DefaultBaseUrl;
|
||||
}
|
||||
|
||||
return DefaultBaseUrl;
|
||||
}
|
||||
|
||||
public static string AbsoluteUrl(IConfiguration configuration, string path) =>
|
||||
$"{BaseUrl(configuration)}{NormalisePath(path)}";
|
||||
|
||||
public static string DisplayTitle(string? title)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(title))
|
||||
{
|
||||
return "PlotDirector";
|
||||
}
|
||||
|
||||
var trimmed = title.Trim();
|
||||
return string.Equals(trimmed, "PlotDirector", StringComparison.OrdinalIgnoreCase)
|
||||
|| trimmed.EndsWith("| PlotDirector", StringComparison.OrdinalIgnoreCase)
|
||||
|| trimmed.EndsWith("- PlotDirector", StringComparison.OrdinalIgnoreCase)
|
||||
? trimmed
|
||||
: $"{trimmed} | PlotDirector";
|
||||
}
|
||||
|
||||
public static void Apply(ViewDataDictionary viewData, IConfiguration configuration, SeoMetadata metadata)
|
||||
{
|
||||
var canonicalUrl = string.IsNullOrWhiteSpace(metadata.CanonicalUrl)
|
||||
? AbsoluteUrl(configuration, metadata.CanonicalPath ?? "/")
|
||||
: CanonicalUrl(configuration, metadata.CanonicalUrl);
|
||||
var ogImage = string.IsNullOrWhiteSpace(metadata.OgImage)
|
||||
? AbsoluteUrl(configuration, DefaultOgImagePath)
|
||||
: CanonicalUrl(configuration, metadata.OgImage);
|
||||
var fullTitle = DisplayTitle(metadata.Title);
|
||||
|
||||
viewData["Seo"] = metadata with
|
||||
{
|
||||
CanonicalUrl = canonicalUrl,
|
||||
OgImage = ogImage
|
||||
};
|
||||
viewData["SeoTitle"] = fullTitle;
|
||||
viewData["SeoDescription"] = metadata.Description;
|
||||
viewData["SeoKeywords"] = metadata.Keywords;
|
||||
viewData["CanonicalUrl"] = canonicalUrl;
|
||||
viewData["OgTitle"] = DisplayTitle(metadata.OgTitle ?? metadata.Title);
|
||||
viewData["OgDescription"] = metadata.OgDescription ?? metadata.Description;
|
||||
viewData["OgType"] = string.IsNullOrWhiteSpace(metadata.OgType) ? "website" : metadata.OgType;
|
||||
viewData["OgImage"] = ogImage;
|
||||
viewData["TwitterCard"] = string.IsNullOrWhiteSpace(metadata.TwitterCard) ? "summary_large_image" : metadata.TwitterCard;
|
||||
viewData["StructuredData"] = metadata.JsonLd;
|
||||
}
|
||||
|
||||
public static string HelpArticleDescription(HelpArticle article, IEnumerable<HelpArticle> allArticles)
|
||||
{
|
||||
var description = MetaDescription(article.QuickSummary, article.MarkdownContent);
|
||||
var duplicates = allArticles
|
||||
.Where(other => !ReferenceEquals(other, article))
|
||||
.Select(other => MetaDescription(other.QuickSummary, other.MarkdownContent))
|
||||
.Any(otherDescription => string.Equals(otherDescription, description, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (!duplicates)
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
var fallback = $"{article.Title}: {description}";
|
||||
return TrimDescription(fallback);
|
||||
}
|
||||
|
||||
public static string MetaDescription(string? summary, string? markdown)
|
||||
{
|
||||
var source = !string.IsNullOrWhiteSpace(summary)
|
||||
? summary
|
||||
: FirstMeaningfulParagraph(markdown);
|
||||
return TrimDescription(CleanText(source));
|
||||
}
|
||||
|
||||
public static string Keywords(params IEnumerable<string?>[] groups)
|
||||
{
|
||||
return string.Join(", ", groups
|
||||
.SelectMany(group => group)
|
||||
.Where(value => !string.IsNullOrWhiteSpace(value))
|
||||
.Select(value => value!.Trim())
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.Take(12));
|
||||
}
|
||||
|
||||
public static string JsonLd(object value) =>
|
||||
JsonSerializer.Serialize(value, new JsonSerializerOptions
|
||||
{
|
||||
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull
|
||||
});
|
||||
|
||||
public static string WebPageJsonLd(
|
||||
IConfiguration configuration,
|
||||
string schemaType,
|
||||
string name,
|
||||
string path,
|
||||
string? description = null) =>
|
||||
JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = schemaType,
|
||||
["name"] = name,
|
||||
["url"] = AbsoluteUrl(configuration, path),
|
||||
["description"] = description
|
||||
});
|
||||
|
||||
public static string BreadcrumbJsonLd(params (string Name, string Url)[] items) =>
|
||||
JsonLd(new Dictionary<string, object?>
|
||||
{
|
||||
["@context"] = "https://schema.org",
|
||||
["@type"] = "BreadcrumbList",
|
||||
["itemListElement"] = items.Select((item, index) => new Dictionary<string, object?>
|
||||
{
|
||||
["@type"] = "ListItem",
|
||||
["position"] = index + 1,
|
||||
["name"] = item.Name,
|
||||
["item"] = item.Url
|
||||
})
|
||||
});
|
||||
|
||||
private static string CanonicalUrl(IConfiguration configuration, string value)
|
||||
{
|
||||
if (!Uri.TryCreate(value, UriKind.Absolute, out var uri))
|
||||
{
|
||||
return AbsoluteUrl(configuration, value);
|
||||
}
|
||||
|
||||
return $"{BaseUrl(configuration)}{NormalisePath(uri.PathAndQuery)}";
|
||||
}
|
||||
|
||||
private static string NormalisePath(string? path)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(path) || path == "/")
|
||||
{
|
||||
return "/";
|
||||
}
|
||||
|
||||
return path.StartsWith("/", StringComparison.Ordinal) ? path : $"/{path}";
|
||||
}
|
||||
|
||||
private static string FirstMeaningfulParagraph(string? markdown)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(markdown))
|
||||
{
|
||||
return "Find practical guidance for planning, tracking, and shaping your story in PlotDirector.";
|
||||
}
|
||||
|
||||
var withoutCode = CodeFenceRegex().Replace(markdown, " ");
|
||||
foreach (var paragraph in ParagraphSplitRegex().Split(withoutCode))
|
||||
{
|
||||
var cleaned = CleanText(paragraph);
|
||||
if (cleaned.Length >= 40)
|
||||
{
|
||||
return cleaned;
|
||||
}
|
||||
}
|
||||
|
||||
return CleanText(withoutCode);
|
||||
}
|
||||
|
||||
private static string CleanText(string? value)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(value))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
var cleaned = HtmlTagRegex().Replace(value, " ");
|
||||
cleaned = MarkdownImageRegex().Replace(cleaned, "${alt}");
|
||||
cleaned = MarkdownLinkRegex().Replace(cleaned, "${text}");
|
||||
cleaned = MarkdownSyntaxRegex().Replace(cleaned, " ");
|
||||
cleaned = HelperSyntaxRegex().Replace(cleaned, " ");
|
||||
cleaned = WhitespaceRegex().Replace(cleaned, " ");
|
||||
return System.Net.WebUtility.HtmlDecode(cleaned).Trim();
|
||||
}
|
||||
|
||||
private static string TrimDescription(string value)
|
||||
{
|
||||
var cleaned = CleanText(value);
|
||||
if (cleaned.Length <= DescriptionTargetLength)
|
||||
{
|
||||
return cleaned;
|
||||
}
|
||||
|
||||
var cutoff = cleaned.LastIndexOf(' ', DescriptionTargetLength);
|
||||
if (cutoff < 120)
|
||||
{
|
||||
cutoff = DescriptionTargetLength;
|
||||
}
|
||||
|
||||
return $"{cleaned[..cutoff].TrimEnd('.', ',', ';', ':', ' ')}.";
|
||||
}
|
||||
|
||||
[GeneratedRegex(@"```[\s\S]*?```")]
|
||||
private static partial Regex CodeFenceRegex();
|
||||
|
||||
[GeneratedRegex(@"\r?\n\s*\r?\n+")]
|
||||
private static partial Regex ParagraphSplitRegex();
|
||||
|
||||
[GeneratedRegex("<[^>]+>")]
|
||||
private static partial Regex HtmlTagRegex();
|
||||
|
||||
[GeneratedRegex(@"!\[(?<alt>[^\]]*)\]\([^)]+\)")]
|
||||
private static partial Regex MarkdownImageRegex();
|
||||
|
||||
[GeneratedRegex(@"\[(?<text>[^\]]+)\]\([^)]+\)")]
|
||||
private static partial Regex MarkdownLinkRegex();
|
||||
|
||||
[GeneratedRegex(@"[#>*_`~\-\|]+")]
|
||||
private static partial Regex MarkdownSyntaxRegex();
|
||||
|
||||
[GeneratedRegex(@"<help-icon[^>]*>|@\w+\([^)]*\)")]
|
||||
private static partial Regex HelperSyntaxRegex();
|
||||
|
||||
[GeneratedRegex(@"\s+")]
|
||||
private static partial Regex WhitespaceRegex();
|
||||
}
|
||||
|
||||
public sealed record SeoMetadata
|
||||
{
|
||||
public string Title { get; init; } = string.Empty;
|
||||
public string Description { get; init; } = string.Empty;
|
||||
public string? Keywords { get; init; }
|
||||
public string? CanonicalPath { get; init; }
|
||||
public string? CanonicalUrl { get; init; }
|
||||
public string? OgTitle { get; init; }
|
||||
public string? OgDescription { get; init; }
|
||||
public string OgType { get; init; } = "website";
|
||||
public string? OgImage { get; init; }
|
||||
public string TwitterCard { get; init; } = "summary_large_image";
|
||||
public IReadOnlyList<string> JsonLd { get; init; } = [];
|
||||
}
|
||||
22
PlotDirector.Website/Services/WritingProblemEditorial.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Text.Json;
|
||||
using PlotDirector.Website.Data;
|
||||
using PlotDirector.Website.Models.WritingSolver;
|
||||
namespace PlotDirector.Website.Services;
|
||||
|
||||
// Permanent editorial content only. Never supplies solver weights, choices or routes.
|
||||
public sealed class WritingProblemEditorial
|
||||
{
|
||||
public WritingProblemCatalog Catalog { get; }
|
||||
public WritingProblemEditorial(string path)
|
||||
{
|
||||
Catalog=JsonSerializer.Deserialize<WritingProblemCatalog>(File.ReadAllText(path),WritingSolverRepository.JsonOptions)??throw new InvalidDataException("Empty writing problem editorial catalogue.");
|
||||
if(Catalog.Version!=1 || Catalog.Pages.Select(p=>p.Solution).Distinct().Count()!=Catalog.Pages.Count
|
||||
|| Catalog.Areas.Select(a=>a.Id).Distinct().Count()!=Catalog.Areas.Count)throw new InvalidDataException("Invalid editorial catalogue identity.");
|
||||
foreach(var page in Catalog.Pages)
|
||||
if(!Catalog.Areas.Any(a=>a.Id==page.Area) || new[]{page.Title,page.Description,page.Recognition,page.Cause,page.Model,page.Distinction}.Any(string.IsNullOrWhiteSpace)
|
||||
|| page.Inspect.Count<3 || page.SearchIntents.Count is <5 or >10
|
||||
|| page.Related.Count>3 || page.Related.Any(id=>id==page.Solution || !Catalog.Pages.Any(p=>p.Solution==id)))
|
||||
throw new InvalidDataException("Incomplete writing problem article.");
|
||||
}
|
||||
public WritingProblemArticle? Find(string solution)=>Catalog.Pages.FirstOrDefault(p=>p.Solution==solution);
|
||||
}
|
||||
45
PlotDirector.Website/Services/WritingSolverEngine.cs
Normal file
@ -0,0 +1,45 @@
|
||||
using PlotDirector.Website.Models.WritingSolver;
|
||||
namespace PlotDirector.Website.Services;
|
||||
|
||||
public static class WritingSolverEngine
|
||||
{
|
||||
public static SolverOutcome Evaluate(SolverGraph graph, IEnumerable<SolverAnswer> history)
|
||||
{
|
||||
var scores = new Dictionary<string,int>(StringComparer.Ordinal);
|
||||
var accepted = new List<SolverAnswer>();
|
||||
var next = graph.Nodes.Single(n => n.Id == graph.EntryNode && n.Active);
|
||||
foreach (var answer in history.Take(graph.MaxAnswers))
|
||||
{
|
||||
if (next is null || answer.Node != next.Id) break; // Discard the stale suffix after revision.
|
||||
var ids = answer.Choices.Distinct(StringComparer.Ordinal).ToArray();
|
||||
var choices = next.Choices.Where(c => c.Active && ids.Contains(c.Id)).ToArray();
|
||||
if (ids.Length == 0 || choices.Length != ids.Length || (!next.Multiple && ids.Length != 1)
|
||||
|| (choices.Any(c => c.Fallback) && ids.Length != 1) || (next.MaxChoices > 0 && ids.Length > next.MaxChoices)) break;
|
||||
accepted.Add(new(answer.Node, ids));
|
||||
foreach (var choice in choices)
|
||||
foreach (var weight in choice.Weights)
|
||||
scores[weight.Key] = scores.GetValueOrDefault(weight.Key) + weight.Value;
|
||||
if (next.NeutralEndpoint || (next.AllowNeutralChoices && choices.Length == 1 && choices[0].Reassurance is not null))
|
||||
return new(null, [], scores, accepted, choices.Single().Reassurance ?? next.Reassurance);
|
||||
next = SelectNext(graph, next, ids, accepted, scores);
|
||||
}
|
||||
var solutions = graph.Solutions.Where(s => s.Active)
|
||||
.Select(s => new { Solution = s, Score = s.Signals.Sum(w => scores.GetValueOrDefault(w.Key) * w.Value) })
|
||||
.Where(s => s.Score >= s.Solution.Threshold && s.Solution.RequiredSignals.All(w => scores.GetValueOrDefault(w.Key) >= w.Value))
|
||||
.OrderByDescending(s => s.Score).ThenBy(s => s.Solution.Order).ThenBy(s => s.Solution.Id, StringComparer.Ordinal)
|
||||
.Select(s => s.Solution).Take(3).ToArray();
|
||||
if (accepted.Count >= graph.MaxAnswers || (accepted.Count >= graph.MinAnswers && solutions.Length > 0 && next?.RequireAnswer != true)) next = null;
|
||||
return new(next, next is null ? solutions : [], scores, accepted);
|
||||
}
|
||||
|
||||
private static SolverNode? SelectNext(SolverGraph graph, SolverNode current, string[] choices, List<SolverAnswer> answers, Dictionary<string,int> scores)
|
||||
{
|
||||
var routes = current.Routes.Where(r => answers.Count >= r.FromAnswers && (r.BeforeAnswers == 0 || answers.Count < r.BeforeAnswers)
|
||||
&& (r.Choice is null || choices.Contains(r.Choice))
|
||||
&& (r.Signal is null || scores.GetValueOrDefault(r.Signal) >= r.Minimum));
|
||||
return routes.Select(r => new { Route = r, Node = graph.Nodes.Single(n => n.Id == r.Target) })
|
||||
.Where(x => x.Node.Active && !answers.Any(a => a.Node == x.Node.Id))
|
||||
.OrderByDescending(x => x.Route.Priority + x.Node.Affinity.Sum(w => scores.GetValueOrDefault(w.Key) * w.Value))
|
||||
.ThenBy(x => x.Node.Order).ThenBy(x => x.Node.Id, StringComparer.Ordinal).Select(x => x.Node).FirstOrDefault();
|
||||
}
|
||||
}
|
||||
22
PlotDirector.Website/Services/WritingSolverPayoff.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Text.Json;
|
||||
using PlotDirector.Website.Data;
|
||||
using PlotDirector.Website.Models.WritingSolver;
|
||||
namespace PlotDirector.Website.Services;
|
||||
// Authored presentation only; never changes graph choices, order fields or engine inputs.
|
||||
public sealed class WritingSolverPayoff
|
||||
{
|
||||
public sealed record Result(string Solution,string Family,string Action);
|
||||
public sealed record Unknown(string Node,string Choice);
|
||||
public sealed record Catalog(List<Result> Results,List<Unknown> Uncertainty);
|
||||
public Catalog Content { get; }
|
||||
private readonly HashSet<(string,string)> unknown;
|
||||
public WritingSolverPayoff(string path)
|
||||
{
|
||||
Content=JsonSerializer.Deserialize<Catalog>(File.ReadAllText(path),WritingSolverRepository.JsonOptions)??throw new InvalidDataException("Missing payoff catalogue.");
|
||||
if(Content.Results.Count!=52||Content.Results.Select(r=>r.Solution).Distinct().Count()!=52||Content.Results.Any(r=>!new[]{"plot-map","chronology","progression","people","trace","overview","workflow"}.Contains(r.Family)||string.IsNullOrWhiteSpace(r.Action)))throw new InvalidDataException("Invalid payoff mappings.");
|
||||
unknown=Content.Uncertainty.Select(x=>(x.Node,x.Choice)).ToHashSet();
|
||||
}
|
||||
public Result For(string id)=>Content.Results.Single(r=>r.Solution==id);
|
||||
public bool IsUncertain(SolverNode node,SolverChoice choice)=>unknown.Contains((node.Id,choice.Id));
|
||||
public IEnumerable<SolverChoice> OrderedChoices(SolverNode node)=>node.Choices.Where(c=>c.Active).OrderBy(c=>IsUncertain(node,c)).ThenBy(c=>c.Order);
|
||||
}
|
||||
45
PlotDirector.Website/Services/WritingSolverResultContext.cs
Normal file
@ -0,0 +1,45 @@
|
||||
using System.Security.Claims;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
using PlotDirector.Website.Models.WritingSolver;
|
||||
namespace PlotDirector.Website.Services;
|
||||
|
||||
// Only an opaque browser identifier leaves the server. Context expires absolutely,
|
||||
// is bound to the signed-in subject, and is disposable on restart or graph change.
|
||||
public sealed class WritingSolverResultContext(IMemoryCache cache)
|
||||
{
|
||||
private const string Cookie = "pd-solver-result";
|
||||
private static readonly TimeSpan Lifetime = TimeSpan.FromHours(2);
|
||||
private sealed record Entry(string Version, SolverAnswer[] Answers);
|
||||
private static string? Token(HttpContext context) => context.Request.Cookies[Cookie] is { Length: 64 } token
|
||||
&& token.All(Uri.IsHexDigit) ? token : null;
|
||||
private static string Key(HttpContext context, string token, string slug)
|
||||
{
|
||||
var identity = context.User.Identity?.IsAuthenticated == true
|
||||
? "user:" + context.User.FindFirstValue(ClaimTypes.NameIdentifier) + ":" + context.User.Identity.AuthenticationType
|
||||
: "anonymous";
|
||||
return "solver-result:" + Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(token + "|" + identity + "|" + slug)));
|
||||
}
|
||||
public void Save(HttpContext context, SolverGraph graph, SolverOutcome outcome, string slug)
|
||||
{
|
||||
if (context.User.Identity?.IsAuthenticated == true && string.IsNullOrEmpty(context.User.FindFirstValue(ClaimTypes.NameIdentifier))) return;
|
||||
var token = Token(context) ?? Convert.ToHexString(RandomNumberGenerator.GetBytes(32));
|
||||
context.Response.Cookies.Append(Cookie, token, new CookieOptions
|
||||
{
|
||||
HttpOnly = true, Secure = context.Request.IsHttps, SameSite = SameSiteMode.Lax,
|
||||
Path = "/problem-solver", MaxAge = Lifetime, IsEssential = true
|
||||
});
|
||||
cache.Set(Key(context, token, slug), new Entry(graph.Version,
|
||||
outcome.Answers.Select(a => new SolverAnswer(a.Node, a.Choices.ToArray())).ToArray()), Lifetime);
|
||||
}
|
||||
public SolverOutcome? Read(HttpContext context, SolverGraph graph, string slug)
|
||||
{
|
||||
if (context.User.Identity?.IsAuthenticated == true && string.IsNullOrEmpty(context.User.FindFirstValue(ClaimTypes.NameIdentifier))) return null;
|
||||
var token = Token(context);
|
||||
if (token is null || !cache.TryGetValue<Entry>(Key(context, token, slug), out var entry)
|
||||
|| entry is null || entry.Version != graph.Version) return null;
|
||||
var outcome = WritingSolverEngine.Evaluate(graph, entry.Answers);
|
||||
return outcome.Next is null && outcome.Reassurance is null && outcome.Solutions.FirstOrDefault()?.Slug == slug ? outcome : null;
|
||||
}
|
||||
}
|
||||
56
PlotDirector.Website/Services/WritingSolverResults.cs
Normal file
@ -0,0 +1,56 @@
|
||||
using System.Text.Json;
|
||||
using PlotDirector.Website.Data;
|
||||
using PlotDirector.Website.Models.WritingSolver;
|
||||
namespace PlotDirector.Website.Services;
|
||||
|
||||
// Authored presentation only. No effect on scoring, routing, state or publication.
|
||||
public sealed class WritingSolverResults
|
||||
{
|
||||
public SolverResultCatalog Catalog { get; }
|
||||
private readonly string webRoot;
|
||||
public WritingSolverResults(string path)
|
||||
{
|
||||
webRoot=Path.GetFullPath(Path.Combine(Path.GetDirectoryName(path)!,"../../..","wwwroot"));
|
||||
Catalog=JsonSerializer.Deserialize<SolverResultCatalog>(File.ReadAllText(path),WritingSolverRepository.JsonOptions)??throw new InvalidDataException("Empty result catalogue.");
|
||||
var capabilities=Catalog.Capabilities;
|
||||
if(capabilities.Select(c=>c.Id).Distinct().Count()!=capabilities.Count || Catalog.Results.Select(r=>r.Solution).Distinct().Count()!=Catalog.Results.Count)
|
||||
throw new InvalidDataException("Duplicate result presentation identity.");
|
||||
foreach(var c in capabilities)
|
||||
if(string.IsNullOrWhiteSpace(c.Name) || string.IsNullOrWhiteSpace(c.Shows) || string.IsNullOrWhiteSpace(c.Capture) || string.IsNullOrWhiteSpace(c.PreviewCaption)
|
||||
|| !c.Tour.StartsWith("/features#",StringComparison.Ordinal) || !SafeLocal(c.WorkspaceRoute)
|
||||
|| !c.WorkspaceRoute.Contains("{projectId}",StringComparison.Ordinal)
|
||||
|| (c.Image is not null && (string.IsNullOrWhiteSpace(c.ImageAlt) || c.ImageWidth!=1280 || c.ImageHeight<=0))
|
||||
|| (c.Image is not null && !System.Text.RegularExpressions.Regex.IsMatch(c.Image,@"^/images/writing-solver/[a-z0-9-]+\.(webp|png)$")))throw new InvalidDataException("Invalid result capability.");
|
||||
foreach(var r in Catalog.Results)
|
||||
if(!capabilities.Any(c=>c.Id==r.Capability) || string.IsNullOrWhiteSpace(r.Explanation) || string.IsNullOrWhiteSpace(r.Reason) || string.IsNullOrWhiteSpace(r.LookFor)
|
||||
|| (r.Secondary is not null && (!capabilities.Any(c=>c.Id==r.Secondary) || r.Secondary==r.Capability || string.IsNullOrWhiteSpace(r.SecondaryReason))))throw new InvalidDataException("Invalid result recommendation.");
|
||||
if(Catalog.Evidence.Any(e=>string.IsNullOrWhiteSpace(e.Text) || e.Solutions.Count==0 || e.Solutions.Any(s=>!Catalog.Results.Any(r=>r.Solution==s))))throw new InvalidDataException("Invalid result evidence copy.");
|
||||
}
|
||||
private static bool SafeLocal(string url)=>url.StartsWith('/') && !url.StartsWith("//",StringComparison.Ordinal) && !url.Contains('\\') && !url.Any(char.IsControl);
|
||||
public bool HasImage(SolverCapability capability)=>capability.Image is not null && File.Exists(Path.Combine(webRoot,capability.Image.TrimStart('/')));
|
||||
public string ImageVariant(SolverCapability capability, int width, string format)
|
||||
{
|
||||
if(capability.Image is null || width is not (640 or 960 or 1280) || format is not ("avif" or "webp")) throw new InvalidDataException("Invalid image variant.");
|
||||
return Path.ChangeExtension(capability.Image, null) + (width == 1280 ? "" : "-" + width) + "." + format;
|
||||
}
|
||||
public string ImageSourceSet(SolverCapability capability,string format) => string.Join(", ",new[]{640,960,1280}.Select(w=>ImageVariant(capability,w,format)+" "+w+"w"));
|
||||
public SolverCapability Capability(string id)=>Catalog.Capabilities.Single(c=>c.Id==id);
|
||||
public IReadOnlyList<string> Evidence(SolverOutcome outcome,string solution) => Catalog.Evidence
|
||||
.Where(e=>e.Solutions.Contains(solution) && outcome.Answers.Any(a=>a.Node==e.Node && a.Choices.Contains(e.Choice)))
|
||||
.OrderByDescending(e=>e.Priority).ThenBy(e=>outcome.Answers.ToList().FindIndex(a=>a.Node==e.Node))
|
||||
.Select(e=>e.Text).Distinct(StringComparer.Ordinal).Take(3).ToArray();
|
||||
public SolverDiagnosticPresentation? Present(SolverOutcome outcome)
|
||||
{
|
||||
if(outcome.Next is not null || outcome.Reassurance is not null || outcome.Solutions.FirstOrDefault() is not {} solution)return null;
|
||||
var content=Catalog.Results.SingleOrDefault(r=>r.Solution==solution.Id);
|
||||
if(content is null)return null; // Older/demo snapshots keep their original article presentation.
|
||||
return new(solution,content,Capability(content.Capability),Evidence(outcome,solution.Id),
|
||||
outcome.Solutions.Skip(1).Select(s=>new SolverSupportingPresentation(s,Evidence(outcome,s.Id))).ToArray());
|
||||
}
|
||||
public string WorkspaceUrl(SolverCapability capability,int projectId,int? characterId=null)
|
||||
{
|
||||
if(projectId<=0 || (capability.WorkspaceRoute.Contains("{characterId}") && characterId is not >0))throw new InvalidDataException("Workspace context required.");
|
||||
return capability.WorkspaceRoute.Replace("{projectId}",projectId.ToString(System.Globalization.CultureInfo.InvariantCulture),StringComparison.Ordinal)
|
||||
.Replace("{characterId}",characterId?.ToString(System.Globalization.CultureInfo.InvariantCulture)??"",StringComparison.Ordinal);
|
||||
}
|
||||
}
|
||||
168
PlotDirector.Website/Services/WritingSolverValidator.cs
Normal file
@ -0,0 +1,168 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using PlotDirector.Website.Models.WritingSolver;
|
||||
namespace PlotDirector.Website.Services;
|
||||
|
||||
public static partial class WritingSolverValidator
|
||||
{
|
||||
public static List<string> Validate(SolverGraph graph)
|
||||
{
|
||||
var errors = new List<string>();
|
||||
void Check(bool condition, string message) { if (!condition) errors.Add(message); }
|
||||
Check(graph.SchemaVersion == 1, "Unsupported schema version.");
|
||||
Check(!string.IsNullOrWhiteSpace(graph.Version) && graph.Version.Length <= 80, "Version is required (maximum 80 characters).");
|
||||
Check(graph.MinAnswers >= 1 && graph.MaxAnswers >= graph.MinAnswers && graph.MaxAnswers <= 6, "Answer limits must be between one and six.");
|
||||
Check(graph.Nodes.Count is > 0 and <= 1000 && graph.Solutions.Count <= 1000 && graph.Features.Count <= 1000, "Graph size is invalid.");
|
||||
void Unique(IEnumerable<string> ids, string label)
|
||||
{
|
||||
Check(ids.All(id => !string.IsNullOrWhiteSpace(id) && Slug().IsMatch(id)), $"Invalid {label} identifier.");
|
||||
foreach (var group in ids.GroupBy(x => x, StringComparer.OrdinalIgnoreCase).Where(g => g.Count() > 1)) errors.Add($"Duplicate {label}: {group.Key}");
|
||||
}
|
||||
Unique(graph.Nodes.Select(n => n.Id), "node");
|
||||
Unique(graph.Solutions.Select(n => n.Id), "solution");
|
||||
Unique(graph.Features.Select(n => n.Id), "feature");
|
||||
Unique(graph.Solutions.Select(n => n.Slug), "solution slug");
|
||||
Unique(graph.Features.Select(n => n.Slug), "feature slug");
|
||||
if (errors.Count > 0) return errors;
|
||||
var nodes = graph.Nodes.ToDictionary(n => n.Id);
|
||||
var features = graph.Features.ToDictionary(n => n.Id);
|
||||
var solutions = graph.Solutions.ToDictionary(n => n.Id);
|
||||
Check(nodes.TryGetValue(graph.EntryNode, out var entry) && entry.Active, "Missing/inactive entry node.");
|
||||
var signalNames = graph.Nodes.SelectMany(n => n.Choices).SelectMany(c => c.Weights.Keys).ToHashSet();
|
||||
void Weights(Dictionary<string,int> weights, string label)
|
||||
{
|
||||
Check(weights.All(w => Slug().IsMatch(w.Key) && w.Value is >= -100 and <= 100 && w.Value != 0), $"Malformed weights: {label}");
|
||||
}
|
||||
foreach (var node in graph.Nodes)
|
||||
{
|
||||
Check(node.Type is "area" or "question", $"Unknown node type: {node.Id}");
|
||||
Check(!string.IsNullOrWhiteSpace(node.Title), $"Missing question: {node.Id}");
|
||||
Check(node.MaxChoices == 0 || (node.Multiple && node.MaxChoices is >= 2 and <= 12), $"Invalid multi-select limit: {node.Id}");
|
||||
Unique(node.Choices.Select(c => c.Id), $"choice in {node.Id}");
|
||||
Check(!node.Active || node.Choices.Any(c => c.Active && c.Fallback), $"Missing fallback choice: {node.Id}");
|
||||
void Reassurance(SolverReassurance? content, string label)
|
||||
{
|
||||
if (content is null) return;
|
||||
Check(!string.IsNullOrWhiteSpace(content.Title) && !string.IsNullOrWhiteSpace(content.Summary), $"Missing neutral reassurance title/summary: {label}");
|
||||
Check(content.Advice.Count <= 3 && content.Advice.All(a => !string.IsNullOrWhiteSpace(a)), $"Invalid neutral next steps: {label}");
|
||||
Check(content.Feature is null || (features.TryGetValue(content.Feature, out var linked) && (!node.Active || linked.Active)), $"Missing/inactive neutral feature: {label}");
|
||||
}
|
||||
if (node.NeutralEndpoint)
|
||||
{
|
||||
Check(node.Routes.Count == 0 && !node.Multiple && node.Affinity.Count == 0, $"Neutral endpoint must be terminal, single-choice and have no routing affinity: {node.Id}");
|
||||
Check(node.Choices.All(c => c.Weights.Count == 0), $"Neutral endpoint must not create diagnostic evidence: {node.Id}");
|
||||
Check(node.Reassurance is not null, $"Missing neutral endpoint fallback reassurance: {node.Id}");
|
||||
}
|
||||
else Check(node.Reassurance is null && (node.AllowNeutralChoices || node.Choices.All(c => c.Reassurance is null)), $"Reassurance requires an explicit neutral endpoint: {node.Id}");
|
||||
Check(!node.AllowNeutralChoices || (!node.NeutralEndpoint && !node.Multiple && node.Choices.Any(c => c.Reassurance is not null)), $"Neutral choices require a single-choice diagnostic question with explicit reassurance: {node.Id}");
|
||||
foreach (var choice in node.Choices.Where(c => node.AllowNeutralChoices && c.Reassurance is not null))
|
||||
Check(choice.Weights.Count == 0 && !node.Routes.Any(r => r.Choice is null || r.Choice == choice.Id), $"Neutral choice must have no evidence or onward route: {node.Id}/{choice.Id}");
|
||||
Reassurance(node.Reassurance, node.Id);
|
||||
foreach (var choice in node.Choices) Reassurance(choice.Reassurance, $"{node.Id}/{choice.Id}");
|
||||
Weights(node.Affinity, node.Id);
|
||||
Check(node.Affinity.Keys.All(signalNames.Contains), $"Unknown affinity signal: {node.Id}");
|
||||
foreach (var choice in node.Choices)
|
||||
{
|
||||
Check(!string.IsNullOrWhiteSpace(choice.Text), $"Missing choice text: {node.Id}/{choice.Id}");
|
||||
Weights(choice.Weights, $"{node.Id}/{choice.Id}");
|
||||
}
|
||||
foreach (var route in node.Routes)
|
||||
{
|
||||
Check(route.FromAnswers >= 0 && route.FromAnswers < graph.MaxAnswers && (route.BeforeAnswers == 0 || (route.BeforeAnswers > route.FromAnswers && route.BeforeAnswers <= graph.MaxAnswers)), $"Invalid route answer range: {node.Id} -> {route.Target}");
|
||||
Check(nodes.TryGetValue(route.Target, out var target) && (!node.Active || target.Active), $"Missing/inactive target: {node.Id} -> {route.Target}");
|
||||
Check(route.Choice is null || node.Choices.Any(c => c.Active && c.Id == route.Choice), $"Invalid route choice: {node.Id}");
|
||||
Check(route.Signal is null || signalNames.Contains(route.Signal), $"Unknown route signal: {node.Id}");
|
||||
if (route.Signal is not null)
|
||||
{
|
||||
var maximum = graph.Nodes.Where(n => n.Active).Select(n => n.Choices.Where(c => c.Active).Select(c => Math.Max(0,c.Weights.GetValueOrDefault(route.Signal))).DefaultIfEmpty().Sum()).Sum();
|
||||
Check(route.Minimum <= maximum, $"Impossible signal route: {node.Id} -> {route.Target}");
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach (var page in graph.Solutions.Cast<SolverPage>().Concat(graph.Features))
|
||||
{
|
||||
Check(!string.IsNullOrWhiteSpace(page.Title) && !string.IsNullOrWhiteSpace(page.PageTitle) && !string.IsNullOrWhiteSpace(page.Description) && !string.IsNullOrWhiteSpace(page.Summary) && !string.IsNullOrWhiteSpace(page.Content), $"Missing editorial/SEO fields: {page.Id}");
|
||||
var image = page.SocialImage;
|
||||
Check(image is null || image.StartsWith("/images/", StringComparison.Ordinal), $"Invalid social image: {page.Id}");
|
||||
}
|
||||
foreach (var feature in graph.Features)
|
||||
Check(feature.Screenshot is null || feature.Screenshot.StartsWith("/images/", StringComparison.Ordinal), $"Invalid screenshot: {feature.Id}");
|
||||
foreach (var solution in graph.Solutions)
|
||||
{
|
||||
Weights(solution.Signals, solution.Id);
|
||||
Check(solution.RequiredSignals.All(w => signalNames.Contains(w.Key) && w.Value is > 0 and <= 100), $"Invalid required diagnostic evidence: {solution.Id}");
|
||||
Check(solution.Threshold > 0 && solution.Signals.Count > 0 && solution.Signals.Keys.All(signalNames.Contains), $"Invalid diagnosis signals: {solution.Id}");
|
||||
Check(solution.Features.Count > 0 && solution.Features.Any(f => f.Primary), $"Missing primary feature: {solution.Id}");
|
||||
Unique(solution.Features.Select(f => f.Feature), $"feature mapping in {solution.Id}");
|
||||
foreach (var link in solution.Features)
|
||||
Check(features.TryGetValue(link.Feature, out var feature) && (!solution.Active || feature.Active), $"Invalid feature mapping: {solution.Id}/{link.Feature}");
|
||||
foreach (var related in solution.Related)
|
||||
Check(solutions.TryGetValue(related, out var other) && (!solution.Active || other.Active), $"Invalid related solution: {solution.Id}/{related}");
|
||||
}
|
||||
if (errors.Count > 0) return errors;
|
||||
var reachable = new HashSet<string>();
|
||||
var visiting = new HashSet<string>();
|
||||
void Visit(string id)
|
||||
{
|
||||
if (!visiting.Add(id)) return;
|
||||
reachable.Add(id);
|
||||
foreach (var route in nodes[id].Routes)
|
||||
{
|
||||
if (visiting.Contains(route.Target) && !route.AllowCycle) errors.Add($"Unpermitted cycle: {id} -> {route.Target}");
|
||||
else if (!reachable.Contains(route.Target)) Visit(route.Target);
|
||||
}
|
||||
visiting.Remove(id);
|
||||
}
|
||||
Visit(graph.EntryNode);
|
||||
foreach (var node in graph.Nodes.Where(n => n.Active && !reachable.Contains(n.Id))) errors.Add($"Unreachable node: {node.Id}");
|
||||
foreach (var solution in graph.Solutions.Where(s => s.Active))
|
||||
{
|
||||
var upperBound = graph.Nodes.Where(n => n.Active && reachable.Contains(n.Id)).Select(n =>
|
||||
{
|
||||
var values = n.Choices.Where(c => c.Active).Select(c => c.Weights.Sum(w => w.Value * solution.Signals.GetValueOrDefault(w.Key))).ToArray();
|
||||
return n.Multiple ? values.Where(v => v > 0).Sum() : values.DefaultIfEmpty().Max();
|
||||
}).OrderDescending().Take(graph.MaxAnswers).Sum();
|
||||
Check(upperBound >= solution.Threshold, $"Unreachable solution (insufficient signals): {solution.Id}");
|
||||
}
|
||||
foreach (var node in graph.Nodes.Where(n => n.Active && n.Routes.Count == 0))
|
||||
Check(node.NeutralEndpoint || node.Choices.Any(c => c.Weights.Keys.Any(k => graph.Solutions.Any(s => s.Active && (s.Signals.ContainsKey(k) || s.RequiredSignals.ContainsKey(k))))), $"Dead end without diagnostic evidence: {node.Id}");
|
||||
if (errors.Count == 0) errors.AddRange(ValidateJourneys(graph));
|
||||
return errors;
|
||||
}
|
||||
|
||||
private static List<string> ValidateJourneys(SolverGraph graph)
|
||||
{
|
||||
var errors = new List<string>();
|
||||
if (graph.Nodes.Any(n => n.Active && n.Multiple && n.Choices.Count(c => c.Active && !c.Fallback) > 12))
|
||||
return ["Split multi-select nodes with more than 12 substantive choices to keep exhaustive validation bounded."];
|
||||
var pending = new Queue<SolverOutcome>();
|
||||
var initial = WritingSolverEngine.Evaluate(graph,[]);
|
||||
pending.Enqueue(initial);
|
||||
var discovered = new HashSet<string> { WritingSolverTraversal.Key(initial) };
|
||||
var reached = new HashSet<string>();
|
||||
var diagnosed = new HashSet<string>();
|
||||
while (pending.TryDequeue(out var outcome))
|
||||
{
|
||||
if (graph.RequireCorroboratedResults && outcome.Next is null && outcome.Reassurance is null && outcome.Solutions.Count == 0
|
||||
&& graph.Solutions.Any(s => s.Active && s.RequiredSignals.Count > 0 && s.RequiredSignals.All(w => outcome.Scores.GetValueOrDefault(w.Key) >= w.Value)))
|
||||
return ["A corroborated journey ends without a result. Supply its actual scored evidence; do not weaken its evidence gates or diagnosis threshold."];
|
||||
foreach(var solution in outcome.Solutions) diagnosed.Add(solution.Id);
|
||||
if (outcome.Next is not { } node) continue;
|
||||
reached.Add(node.Id);
|
||||
foreach(var history in WritingSolverTraversal.Extensions(outcome))
|
||||
{
|
||||
var next = WritingSolverEngine.Evaluate(graph,history);
|
||||
if (!discovered.Add(WritingSolverTraversal.Key(next))) continue;
|
||||
if (discovered.Count > 100000) return ["Journey validation exceeded 100,000 distinct states. Simplify the graph or split redundant choices; no data has been published."];
|
||||
pending.Enqueue(next);
|
||||
}
|
||||
}
|
||||
errors.AddRange(graph.Nodes.Where(n=>n.Active && !reached.Contains(n.Id)).Select(n=>$"Unreachable node under scoring/routing rules: {n.Id}"));
|
||||
errors.AddRange(graph.Solutions.Where(s=>s.Active && !diagnosed.Contains(s.Id)).Select(s=>$"Unreachable solution under scoring/routing rules: {s.Id}"));
|
||||
return errors;
|
||||
}
|
||||
public static List<string> Warnings(SolverGraph graph) => graph.Features.Where(f => f.Active)
|
||||
.Where(f => graph.Solutions.Count(s => s.Active && s.Features.Any(l => l.Feature == f.Id)) < 2)
|
||||
.Select(f => $"Few solution routes to feature: {f.Id}").ToList();
|
||||
[GeneratedRegex("^[a-z0-9]+(?:-[a-z0-9]+)*$")]
|
||||
private static partial Regex Slug();
|
||||
}
|
||||
17
PlotDirector.Website/TagHelpers/ApplicationLinkTagHelper.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using Microsoft.AspNetCore.Razor.TagHelpers;
|
||||
namespace PlotDirector.Website.TagHelpers;
|
||||
[HtmlTargetElement("a",Attributes="asp-controller")]
|
||||
public sealed class ApplicationLinkTagHelper(IConfiguration configuration):TagHelper
|
||||
{
|
||||
public override int Order=>-1001;
|
||||
[HtmlAttributeName("asp-controller")] public string Controller {get;set;}="";
|
||||
[HtmlAttributeName("asp-action")] public string Action {get;set;}="Index";
|
||||
public override void Process(TagHelperContext context,TagHelperOutput output)
|
||||
{
|
||||
if(Controller is not ("Account" or "Projects" or "ManageAccount") && !(Controller=="Pricing" && Action!="Index"))return;
|
||||
var query=context.AllAttributes.Where(a=>a.Name.StartsWith("asp-route-")).Select(a=>Uri.EscapeDataString(a.Name[10..])+"="+Uri.EscapeDataString(a.Value.ToString()??""));
|
||||
var qs=string.Join("&",query);
|
||||
output.Attributes.SetAttribute("href",(configuration["Application:BaseUrl"]??"https://app.plotdirector.com").TrimEnd('/')+"/"+Controller+"/"+Action+(qs.Length>0?"?"+qs:""));
|
||||
foreach(var a in context.AllAttributes.Where(a=>a.Name.StartsWith("asp-")).ToArray())output.Attributes.RemoveAll(a.Name);
|
||||
}
|
||||
}
|
||||
59
PlotDirector.Website/ViewModels/HelpViewModels.cs
Normal file
@ -0,0 +1,59 @@
|
||||
using PlotDirector.Website.Models;
|
||||
|
||||
namespace PlotDirector.Website.ViewModels;
|
||||
|
||||
public sealed class HelpDiagnosticsViewModel
|
||||
{
|
||||
public IReadOnlyList<HelpArticle> Articles { get; set; } = [];
|
||||
public IReadOnlyList<HelpCoverageItem> Coverage { get; set; } = [];
|
||||
public int TotalArticles => Articles.Count;
|
||||
public int TotalValidArticles => Articles.Count(x => x.IsValid);
|
||||
public int TotalInvalidArticles => Articles.Count(x => !x.IsValid);
|
||||
public int CoveragePercentage => TotalArticles == 0 ? 0 : (int)Math.Round(TotalValidArticles * 100.0 / TotalArticles);
|
||||
}
|
||||
|
||||
public sealed class HelpArticleDiagnosticViewModel
|
||||
{
|
||||
public HelpArticle Article { get; set; } = new();
|
||||
}
|
||||
|
||||
public sealed class HelpDrawerArticleViewModel
|
||||
{
|
||||
public HelpArticle? Article { get; set; }
|
||||
public string RenderedHtml { get; set; } = string.Empty;
|
||||
public IReadOnlyList<HelpArticle> RelatedArticles { get; set; } = [];
|
||||
public string RequestedContextKey { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public sealed class HelpCentreIndexViewModel
|
||||
{
|
||||
public string? Query { get; set; }
|
||||
public IReadOnlyList<HelpCategoryViewModel> Categories { get; set; } = [];
|
||||
public IReadOnlyList<HelpArticle> SearchResults { get; set; } = [];
|
||||
public IReadOnlyList<HelpArticle> RecentArticles { get; set; } = [];
|
||||
public int ArticleCount { get; set; }
|
||||
public bool HasSearch => !string.IsNullOrWhiteSpace(Query);
|
||||
}
|
||||
|
||||
public sealed class HelpCategoryViewModel
|
||||
{
|
||||
public string CategoryName { get; set; } = string.Empty;
|
||||
public string CategorySlug { get; set; } = string.Empty;
|
||||
public int ArticleCount { get; set; }
|
||||
public string Url => $"/help/{CategorySlug}";
|
||||
}
|
||||
|
||||
public sealed class HelpCategoryArticlesViewModel
|
||||
{
|
||||
public string CategoryName { get; set; } = string.Empty;
|
||||
public string CategorySlug { get; set; } = string.Empty;
|
||||
public IReadOnlyList<HelpArticle> Articles { get; set; } = [];
|
||||
public string Url => $"/help/{CategorySlug}";
|
||||
}
|
||||
|
||||
public sealed class HelpCentreArticleViewModel
|
||||
{
|
||||
public HelpArticle Article { get; set; } = new();
|
||||
public string RenderedHtml { get; set; } = string.Empty;
|
||||
public IReadOnlyList<HelpArticle> RelatedArticles { get; set; } = [];
|
||||
}
|
||||
16
PlotDirector.Website/ViewModels/PublicViewModels.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using PlotDirector.Website.Models;
|
||||
namespace PlotDirector.Website.ViewModels;
|
||||
public sealed class PricingViewModel
|
||||
{
|
||||
public IReadOnlyList<SubscriptionLevel> Plans { get; set; } = [];
|
||||
public int? CurrentSubscriptionLevelID { get; set; }
|
||||
public bool IsSignedIn { get; set; }
|
||||
public bool UsesAdministrativeOverride { get; set; }
|
||||
}
|
||||
|
||||
public sealed class PublicPageViewModel
|
||||
{
|
||||
public string SupportEmail { get; set; } = "support@plotdirector.com";
|
||||
public string LastUpdated { get; set; } = "June 7, 2026";
|
||||
}
|
||||
|
||||
49
PlotDirector.Website/Views/Help/Article.cshtml
Normal file
@ -0,0 +1,49 @@
|
||||
@model HelpCentreArticleViewModel
|
||||
@{
|
||||
ViewData["Title"] = $"Help - {Model.Article.Title}";
|
||||
}
|
||||
|
||||
<nav data-pwa-context="Navigation" class="breadcrumb-trail" aria-label="Breadcrumb">
|
||||
<a href="/help">Help</a>
|
||||
<a href="@Model.Article.CategoryUrl">@Model.Article.Category</a>
|
||||
<span>@Model.Article.Title</span>
|
||||
</nav>
|
||||
|
||||
<div data-pwa-task class="page-heading">
|
||||
<div>
|
||||
<p class="eyebrow">@Model.Article.Category</p>
|
||||
<h1>@Model.Article.Title</h1>
|
||||
@if (!string.IsNullOrWhiteSpace(Model.Article.QuickSummary))
|
||||
{
|
||||
<p class="lead-text">@Model.Article.QuickSummary</p>
|
||||
}
|
||||
@if (Model.Article.Tags.Any())
|
||||
{
|
||||
<p class="muted">Tags: @string.Join(", ", Model.Article.Tags)</p>
|
||||
}
|
||||
</div>
|
||||
<a class="btn btn-outline-secondary" href="/help">Help Centre</a>
|
||||
</div>
|
||||
|
||||
<section class="plain-card">
|
||||
<div class="help-markdown-body">
|
||||
@Html.Raw(Model.RenderedHtml)
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@if (Model.RelatedArticles.Any())
|
||||
{
|
||||
<section class="list-section">
|
||||
<h2>Related guides</h2>
|
||||
<div class="asset-card-grid">
|
||||
@foreach (var article in Model.RelatedArticles)
|
||||
{
|
||||
<article class="plain-card">
|
||||
<h3><a href="@article.Url">@article.Title</a></h3>
|
||||
<p>@article.QuickSummary</p>
|
||||
<span class="status-pill">@article.Category</span>
|
||||
</article>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
21
PlotDirector.Website/Views/Help/ArticleNotFound.cshtml
Normal file
@ -0,0 +1,21 @@
|
||||
@model string
|
||||
@{
|
||||
ViewData["Title"] = "Help article not found";
|
||||
}
|
||||
|
||||
<nav class="breadcrumb-trail" aria-label="Breadcrumb">
|
||||
<a asp-action="Index">Help</a>
|
||||
<span>Article not found</span>
|
||||
</nav>
|
||||
|
||||
<div class="page-heading">
|
||||
<div>
|
||||
<p class="eyebrow">Help</p>
|
||||
<h1>Help article not found.</h1>
|
||||
@if (!string.IsNullOrWhiteSpace(Model))
|
||||
{
|
||||
<p class="lead-text">No help article exists for <strong>@Model</strong>.</p>
|
||||
}
|
||||
</div>
|
||||
<a class="btn btn-outline-secondary" asp-action="Index">Help Centre</a>
|
||||
</div>
|
||||
41
PlotDirector.Website/Views/Help/Category.cshtml
Normal file
@ -0,0 +1,41 @@
|
||||
@model HelpCategoryArticlesViewModel
|
||||
@{
|
||||
ViewData["Title"] = $"Help - {Model.CategoryName}";
|
||||
}
|
||||
|
||||
<nav data-pwa-context="Navigation" class="breadcrumb-trail" aria-label="Breadcrumb">
|
||||
<a href="/help">Help</a>
|
||||
<span>@Model.CategoryName</span>
|
||||
</nav>
|
||||
|
||||
<div data-pwa-task class="page-heading">
|
||||
<div>
|
||||
<p class="eyebrow">Help category</p>
|
||||
<h1>@Model.CategoryName</h1>
|
||||
<p class="lead-text">@Model.Articles.Count article@(Model.Articles.Count == 1 ? "" : "s")</p>
|
||||
</div>
|
||||
<a class="btn btn-outline-secondary" href="/help">Help Centre</a>
|
||||
</div>
|
||||
|
||||
<section class="list-section">
|
||||
@if (!Model.Articles.Any())
|
||||
{
|
||||
<p class="muted">No help articles are available in this category yet.</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="asset-card-grid">
|
||||
@foreach (var article in Model.Articles)
|
||||
{
|
||||
<article class="plain-card">
|
||||
<h2><a href="@article.Url">@article.Title</a></h2>
|
||||
<p>@article.QuickSummary</p>
|
||||
@if (article.Tags.Any())
|
||||
{
|
||||
<p class="muted">Tags: @string.Join(", ", article.Tags)</p>
|
||||
}
|
||||
</article>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
104
PlotDirector.Website/Views/Help/Index.cshtml
Normal file
@ -0,0 +1,104 @@
|
||||
@model HelpCentreIndexViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Help";
|
||||
}
|
||||
|
||||
<nav data-pwa-identity class="breadcrumb-trail" aria-label="Breadcrumb">
|
||||
<span>Help</span>
|
||||
</nav>
|
||||
|
||||
<div data-pwa-header class="page-heading">
|
||||
<div>
|
||||
<p class="eyebrow">Guidance</p>
|
||||
<h1>Help Centre <help-icon key="helpCentre.overview" /></h1>
|
||||
<p class="lead-text">Find practical guidance for planning, tracking, and shaping your story in PlotDirector.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<nav class="plain-card mb-3 d-flex flex-wrap gap-3" aria-label="Start here"><a href="/help/getting-started/first-book">Your first book · Word is optional</a><a href="/help/word-companion/install">Word Companion setup and availability</a></nav>
|
||||
|
||||
<section data-pwa-context="Find" class="plain-card mb-4">
|
||||
<form method="get" asp-action="Index" class="row g-2 align-items-end">
|
||||
<div class="col-md-9">
|
||||
<label class="form-label" for="q">Search help articles</label>
|
||||
<input class="form-control" id="q" name="q" value="@Model.Query" placeholder="Search by title, topic, tag or phrase" />
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<button class="btn btn-primary w-100" type="submit">Search</button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
@if (Model.HasSearch)
|
||||
{
|
||||
<section class="list-section">
|
||||
<h2>Search results</h2>
|
||||
@if (!Model.SearchResults.Any())
|
||||
{
|
||||
<div class="empty-panel compact">
|
||||
<p>No matching help articles were found.</p>
|
||||
<p class="muted">Try a different search term.</p>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="asset-card-grid">
|
||||
@foreach (var article in Model.SearchResults)
|
||||
{
|
||||
<article class="plain-card">
|
||||
<h3><a href="@article.Url">@article.Title</a></h3>
|
||||
<p>@article.QuickSummary</p>
|
||||
<span class="status-pill">Category: @article.Category</span>
|
||||
</article>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
|
||||
<section class="list-section">
|
||||
<div class="story-bible-section-heading">
|
||||
<div>
|
||||
<p class="eyebrow">Browse</p>
|
||||
<h2>Categories</h2>
|
||||
</div>
|
||||
<span class="soft-count">@Model.ArticleCount article@(Model.ArticleCount == 1 ? "" : "s")</span>
|
||||
</div>
|
||||
@if (!Model.Categories.Any())
|
||||
{
|
||||
<p class="muted">No help articles have been added yet.</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="asset-card-grid">
|
||||
@foreach (var category in Model.Categories)
|
||||
{
|
||||
<article class="plain-card">
|
||||
<h3><a href="@category.Url">@category.CategoryName</a></h3>
|
||||
<p class="muted">@category.ArticleCount article@(category.ArticleCount == 1 ? "" : "s")</p>
|
||||
</article>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</section>
|
||||
|
||||
@if (Model.RecentArticles.Any())
|
||||
{
|
||||
<section class="list-section">
|
||||
<h2>Recently added</h2>
|
||||
<div class="table-responsive">
|
||||
<table class="table align-middle">
|
||||
<tbody>
|
||||
@foreach (var article in Model.RecentArticles)
|
||||
{
|
||||
<tr>
|
||||
<td><a href="@article.Url">@article.Title</a></td>
|
||||
<td>@article.Category</td>
|
||||
<td>@article.QuickSummary</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
}
|
||||
229
PlotDirector.Website/Views/Home/Index.cshtml
Normal file
@ -0,0 +1,229 @@
|
||||
@{
|
||||
ViewData["Title"] = "Finally finish your novel";
|
||||
ViewData["ShellClass"] = "marketing-shell";
|
||||
}
|
||||
<article class="writer-home">
|
||||
<section class="writer-hero public-scene-host public-scene-host--home">
|
||||
<partial name="_PublicScene" model='@("home")' />
|
||||
<div class="marketing-container writer-hero-grid">
|
||||
<div class="writer-hero-copy">
|
||||
<p class="marketing-eyebrow"><span class="eyebrow-line"></span> A little order. A lot more story.</p>
|
||||
<h1>Finally finish the novel<br /> you've always wanted<br /> to <em>write.</em>
|
||||
</h1>
|
||||
<p class="marketing-lead">The characters. The loose ends. That thing you mentioned in chapter three. Keep it all together, so you can get back to the words.</p>
|
||||
<div class="marketing-actions"><a class="marketing-btn marketing-btn--primary" asp-controller="Account" asp-action="Register">Start writing free <span aria-hidden="true">↗</span></a><a class="editorial-link" asp-route="@PublicRouteNames.Features">Take a look inside <span aria-hidden="true">→</span></a>
|
||||
</div>
|
||||
<p class="cta-note">30 days free. No card needed. Your words stay yours.</p>
|
||||
</div>
|
||||
<div class="writing-desk" aria-label="An illustrative manuscript and story notes">
|
||||
<div class="desk-rule" aria-hidden="true">THE NEXT CHAPTER STARTS HERE</div>
|
||||
<div class="manuscript-sheet">
|
||||
<p class="manuscript-running">A DISTANT SHORE <span>12</span>
|
||||
</p>
|
||||
<p class="manuscript-chapter">Chapter one</p>
|
||||
<h2>The crossing</h2>
|
||||
<p>By the time Mara reached the harbour, the last light in the customs house had gone out.</p>
|
||||
<p>She stopped at the end of the pier. In her coat pocket, <span class="editorial-underline">the letter</span> felt heavier than it had any right to.</p>
|
||||
<p>Someone had been here before her.</p>
|
||||
<div class="manuscript-fade" aria-hidden="true">
|
||||
<p>Across the water, a door closed. She waited.</p>
|
||||
<p>Then, from somewhere in the dark, a familiar voice.</p>
|
||||
</div>
|
||||
<span class="hand-note">this is where it begins ↗</span>
|
||||
</div>
|
||||
<div class="desk-scene-slip" aria-hidden="true"><small>CHAPTER ONE · SCENE 01</small><p>Arrival at the harbour</p><span>Mara · Before dawn</span></div>
|
||||
<div class="desk-margin-note" aria-hidden="true">But who sent it?<span>↘</span></div>
|
||||
<div class="desk-note"><span class="note-pin" aria-hidden="true"></span><small>Note to self</small>
|
||||
<p>Who knows<br />about the letter?</p><span class="hand-note">don't lose this thread.</span>
|
||||
</div>
|
||||
<div class="desk-answer"><span class="answer-tick" aria-hidden="true">✓</span>
|
||||
<div><small>A place for every story detail</small><strong>You write it.<br />PlotDirector remembers it.</strong><a asp-route="@PublicRouteNames.Features" asp-fragment="knowledge">See how <span aria-hidden="true">→</span></a>
|
||||
</div>
|
||||
</div>
|
||||
<span class="desk-pencil" aria-hidden="true"></span>
|
||||
<p class="desk-caption">Your imagination. A little breathing room.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="writer-problems">
|
||||
<div class="marketing-container problem-desk-grid">
|
||||
<div class="problem-heading">
|
||||
<p class="marketing-eyebrow">Sound familiar?</p>
|
||||
<h2>Writing is wonderful.<br /><em>Keeping track of it all?</em></h2>
|
||||
<div class="problem-answer"><p>You don't need a better memory.<br /><strong>You need somewhere your story can live.</strong></p></div>
|
||||
</div>
|
||||
<div class="question-board">
|
||||
<div class="story-scrap story-scrap--manuscript" aria-hidden="true"><small>CHAPTER TWELVE</small><p>She had heard that name before.<br />Somewhere. Before the crossing.</p><span class="hand-note">check this against chapter 3</span></div>
|
||||
<div class="story-scrap story-scrap--date" aria-hidden="true"><small>THURSDAY</small><strong>18:40</strong><span>Before or after the letter?</span></div>
|
||||
<svg class="desk-connections" viewBox="0 0 800 390" preserveAspectRatio="none" aria-hidden="true"><path d="M190 80 C330 0 470 65 650 130 M120 280 C250 340 410 160 650 260" /><path d="m635 119 18 11-22 1 M638 251l16 10-18 5" /></svg>
|
||||
<div class="question-scatter" aria-label="Questions every novelist recognises">
|
||||
<p>“When did Anna<br />find the letter?”</p>
|
||||
<p>“Has Tom met<br />David yet?”</p>
|
||||
<p>“Didn't this happen<br />on Thursday?”</p>
|
||||
<p>“Where did that<br />storyline go?”</p>
|
||||
<p>“How old is<br />Lucy here?”</p>
|
||||
<p>“Who the hell<br />is Malcolm?”</p>
|
||||
</div>
|
||||
<span class="board-annotation hand-note" aria-hidden="true">…and that's only chapter twelve.</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="writer-solver-invitation" aria-labelledby="home-solver-heading">
|
||||
<div class="marketing-container writer-solver-grid">
|
||||
<div>
|
||||
<p class="marketing-eyebrow">The Problem Solver</p>
|
||||
<h2 id="home-solver-heading">Not sure what’s<br />getting in the way?</h2>
|
||||
<p>Characters, storylines, scene order, continuity. You can feel something getting tangled without knowing what to call it.</p>
|
||||
<p>Tell us what’s becoming difficult. We’ll help you narrow down what’s happening, what to look at next and where PlotDirector may help.</p>
|
||||
<a class="marketing-btn marketing-btn--primary" href="/problem-solver">Help me find the problem <span aria-hidden="true">→</span></a>
|
||||
<p class="writer-solver-note">No sign-up needed.</p>
|
||||
</div>
|
||||
<div class="writer-solver-examples">
|
||||
<span class="writer-solver-mark" aria-hidden="true">?</span>
|
||||
<ul aria-label="Examples of writing difficulties">
|
||||
<li>I’m losing track of things</li>
|
||||
<li>Something doesn’t feel right</li>
|
||||
<li>Changing things causes problems elsewhere</li>
|
||||
<li>There’s simply too much to manage</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="editorial-section remembers-section">
|
||||
<div class="marketing-container editorial-split">
|
||||
<div>
|
||||
<p class="marketing-eyebrow">Meet PlotDirector</p>
|
||||
<h2>Your novel has<br />a lot going on.<br /><em>We've got room.</em>
|
||||
</h2>
|
||||
<p>Bring chapters, scenes, characters and plot lines into one connected workspace. Find the detail you need without rummaging through five different documents.</p>
|
||||
<p>Start with the basics. Let the rest earn its place in your writing day.</p><a class="editorial-link" asp-route="@PublicRouteNames.Features">Come inside <span aria-hidden="true">→</span></a>
|
||||
</div>
|
||||
<div class="product-composition remembers-composition">
|
||||
<div class="composition-paper" aria-hidden="true"><small>THE CROSSING</small><p>A letter.<br />A missing sender.<br /><u>One very long night.</u></p></div>
|
||||
<figure class="product-print product-print--tilt">
|
||||
<a class="product-preview" href="/images/public/application/scene-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("scene", "PlotDirector Scene Inspector showing the story, people and details of an example scene."))</a>
|
||||
<figcaption><span class="hand-note">All those details. One place.</span><span>Scene Inspector · fictional demonstration</span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
<a class="ui-fragment fragment-person" href="/images/public/application/scene-1280.webp" target="_blank" rel="noopener" aria-label="Open the real example scene and character details"><span class="fragment-label">A familiar face, in the right scene</span><span class="ui-crop ui-crop--person">@await Html.PartialAsync("_MarketingScreenshot", ("person-fragment", "The actual character card for Mara Vale in the demonstration scene."))</span></a>
|
||||
<span class="composition-annotation hand-note" aria-hidden="true">Nothing on a stray scrap of paper. ↗</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="bring-manuscript">
|
||||
<div class="marketing-container import-grid">
|
||||
<div class="import-pages" aria-hidden="true">
|
||||
<div><span>YOUR MANUSCRIPT</span>
|
||||
<p>Chapter 01<br />Chapter 02<br />Chapter 03<br /><i>and all the rest…</i>
|
||||
</p>
|
||||
</div><span class="import-arrow">↗</span><span class="import-tab import-tab--chapters">Chapters</span><span class="import-tab import-tab--scenes">Scenes</span><span class="import-pencil-note hand-note">Already written.<br />Still yours.</span>
|
||||
</div>
|
||||
<div>
|
||||
<p class="marketing-eyebrow">No blank-slate requirement</p>
|
||||
<h2>Already halfway through<br />your novel? <em>Perfect.</em><br />Bring it with you.</h2>
|
||||
<p>You don't have to start again. Import your existing manuscript through the Microsoft Word Companion and build your story workspace from there. Review the result, then carry on with the book you've already begun.</p><a class="editorial-link" asp-route="@PublicRouteNames.Features" asp-fragment="import">A home for the work you've done <span aria-hidden="true">→</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="editorial-section just-write">
|
||||
<div class="marketing-container">
|
||||
<div class="writing-heading">
|
||||
<p class="marketing-eyebrow">We hear you</p>
|
||||
<h2>“I just want to write.”<br /><em>Good. So write.</em>
|
||||
</h2>
|
||||
<p>You don't need to plan every detail before you begin. Work on your next scene. Keep the structure close when you need it, and get back to your story when you don't.</p>
|
||||
</div>
|
||||
<figure class="product-print writing-product">
|
||||
<a class="product-preview" href="/images/public/application/writing-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("writing", "The actual PlotDirector scene workspace, showing notes and drafting support for a fictional scene."))</a>
|
||||
<figcaption><span class="hand-note">One scene. Your words. Off you go.</span><span>Scene notes and drafting support</span>
|
||||
</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</section>
|
||||
<section class="editorial-section story-problems">
|
||||
<div class="marketing-container">
|
||||
<div class="section-intro">
|
||||
<p class="marketing-eyebrow">For the moments that stop you writing</p>
|
||||
<h2>Less “hang on…”<br /><em>More “what happens next?”</em>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="problem-demonstration">
|
||||
<div class="product-composition chronology-composition">
|
||||
<span class="demo-date-slip" aria-hidden="true"><small>THURSDAY</small><strong>18:40</strong><span>…wait. Where is she?</span></span>
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/public/application/calendar-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("calendar", "PlotDirector story calendar places example scenes in story time."))</a>
|
||||
</figure>
|
||||
<span class="composition-annotation hand-note" aria-hidden="true">The day matters. So does the order. ↗</span>
|
||||
</div>
|
||||
<div><span class="section-number">01 / TIME</span>
|
||||
<h3>“Hang on.<br />She's in Birmingham.”</h3>
|
||||
<p>And the next scene is in London, ten minutes later. Put events in story time with chronology and calendar views, so you can check whether the journey adds up.</p><a class="editorial-link" asp-route="@PublicRouteNames.Features" asp-fragment="timeline">Make time make sense →</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="problem-demonstration problem-demonstration--reverse">
|
||||
<div class="product-composition thread-composition">
|
||||
<svg class="escaping-threads" viewBox="0 0 800 180" preserveAspectRatio="none" aria-hidden="true"><path d="M0 25 C180 120 420 -60 800 80" /><path d="M0 80 C200 -30 500 200 800 120" /><path d="M0 135 C250 220 450 0 800 160" /></svg>
|
||||
<span class="thread-note" aria-hidden="true"><small>NOTE TO SELF</small>Did I ever resolve this?<span class="hand-note">follow it through →</span></span>
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/writing-solver/plot-lines-weave-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("plot-lines", "PlotDirector's genuine narrative map arranges example plot lines across scenes."))</a>
|
||||
</figure>
|
||||
</div>
|
||||
<div><span class="section-number">02 / THE LOOSE ENDS</span>
|
||||
<h3>“I've completely<br />neglected this storyline.”</h3>
|
||||
<p>See how plot lines weave through your scenes. Follow the promises, developments and payoffs, and find the threads that need another look.</p><a class="editorial-link" asp-route="@PublicRouteNames.Features" asp-fragment="plot-lines">Follow the thread →</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="small-problems"><a asp-route="@PublicRouteNames.Features" asp-fragment="knowledge"><span class="small-problem-visual"><span class="fragment-label">PlotDirector · recorded story knowledge</span><span class="ui-crop ui-crop--knowledge">@await Html.PartialAsync("_MarketingScreenshot", ("knowledge-fragment", "Real knowledge record for the letter in the fictional demonstration project."))</span></span><span class="section-number">03 / FINDING THINGS</span>
|
||||
<h3>“I'm sure I mentioned this earlier.”</h3>
|
||||
<p>Keep story knowledge and search close to the manuscript.</p><span class="editorial-link">Find your bearings →</span></a><a asp-route="@PublicRouteNames.Features" asp-fragment="characters"><span class="small-problem-visual"><span class="fragment-label">PlotDirector · people in this scene</span><span class="ui-crop ui-crop--person">@await Html.PartialAsync("_MarketingScreenshot", ("person-fragment", "Actual people panel from the example scene, showing Mara Vale."))</span></span><span class="section-number">04 / YOUR CAST</span>
|
||||
<h3>“Who the hell is Malcolm?”</h3>
|
||||
<p>A minor character. A major secret. A place to remember both.</p><span class="editorial-link">Meet your characters →</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="editorial-section application-reveal">
|
||||
<div class="marketing-container">
|
||||
<div class="editorial-split">
|
||||
<div>
|
||||
<p class="marketing-eyebrow">A space of your own</p>
|
||||
<h2>Your novel deserves<br />more than another<br /><em>browser tab.</em>
|
||||
</h2>
|
||||
</div>
|
||||
<div>
|
||||
<p>Install PlotDirector for a clean application window and a workspace that feels like somewhere to settle in. The same story, with a little less around it.</p><a class="editorial-link" asp-route="@PublicRouteNames.Features" asp-fragment="writing">Make yourself at home →</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="power-copy">
|
||||
<p class="marketing-eyebrow">Room for the big picture</p>
|
||||
<h2>And when your novel<br /> isn't simple anymore…</h2>
|
||||
<p class="serif-statement">PlotDirector doesn't run out of road.</p>
|
||||
<p>One book or a whole series. A small cast or a world full of people. Connected scenes, chronology, relationships, continuity and insights help you understand the story you've made.</p><a class="editorial-link" asp-route="@PublicRouteNames.Features">See what else is inside →</a>
|
||||
</div>
|
||||
<p class="theme-demo-note">A different mood, still your workspace. Shown in Modern Dark.</p>
|
||||
<div class="power-composition">
|
||||
<span class="power-annotation hand-note" aria-hidden="true">The whole story. Still your story.</span>
|
||||
<figure class="product-print power-overview"><a class="product-preview" href="/images/public/application/dark-overview-1280.webp" target="_blank" rel="noopener" aria-label="Open the full application overview">@await Html.PartialAsync("_MarketingScreenshot", ("dark-overview", "Timeline overview of six fictional scenes, shown in Modern Dark."))</a><figcaption>A place for the big picture</figcaption></figure>
|
||||
<a class="ui-fragment power-knowledge" href="/images/public/application/dark-knowledge-1280.webp" target="_blank" rel="noopener" aria-label="Open the full demonstration knowledge workspace"><span class="fragment-label">And the smallest detail</span><span class="ui-crop ui-crop--knowledge">@await Html.PartialAsync("_MarketingScreenshot", ("dark-knowledge-fragment", "A genuine character knowledge record for the example letter."))</span></a>
|
||||
<figure class="product-print power-map"><a class="product-preview" href="/images/public/application/dark-plot-lines-1280.webp" target="_blank" rel="noopener" aria-label="Open the full Plot Lines Workspace screenshot">@await Html.PartialAsync("_MarketingScreenshot", ("dark-plot-lines", "Two plot lines woven across six fictional scenes, shown in Modern Dark."))</a><figcaption>Actual PlotDirector application · fictional demonstration project · Shown in Modern Dark</figcaption></figure>
|
||||
<span class="power-footnote hand-note" aria-hidden="true">Every thread has somewhere to go. ↗</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="writer-philosophy">
|
||||
<div class="marketing-container"><span class="editorial-asterisk" aria-hidden="true">✳</span>
|
||||
<p class="marketing-eyebrow">A promise to the person holding the pen</p>
|
||||
<h2>Your book.<br /><em>Your words.</em>
|
||||
</h2>
|
||||
<p>PlotDirector is for novelists who write their own books. It helps organise, understand and analyse what you've written. It doesn't write your novel for you.</p>
|
||||
<p class="philosophy-signoff">Reads to understand. Never to take over.</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="final-cta">
|
||||
<div class="marketing-container final-cta__inner">
|
||||
<p class="marketing-eyebrow">The next chapter is yours</p>
|
||||
<h2>You've got a book to finish.</h2>
|
||||
<p>Let's give it a little room.</p><a class="marketing-btn marketing-btn--primary" asp-controller="Account" asp-action="Register">Start writing free <span aria-hidden="true">↗</span></a>
|
||||
<p class="cta-note">30 days free · No card needed</p><p class="cta-note"><a href="/help/getting-started/first-book">Start with your first book</a> · <a href="/help/word-companion/install">Word Companion is optional</a></p>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
250
PlotDirector.Website/Views/Pricing/Index.cshtml
Normal file
@ -0,0 +1,250 @@
|
||||
@model PricingViewModel
|
||||
@using Microsoft.AspNetCore.Html
|
||||
@{
|
||||
ViewData["Title"] = "Pricing";
|
||||
ViewData["ShellClass"] = "marketing-shell";
|
||||
var paidPlans = Model.Plans.Where(x => x.RequiresStripeSubscription).ToList();
|
||||
var suggestedPlanId = paidPlans.Count >= 2 ? paidPlans[paidPlans.Count / 2].SubscriptionLevelID : (int?)null;
|
||||
}
|
||||
|
||||
<article class="marketing-home pricing-page">
|
||||
<section class="pricing-hero public-scene-host public-scene-host--pricing">
|
||||
<partial name="_PublicScene" model='@("pricing")' />
|
||||
<div class="marketing-container pricing-hero__inner">
|
||||
<p class="marketing-eyebrow">Pricing</p>
|
||||
<h1>A little room.<br />Or a whole story world.</h1>
|
||||
<p class="marketing-lead">Start with a 30-day free trial. No payment details are required until you choose a paid plan.</p>
|
||||
<div class="marketing-actions">
|
||||
<a class="marketing-btn marketing-btn--primary" asp-controller="Pricing" asp-action="StartTrial">Start writing free</a>
|
||||
<a class="marketing-btn marketing-btn--secondary" href="#plans">Compare plans</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@if (TempData["PricingMessage"] is string pricingMessage)
|
||||
{
|
||||
<div class="marketing-container">
|
||||
<div class="pricing-message" role="status">@pricingMessage</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
<section class="pricing-plans" id="plans" aria-labelledby="plans-heading">
|
||||
<div class="marketing-container">
|
||||
<div class="section-heading">
|
||||
<p class="marketing-eyebrow">Plans</p>
|
||||
<h2 id="plans-heading">Choose the space your story needs.</h2>
|
||||
</div>
|
||||
|
||||
@if (!Model.Plans.Any())
|
||||
{
|
||||
<div class="pricing-empty">
|
||||
<h2>Plans are being prepared.</h2>
|
||||
<p>Active subscription levels are not available yet. Please check back soon.</p>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="pricing-card-grid">
|
||||
@foreach (var plan in Model.Plans)
|
||||
{
|
||||
var isCurrent = Model.CurrentSubscriptionLevelID == plan.SubscriptionLevelID;
|
||||
var isSuggested = suggestedPlanId == plan.SubscriptionLevelID;
|
||||
var isTrialPlan = !plan.RequiresStripeSubscription;
|
||||
<article class="pricing-card @(isSuggested ? "pricing-card--featured" : string.Empty) @(isTrialPlan ? "pricing-card--trial" : string.Empty)">
|
||||
<div class="pricing-card__badges">
|
||||
@if (isTrialPlan)
|
||||
{
|
||||
<p class="pricing-badge pricing-badge--trial">30-day free trial</p>
|
||||
}
|
||||
@if (isSuggested)
|
||||
{
|
||||
<p class="pricing-badge">Room to grow</p>
|
||||
}
|
||||
</div>
|
||||
<div class="pricing-card__heading">
|
||||
<h3>@plan.DisplayName</h3>
|
||||
<p>@PlanTagline(plan)</p>
|
||||
</div>
|
||||
|
||||
<div class="pricing-price">
|
||||
@if (plan.RequiresStripeSubscription)
|
||||
{
|
||||
@PriceMarkup(plan.MonthlyPricePence, plan.CurrencyCode)
|
||||
<span>per month</span>
|
||||
@if (plan.AnnualPricePence.HasValue)
|
||||
{
|
||||
<small>@FormatAnnualPrice(plan.AnnualPricePence, plan.CurrencyCode) billed annually</small>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<strong>Free</strong>
|
||||
<span>30-day trial workspace</span>
|
||||
<small>No payment details required. Starts immediately after registration.</small>
|
||||
}
|
||||
</div>
|
||||
|
||||
<ul class="pricing-feature-list">
|
||||
@if (!plan.RequiresStripeSubscription)
|
||||
{
|
||||
<li>30 days of free access</li>
|
||||
<li>No credit card required</li>
|
||||
}
|
||||
<li>@FormatLimit(plan.MaxBooks) books</li>
|
||||
<li>@FormatLimit(plan.MaxCharactersPerProject) characters per project</li>
|
||||
<li>@FormatLimit(plan.MaxChaptersPerBook) chapters per book</li>
|
||||
<li>@FormatLimit(plan.MaxScenesPerBook) scenes per book</li>
|
||||
<li>@FormatStorageAllowance(plan.MaxStorageMB) storage</li>
|
||||
<li>@FormatLimit(plan.MaxCollaborators) collaborators</li>
|
||||
</ul>
|
||||
|
||||
<div class="pricing-card__actions">
|
||||
@if (!plan.RequiresStripeSubscription)
|
||||
{
|
||||
<a class="marketing-btn marketing-btn--primary" asp-controller="Pricing" asp-action="StartTrial">Start writing free</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a class="marketing-btn marketing-btn--primary" asp-controller="Pricing" asp-action="Checkout" asp-route-id="@plan.SubscriptionLevelID" asp-route-billingInterval="Monthly">
|
||||
@(isCurrent ? (Model.UsesAdministrativeOverride ? "Current access" : "Current plan") : "Choose this plan")
|
||||
</a>
|
||||
@if (plan.AnnualPricePence.HasValue)
|
||||
{
|
||||
<a class="pricing-link" asp-controller="Pricing" asp-action="Checkout" asp-route-id="@plan.SubscriptionLevelID" asp-route-billingInterval="Annual">Choose annual billing</a>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
</article>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="pricing-compare" aria-labelledby="compare-heading">
|
||||
<div class="marketing-container">
|
||||
<div class="section-heading">
|
||||
<p class="marketing-eyebrow">What is included</p>
|
||||
<h2 id="compare-heading">Everything you need to keep a complex novel coherent.</h2>
|
||||
</div>
|
||||
<div class="comparison-grid">
|
||||
<article>
|
||||
<h3>Room for your next book</h3>
|
||||
<p>Choose the capacity that fits your work. Book, scene, character, storage and collaborator allowances are shown above.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>Keep your story together</h3>
|
||||
<p>Characters, plot threads, story assets, locations, and the story bible help keep the moving pieces of your manuscript in one place.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>See where the story needs you</h3>
|
||||
<p>Timeline, scene metrics, story health, and analytics views help you understand pacing, pressure, and revision priorities.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>Keep the details straight</h3>
|
||||
<p>Relationship mapping, continuity warnings, import, export, backups, and restore points support serious drafting and revision work.</p>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="pricing-faq" aria-labelledby="faq-heading">
|
||||
<div class="marketing-container">
|
||||
<div class="section-heading">
|
||||
<p class="marketing-eyebrow">Questions</p>
|
||||
<h2 id="faq-heading">Pricing FAQ</h2>
|
||||
</div>
|
||||
<div class="faq-grid">
|
||||
<article>
|
||||
<h3>Can I start with a free trial?</h3>
|
||||
<p>Yes. Creating an account starts a 30-day Draft Desk trial immediately, so you can try the workspace before choosing a paid subscription.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>Can I subscribe without using the trial?</h3>
|
||||
<p>Yes. Choose a paid plan from this page. If you are not signed in, PlotDirector will ask you to log in before continuing to checkout.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>Can I change plan later?</h3>
|
||||
<p>Yes. Signed-in users can manage subscription changes from the account subscription area.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>What happens to my work if I cancel?</h3>
|
||||
<p>Your existing story data remains in PlotDirector. Your account may return to Draft Desk after the paid subscription ends.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>Will PlotDirector write my book for me?</h3>
|
||||
<p>No. PlotDirector is designed for authors who write their own books. It helps organise, understand and analyse your work. The writing and creative decisions stay with you.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>Is PlotDirector suitable for a series?</h3>
|
||||
<p>Yes. The higher plan limits are designed for authors managing multiple books, long arcs, and larger casts.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>Do I need a credit card for the trial?</h3>
|
||||
<p>No. Payment details are not required for the free trial. Stripe Checkout is only used when you choose a paid subscription.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>What happens when the trial expires?</h3>
|
||||
<p>Your trial status will show in your dashboard and subscription pages. When the 30 days are over, choose a paid plan to continue with the capacity your story needs.</p>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="final-cta">
|
||||
<div class="marketing-container final-cta__inner">
|
||||
<p class="marketing-eyebrow">Make room for your story</p>
|
||||
<h2>Enough about pricing.<br />You've got a book to write.</h2>
|
||||
<p>Try PlotDirector free for 30 days with no payment details, or choose the paid plan that fits the novel you are building.</p>
|
||||
<div class="marketing-actions">
|
||||
<a class="marketing-btn marketing-btn--primary" asp-controller="Pricing" asp-action="StartTrial">Start writing free</a>
|
||||
<a class="marketing-btn marketing-btn--secondary" href="#plans">View Plans</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
|
||||
@functions {
|
||||
private const int PracticalUnlimited = 999999;
|
||||
|
||||
private static string FormatLimit(int value) =>
|
||||
value >= PracticalUnlimited ? "Unlimited" : value.ToString("N0");
|
||||
|
||||
private static string FormatStorageAllowance(int megabytes) =>
|
||||
megabytes >= PracticalUnlimited
|
||||
? "Unlimited"
|
||||
: (megabytes >= 1024 ? $"{megabytes / 1024m:0.#} GB" : $"{megabytes} MB");
|
||||
|
||||
private static IHtmlContent PriceMarkup(int? pence, string? currencyCode)
|
||||
{
|
||||
if (!pence.HasValue)
|
||||
{
|
||||
return new HtmlString("<strong>Contact us</strong>");
|
||||
}
|
||||
|
||||
var code = string.IsNullOrWhiteSpace(currencyCode) ? "GBP" : currencyCode.ToUpperInvariant();
|
||||
var symbol = string.Equals(code, "GBP", StringComparison.OrdinalIgnoreCase) ? "£" : string.Empty;
|
||||
return new HtmlString($"<strong><span class=\"pricing-price__value\">{symbol}{pence.Value / 100m:0.00}</span> <small>{code}</small></strong>");
|
||||
}
|
||||
|
||||
private static string FormatAnnualPrice(int? pence, string? currencyCode)
|
||||
{
|
||||
if (!pence.HasValue)
|
||||
{
|
||||
return "Contact us";
|
||||
}
|
||||
|
||||
var code = string.IsNullOrWhiteSpace(currencyCode) ? "GBP" : currencyCode.ToUpperInvariant();
|
||||
var symbol = string.Equals(code, "GBP", StringComparison.OrdinalIgnoreCase) ? "£" : string.Empty;
|
||||
return $"{symbol}{pence.Value / 100m:0.00}";
|
||||
}
|
||||
|
||||
private static string PlanTagline(SubscriptionLevel plan) => plan.DisplayName switch
|
||||
{
|
||||
"Draft Desk" => "For finding your feet and trying your first story workspace.",
|
||||
"Writing Room" => "For the novelist settling into a regular writing rhythm.",
|
||||
"Story Forge" => "For a growing cast, a bigger book and more moving parts.",
|
||||
"Author Studio" => "For authors with several books and a whole world to organise.",
|
||||
_ => "For authors who need a little more room for their stories."
|
||||
};
|
||||
}
|
||||
33
PlotDirector.Website/Views/Public/About.cshtml
Normal file
@ -0,0 +1,33 @@
|
||||
@model PublicPageViewModel
|
||||
@{
|
||||
ViewData["Title"] = "About";
|
||||
ViewData["ShellClass"] = "marketing-shell";
|
||||
}
|
||||
|
||||
<article class="marketing-home public-info-page public-about-page">
|
||||
<section class="public-hero">
|
||||
<div class="marketing-container public-hero__inner">
|
||||
<p class="marketing-eyebrow">About PlotDirector</p>
|
||||
<h1>Built by a novelist. Designed for writers.</h1>
|
||||
<p class="marketing-lead">PlotDirector was created to help authors organise complex stories and write with confidence.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="public-content-section">
|
||||
<div class="marketing-container public-narrative">
|
||||
<p>PlotDirector was born from a simple frustration.</p>
|
||||
<p>While writing novels, I found myself constantly switching between Word documents, spreadsheets, notebooks, sticky notes, and countless pages of notes just to keep track of characters, plot threads, timelines, and important story details.</p>
|
||||
<p>Existing tools either felt too simplistic for complex stories or too complicated to fit naturally into a writer's process.</p>
|
||||
<p>PlotDirector was created to be the tool I wished I had: a place where characters, locations, relationships, plot lines, assets, scenes, and story structure could all work together.</p>
|
||||
<p>Whether you're writing your first novel or managing an entire series, PlotDirector is designed to help you stay organised, maintain continuity, and focus on what matters most:</p>
|
||||
<p><strong>telling great stories.</strong></p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="public-mission">
|
||||
<div class="marketing-container public-feature-panel">
|
||||
<p class="marketing-eyebrow">Our Mission</p>
|
||||
<h2>To help writers feel confident, organised, and empowered to finish the stories they want to tell.</h2>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
52
PlotDirector.Website/Views/Public/Contact.cshtml
Normal file
@ -0,0 +1,52 @@
|
||||
@model PublicPageViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Contact";
|
||||
ViewData["ShellClass"] = "marketing-shell";
|
||||
}
|
||||
|
||||
<article class="marketing-home public-info-page public-contact-page">
|
||||
<section class="public-hero">
|
||||
<div class="marketing-container public-hero__inner">
|
||||
<p class="marketing-eyebrow">Contact</p>
|
||||
<h1>Get in touch</h1>
|
||||
<p class="marketing-lead">We'd love to hear from you.</p>
|
||||
<a class="marketing-btn marketing-btn--primary" href="mailto:@Model.SupportEmail">@Model.SupportEmail</a>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="public-content-section">
|
||||
<div class="marketing-container public-card-grid">
|
||||
<article class="public-card">
|
||||
<h2>General enquiries</h2>
|
||||
<p>For questions about PlotDirector, subscriptions, or whether it is right for your writing process, email <a href="mailto:@Model.SupportEmail">@Model.SupportEmail</a>.</p>
|
||||
</article>
|
||||
<article class="public-card">
|
||||
<h2>Support</h2>
|
||||
<p>If you're experiencing a problem, please include as much detail as possible, including screenshots if appropriate.</p>
|
||||
</article>
|
||||
<article class="public-card">
|
||||
<h2>Feedback and suggestions</h2>
|
||||
<p>For feature suggestions, we'd love to hear how PlotDirector could better support your writing process.</p>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="public-content-section public-content-section--soft">
|
||||
<div class="marketing-container">
|
||||
<div class="section-heading">
|
||||
<p class="marketing-eyebrow">Contact FAQ</p>
|
||||
<h2>Useful to know</h2>
|
||||
</div>
|
||||
<div class="faq-grid">
|
||||
<article>
|
||||
<h3>How quickly will I receive a response?</h3>
|
||||
<p>We aim to respond to enquiries as quickly as possible.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>Can I suggest new features?</h3>
|
||||
<p>Absolutely. PlotDirector continues to evolve based on feedback from writers.</p>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
224
PlotDirector.Website/Views/Public/Features.cshtml
Normal file
@ -0,0 +1,224 @@
|
||||
@{
|
||||
ViewData["Title"] = "Tour";
|
||||
ViewData["ShellClass"] = "marketing-shell";
|
||||
}
|
||||
<article class="writer-tour">
|
||||
<section class="tour-hero public-scene-host public-scene-host--tour">
|
||||
<partial name="_PublicScene" model='@("tour")' />
|
||||
<div class="marketing-container">
|
||||
<p class="marketing-eyebrow">A look around PlotDirector</p>
|
||||
<h1>Come inside.<br /><em>Bring your story.</em>
|
||||
</h1>
|
||||
<div class="tour-index-slip" aria-hidden="true"><small>YOUR STORY, IN PIECES</small><span>People.</span><span>Places.</span><span>That thing in chapter three.</span><i>All connected. All yours.</i></div>
|
||||
<div class="tour-hero-bottom">
|
||||
<p class="marketing-lead">A place for the words, the people and the wonderfully tangled thing you're making. Start with what you need. There's plenty to grow into.</p><a class="marketing-btn marketing-btn--primary" asp-controller="Account" asp-action="Register">Start writing free ↗</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<nav class="tour-jump" aria-label="Tour stops">
|
||||
<div class="marketing-container"><span>YOUR TOUR</span><a href="#writing">Writing</a><a href="#story">Story</a><a href="#characters">Characters</a><a href="#timeline">Timeline</a><a href="#plot-lines">Plot Lines</a><a href="#continuity">Continuity</a><a href="#knowledge">Knowledge / Search</a><a href="#import">Import</a><a href="#insights">Insights</a>
|
||||
</div>
|
||||
</nav>
|
||||
<section class="tour-stop" id="writing">
|
||||
<div class="marketing-container">
|
||||
<div class="tour-stop-heading"><span class="section-number">01 / WRITING</span>
|
||||
<h2>“Right. What am I<br /><em>working on today?”</em>
|
||||
</h2>
|
||||
<p>Keep the next scene in reach. PlotDirector gives the work around your writing a home, so getting organised doesn't become a second novel.</p>
|
||||
</div>
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/public/application/writing-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("writing", "Actual scene workspace with drafting support and notes for a fictional scene."))</a>
|
||||
<figcaption>Scene workspace · fictional demonstration</figcaption>
|
||||
</figure>
|
||||
<ul class="tour-capabilities">
|
||||
<li>Scene notes and checklists</li>
|
||||
<li>Drafting and revision workflow</li>
|
||||
<li>Microsoft Word Companion</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tour-stop tour-stop--soft" id="story">
|
||||
<div class="marketing-container editorial-split">
|
||||
<div><span class="section-number">02 / STORY</span>
|
||||
<h2>A whole book.<br /><em>Manageable pieces.</em>
|
||||
</h2>
|
||||
<p>From an idea for chapter one to a series with a life of its own. Organise projects, books, chapters and scenes without losing sight of what connects them.</p>
|
||||
<ul class="editorial-list">
|
||||
<li>See your books and progress together</li>
|
||||
<li>Keep scene summaries and story purpose close</li>
|
||||
<li>Move between the big picture and the details</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-composition tour-story-composition">
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/writing-solver/series-project-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("workspace", "PlotDirector project overview showing fictional demonstration books."))</a>
|
||||
<figcaption>Project overview</figcaption>
|
||||
</figure>
|
||||
<span class="tour-paper-note" aria-hidden="true"><small>THE BIG PICTURE</small>One book.<br />A whole world.<span class="hand-note">Room to grow. ↗</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tour-stop" id="characters">
|
||||
<div class="marketing-container editorial-split editorial-split--reverse">
|
||||
<div><span class="section-number">03 / CHARACTERS</span>
|
||||
<h2>“Who the hell<br /><em>is Malcolm?”</em>
|
||||
</h2>
|
||||
<p>He might only appear twice. That doesn't mean you should have to invent him twice. Give every character a place, and keep their details close as your cast grows.</p>
|
||||
<ul class="editorial-list">
|
||||
<li>Character profiles and aliases</li>
|
||||
<li>Relationships and scene appearances</li>
|
||||
<li>Notes for the details that matter</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-composition tour-cast-composition">
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/public/application/characters-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("characters", "The actual character profile workspace, using fictional character Mara Vale."))</a>
|
||||
<figcaption>A home for your cast</figcaption>
|
||||
</figure>
|
||||
<a class="ui-fragment fragment-person" href="/images/public/application/scene-1280.webp" target="_blank" rel="noopener" aria-label="Open the example scene character panel"><span class="fragment-label">And here she is, in the scene</span><span class="ui-crop ui-crop--person">@await Html.PartialAsync("_MarketingScreenshot", ("person-fragment", "Actual character appearance in the demonstration scene."))</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tour-stop tour-stop--sage" id="timeline">
|
||||
<div class="marketing-container">
|
||||
<div class="tour-stop-heading"><span class="section-number">04 / TIMELINE</span>
|
||||
<h2>“Didn't this happen<br /><em>on Thursday?”</em>
|
||||
</h2>
|
||||
<p>Story order and story time aren't always the same thing. See where your scenes fall, follow chronology and check the gaps between events.</p>
|
||||
</div>
|
||||
<div class="product-composition tour-time-composition">
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/public/application/calendar-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("calendar", "Real story calendar showing fictional scenes arranged in story time."))</a>
|
||||
<figcaption>Story Calendar · make time make sense</figcaption>
|
||||
</figure>
|
||||
<span class="demo-date-slip" aria-hidden="true"><small>THURSDAY</small><strong>18:40</strong><span>Check the crossing.</span></span>
|
||||
</div>
|
||||
<ul class="tour-capabilities">
|
||||
<li>Scene timeline</li>
|
||||
<li>Story dates and chronology</li>
|
||||
<li>Calendar view</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tour-stop tour-stop--weave" id="plot-lines">
|
||||
<div class="marketing-container">
|
||||
<div class="editorial-split">
|
||||
<div><span class="section-number">05 / PLOT LINES</span>
|
||||
<h2>Every promise<br /><em>needs somewhere to go.</em>
|
||||
</h2>
|
||||
</div>
|
||||
<div>
|
||||
<p>The mystery. The friendship. The secret that changes everything. Follow plot lines and their threads through your scenes, individually or woven together.</p>
|
||||
<p>See where an arc develops, where it resolves, and where it might have been left behind.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="product-composition tour-weave-composition">
|
||||
<svg class="escaping-threads" viewBox="0 0 800 180" preserveAspectRatio="none" aria-hidden="true"><path d="M0 25 C180 120 420 -60 800 80" /><path d="M0 80 C200 -30 500 200 800 120" /><path d="M0 135 C250 220 450 0 800 160" /></svg>
|
||||
<figure class="product-print large-product">
|
||||
<a class="product-preview" href="/images/writing-solver/plot-lines-weave-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("plot-lines", "Genuine Plot Lines Workspace narrative map rendered with fictional regression data."))</a>
|
||||
<figcaption>Plot Lines Workspace · follow the weave</figcaption>
|
||||
</figure>
|
||||
<span class="composition-annotation hand-note" aria-hidden="true">Follow the promises you made to the reader. ↗</span>
|
||||
</div>
|
||||
<ul class="tour-capabilities">
|
||||
<li>Focus on one plot line</li>
|
||||
<li>Compare the weave across scenes</li>
|
||||
<li>Track thread development and payoffs</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tour-stop tour-stop--soft" id="continuity">
|
||||
<div class="marketing-container editorial-split">
|
||||
<div><span class="section-number">06 / CONTINUITY</span>
|
||||
<h2>Readers remember.<br /><em>Let's help you do it too.</em>
|
||||
</h2>
|
||||
<p>Characters shouldn't know a secret before they've heard it. An important object shouldn't quietly disappear. Keep track of story details and review continuity warnings as you revise.</p>
|
||||
<ul class="editorial-list">
|
||||
<li>Review scene continuity warnings</li>
|
||||
<li>Track characters, locations and objects</li>
|
||||
<li>Use your judgement to resolve issues</li>
|
||||
</ul>
|
||||
</div>
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/writing-solver/continuity-story-state-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("continuity", "Continuity Explorer showing recorded story state in a fictional project."))</a>
|
||||
<figcaption>A second look at the details</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tour-stop" id="knowledge">
|
||||
<div class="marketing-container editorial-split editorial-split--reverse">
|
||||
<div><span class="section-number">07 / KNOWLEDGE & SEARCH</span>
|
||||
<h2>“I'm sure I<br /><em>mentioned this earlier.”</em>
|
||||
</h2>
|
||||
<p>Give your story's knowledge a home. Record who knows what, connect details to scenes and search your story bible when you need to find your bearings.</p>
|
||||
<ul class="editorial-list">
|
||||
<li>Character knowledge changes</li>
|
||||
<li>Connections to story assets and threads</li>
|
||||
<li>Searchable story bible</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="product-composition tour-knowledge-composition">
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/writing-solver/character-knowledge-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("knowledge", "Actual scene knowledge panel with fictional character knowledge records."))</a>
|
||||
<figcaption>Who knows what, and when</figcaption>
|
||||
</figure>
|
||||
<span class="tour-paper-note" aria-hidden="true"><small>NOTE TO SELF</small>Who knows<br />about the letter?<span class="hand-note">It is in here somewhere…</span></span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tour-stop tour-stop--soft" id="import">
|
||||
<div class="marketing-container">
|
||||
<div class="tour-stop-heading"><span class="section-number">08 / IMPORT</span>
|
||||
<h2>You didn't come this far<br /><em>to start from scratch.</em>
|
||||
</h2>
|
||||
<p>Bring your manuscript from Microsoft Word into the guided import. Scan, review the detected structure and approve what comes into your workspace. Then build from the work you've already done.</p>
|
||||
</div>
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/public/application/import-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("import", "Current manuscript setup wizard with a fictional book selected."))</a>
|
||||
<figcaption>Manuscript setup · choose the book you’ll bring into your workspace</figcaption>
|
||||
</figure>
|
||||
<ul class="tour-capabilities">
|
||||
<li>Bring your existing manuscript</li>
|
||||
<li>Review chapters and scenes</li>
|
||||
<li>Keep control of what you import</li>
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
<section class="tour-stop" id="insights">
|
||||
<div class="marketing-container editorial-split">
|
||||
<div><span class="section-number">09 / INSIGHTS</span>
|
||||
<h2>Step back.<br /><em>See the story.</em>
|
||||
</h2>
|
||||
<p>When you're deep in a draft, perspective is hard to find. Review story progress, scene metrics and story health to help decide where your next revision will count.</p>
|
||||
<ul class="editorial-list">
|
||||
<li>Book and project progress</li>
|
||||
<li>Scene metrics and pacing</li>
|
||||
<li>Story health and revision priorities</li>
|
||||
</ul>
|
||||
<p class="tour-aside">PlotDirector helps you understand your work. The creative decisions stay with you.</p>
|
||||
</div>
|
||||
<figure class="product-print">
|
||||
<a class="product-preview" href="/images/writing-solver/timeline-story-values-1280.webp" target="_blank" rel="noopener" aria-label="Open full-size application screenshot in a new tab">@await Html.PartialAsync("_MarketingScreenshot", ("insights", "Timeline showing story values and scene metrics across a fictional manuscript."))</a>
|
||||
<figcaption>Room for a wider view</figcaption>
|
||||
</figure>
|
||||
</div>
|
||||
</section>
|
||||
<section class="writer-philosophy writer-philosophy--compact">
|
||||
<div class="marketing-container">
|
||||
<p class="marketing-eyebrow">Through it all</p>
|
||||
<h2>Your book. <em>Your words.</em>
|
||||
</h2>
|
||||
<p>PlotDirector reads to understand, not to write. It helps organise and analyse your manuscript. The novel is yours to tell.</p>
|
||||
</div>
|
||||
</section>
|
||||
<section class="final-cta">
|
||||
<div class="marketing-container final-cta__inner">
|
||||
<p class="marketing-eyebrow">Make yourself at home</p>
|
||||
<h2>Start with your next scene.</h2>
|
||||
<p>You don't have to use everything. Just the things that help.</p>
|
||||
<div class="marketing-actions"><a class="marketing-btn marketing-btn--primary" asp-controller="Account" asp-action="Register">Start writing free ↗</a><a class="editorial-link" asp-route="@PublicRouteNames.Pricing">Find your writing room →</a>
|
||||
</div>
|
||||
<p class="cta-note">30 days free · No card needed</p>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
192
PlotDirector.Website/Views/Public/Privacy.cshtml
Normal file
@ -0,0 +1,192 @@
|
||||
@model PublicPageViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Privacy Policy";
|
||||
ViewData["ShellClass"] = "marketing-shell";
|
||||
}
|
||||
|
||||
<article class="marketing-home public-info-page">
|
||||
<section class="public-hero">
|
||||
<div class="marketing-container public-hero__inner">
|
||||
<p class="marketing-eyebrow">Privacy</p>
|
||||
<h1>Privacy Policy</h1>
|
||||
<p class="marketing-lead">Your stories remain yours. We collect only what we need to run PlotDirector.</p>
|
||||
<p class="public-updated">Last updated: @Model.LastUpdated</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="public-content-section">
|
||||
<div class="marketing-container public-policy">
|
||||
|
||||
<section>
|
||||
<h2>1. Introduction</h2>
|
||||
<p>PlotDirector respects your privacy and is committed to protecting your personal information.</p>
|
||||
<p>This Privacy Policy explains what information we collect, how we use it, how long we keep it, and what rights you have.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>2. Information We Collect</h2>
|
||||
<p>We collect only the information needed to provide, secure, and manage the PlotDirector service.</p>
|
||||
<p>This may include:</p>
|
||||
<ul>
|
||||
<li>Your email address, used for login, account security, service messages, and subscription communication</li>
|
||||
<li>Your display name, which you choose and may change</li>
|
||||
<li>Account authentication information, such as password hashes, security tokens, two-factor authentication settings, and recovery information</li>
|
||||
<li>Subscription status information, such as your current plan, renewal status, trial status, and payment status</li>
|
||||
<li>Content you choose to create, upload, or store within PlotDirector, including projects, books, chapters, scenes, characters, locations, timelines, notes, images, and related writing material</li>
|
||||
<li>Basic technical information required to operate and secure the service, such as IP addresses, login activity, browser information, error logs, and security logs</li>
|
||||
</ul>
|
||||
<p>We do not intentionally collect phone numbers, postal addresses, dates of birth, demographic information, or unnecessary personal information.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>3. Information We Do Not Collect</h2>
|
||||
<p>We do not use Google Analytics or third-party advertising trackers.</p>
|
||||
<p>We do not sell your personal information.</p>
|
||||
<p>We do not track you across other websites.</p>
|
||||
<p>We do not store your full payment card details, billing address, or payment method information on our servers. Payment information is handled by Stripe.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>4. How We Use Your Information</h2>
|
||||
<p>We use your information to:</p>
|
||||
<ul>
|
||||
<li>Create and manage your account</li>
|
||||
<li>Allow you to log in securely</li>
|
||||
<li>Provide and maintain the PlotDirector service</li>
|
||||
<li>Store and display the content you create within your account</li>
|
||||
<li>Manage subscriptions, trials, account limits, and billing status</li>
|
||||
<li>Send important service, account, security, and subscription messages</li>
|
||||
<li>Respond to support requests</li>
|
||||
<li>Protect the service from abuse, unauthorised access, fraud, scraping, and security threats</li>
|
||||
<li>Diagnose faults, investigate errors, and improve reliability</li>
|
||||
<li>Comply with legal obligations</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>5. Lawful Bases for Processing</h2>
|
||||
<p>We process personal information only where we have a lawful basis to do so.</p>
|
||||
<p>Depending on the context, this may include:</p>
|
||||
<ul>
|
||||
<li><strong>Contract:</strong> to provide the PlotDirector service you have requested</li>
|
||||
<li><strong>Legitimate interests:</strong> to secure, maintain, support, and improve the service</li>
|
||||
<li><strong>Legal obligation:</strong> where we need to keep or disclose information to comply with the law</li>
|
||||
<li><strong>Consent:</strong> where we specifically ask for your permission</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>6. Your Content</h2>
|
||||
<p>You retain ownership of all stories, manuscripts, notes, characters, locations, timelines, images, and other creative content you create or store in PlotDirector.</p>
|
||||
<p>We do not claim ownership of your creative work.</p>
|
||||
<p>We access user content only where necessary to provide the service, maintain security, investigate technical issues, respond to support requests, comply with legal obligations, or where you have asked us to help with a specific issue.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>7. Payments</h2>
|
||||
<p>Payments are processed securely by Stripe.</p>
|
||||
<p>PlotDirector does not store your full card number, payment card security code, billing address, or full payment method details on our servers.</p>
|
||||
<p>Stripe may provide us with limited subscription and payment status information so that we can manage your account, such as whether a payment succeeded, failed, or whether a subscription is active, cancelled, or past due.</p>
|
||||
<p>Your use of Stripe may be subject to Stripe's own terms and privacy policy.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>8. Cookies and Local Storage</h2>
|
||||
<p>PlotDirector uses essential cookies required for login, authentication, security, and account access.</p>
|
||||
<p>These cookies are necessary for the service to work and are not used for advertising or tracking.</p>
|
||||
<p>PlotDirector may also use browser local storage or similar browser storage to remember functional preferences, such as dismissed alerts, interface settings, or other choices that improve the user experience.</p>
|
||||
<p>We do not use advertising cookies, analytics cookies, or third-party tracking cookies.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>9. Data Sharing</h2>
|
||||
<p>We do not sell your personal information.</p>
|
||||
<p>We share information only where necessary to operate the service, manage payments, comply with the law, protect the service, or respond to your requests.</p>
|
||||
<p>This may include sharing limited information with:</p>
|
||||
<ul>
|
||||
<li>Payment providers, such as Stripe</li>
|
||||
<li>Email delivery providers used to send account, security, or service messages</li>
|
||||
<li>Hosting, infrastructure, or security providers used to operate the service</li>
|
||||
<li>Professional advisers, regulators, or authorities where required by law</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>10. Data Retention</h2>
|
||||
<p>We keep personal information only for as long as needed to provide the service, manage your account, comply with legal obligations, resolve disputes, and maintain security.</p>
|
||||
<p>If your subscription ends, is cancelled, expires, or your account becomes inactive, we may retain your account and content for a limited period to allow for possible reactivation or administration.</p>
|
||||
<p>However, we are not obliged to retain inactive or expired account data indefinitely. We may delete account data at our discretion, and in any event may delete it after three months from the date your subscription ends or your account becomes inactive.</p>
|
||||
<p>Some limited records may be retained for longer where required for legal, accounting, fraud prevention, security, or dispute resolution purposes.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>11. Backups</h2>
|
||||
<p>We may maintain system backups for disaster recovery, service continuity, and security purposes.</p>
|
||||
<p>These backups are intended to help recover the service in the event of serious technical failure. They are not intended as a user-level restore service for accidental deletion or individual mistakes.</p>
|
||||
<p>You are responsible for exporting and maintaining your own independent backups of important work.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>12. Security</h2>
|
||||
<p>We use reasonable technical and organisational measures to protect personal information and user content.</p>
|
||||
<p>However, no online service can guarantee complete security. You are responsible for keeping your password, email account, and two-factor authentication details secure.</p>
|
||||
<p>If you believe your account has been compromised, please contact us as soon as possible.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>13. Your Rights</h2>
|
||||
<p>Depending on your location and applicable law, you may have rights over your personal information, including the right to:</p>
|
||||
<ul>
|
||||
<li>Access the personal information we hold about you</li>
|
||||
<li>Ask us to correct inaccurate information</li>
|
||||
<li>Ask us to delete your personal information</li>
|
||||
<li>Ask us to restrict how we use your information</li>
|
||||
<li>Object to certain uses of your information</li>
|
||||
<li>Request a copy of your information in a portable format</li>
|
||||
<li>Withdraw consent where processing is based on consent</li>
|
||||
</ul>
|
||||
<p>To exercise these rights, please contact us using the details below.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>14. Account Deletion</h2>
|
||||
<p>You may request deletion of your account and associated personal information.</p>
|
||||
<p>Account deletion may permanently remove your projects, books, chapters, scenes, characters, locations, timelines, notes, images, and other stored content.</p>
|
||||
<p>Some limited information may be retained where required for legal, accounting, fraud prevention, security, or dispute resolution purposes.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>15. Children's Privacy</h2>
|
||||
<p>PlotDirector is not intended for children.</p>
|
||||
<p>You must not create an account if you are under 18 unless you have permission from a parent or guardian.</p>
|
||||
<p>If we become aware that an account has been created by a child without appropriate permission, we may delete the account.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>16. International Access</h2>
|
||||
<p>PlotDirector is operated from the United Kingdom.</p>
|
||||
<p>If you access the service from outside the United Kingdom, your information may be processed in the United Kingdom or by service providers in other countries where necessary to provide the service.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>17. Changes to This Policy</h2>
|
||||
<p>We may update this Privacy Policy from time to time.</p>
|
||||
<p>When we make changes, we will update the "Last updated" date shown on this page.</p>
|
||||
<p>Where changes are significant, we may provide additional notice by email, account notification, or another reasonable method.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>18. Complaints</h2>
|
||||
<p>If you have concerns about how we use your personal information, please contact us first so that we can try to resolve the issue.</p>
|
||||
<p>You may also have the right to complain to your local data protection authority. In the United Kingdom, this is the Information Commissioner's Office.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>19. Contact</h2>
|
||||
<p>For privacy-related enquiries, please contact:</p>
|
||||
<p><a href="mailto:@Model.SupportEmail">@Model.SupportEmail</a></p>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
172
PlotDirector.Website/Views/Public/Terms.cshtml
Normal file
@ -0,0 +1,172 @@
|
||||
@model PublicPageViewModel
|
||||
@{
|
||||
ViewData["Title"] = "Terms of Service";
|
||||
ViewData["ShellClass"] = "marketing-shell";
|
||||
}
|
||||
|
||||
<article class="marketing-home public-info-page">
|
||||
<section class="public-hero">
|
||||
<div class="marketing-container public-hero__inner">
|
||||
<p class="marketing-eyebrow">Terms</p>
|
||||
<h1>Terms of Service</h1>
|
||||
<p class="marketing-lead">Please read these terms carefully before using PlotDirector.</p>
|
||||
<p class="public-updated">Last updated: @Model.LastUpdated</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="public-content-section">
|
||||
<div class="marketing-container public-policy">
|
||||
|
||||
<section>
|
||||
<h2>1. Acceptance of Terms</h2>
|
||||
<p>By creating an account, accessing, or using PlotDirector, you agree to these Terms of Service.</p>
|
||||
<p>If you do not agree to these terms, you must not use the service.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>2. About PlotDirector</h2>
|
||||
<p>PlotDirector is an online writing, planning, and story organisation platform designed to help authors manage projects, books, chapters, scenes, characters, locations, timelines, continuity notes, and related creative material.</p>
|
||||
<p>The service is provided on an "as is" and "as available" basis.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>3. Accounts and Security</h2>
|
||||
<p>You are responsible for keeping your account details, password, and any two-factor authentication recovery information secure.</p>
|
||||
<p>You are responsible for all activity that occurs under your account.</p>
|
||||
<p>You must provide accurate account information and keep your email address up to date so that we can contact you about your account, subscription, security, or service-related matters.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>4. Use of the Service</h2>
|
||||
<p>You agree to use PlotDirector lawfully, responsibly, and in accordance with these terms.</p>
|
||||
<p>You must not:</p>
|
||||
<ul>
|
||||
<li>Attempt unauthorised access to the service, accounts, systems, or data</li>
|
||||
<li>Interfere with the operation, security, performance, or availability of the platform</li>
|
||||
<li>Use the service for unlawful, harmful, abusive, or fraudulent purposes</li>
|
||||
<li>Upload malware, malicious code, or material intended to damage or disrupt systems</li>
|
||||
<li>Attempt to reverse engineer, copy, exploit, or bypass the service or its restrictions</li>
|
||||
<li>Use bots, scraping tools, automated scripts, or other automated methods without written permission</li>
|
||||
<li>Resell, sublicense, or commercially exploit access to the service without written permission</li>
|
||||
<li>Attempt to circumvent subscription limits, usage limits, or account restrictions</li>
|
||||
</ul>
|
||||
<p>If you would like automation or integration features, you should contact us or submit a feature request so that the requirement can be reviewed properly.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>5. User Content</h2>
|
||||
<p>You retain ownership of the stories, notes, manuscripts, project data, characters, locations, timelines, images, and other content you create, upload, or store in PlotDirector.</p>
|
||||
<p>We do not claim ownership of your creative work.</p>
|
||||
<p>By using the service, you grant PlotDirector a limited licence to store, process, display, back up, and transmit your content only as necessary to provide, maintain, secure, and improve the service.</p>
|
||||
<p>You are responsible for ensuring that your content is lawful and that you have the rights needed to store and use it within PlotDirector.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>6. PlotDirector Intellectual Property</h2>
|
||||
<p>PlotDirector, including its software, design, branding, logo, features, workflows, user interface, documentation, and underlying technology, remains the property of PlotDirector and its licensors.</p>
|
||||
<p>You must not copy, reproduce, modify, distribute, or create derivative works from PlotDirector except as permitted by these terms or with written permission.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>7. Subscriptions, Trials, and Billing</h2>
|
||||
<p>PlotDirector may offer free trials, free access, and paid subscription plans.</p>
|
||||
<p>Free trials are available for one month unless otherwise stated. After the trial period ends, you will need an active paid subscription to continue using paid features.</p>
|
||||
<p>Paid subscriptions renew automatically according to the billing period you select, such as monthly or annually, unless cancelled before the renewal date.</p>
|
||||
<p>Payments are processed by Stripe or another payment provider. We do not store your full card details on our servers.</p>
|
||||
<p>You may upgrade or downgrade your subscription using the subscription management options provided. Changes may take effect immediately or at the next billing period, depending on the payment provider and subscription rules in place at the time.</p>
|
||||
<p>Prices may change from time to time. Where required, we will provide reasonable notice of pricing changes affecting your subscription.</p>
|
||||
<p>Unless otherwise stated, prices do not include taxes, duties, or charges that may apply in your location.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>8. Cancellation and Expired Subscriptions</h2>
|
||||
<p>You may cancel your subscription using the subscription management options provided.</p>
|
||||
<p>If your subscription ends, is cancelled, expires, or payment fails, access to paid features may be restricted or removed.</p>
|
||||
<p>We may retain your account data for a limited period after your subscription ends to allow for possible reactivation, administration, or legal compliance.</p>
|
||||
<p>However, we are not obliged to retain data after a subscription ends. We may delete account data at our discretion, and in any event may delete it after three months from the date your subscription ends or your account becomes inactive.</p>
|
||||
<p>You should export or back up any important work before cancelling your subscription or allowing it to expire.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>9. Backups and Data Loss</h2>
|
||||
<p>We may maintain system backups for disaster recovery, security, and service continuity purposes.</p>
|
||||
<p>These backups are intended to protect the service in the event of server failure or serious technical issues. They are not a user-level restore service.</p>
|
||||
<p>You are responsible for maintaining your own independent backups and exports of important work.</p>
|
||||
<p>PlotDirector is not responsible for loss of user content caused by user error, accidental deletion, account cancellation, expired subscriptions, unauthorised access caused by compromised credentials, or failure to keep your own backups.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>10. Availability and Hosting</h2>
|
||||
<p>We aim to provide a reliable service, but uninterrupted access cannot be guaranteed.</p>
|
||||
<p>The service may be unavailable from time to time due to maintenance, updates, technical faults, internet outages, hosting issues, power cuts, security incidents, or events outside our reasonable control.</p>
|
||||
<p>We may update, modify, suspend, or discontinue parts of the service at any time.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>11. Third-Party Services</h2>
|
||||
<p>PlotDirector may rely on third-party providers for services such as payment processing, email delivery, hosting, analytics, security, and authentication.</p>
|
||||
<p>We are not responsible for the availability, performance, policies, or actions of third-party providers.</p>
|
||||
<p>Your use of third-party services may also be subject to their own terms and privacy policies.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>12. Suspension and Termination</h2>
|
||||
<p>We may suspend or terminate your account if we reasonably believe that:</p>
|
||||
<ul>
|
||||
<li>You have breached these terms</li>
|
||||
<li>Your account has been used unlawfully, abusively, or fraudulently</li>
|
||||
<li>Your use of the service creates a security, legal, operational, or reputational risk</li>
|
||||
<li>You have attempted to interfere with, exploit, or overload the service</li>
|
||||
<li>Payment has failed or your subscription is no longer active</li>
|
||||
</ul>
|
||||
<p>Where appropriate, we may give you notice and an opportunity to resolve the issue, but we are not required to do so where immediate action is necessary.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>13. Disclaimer of Warranties</h2>
|
||||
<p>PlotDirector is provided on an "as is" and "as available" basis.</p>
|
||||
<p>We do not guarantee that the service will be uninterrupted, error-free, secure, or suitable for every purpose.</p>
|
||||
<p>We do not guarantee that the service will meet your specific requirements or that any stored content will never be lost, corrupted, or unavailable.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>14. Limitation of Liability</h2>
|
||||
<p>To the maximum extent permitted by law, PlotDirector shall not be liable for indirect, incidental, special, consequential, or financial losses arising from your use of, or inability to use, the service.</p>
|
||||
<p>This includes, but is not limited to, loss of profits, loss of business, loss of opportunity, loss of goodwill, loss of data, or loss of creative work.</p>
|
||||
<p>Nothing in these terms excludes or limits liability where it would be unlawful to do so, including liability for death or personal injury caused by negligence, fraud, or any rights that cannot be excluded under applicable consumer protection laws.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>15. Indemnity</h2>
|
||||
<p>You agree to indemnify and hold harmless PlotDirector from any claims, losses, damages, liabilities, costs, or expenses arising from your use of the service, your content, your breach of these terms, or your violation of any law or third-party rights.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>16. Changes to the Service</h2>
|
||||
<p>PlotDirector may change, improve, remove, or discontinue features over time.</p>
|
||||
<p>We will try to avoid unnecessary disruption, but we cannot guarantee that any particular feature will remain available permanently.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>17. Changes to These Terms</h2>
|
||||
<p>We may update these Terms of Service from time to time.</p>
|
||||
<p>When we make changes, we will update the "Last updated" date shown on this page.</p>
|
||||
<p>Where changes are significant, we may provide additional notice by email, account notification, or another reasonable method.</p>
|
||||
<p>Continued use of PlotDirector after updated terms take effect constitutes acceptance of the updated terms.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>18. Governing Law</h2>
|
||||
<p>These terms shall be governed by and interpreted in accordance with the laws of England and Wales.</p>
|
||||
<p>Any disputes relating to these terms or the use of PlotDirector shall be subject to the courts of England and Wales, unless applicable consumer law requires otherwise.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>19. Contact</h2>
|
||||
<p>Questions regarding these Terms of Service may be directed to:</p>
|
||||
<p><a href="mailto:@Model.SupportEmail">@Model.SupportEmail</a></p>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
125
PlotDirector.Website/Views/Shared/_PublicLayout.cshtml
Normal file
@ -0,0 +1,125 @@
|
||||
@using System.Security.Claims
|
||||
@inject IConfiguration Configuration
|
||||
@inject Microsoft.AspNetCore.Hosting.IWebHostEnvironment HostingEnvironment
|
||||
@{
|
||||
var isSolverPage = ViewContext.RouteData.Values["controller"]?.ToString() == "WritingProblems";
|
||||
var isAuthentication = false;
|
||||
var seoMetadata = ViewData["Seo"] as SeoMetadata;
|
||||
var defaultTitle = PublicSeo.DisplayTitle(ViewData["Title"] as string);
|
||||
var seoTitle = ViewData["SeoTitle"] is string seoTitleValue ? seoTitleValue : defaultTitle;
|
||||
var hasSeoMetadata = seoMetadata is not null || ViewData["SeoDescription"] is string || ViewData["CanonicalUrl"] is string;
|
||||
var seoDescription = ViewData["SeoDescription"] as string;
|
||||
var canonicalUrl = ViewData["CanonicalUrl"] as string;
|
||||
var seoKeywords = ViewData["SeoKeywords"] as string;
|
||||
var structuredData = ViewData["StructuredData"] is IEnumerable<string> structuredDataValues ? structuredDataValues : Array.Empty<string>();
|
||||
var ogTitle = ViewData["OgTitle"] as string ?? seoTitle;
|
||||
var ogDescription = ViewData["OgDescription"] as string ?? seoDescription;
|
||||
var ogType = ViewData["OgType"] as string ?? "website";
|
||||
var ogImageUrl = ViewData["OgImage"] as string ?? PublicSeo.AbsoluteUrl(Configuration, PublicSeo.DefaultOgImagePath);
|
||||
var twitterCard = ViewData["TwitterCard"] as string ?? "summary_large_image";
|
||||
}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-GB" data-theme="light" data-bs-theme="light" data-site-theme="public">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@seoTitle</title>
|
||||
@if (hasSeoMetadata)
|
||||
{
|
||||
@if (!string.IsNullOrWhiteSpace(seoDescription))
|
||||
{
|
||||
<meta name="description" content="@seoDescription" />
|
||||
}
|
||||
@if (!string.IsNullOrWhiteSpace(seoKeywords))
|
||||
{
|
||||
<meta name="keywords" content="@seoKeywords" />
|
||||
}
|
||||
<meta name="robots" content="@PublicIndexing.Robots(HostingEnvironment.EnvironmentName, ViewData["Robots"] as string ?? "index, follow")" />
|
||||
<meta property="og:site_name" content="PlotDirector" />
|
||||
<meta property="og:title" content="@ogTitle" />
|
||||
@if (!string.IsNullOrWhiteSpace(ogDescription))
|
||||
{
|
||||
<meta property="og:description" content="@ogDescription" />
|
||||
}
|
||||
<meta property="og:type" content="@ogType" />
|
||||
@if (!string.IsNullOrWhiteSpace(canonicalUrl))
|
||||
{
|
||||
<meta property="og:url" content="@canonicalUrl" />
|
||||
}
|
||||
<meta property="og:image" content="@ogImageUrl" />
|
||||
<meta name="twitter:card" content="@twitterCard" />
|
||||
<meta name="twitter:title" content="@ogTitle" />
|
||||
@if (!string.IsNullOrWhiteSpace(ogDescription))
|
||||
{
|
||||
<meta name="twitter:description" content="@ogDescription" />
|
||||
}
|
||||
<meta name="twitter:image" content="@ogImageUrl" />
|
||||
}
|
||||
@foreach (var jsonLd in structuredData)
|
||||
{
|
||||
@Html.Raw("<script type=\"application/ld+json\">")
|
||||
@Html.Raw(jsonLd)
|
||||
@Html.Raw("</script>")
|
||||
}
|
||||
@if (!string.IsNullOrWhiteSpace(canonicalUrl))
|
||||
{
|
||||
<link rel="canonical" href="@canonicalUrl" />
|
||||
}
|
||||
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/css/public-site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/css/public-art-direction.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/css/public-visual-system.css" asp-append-version="true" />
|
||||
@if(isSolverPage) { <link rel="stylesheet" href="~/css/writing-solver.css" asp-append-version="true" /> }
|
||||
<link rel="icon" href="~/favicon.svg" type="image/svg+xml" />
|
||||
<meta name="theme-color" content="#f8f5ee" />
|
||||
</head>
|
||||
<body class="public-site @(isAuthentication ? "public-auth" : "")">
|
||||
<a class="public-skip" href="#main-content">Skip to content</a>
|
||||
<header class="public-header">
|
||||
<nav class="navbar navbar-expand-md public-nav" aria-label="Main navigation">
|
||||
<div class="marketing-container">
|
||||
<a class="public-wordmark" asp-route="@PublicRouteNames.Home"><span class="public-logo-mark" aria-hidden="true">p<span>.</span></span>PlotDirector</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#publicMenu" aria-controls="publicMenu" aria-expanded="false" aria-label="Open navigation"><span class="navbar-toggler-icon"></span></button>
|
||||
<div class="collapse navbar-collapse" id="publicMenu">
|
||||
<div class="public-links">
|
||||
<a asp-route="@PublicRouteNames.Home">Home</a>
|
||||
<a asp-route="@PublicRouteNames.Features">Tour</a>
|
||||
<a asp-route="@PublicRouteNames.Pricing">Pricing</a>
|
||||
<a href="/problem-solver">Problem Solver</a>
|
||||
<a asp-route="@PublicRouteNames.Help">Help</a>
|
||||
</div>
|
||||
<div class="public-account">
|
||||
@if (User.Identity?.IsAuthenticated == true)
|
||||
{
|
||||
<a asp-controller="Projects" asp-action="Index">Your workspace <span aria-hidden="true">↗</span></a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a asp-controller="Account" asp-action="Login">Sign in</a>
|
||||
<a class="marketing-btn marketing-btn--primary" asp-controller="Account" asp-action="Register">Start writing <span aria-hidden="true">↗</span></a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<main id="main-content" class="@(isAuthentication ? "public-auth-main" : "marketing-shell")" tabindex="-1">
|
||||
@RenderBody()
|
||||
</main>
|
||||
<footer class="public-footer">
|
||||
<div class="marketing-container">
|
||||
<div class="public-footer-top"><a class="public-wordmark" asp-route="@PublicRouteNames.Home">PlotDirector<span class="gold-dot">.</span></a><p>Your book. Your words.<br />A little less to keep in your head.</p></div>
|
||||
<nav class="public-footer__nav" aria-label="Footer navigation">
|
||||
<a asp-route="@PublicRouteNames.Features">Tour</a>
|
||||
<a asp-route="@PublicRouteNames.Pricing">Pricing</a><a href="/problem-solver">Problem Solver</a><a asp-route="@PublicRouteNames.Help">Help</a><a asp-route="@PublicRouteNames.About">Our story</a><a asp-route="@PublicRouteNames.Contact">Contact</a><a asp-route="@PublicRouteNames.Privacy">Privacy</a><a asp-route="@PublicRouteNames.Terms">Terms</a>
|
||||
</nav>
|
||||
<p class="public-colophon">© @DateTime.UtcNow.Year PlotDirector. For the stories only you can tell.</p>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
10
PlotDirector.Website/Views/Shared/_PublicScene.cshtml
Normal file
@ -0,0 +1,10 @@
|
||||
@model string
|
||||
@{ var stem="/images/public/scenes/"+Model; }
|
||||
<div class="public-scene" aria-hidden="true">
|
||||
<picture>
|
||||
<source media="(max-width:600px)" type="image/avif" srcset="@(stem)-mobile-480.avif 480w, @(stem)-mobile-704.avif 704w" sizes="100vw" />
|
||||
<source type="image/avif" srcset="@(stem)-wide-768.avif 768w, @(stem)-wide-1152.avif 1152w, @(stem)-wide-1536.avif 1536w" sizes="100vw" />
|
||||
<source media="(max-width:600px)" type="image/webp" srcset="@(stem)-mobile-480.webp 480w, @(stem)-mobile-704.webp 704w" sizes="100vw" />
|
||||
<img src="@(stem)-wide-1536.webp" srcset="@(stem)-wide-768.webp 768w, @(stem)-wide-1152.webp 1152w, @(stem)-wide-1536.webp 1536w" sizes="100vw" width="1536" height="829" alt="" loading="eager" fetchpriority="high" decoding="async" />
|
||||
</picture>
|
||||
</div>
|
||||
@ -0,0 +1,2 @@
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/dist/jquery.validate.unobtrusive.min.js"></script>
|
||||
26
PlotDirector.Website/Views/WritingProblems/Browse.cshtml
Normal file
@ -0,0 +1,26 @@
|
||||
@using PlotDirector.Website.Models.WritingSolver
|
||||
@model WritingProblemBrowse
|
||||
@{ Layout="_PublicLayout"; }
|
||||
<section class="solver-space solver-space--article"><div class="solver-content">
|
||||
<nav class="solver-trail" aria-label="Breadcrumb"><a href="/">Home</a><span>›</span><a href="/problem-solver">Problem Solver</a>@if(Model.Area is not null) { <span>›</span><a href="/problem-solver/browse">Browse writing problems</a> }</nav>
|
||||
<h1>@(Model.Area?.Title??"Browse writing problems")</h1>
|
||||
<p class="solver-recognition">@(Model.Area?.Description??"Find a familiar difficulty, understand what may be happening, and choose what to inspect in your manuscript.")</p>
|
||||
<p><a class="editorial-link" href="/problem-solver">Prefer a conversation? Find your way with the Problem Solver →</a></p>
|
||||
@if(Model.Area is null)
|
||||
{
|
||||
<div class="solver-browse-areas">
|
||||
@foreach(var area in Model.Catalog.Areas)
|
||||
{ <section><h2><a href="/problem-solver/browse/@area.Id">@area.Title →</a></h2><p>@area.Description</p></section> }
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<ul class="solver-problem-links">
|
||||
@foreach(var article in Model.Catalog.Pages.Where(p=>p.Area==Model.Area.Id))
|
||||
{
|
||||
var solution=Model.Graph.Solutions.FirstOrDefault(s=>s.Id==article.Solution&&s.Active);
|
||||
@if(solution is not null) { <li><h2><a href="/problem-solver/@solution.Slug">@solution.Title</a></h2><p>@article.Distinction</p></li> }
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
</div></section>
|
||||
@ -0,0 +1,6 @@
|
||||
@model PlotDirector.Website.Models.WritingSolver.WritingProblemArticle
|
||||
<div class="solver-permanent-copy">
|
||||
<section aria-labelledby="problem-causes"><h2 id="problem-causes">Why this happens</h2>@foreach(var paragraph in Model.Cause.Split("\n\n")) { <p>@paragraph</p> }</section>
|
||||
<section aria-labelledby="problem-inspect"><h2 id="problem-inspect">What to look for</h2><ul>@foreach(var item in Model.Inspect) { <li>@item</li> }</ul></section>
|
||||
<aside class="solver-mental-model"><h2>A useful way to think about it</h2><p>@Model.Model</p></aside>
|
||||
</div>
|
||||
15
PlotDirector.Website/Views/WritingProblems/Icon.cshtml
Normal file
@ -0,0 +1,15 @@
|
||||
@model string
|
||||
@{ var path=Model switch {
|
||||
"search" => "M21 21l-5-5M18 10a8 8 0 1 1-16 0a8 8 0 0 1 16 0",
|
||||
"connections" => "M8 6h8M6 8v8M18 8v8M8 18h8M6 3a3 3 0 1 1 0 6a3 3 0 0 1 0-6M18 3a3 3 0 1 1 0 6a3 3 0 0 1 0-6M6 15a3 3 0 1 1 0 6a3 3 0 0 1 0-6M18 15a3 3 0 1 1 0 6a3 3 0 0 1 0-6",
|
||||
"pulse" => "M2 12h5l3-8 4 16 3-8h5",
|
||||
"shield-check" => "M12 2l9 4v6c0 5-9 10-9 10S3 17 3 12V6l9-4M8 12l3 3 5-6",
|
||||
"branch" => "M6 3v12a6 6 0 0 0 6 6h6M6 9h6a6 6 0 0 0 6-6M15 18l3 3-3 2M15 2l3 1-1 3",
|
||||
"people" => "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2M16 3a4 4 0 0 1 0 8M22 21v-2a4 4 0 0 0-3-3.87M13 7a4 4 0 1 1-8 0a4 4 0 0 1 8 0",
|
||||
"clock" => "M12 8v4l3 3M9 2h6M12 2v2M21 13a9 9 0 1 1-18 0a9 9 0 0 1 18 0",
|
||||
"pin" => "M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0M15 10a3 3 0 1 1-6 0a3 3 0 0 1 6 0",
|
||||
"layers" => "m12 2 10 5-10 5L2 7l10-5M2 12l10 5 10-5M2 17l10 5 10-5",
|
||||
"shelf" => "M3 3h4v18H3zM10 3h4v18h-4zM16 5l4-1 3 16-4 1z",
|
||||
_ => "M3 3h7c2 0 2 2 2 2s0-2 2-2h7v17h-7c-2 0-2 1-2 1s0-1-2-1H3zM12 5v16"
|
||||
}; }
|
||||
<svg class="solver-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.35" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="@path" /></svg>
|
||||
@ -0,0 +1,5 @@
|
||||
<dialog id="solver-image-dialog" class="solver-image-dialog" aria-labelledby="solver-image-dialog-title">
|
||||
<header><h2 id="solver-image-dialog-title">Application screenshot</h2><button type="button" data-solver-image-close aria-label="Close screenshot">Close <span aria-hidden="true">×</span></button></header>
|
||||
<img alt="" />
|
||||
<p>Use your browser’s zoom controls for a closer look.</p>
|
||||
</dialog>
|
||||
88
PlotDirector.Website/Views/WritingProblems/Index.cshtml
Normal file
@ -0,0 +1,88 @@
|
||||
@using PlotDirector.Website.Models.WritingSolver
|
||||
@model SolverJourney
|
||||
@inject PlotDirector.Website.Services.WritingSolverResults Results
|
||||
@inject PlotDirector.Website.Services.WritingSolverPayoff Payoff
|
||||
@{ Layout = "_PublicLayout"; var next = Model.Outcome.Next; var beginning = Model.Outcome.Answers.Count == 0; var presentation=Results.Present(Model.Outcome); }
|
||||
<section class="solver-space @(beginning ? "solver-space--entry" : "")">
|
||||
<div class="solver-content">
|
||||
<p class="marketing-eyebrow">The Problem Solver</p>
|
||||
@if (Model.Error is not null) { <p role="status">@Model.Error</p> }
|
||||
@if (beginning)
|
||||
{
|
||||
<h1>What’s getting in the way<br class="solver-wide" /> of <em>your</em> writing?</h1>
|
||||
<p class="solver-intro">Tell us what’s making your novel more complicated than it should be,<br class="solver-wide" /> and we’ll help you find a way to get it under control.</p>
|
||||
}
|
||||
@if (next is not null)
|
||||
{
|
||||
<form method="post" action="/problem-solver/answer" class="solver-form">
|
||||
@Html.AntiForgeryToken()
|
||||
<input type="hidden" name="state" value="@Model.History" />
|
||||
<input type="hidden" name="node" value="@next.Id" />
|
||||
<fieldset data-max-choices="@next.MaxChoices">
|
||||
<legend class="@(beginning ? "solver-entry-legend" : "solver-question")">@next.Title</legend>
|
||||
<p class="solver-help" id="solver-help">@next.Help</p>
|
||||
<div class="solver-choices @(next.Type == "area" ? "solver-choices--areas" : "")">
|
||||
@foreach(var choice in Payoff.OrderedChoices(next))
|
||||
{
|
||||
<label class="solver-choice @(choice.Fallback ? "solver-choice--fallback" : "")">
|
||||
<input type="@(next.Multiple ? "checkbox" : "radio")" name="choices" value="@choice.Id" aria-describedby="solver-help" />
|
||||
@if (next.Type == "area" && !choice.Fallback) { <partial name="Icon" model="choice.Icon" /> }
|
||||
<span><strong>@choice.Text</strong>@if(!string.IsNullOrEmpty(choice.Help)) { <span class="solver-choice-help">@choice.Help</span> }</span>
|
||||
</label>
|
||||
}
|
||||
</div>
|
||||
</fieldset>
|
||||
<p class="solver-selection-error" role="alert" hidden>Please choose an answer to continue.</p>
|
||||
<div class="solver-controls">
|
||||
@if (ViewData["BackState"] is string back) { <a class="editorial-link" href="/problem-solver?state=@back">← Back</a> }
|
||||
<button class="marketing-btn marketing-btn--primary" type="submit">@(beginning ? "Let’s find your solution" : "Continue") <span aria-hidden="true">→</span></button>
|
||||
</div>
|
||||
</form>
|
||||
}
|
||||
else
|
||||
{
|
||||
@if(Model.Outcome.Reassurance is not null)
|
||||
{
|
||||
<partial name="Neutral" model="Model" />
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@if(Model.Outcome.Solutions.Count == 0)
|
||||
{
|
||||
<h1>Let’s give this a little breathing room.</h1>
|
||||
<p>There isn’t enough evidence for a specific recommendation yet. Try naming one scene or thread that feels difficult, then ask what you need to know about it next.</p>
|
||||
<p>Try one concrete scene or thread, then start again with the symptom you can recognise most clearly.</p>
|
||||
}
|
||||
@if(presentation is not null) { <partial name="Result" model="presentation" /> }
|
||||
else
|
||||
{
|
||||
@foreach(var solution in Model.Outcome.Solutions)
|
||||
{ <partial name="Solution" model="@(new SolverPageView(Model.Graph,solution,false))" /> }
|
||||
}
|
||||
}
|
||||
<div class="solver-controls">
|
||||
@if (ViewData["BackState"] is string resultBack) { <a class="editorial-link" href="/problem-solver?state=@resultBack">← Back</a> }
|
||||
<a class="marketing-btn marketing-btn--secondary" href="/problem-solver">Start again</a>
|
||||
</div>
|
||||
}
|
||||
@if(Model.Outcome.Answers.Count > 0)
|
||||
{
|
||||
<nav class="solver-recap" aria-label="Areas discussed">
|
||||
<span>We’ve talked about:</span>
|
||||
@for(var i=0; i<Model.Outcome.Answers.Count; i++)
|
||||
{
|
||||
var answer=Model.Outcome.Answers[i];
|
||||
var node=Model.Graph.Nodes.Single(n=>n.Id==answer.Node);
|
||||
<span>@string.Join(", ",node.Choices.Where(c=>answer.Choices.Contains(c.Id)).Select(c=>c.Text))</span>
|
||||
}
|
||||
<a href="/problem-solver">Restart</a>
|
||||
</nav>
|
||||
}
|
||||
else { <p><a class="editorial-link" href="/problem-solver/browse">Browse writing problems →</a></p><p class="solver-promises">A few quiet minutes <span>·</span> No sign-up required <span>·</span> Advice you can use straight away</p> }
|
||||
@if(Model.Graph.IsDemo) { <p class="solver-demo">Preview journey · This small plot-line demonstration will grow into a curated collection of writing problems.</p> }
|
||||
<partial name="Review" model="Model" />
|
||||
@if(presentation is not null){<partial name="ImageDialog" />}
|
||||
</div>
|
||||
</section>
|
||||
@section Scripts { @if(presentation is not null){<script src="~/js/writing-solver-image-dialog.js" asp-append-version="true"></script>} <script src="~/js/writing-solver.js" asp-append-version="true"></script> }
|
||||
19
PlotDirector.Website/Views/WritingProblems/Neutral.cshtml
Normal file
@ -0,0 +1,19 @@
|
||||
@using PlotDirector.Website.Models.WritingSolver
|
||||
@model SolverJourney
|
||||
@{ var reassurance = Model.Outcome.Reassurance!; }
|
||||
<article class="solver-neutral solver-reassurance" data-result-family="reassurance">
|
||||
<span class="solver-reassurance-seal" aria-hidden="true">✓</span>
|
||||
<p class="solver-resolution">A little reassurance before you go</p>
|
||||
<h1>@reassurance.Title</h1>
|
||||
<p class="solver-intro">@reassurance.Summary</p>
|
||||
<section class="solver-neutral-action"><h2>A useful next step</h2>
|
||||
@foreach(var paragraph in reassurance.Advice) { <p class="solver-editorial">@paragraph</p> }
|
||||
</section>
|
||||
@if(reassurance.Feature is string id)
|
||||
{
|
||||
var feature=Model.Graph.Features.Single(f=>f.Id==id && f.Active);
|
||||
<p class="solver-optional-check">Only if you want to check further: <a class="editorial-link" href="/features/@feature.Slug">@feature.Title →</a></p>
|
||||
}
|
||||
<p class="solver-help">You can leave it there, or return whenever you want a little help untangling a writing problem.</p>
|
||||
<a class="editorial-link" href="/">Back to PlotDirector →</a>
|
||||
</article>
|
||||
63
PlotDirector.Website/Views/WritingProblems/Page.cshtml
Normal file
@ -0,0 +1,63 @@
|
||||
@using PlotDirector.Website.Models.WritingSolver
|
||||
@model SolverPageView
|
||||
@inject PlotDirector.Website.Services.WritingSolverResults Results
|
||||
@inject PlotDirector.Website.Services.WritingProblemEditorial Editorial
|
||||
@{ Layout="_PublicLayout"; }
|
||||
<div class="solver-space solver-space--article">
|
||||
<div class="solver-content">
|
||||
<nav class="solver-trail" aria-label="Breadcrumb"><a href="/">Home</a><span>›</span><a href="@(Model.IsFeature ? "/features" : "/problem-solver")">@(Model.IsFeature ? "Features" : "Problem Solver")</a>@if(!Model.IsFeature){<span>›</span><span aria-current="page">@Model.Page.Title</span>}</nav>
|
||||
@if(Model.Graph.IsDemo) { <p class="solver-demo">Demonstration content · The curated collection is on its way.</p> }
|
||||
@if(Model.IsFeature)
|
||||
{
|
||||
var feature=(SolverFeature)Model.Page;
|
||||
<h1>@feature.Title</h1>
|
||||
<p class="solver-intro">@feature.Summary</p>
|
||||
@foreach(var paragraph in feature.Content.Split("\n\n")) { <p class="solver-editorial">@paragraph</p> }
|
||||
@if(feature.Screenshot is not null) { <img class="solver-screenshot" src="@feature.Screenshot" alt="@feature.Title workspace in PlotDirector" width="1200" height="750" /> }
|
||||
<h2>Writing problems this can help with</h2>
|
||||
@foreach(var solution in Model.Graph.Solutions.Where(s=>s.Active && s.Features.Any(f=>f.Feature==feature.Id))) { <p><a href="/problem-solver/@solution.Slug">@solution.PageTitle</a></p> }
|
||||
<p><a class="marketing-btn marketing-btn--primary" href="/features">See PlotDirector in action →</a></p>
|
||||
}
|
||||
else
|
||||
{
|
||||
var presentation = Model.Journey is {} journey ? Results.Present(journey.Outcome) : Results.Present(new SolverOutcome(null, new[] { (SolverSolution)Model.Page }, new Dictionary<string,int>(), Array.Empty<SolverAnswer>()));
|
||||
@if(presentation is not null) { <partial name="Result" model="presentation" /> }
|
||||
else { <partial name="Solution" model="Model" /> }
|
||||
@if(Model.Journey is {} completed)
|
||||
{
|
||||
<div class="solver-controls">
|
||||
@if(ViewData["BackState"] is string back) { <a class="editorial-link" href="/problem-solver?state=@back">← Back</a> }
|
||||
<a class="marketing-btn marketing-btn--secondary" href="/problem-solver">Start again</a>
|
||||
</div>
|
||||
<nav class="solver-recap" aria-label="Areas discussed"><span>We’ve talked about:</span>
|
||||
@foreach(var answer in completed.Outcome.Answers)
|
||||
{ <span>@string.Join(", ",Model.Graph.Nodes.Single(n=>n.Id==answer.Node).Choices.Where(c=>answer.Choices.Contains(c.Id)).Select(c=>c.Text))</span> }
|
||||
<a href="/problem-solver">Restart</a>
|
||||
</nav>
|
||||
}
|
||||
|
||||
var solution=(SolverSolution)Model.Page;
|
||||
var permanent=Editorial.Find(solution.Id);
|
||||
@if(permanent is not null)
|
||||
{
|
||||
<section class="solver-related" aria-labelledby="related-problems"><h2 id="related-problems">Related writing problems</h2><ul>
|
||||
@foreach(var id in permanent.Related)
|
||||
{
|
||||
var related=Model.Graph.Solutions.FirstOrDefault(s=>s.Id==id&&s.Active);
|
||||
var relatedArticle=Editorial.Find(id);
|
||||
@if(related is not null && relatedArticle is not null) { <li><a href="/problem-solver/@related.Slug">@related.Title</a><p>@relatedArticle.Distinction</p></li> }
|
||||
}
|
||||
</ul></section>
|
||||
@foreach(var link in solution.Features.Where(f=>f.Primary))
|
||||
{ var feature=Model.Graph.Features.Single(f=>f.Id==link.Feature); <p><a class="editorial-link" href="/features/@feature.Slug">Explore @feature.Title →</a></p> }
|
||||
<p><a class="editorial-link" href="/problem-solver/browse/@permanent.Area">Browse this problem area →</a></p>
|
||||
}
|
||||
|
||||
}
|
||||
@if(Model.Page.Questions.Count>0 && (Model.IsFeature || Editorial.Find(Model.Page.Id) is null)) { <h2>Questions this helps answer</h2><ul>@foreach(var question in Model.Page.Questions) { <li>@question</li> }</ul> }
|
||||
<a class="editorial-link" href="/problem-solver">Find a way through your writing problem →</a>
|
||||
@if(!Model.IsFeature){<partial name="ImageDialog" />}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section Scripts { @if(!Model.IsFeature){<script src="~/js/writing-solver-image-dialog.js" asp-append-version="true"></script>} }
|
||||
70
PlotDirector.Website/Views/WritingProblems/Result.cshtml
Normal file
@ -0,0 +1,70 @@
|
||||
@using PlotDirector.Website.Models.WritingSolver
|
||||
@using PlotDirector.Website.Services
|
||||
@model SolverDiagnosticPresentation
|
||||
@inject WritingSolverResults Results
|
||||
@inject IHelpService Help
|
||||
@inject WritingProblemEditorial Editorial
|
||||
@inject WritingSolverPayoff Payoff
|
||||
@{ var treatment=Payoff.For(Model.Solution.Id); var personal=Model.Evidence.Count>0; var wide=new[]{"plot-map","chronology","progression","trace"}.Contains(treatment.Family); ViewData["SolverVisualSizes"]=wide?"(max-width: 700px) calc(100vw - 40px), (max-width: 1190px) calc(100vw - 48px), 1140px":"(max-width: 700px) calc(100vw - 40px), (max-width: 1190px) 55vw, 650px"; var tool=Model.Capability; var content=Model.Content; var signedIn=User.Identity?.IsAuthenticated==true; var permanent=Editorial.Find(Model.Solution.Id); var article=content.ArticleKey is null?null:Help.GetByContextKey(content.ArticleKey); }
|
||||
<article class="solver-result solver-result-panel solver-payoff solver-payoff--@treatment.Family" data-result-family="@treatment.Family">
|
||||
<header class="solver-result-heading">
|
||||
@if(personal) { <p class="solver-resolution">✓ What we think is happening</p> }
|
||||
else { <p class="marketing-eyebrow">Writing problems</p> }
|
||||
<h1>@Model.Solution.Title</h1>
|
||||
@if(personal)
|
||||
{
|
||||
<div class="solver-result-evidence solver-listening">
|
||||
<p class="solver-result-inference">@content.Explanation</p>
|
||||
<div><h2>Why we think that</h2><ul>@foreach(var evidence in Model.Evidence){<li>@evidence</li>}</ul></div>
|
||||
</div>
|
||||
}
|
||||
else if(permanent is not null){<p class="solver-recognition">@permanent.Recognition</p>}
|
||||
</header>
|
||||
<aside class="solver-author-action"><strong>Your next step</strong><p>@treatment.Action</p></aside>
|
||||
<section class="solver-start" aria-labelledby="solver-start-heading">
|
||||
<h2 id="solver-start-heading">How PlotDirector can help</h2>
|
||||
<div class="solver-start-grid">
|
||||
@if(treatment.Family=="progression"){<div class="solver-graph-intro"><h3>@tool.Name</h3><p class="solver-specific-help">@content.Reason</p></div><partial name="ResultVisual" model="tool" />}
|
||||
<div class="solver-start-copy">
|
||||
@if(treatment.Family!="progression"){<p class="marketing-eyebrow">Start here</p><h3>@tool.Name</h3><p class="solver-specific-help">@content.Reason</p>}
|
||||
<p class="solver-view-shows">@tool.Shows</p>
|
||||
<p class="solver-look-for"><strong>Look for</strong> @content.LookFor</p>
|
||||
<a class="marketing-btn marketing-btn--primary solver-result-cta" href="@(signedIn ? "/problem-solver/workspace/"+tool.Id : tool.Tour)">@(signedIn ? "Open "+tool.Name+" in my workspace" : "See how "+tool.Name+" works") <span aria-hidden="true">→</span></a>
|
||||
@if(signedIn) { <p class="solver-context-hint">Choose your project first@(tool.WorkspaceRoute.Contains("{characterId}") ? ", then the character you want to follow." : ".")</p> }
|
||||
else { <p class="solver-context-hint">Explore the tool without signing in.</p> }
|
||||
</div>
|
||||
@if(treatment.Family!="progression"){<partial name="ResultVisual" model="tool" />}
|
||||
</div>
|
||||
</section>
|
||||
@if(content.Secondary is not null)
|
||||
{
|
||||
var secondary=Results.Capability(content.Secondary);
|
||||
<aside class="solver-also solver-workflow-next"><strong>Then check</strong><h3><a href="@secondary.Tour">@secondary.Name →</a></h3><p>@content.SecondaryReason</p>
|
||||
@if(treatment.Family=="workflow"){ ViewData["SolverVisualSizes"]="(max-width: 700px) calc(100vw - 40px), (max-width: 944px) calc(100vw - 48px), 896px"; <partial name="ResultVisual" model="secondary" />}
|
||||
</aside>
|
||||
}
|
||||
@if(treatment.Family=="progression"){<aside class="solver-principle solver-principle--compact"><strong>Evidence, not a target</strong><p>Read the scenes behind a rise, pause or dip. A graph does not need to be smooth for a novel to work.</p></aside>}
|
||||
@if(permanent is not null)
|
||||
{
|
||||
<section class="solver-deeper-editorial" aria-label="Understand this writing problem">
|
||||
@if(personal){<p class="solver-recognition">@permanent.Recognition</p>}
|
||||
<partial name="Editorial" model="permanent" />
|
||||
</section>
|
||||
}
|
||||
@if(article is not null)
|
||||
{
|
||||
<aside class="solver-deeper"><p>Want to understand this problem in more depth?</p><a class="editorial-link" href="/help/@article.CategorySlug/@article.Slug">@article.Title →</a></aside>
|
||||
}
|
||||
</article>
|
||||
@if(Model.Supporting.Count>0)
|
||||
{
|
||||
<section class="solver-supporting" aria-label="Other patterns indicated by your answers">
|
||||
<h2>You may also want to look at</h2>
|
||||
@foreach(var item in Model.Supporting)
|
||||
{
|
||||
<details class="solver-result solver-result--support"><summary>@item.Solution.Title</summary>
|
||||
@foreach(var evidence in item.Evidence) { <p>@evidence</p> }
|
||||
</details>
|
||||
}
|
||||
</section>
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
@using PlotDirector.Website.Models.WritingSolver
|
||||
@model SolverCapability
|
||||
@inject PlotDirector.Website.Services.WritingSolverResults Results
|
||||
@{ var sizes=ViewData["SolverVisualSizes"] as string??"(max-width: 700px) calc(100vw - 40px), (max-width: 978px) calc((100vw - 80px) / 2), 449px"; }
|
||||
<figure class="solver-tool-visual">
|
||||
@if(Results.HasImage(Model))
|
||||
{
|
||||
<a class="solver-image-link" href="@Model.Image" data-solver-image aria-haspopup="dialog" aria-controls="solver-image-dialog">
|
||||
<picture>
|
||||
<source type="image/avif" srcset="@Results.ImageSourceSet(Model,"avif")" sizes="@sizes" />
|
||||
<img src="@Model.Image" srcset="@Results.ImageSourceSet(Model,"webp")" sizes="@sizes" alt="@Model.ImageAlt" width="@Model.ImageWidth" height="@Model.ImageHeight" loading="lazy" decoding="async" />
|
||||
</picture>
|
||||
</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="solver-visual-placeholder">
|
||||
<svg viewBox="0 0 48 40" width="48" height="40" fill="none" stroke="currentColor" stroke-width="1.4" aria-hidden="true"><path d="M4 9h10l4-6h12l4 6h10v28H4z"/><circle cx="24" cy="22" r="9"/></svg>
|
||||
<span class="marketing-eyebrow">Application preview unavailable</span>
|
||||
<strong>@Model.Name</strong>
|
||||
<p>This application image is temporarily unavailable.</p>
|
||||
</div>
|
||||
}
|
||||
<figcaption>@Model.PreviewCaption</figcaption>
|
||||
</figure>
|
||||
23
PlotDirector.Website/Views/WritingProblems/Solution.cshtml
Normal file
@ -0,0 +1,23 @@
|
||||
@using PlotDirector.Website.Models.WritingSolver
|
||||
@model SolverPageView
|
||||
@{ var solution = (SolverSolution)Model.Page; }
|
||||
<article class="solver-result">
|
||||
<h1>@solution.Title</h1>
|
||||
<p class="solver-intro">@solution.Summary</p>
|
||||
<aside class="solver-principle"><strong>A useful principle</strong><p>@solution.Principle</p></aside>
|
||||
@foreach(var paragraph in solution.Content.Split("\n\n")) { <p class="solver-editorial">@paragraph</p> }
|
||||
<h2>How PlotDirector can help</h2>
|
||||
<div class="solver-features">
|
||||
@foreach(var link in solution.Features.OrderByDescending(f=>f.Primary))
|
||||
{
|
||||
var feature=Model.Graph.Features.Single(f=>f.Id==link.Feature && f.Active);
|
||||
<div>
|
||||
<p class="marketing-eyebrow">@(link.Primary ? "Start here" : "Works alongside it")</p>
|
||||
<h3><a href="/features/@feature.Slug">@feature.Title →</a></h3>
|
||||
<p>@link.Reason</p>
|
||||
@if(link.Primary && feature.Screenshot is not null) { <a href="/features/@feature.Slug"><img src="@feature.Screenshot" alt="@feature.Title workspace in PlotDirector" width="1200" height="750" loading="lazy" /></a> }
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<p><a class="editorial-link" href="/problem-solver/@solution.Slug">Read and share this advice →</a></p>
|
||||
</article>
|
||||
8
PlotDirector.Website/Views/_ViewImports.cshtml
Normal file
@ -0,0 +1,8 @@
|
||||
@using PlotDirector.Website
|
||||
@using PlotDirector.Website.Models
|
||||
@using PlotDirector.Website.Services
|
||||
@using PlotDirector.Website.ViewModels
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
||||
|
||||
@addTagHelper *, PlotDirector.Website
|
||||
1
PlotDirector.Website/Views/_ViewStart.cshtml
Normal file
@ -0,0 +1 @@
|
||||
@{ Layout = "_PublicLayout"; }
|
||||
1
PlotDirector.Website/appsettings.json
Normal file
@ -0,0 +1 @@
|
||||
{"Application":{"BaseUrl":"https://app.plotdirector.com"},"WritingSolver":{"EnableIndexing":false}}
|
||||
296
PlotDirector.Website/wwwroot/css/public-art-direction.css
Normal file
@ -0,0 +1,296 @@
|
||||
/* A writer's working desk: density changes with the story, while the public palette stays isolated. */
|
||||
html[data-site-theme="public"] {
|
||||
:is(.writer-home,.writer-tour) { overflow: clip; }
|
||||
.writer-hero { padding: 38px 0 42px; }
|
||||
.writer-hero-grid { gap: 24px; grid-template-columns: 1fr 1.08fr; }
|
||||
.writer-hero h1 { font-size: clamp(3.2rem,4.4vw,4.5rem); margin-bottom: 23px; }
|
||||
.writer-hero .marketing-lead { max-width: 470px; }
|
||||
.writing-desk { height: 520px; margin-right: -12px; }
|
||||
.manuscript-sheet { inset: 15px 65px 42px 30px; padding: 28px 36px; font-size: 14px; line-height: 1.8; }
|
||||
.manuscript-running { margin-bottom: 20px !important; }
|
||||
.manuscript-sheet h2 { font-size: 29px; margin-bottom: 22px; }
|
||||
.manuscript-fade { max-height: 54px; overflow: hidden; }
|
||||
.manuscript-sheet > .hand-note { bottom: 25px; font-size: 17px; }
|
||||
.desk-rule { top: -13px; }
|
||||
.desk-note { top: 124px; right: -6px; width: 163px; padding: 22px 18px; transform: rotate(7deg); }
|
||||
.desk-note p { font-size: 22px; margin-bottom: 15px; }
|
||||
.desk-note .hand-note { font-size: 13px; }
|
||||
.desk-answer { bottom: -1px; left: 130px; right: 0; padding: 18px 20px; z-index: 3; }
|
||||
.desk-answer strong { font-size: 23px; }
|
||||
.desk-caption { bottom: -31px; margin: 0; font-size: 13px; }
|
||||
.desk-pencil { height: 235px; bottom: 52px; left: 30px; z-index: 2; }
|
||||
.desk-scene-slip { position: absolute; left: -5px; bottom: 37px; width: 215px; background: #ecebdc; border: 1px solid #d8d7c7; padding: 20px; transform: rotate(-8deg); box-shadow: 3px 5px 14px #30331c18; }
|
||||
.desk-scene-slip small { font-size: 8px; letter-spacing: .13em; color: #6e745e; }
|
||||
.desk-scene-slip p { font: 20px/1.25 Georgia,serif; margin: 10px 0; }
|
||||
.desk-scene-slip > span { font-size: 10px; color: #737362; }
|
||||
.desk-margin-note { position: absolute; top: 33px; right: 12px; z-index: 2; color: #9d543d; font: italic 18px/1.3 "Segoe Print",cursive; transform: rotate(9deg); }
|
||||
.desk-margin-note > span { display: block; text-align: center; font-size: 45px; }
|
||||
/* The writer's questions accumulate; the notes overlap only at their edges. */
|
||||
.writer-problems { padding: 42px 0 35px; text-align: left; background: #eeeade; }
|
||||
.problem-desk-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 35px; align-items: center; }
|
||||
.problem-heading h2 { font-size: clamp(2.3rem,3.35vw,3.5rem); }
|
||||
.problem-heading .marketing-eyebrow { margin-bottom: 16px; }
|
||||
.problem-answer { margin-top: 25px; font-size: 14px; }
|
||||
.question-board { position: relative; min-width: 0; height: 390px; isolation: isolate; }
|
||||
.question-scatter { position: absolute; inset: 0; display: block; padding: 0; max-width: none; }
|
||||
.question-scatter p { position: absolute; width: 30%; margin: 0; padding: 22px 18px; font: italic 20px/1.35 "Segoe Print",Georgia,serif; border: 1px solid #e1d9c3; box-shadow: 2px 7px 12px #34341f14; background: #fffdf4; text-align: left; }
|
||||
.question-scatter p::before { content: ''; position: absolute; top: -8px; left: 32%; width: 50px; height: 18px; background: #ded7bf99; transform: rotate(-4deg); }
|
||||
.question-scatter p:nth-child(1) { top: 23px; left: 1%; transform: rotate(-7deg); background: #f2dfaa; z-index: 2; }
|
||||
.question-scatter p:nth-child(2) { top: 6px; left: 36%; transform: rotate(4deg); background: #fffdf4; }
|
||||
.question-scatter p:nth-child(3) { top: 95px; left: 67%; transform: rotate(-5deg); background: #e4dfeb; z-index: 3; }
|
||||
.question-scatter p:nth-child(4) { top: 220px; left: 3%; transform: rotate(5deg); background: #ecd0c2; z-index: 3; }
|
||||
.question-scatter p:nth-child(5) { top: 178px; left: 34%; transform: rotate(-4deg); background: #e2e7d6; }
|
||||
.question-scatter p:nth-child(6) { top: 244px; left: 65%; transform: rotate(6deg); background: #f8eccd; z-index: 3; }
|
||||
.story-scrap { position: absolute; z-index: -1; color: #8c897a; }
|
||||
.story-scrap--manuscript { top: 88px; left: 8%; width: 77%; min-height: 210px; background: #faf7ef; padding: 32px; transform: rotate(-3deg); border: 1px solid #e0dccf; font: 16px/1.9 Georgia,serif; }
|
||||
.story-scrap--manuscript small { font-size: 9px; letter-spacing: .14em; }
|
||||
.story-scrap--manuscript p { margin-top: 16px; }
|
||||
.story-scrap--manuscript .hand-note { color: #a89572; font-size: 15px; }
|
||||
.story-scrap--date { top: 0; right: 0; width: 145px; transform: rotate(9deg); border-left: 1px solid #c6c8b8; padding: 12px; }
|
||||
.story-scrap--date small,.story-scrap--date span { display: block; font-size: 9px; letter-spacing: .1em; }
|
||||
.story-scrap--date strong { font: 32px/1.5 Georgia,serif; color: #a68d68; }
|
||||
.board-annotation { position: absolute; left: 28%; bottom: -5px; color: #7c8068; font-size: 17px; }
|
||||
.desk-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; }
|
||||
.desk-connections path { stroke: #ab8d55; stroke-width: 1.3; fill: none; stroke-dasharray: 5 4; }
|
||||
/* Compositions retain a full-size screenshot link; extra UI is cropped live in CSS, never invented. */
|
||||
.product-composition { position: relative; min-width: 0; isolation: isolate; }
|
||||
.editorial-split--reverse > .product-composition { order: 0; }
|
||||
.desk-connections,.escaping-threads { pointer-events: none; }
|
||||
.product-composition > .product-print { position: relative; z-index: 1; }
|
||||
.remembers-section { padding: 70px 0 85px; }
|
||||
.remembers-section .editorial-split { gap: 60px; grid-template-columns: .8fr 1.2fr; }
|
||||
.remembers-composition { padding: 30px 0 66px 15px; }
|
||||
.composition-paper { position: absolute; left: -25px; top: 0; width: 220px; padding: 24px; background: #ede7d7; border: 1px solid #d8d1bd; transform: rotate(-8deg); font: 18px/1.6 Georgia,serif; }
|
||||
.composition-paper small { font: 8px system-ui,sans-serif; letter-spacing: .12em; }
|
||||
.composition-paper p { margin: 12px 0 0; }
|
||||
.ui-fragment { position: relative; display: block; padding: 10px; background: #fffdf7; border: 1px solid #d2d5c3; border-radius: 4px; box-shadow: 4px 10px 22px #30351f20; text-decoration: none; color: #34392c; width: max-content; max-width: 100%; cursor: zoom-in; }
|
||||
.fragment-label { display: block; font: 600 9px/1.5 system-ui,sans-serif; letter-spacing: .02em; color: #68705a; padding: 2px 4px 8px; }
|
||||
.ui-crop { --crop-scale: .64; display: block; width: calc(480px * var(--crop-scale)); height: calc(125px * var(--crop-scale)); overflow: hidden; position: relative; border-radius: 2px; background: #fffdf7; max-width: 100%; }
|
||||
.ui-crop img { display: block; position: absolute; width: calc(1440px * var(--crop-scale)); height: auto; max-width: none; }
|
||||
.ui-crop--knowledge img { left: calc(-900px * var(--crop-scale)); top: calc(-395px * var(--crop-scale)); }
|
||||
.ui-crop--person { width: calc(420px * var(--crop-scale)); height: calc(120px * var(--crop-scale)); }
|
||||
.ui-crop--person img { left: calc(-965px * var(--crop-scale)); top: calc(-285px * var(--crop-scale)); }
|
||||
.fragment-person { position: absolute; z-index: 3; right: -16px; bottom: 5px; transform: rotate(-4deg); }
|
||||
.composition-annotation { display: block; position: relative; z-index: 2; font-size: 17px; margin-top: 20px; }
|
||||
.remembers-composition > .composition-annotation { position: absolute; left: -16px; bottom: 2px; max-width: 230px; transform: rotate(-5deg); }
|
||||
.bring-manuscript { padding: 45px 0; }
|
||||
.import-grid { gap: 65px; grid-template-columns: .72fr 1.28fr; }
|
||||
.import-pages { height: 270px; }
|
||||
.import-tab { position: absolute; right: 5px; padding: 5px 16px; background: #e2c778; box-shadow: 2px 3px 8px #2c331415; font: 11px system-ui; transform: rotate(-5deg); }
|
||||
.import-tab--chapters { top: 55px; }
|
||||
.import-tab--scenes { top: 91px; right: 15px; background: #e5d6bb; }
|
||||
.import-pencil-note { position: absolute; left: -5px; bottom: -3px; transform: rotate(-8deg); font-size: 18px; }
|
||||
/* The writing section intentionally keeps its original generous whitespace and quiet single view. */
|
||||
.story-problems { padding: 60px 0 65px; }
|
||||
.story-problems .section-intro { margin-bottom: 35px; }
|
||||
.story-problems .problem-demonstration { margin-top: 45px; gap: 65px; }
|
||||
.story-problems .problem-demonstration + .problem-demonstration { margin-top: 55px; }
|
||||
.chronology-composition { padding: 20px 0 25px; }
|
||||
.chronology-composition .product-print { transform: rotate(-1deg); }
|
||||
.demo-date-slip { position: absolute; z-index: 3; right: -24px; top: -7px; display: block; width: 145px; padding: 16px; background: #f0d68f; box-shadow: 3px 6px 12px #36341f18; transform: rotate(7deg); }
|
||||
.demo-date-slip small { display: block; font: 9px system-ui; letter-spacing: .12em; color: #77612f; }
|
||||
.demo-date-slip strong { font: 34px/1.3 Georgia,serif; display: block; border-bottom: 2px solid #ba8b43; width: max-content; }
|
||||
.demo-date-slip > span { font: italic 12px/1.4 Georgia,serif; display: block; margin-top: 8px; }
|
||||
.chronology-composition .composition-annotation { margin-left: 10px; }
|
||||
.problem-demonstration--reverse > .thread-composition { order: 2; }
|
||||
.thread-composition { padding-top: 35px; padding-bottom: 30px; }
|
||||
.thread-composition > .product-print { transform: rotate(1.2deg); }
|
||||
.thread-note { display: block; position: absolute; z-index: 3; left: -25px; top: -7px; width: 180px; background: #eecebc; padding: 15px 18px; transform: rotate(-7deg); font: 18px/1.3 Georgia,serif; box-shadow: 2px 4px 12px #34341e1a; }
|
||||
.thread-note small { display: block; font: 8px system-ui; letter-spacing: .1em; margin-bottom: 8px; color: #896249; }
|
||||
.thread-note .hand-note { display: block; font-size: 13px; margin-top: 8px; }
|
||||
.escaping-threads { position: absolute; left: -9%; top: 36%; width: 118%; height: 180px; overflow: visible; z-index: 0; }
|
||||
.escaping-threads path { fill: none; stroke: #9aab85; stroke-width: 2; }
|
||||
.escaping-threads path:nth-child(2) { stroke: #cc9b62; }
|
||||
.escaping-threads path:nth-child(3) { stroke: #899daa; }
|
||||
.small-problems { margin-top: 35px; gap: 65px; padding-top: 30px; }
|
||||
.small-problem-visual { display: block; padding: 12px; margin-bottom: 24px; width: max-content; max-width: 100%; background: #fffdf7; border: 1px solid #dad9ca; box-shadow: 3px 6px 15px #30351f0c; transform: rotate(-2deg); }
|
||||
.small-problems > a:nth-child(2) .small-problem-visual { transform: rotate(2deg); }
|
||||
.small-problem-visual .ui-crop { --crop-scale: .82; }
|
||||
.small-problems h3 { font-size: 28px; }
|
||||
/* The crescendo is the one deliberately dark, rich moment in the predominantly paper site. */
|
||||
.application-reveal { --ink: #f5f0e4; --muted: #c8cebd; --line: #65705f; background: #29372f; color: var(--ink); padding: 65px 0 45px; }
|
||||
.application-reveal .editorial-split { align-items: start; gap: 55px; }
|
||||
.application-reveal .editorial-split h2 { font-size: clamp(2.5rem,3.5vw,3.7rem); }
|
||||
.application-reveal h2 em { color: #d2c58e; }
|
||||
.application-reveal .power-copy { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 65px; margin: 35px 0 0; max-width: none; text-align: left; }
|
||||
.application-reveal .power-copy > .marketing-eyebrow { grid-column: 1 / -1; }
|
||||
.application-reveal .power-copy > h2 { grid-column: 1; grid-row: 2; }
|
||||
.application-reveal .power-copy > .serif-statement { grid-column: 1; grid-row: 3; }
|
||||
.application-reveal .power-copy > p:not(.marketing-eyebrow,.serif-statement) { grid-column: 2; grid-row: 2; align-self: center; }
|
||||
.application-reveal .power-copy > .editorial-link { grid-column: 2; grid-row: 3; align-self: start; justify-self: start; margin-top: 15px; }
|
||||
.application-reveal .power-copy h2 { font-size: clamp(2.7rem,4vw,4.2rem); }
|
||||
.application-reveal .power-copy h2 br { display: none; }
|
||||
.application-reveal .serif-statement { color: #e8c775; margin: 15px 0 20px; }
|
||||
.application-reveal .power-copy > p:not(.marketing-eyebrow,.serif-statement) { margin: 0 0 20px; max-width: 700px; }
|
||||
.power-composition { position: relative; margin-top: 30px; padding-top: 165px; isolation: isolate; }
|
||||
.power-overview { position: absolute; left: 0; top: 0; width: 37%; transform: rotate(-4deg); z-index: 2; }
|
||||
.power-overview figcaption { color: #65665b; }
|
||||
.power-map { position: relative; margin-left: auto; width: 90%; z-index: 3; background: #202729; border-color: #5c695c; padding: 7px; box-shadow: 0 20px 50px #111b1655; transform: rotate(.6deg); }
|
||||
.power-map img { border-color: #454d47; }
|
||||
.power-map figcaption { color: #c8cebd; }
|
||||
.power-knowledge { position: absolute; right: 20px; top: 25px; transform: rotate(3deg); z-index: 4; }
|
||||
.power-annotation { position: absolute; top: 30px; left: 44%; color: #d4cda3; max-width: 180px; transform: rotate(-8deg); font-size: 22px; }
|
||||
.power-footnote { display: block; position: relative; text-align: right; margin: 22px 30px 0 0; color: #d4cda3; font-size: 20px; }
|
||||
/* Tour variations use the same desk language, with quiet writing and rich plot-line stops. */
|
||||
.tour-hero { padding: 50px 0 45px; }
|
||||
.tour-hero > .marketing-container { position: relative; }
|
||||
.tour-hero h1 { font-size: clamp(3.6rem,5.5vw,5.7rem); }
|
||||
.tour-index-slip { position: absolute; right: 40px; top: 8px; width: 220px; padding: 24px; background: #efe1b5; transform: rotate(6deg); box-shadow: 4px 9px 20px #34351e15; font: 24px/1.4 Georgia,serif; }
|
||||
.tour-index-slip small { display: block; font: 8px system-ui; letter-spacing: .12em; margin-bottom: 16px; }
|
||||
.tour-index-slip > span { display: block; }
|
||||
.tour-index-slip i { display: block; color: #7d7b5c; font: italic 15px/1.5 Georgia,serif; margin-top: 15px; }
|
||||
.tour-stop:not(#writing) { padding-block: 75px; }
|
||||
.tour-story-composition { padding: 20px 20px 25px 0; }
|
||||
.tour-story-composition .product-print { transform: rotate(-1deg); }
|
||||
.tour-paper-note { display: block; position: absolute; z-index: 2; right: -15px; bottom: 0; padding: 20px; width: 180px; background: #ede1b7; transform: rotate(5deg); box-shadow: 3px 6px 15px #34351c15; color: #363b2b; font: 22px/1.3 Georgia,serif; }
|
||||
.tour-paper-note small { display: block; font: 8px system-ui; letter-spacing: .1em; color: #797356; margin-bottom: 10px; }
|
||||
.tour-paper-note .hand-note { display: block; margin-top: 12px; font-size: 15px; }
|
||||
.tour-cast-composition { padding: 0 15px 70px 0; }
|
||||
.tour-cast-composition .product-print { transform: rotate(1deg); }
|
||||
.tour-cast-composition .fragment-person { right: -10px; bottom: 0; }
|
||||
.tour-time-composition { padding: 15px 15px 0 0; }
|
||||
.tour-time-composition .demo-date-slip { right: -12px; top: -18px; }
|
||||
.tour-knowledge-composition { padding: 20px 0 45px; }
|
||||
.tour-knowledge-composition .product-print { transform: rotate(-1.2deg); }
|
||||
.tour-knowledge-composition .tour-paper-note { left: -30px; right: auto; bottom: -8px; width: 200px; background: #e2e6d7; transform: rotate(-6deg); }
|
||||
.tour-stop--weave { --ink: #f5f0e4; --muted: #c8cebd; --line: #65705f; background: #29372f; color: var(--ink); }
|
||||
.tour-stop--weave h2 em { color: #d2c58e; }
|
||||
.tour-stop--weave .section-number { color: #bdc8b0; }
|
||||
.tour-weave-composition { padding-block: 5px 35px; }
|
||||
.tour-weave-composition .large-product { background: #202729; border-color: #5c695c; margin-top: 25px; transform: rotate(-.5deg); }
|
||||
.tour-weave-composition .large-product img { border-color: #454d47; }
|
||||
.tour-weave-composition .composition-annotation { color: #d4cda3; text-align: right; }
|
||||
.tour-stop--weave .tour-capabilities { padding-top: 0; }
|
||||
.tour-stop--weave .tour-capabilities li::before { color: #c4d4ae; }
|
||||
@media (min-width:1600px) { .writer-hero-grid { gap: 40px; } }
|
||||
@media (max-width:1100px) and (min-width:768px) {
|
||||
.writer-hero h1 { font-size: 4.5vw; }
|
||||
.writing-desk { height: 480px; }
|
||||
.manuscript-sheet { inset: 16px 35px 46px 10px; padding: 25px; font-size: 13px; }
|
||||
.manuscript-sheet h2 { margin-bottom: 18px; }
|
||||
.desk-note { top: 130px; right: -10px; width: 135px; padding: 18px 14px; }
|
||||
.desk-note p { font-size: 19px; }
|
||||
.desk-note .hand-note { font-size: 11px; }
|
||||
.desk-answer { left: 60px; right: 0; padding: 16px; }
|
||||
.desk-answer strong { font-size: 21px; }
|
||||
.desk-scene-slip { left: -20px; bottom: 50px; width: 185px; padding: 16px; }
|
||||
.desk-margin-note { font-size: 15px; right: -4px; top: 10px; }
|
||||
.problem-desk-grid { grid-template-columns: .78fr 1.22fr; gap: 20px; }
|
||||
.question-scatter p { font-size: 16px; padding: 18px 12px; }
|
||||
.question-board { height: 350px; }
|
||||
.question-scatter p:nth-child(4) { top: 200px; }
|
||||
.question-scatter p:nth-child(6) { top: 225px; }
|
||||
.remembers-section .editorial-split { gap: 35px; }
|
||||
.remembers-composition > .composition-annotation { max-width: 130px; left: 0; font-size: 15px; }
|
||||
.ui-crop { --crop-scale: .54; }
|
||||
.small-problem-visual .ui-crop { --crop-scale: .7; }
|
||||
.power-composition { padding-top: 150px; }
|
||||
.power-knowledge { right: 0; top: 20px; }
|
||||
.power-annotation { left: 42%; max-width: 120px; font-size: 17px; }
|
||||
.tour-index-slip { right: 0; width: 175px; padding: 18px; font-size: 20px; }
|
||||
}
|
||||
@media (max-width:767px) {
|
||||
.writer-hero { padding: 32px 0 40px; }
|
||||
.writer-hero-grid { grid-template-columns: 1fr; gap: 30px; }
|
||||
.writer-hero h1 { font-size: clamp(2.8rem,8.9vw,4rem); }
|
||||
.writer-hero h1 br { display: none; }
|
||||
.writing-desk { width: calc(100% - 14px); height: 475px; margin: 10px auto 25px; }
|
||||
.manuscript-sheet { inset: 15px 30px 48px 17px; padding: 24px; font-size: 13px; }
|
||||
.manuscript-sheet h2 { font-size: 26px; }
|
||||
.manuscript-sheet > .hand-note { font-size: 14px; bottom: 25px; left: 24px; }
|
||||
.desk-rule { font-size: 8px; left: 30px; }
|
||||
.desk-note { top: 145px; right: -8px; width: 125px; padding: 18px 12px; }
|
||||
.desk-note p { font-size: 18px; }
|
||||
.desk-note .hand-note { font-size: 11px; }
|
||||
.desk-answer { left: 68px; right: -3px; bottom: 0; padding: 15px; gap: 8px; }
|
||||
.desk-answer strong { font-size: 20px; }
|
||||
.desk-answer small { font-size: 9px; }
|
||||
.desk-scene-slip { left: -9px; bottom: 65px; width: 175px; padding: 15px; }
|
||||
.desk-scene-slip p { font-size: 18px; }
|
||||
.desk-margin-note { top: 3px; right: -4px; font-size: 14px; }
|
||||
.desk-margin-note > span { font-size: 35px; }
|
||||
.desk-pencil { left: 18px; bottom: 48px; height: 200px; }
|
||||
.desk-caption { right: 0; font-size: 12px; }
|
||||
.writer-problems { padding: 40px 0 35px; }
|
||||
.problem-desk-grid { grid-template-columns: 1fr; gap: 15px; }
|
||||
.problem-heading h2 { font-size: clamp(2.4rem,7.4vw,3.2rem); }
|
||||
.problem-answer { margin-top: 20px; }
|
||||
.question-board { height: 420px; margin-top: 10px; }
|
||||
.question-scatter p { width: 44%; font-size: 17px; padding: 20px 15px; }
|
||||
.question-scatter p:nth-child(1) { left: 0; top: 10px; }
|
||||
.question-scatter p:nth-child(2) { left: 52%; top: 25px; }
|
||||
.question-scatter p:nth-child(3) { left: 4%; top: 145px; }
|
||||
.question-scatter p:nth-child(4) { left: 52%; top: 170px; }
|
||||
.question-scatter p:nth-child(5) { left: 0; top: 285px; }
|
||||
.question-scatter p:nth-child(6) { left: 53%; top: 300px; }
|
||||
.story-scrap--manuscript { left: 5%; width: 85%; top: 100px; height: 255px; padding: 25px; font-size: 13px; }
|
||||
.story-scrap--date { top: 0; width: 120px; }
|
||||
.board-annotation { left: 5%; bottom: -16px; font-size: 15px; }
|
||||
.remembers-section { padding: 50px 0 65px; }
|
||||
.remembers-section .editorial-split { grid-template-columns: 1fr; gap: 22px; }
|
||||
.remembers-composition { padding: 28px 0 100px; }
|
||||
.composition-paper { left: -8px; width: 170px; padding: 20px; font-size: 16px; }
|
||||
.ui-crop { --crop-scale: .57; }
|
||||
.fragment-person { right: 0; bottom: 23px; }
|
||||
.remembers-composition > .composition-annotation { left: 0; bottom: -8px; max-width: none; font-size: 16px; }
|
||||
.bring-manuscript { padding: 45px 0; }
|
||||
.import-grid { grid-template-columns: 1fr; gap: 30px; }
|
||||
.import-pages { height: 245px; }
|
||||
.import-tab { right: 15%; }
|
||||
.import-tab--scenes { right: 17%; }
|
||||
.import-pencil-note { left: 5%; }
|
||||
.story-problems { padding: 50px 0; }
|
||||
.story-problems .problem-demonstration { margin-top: 40px; gap: 20px; }
|
||||
.problem-demonstration > .product-composition { order: 2; }
|
||||
.story-problems .problem-demonstration + .problem-demonstration { margin-top: 45px; }
|
||||
.demo-date-slip { right: 0; top: -4px; width: 110px; padding: 12px; }
|
||||
.demo-date-slip strong { font-size: 27px; }
|
||||
.demo-date-slip > span { font-size: 11px; }
|
||||
.chronology-composition { padding-top: 35px; }
|
||||
.chronology-composition .composition-annotation { font-size: 15px; max-width: 270px; }
|
||||
.thread-composition { padding-top: 58px; padding-bottom: 20px; }
|
||||
.thread-note { top: 0; left: 3px; width: 155px; font-size: 16px; padding: 12px 15px; }
|
||||
.thread-composition .escaping-threads { top: 25%; height: 130px; }
|
||||
.small-problems { gap: 35px; margin-top: 30px; }
|
||||
.small-problem-visual .ui-crop { --crop-scale: .56; }
|
||||
.small-problem-visual { margin-bottom: 22px; }
|
||||
.application-reveal { padding: 50px 0 35px; }
|
||||
.application-reveal .editorial-split { gap: 8px; }
|
||||
.application-reveal .power-copy { display: block; margin-top: 45px; }
|
||||
.application-reveal .power-copy h2 { font-size: clamp(2.6rem,8vw,3.5rem); }
|
||||
.power-composition { display: grid; grid-template-columns: 1fr; min-height: 0; gap: 18px; margin-top: 30px; padding: 0 0 10px; }
|
||||
.power-overview { position: relative; width: 88%; top: auto; left: auto; transform: rotate(-2deg); margin-left: 4px; }
|
||||
.power-map { position: relative; top: auto; right: auto; width: 100%; margin: -35px 0 0; transform: rotate(1deg); }
|
||||
.power-knowledge { position: relative; right: auto; top: auto; margin-left: auto; margin-top: -8px; order: 3; transform: rotate(2deg); }
|
||||
.power-annotation { top: 5px; left: auto; right: 2px; max-width: 100px; font-size: 16px; z-index: 4; text-align: right; }
|
||||
.power-footnote { position: relative; bottom: auto; right: auto; order: 4; text-align: right; font-size: 16px; margin: 0; }
|
||||
.tour-hero { padding: 35px 0; }
|
||||
.tour-hero h1 { font-size: clamp(3.4rem,10.5vw,4.5rem); }
|
||||
.tour-index-slip { position: static; display: flex; flex-wrap: wrap; gap: 4px 12px; width: auto; margin: 10px 0 25px; padding: 14px 18px; font-size: 16px; transform: rotate(-1deg); }
|
||||
.tour-index-slip small { width: 100%; margin-bottom: 4px; }
|
||||
.tour-index-slip i { margin-top: 0; font-size: 13px; }
|
||||
.tour-hero h1 { clear: both; }
|
||||
.tour-hero-bottom { clear: both; }
|
||||
.tour-stop:not(#writing) { padding-block: 55px; }
|
||||
.tour-story-composition { padding: 15px 0 60px; }
|
||||
.tour-paper-note { right: 0; bottom: -5px; width: 150px; padding: 16px; font-size: 19px; }
|
||||
.tour-paper-note .hand-note { font-size: 13px; }
|
||||
.tour-cast-composition { padding: 0 0 75px; }
|
||||
.tour-cast-composition .fragment-person { right: 0; }
|
||||
.tour-time-composition { padding: 25px 0 0; }
|
||||
.tour-time-composition .demo-date-slip { right: 0; top: 0; }
|
||||
.tour-knowledge-composition { padding-bottom: 85px; }
|
||||
.tour-knowledge-composition .tour-paper-note { left: 0; width: 170px; }
|
||||
.tour-weave-composition .composition-annotation { font-size: 15px; }
|
||||
.tour-stop--weave .tour-capabilities { margin-top: 5px; }
|
||||
}
|
||||
@media (max-width:359px) {
|
||||
.writer-hero .marketing-eyebrow { font-size: 9px; letter-spacing: .12em; }
|
||||
.desk-answer { left: 45px; }
|
||||
.desk-answer strong { font-size: 18px; }
|
||||
.question-scatter p { font-size: 15px; padding: 20px 12px; }
|
||||
.small-problem-visual .ui-crop { --crop-scale: .5; }
|
||||
.ui-crop { --crop-scale: .5; }
|
||||
.power-annotation { font-size: 14px; max-width: 80px; }
|
||||
}
|
||||
}
|
||||
419
PlotDirector.Website/wwwroot/css/public-site.css
Normal file
@ -0,0 +1,419 @@
|
||||
/* A dedicated public palette. No application preference participates in this scope. */
|
||||
html[data-site-theme="public"] {
|
||||
--public-content-width:1280px;
|
||||
--paper:#fcf3e5; --paper-deep:#f0e2cf; --ink:#30242b; --muted:#71625c; --gold:#c7ac67; --gold-dark:#7c733d; --sage:#e8eadc; --line:#dfcdb9; --plum:#54223f;
|
||||
--marketing-navy: var(--ink); --marketing-ink: var(--ink); --marketing-gold: var(--gold); --marketing-cream: var(--paper); --marketing-offwhite: #fffdf7; --marketing-muted: var(--muted); --marketing-line: var(--line);
|
||||
scroll-behavior: smooth; scroll-padding-top: 110px;
|
||||
body.public-site { margin: 0; background: var(--paper); color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; font-size: 16px; line-height: 1.7; }
|
||||
.public-site *, .public-site *::before, .public-site *::after { box-sizing: border-box; }
|
||||
.public-site { h1,h2,h3,h4 { color: var(--ink); } h1,h2,h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.08; } h1 { font-size: clamp(3.6rem,6vw,6.4rem); } h2 { font-size: clamp(2.6rem,4.1vw,4.4rem); } h3 { font-size: clamp(2rem,3vw,3rem); } h1 em,h2 em { font-weight: 400; color: #6b7655; } :where(p) { margin: 0 0 1.2rem; } :where(a) { color: inherit; } img { max-width: 100%; } :focus-visible { outline: 3px solid #916122; outline-offset: 5px; } }
|
||||
.marketing-container { width: min(var(--public-content-width), calc(100% - 112px)); max-width: var(--public-content-width); margin-inline: auto; padding: 0; }
|
||||
.marketing-shell { width: 100%; max-width: none; padding: 0; margin: 0; }
|
||||
.marketing-shell main { padding: 0; }
|
||||
.public-skip { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 10px 20px; color: var(--paper); background: var(--ink); }
|
||||
.public-skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; white-space: nowrap; }
|
||||
.public-skip:focus { top: 10px; }
|
||||
.public-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
|
||||
.public-nav { min-height: 100px; padding: 16px 0; }
|
||||
.public-nav > .marketing-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
|
||||
.public-wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 700 27px/1 Georgia,serif; letter-spacing: -1px; text-decoration: none; white-space: nowrap; }
|
||||
.public-logo-mark { width: 35px; height: 37px; display: inline-block; font-size: 38px; line-height: .8; border-bottom: 2px solid var(--gold-dark); }
|
||||
.public-logo-mark span,.gold-dot { color: var(--gold-dark); }
|
||||
#publicMenu { justify-content: space-between; margin-left: 65px; gap: 20px; }
|
||||
.public-links,.public-account { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
|
||||
.public-links a,.public-account > a:not(.marketing-btn) { text-decoration: none; padding-block: 8px; border-bottom: 1px solid transparent; }
|
||||
.public-links a:hover,.public-account > a:not(.marketing-btn):hover { border-color: var(--gold-dark); }
|
||||
.marketing-btn { display: inline-flex; justify-content: center; align-items: center; gap: 24px; min-height: 52px; border: 1px solid transparent; border-radius: 4px; padding: 13px 24px; font: 600 14px/1.5 "Segoe UI",system-ui,sans-serif; letter-spacing: 0; text-decoration: none; box-shadow: none; transition: background .2s,transform .2s; white-space: normal; }
|
||||
.public-site a.marketing-btn--primary, .marketing-btn--primary { background: var(--ink); border-color: var(--ink); color: #fffdf7; }
|
||||
.marketing-btn--primary:hover { background: #444a39; color: #fffdf7; border-color: #444a39; transform: translateY(-2px); }
|
||||
.marketing-btn--secondary { background: transparent; border-color: #a3a595; color: var(--ink); }
|
||||
.marketing-btn--secondary:hover { background: var(--paper-deep); color: var(--ink); }
|
||||
.marketing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; margin-top: 28px; }
|
||||
.marketing-eyebrow { color: var(--muted); font: 600 11px/1.5 "Segoe UI",system-ui,sans-serif; letter-spacing: .17em; text-transform: uppercase; margin: 0 0 22px; }
|
||||
.eyebrow-line { display: inline-block; width: 30px; height: 1px; background: var(--gold-dark); vertical-align: middle; margin-right: 10px; }
|
||||
.marketing-lead { font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 530px; }
|
||||
.editorial-link { display: inline-block; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid #aeb19d; padding-bottom: 3px; }
|
||||
.editorial-link:hover { color: #6b7655; border-color: #6b7655; }
|
||||
.cta-note { font-size: 12px; color: var(--muted); margin-top: 18px; }
|
||||
.writer-hero { position: relative; overflow: clip; padding: 78px 0 85px; background: radial-gradient(ellipse at 85% 50%,#e9e7d9 0,transparent 57%); }
|
||||
.writer-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 45px; }
|
||||
.writer-hero h1 { margin-bottom: 26px; font-size: clamp(3.8rem,5.9vw,6.3rem); }
|
||||
.writer-hero h1 em { position: relative; }
|
||||
.writer-hero h1 em::after { content: ''; position: absolute; height: 5px; bottom: -3px; left: -3%; width: 110%; background: var(--gold); border-radius: 50%; transform: rotate(-4deg); }
|
||||
.writer-hero .marketing-lead { max-width: 430px; font-size: 16px; }
|
||||
.writer-hero .marketing-actions { gap: 22px; }
|
||||
.writing-desk { height: 645px; position: relative; margin-right: -24px; }
|
||||
.desk-rule { position: absolute; top: -8px; left: 55px; font-size: 9px; letter-spacing: .25em; color: #858677; transform: rotate(-5deg); }
|
||||
.manuscript-sheet { position: absolute; inset: 26px 60px 60px 25px; padding: 36px 40px; background: #fffef9; box-shadow: 1px 3px 6px #33321c0b, 7px 16px 35px #33321c18; transform: rotate(-5deg); border: 1px solid #e7e3d6; font: 16px/1.9 Georgia,serif; }
|
||||
.manuscript-sheet::before { content: ''; position: absolute; inset: 6px -8px -7px 8px; background: #fbf9f2; border: 1px solid #e1ded3; z-index: -1; transform: rotate(2deg); }
|
||||
.manuscript-running { display: flex; justify-content: space-between; font: 8px/1.5 "Segoe UI",sans-serif; letter-spacing: .2em; color: #8a8a7f; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 35px !important; }
|
||||
.manuscript-chapter { text-align: center; font-variant: small-caps; font-size: 14px; margin: 0 0 8px !important; }
|
||||
.manuscript-sheet h2 { text-align: center; font-size: 31px; margin-bottom: 27px; }
|
||||
.manuscript-sheet > p:not(.manuscript-running,.manuscript-chapter) { text-indent: 18px; margin-bottom: 9px; }
|
||||
.editorial-underline { text-decoration: underline; text-decoration-color: #c49845; text-underline-offset: 5px; text-decoration-thickness: 2px; }
|
||||
.manuscript-fade { opacity: .35; }
|
||||
.hand-note { font: italic 19px/1.4 "Segoe Print","Bradley Hand",cursive; color: #6a704f; letter-spacing: -.5px; }
|
||||
.manuscript-sheet > .hand-note { position: absolute; bottom: 28px; left: 32px; transform: rotate(-2deg); }
|
||||
.desk-note { position: absolute; top: 135px; right: -8px; width: 189px; padding: 29px 22px 23px; background: #f1d88d; transform: rotate(8deg); box-shadow: 3px 9px 15px #3c351319; }
|
||||
.desk-note small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #76602e; }
|
||||
.desk-note p { font: 24px/1.25 Georgia,serif; margin-block: 12px 20px; }
|
||||
.desk-note .hand-note { font-size: 15px; color: #665935; }
|
||||
.note-pin { position: absolute; top: -9px; left: 55px; width: 70px; height: 22px; background: #e2dcc8a3; transform: rotate(-12deg); }
|
||||
.desk-answer { position: absolute; bottom: 12px; left: 90px; right: 20px; display: flex; gap: 16px; padding: 22px 26px; background: #fdfdf6; border: 1px solid #d3d9c7; border-left: 4px solid #788766; box-shadow: 3px 9px 25px #3d422819; transform: rotate(2deg); }
|
||||
.answer-tick { color: #667750; font-size: 21px; }
|
||||
.desk-answer small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 5px; }
|
||||
.desk-answer strong { display: block; font: 24px/1.2 Georgia,serif; }
|
||||
.desk-answer a { display: inline-block; margin-top: 8px; font-size: 11px; text-decoration: none; border-bottom: 1px solid var(--line); }
|
||||
.desk-pencil { position: absolute; height: 285px; width: 8px; background: linear-gradient(90deg,#b97e2c,#eac16d 45%,#c99b4d); bottom: 85px; left: 25px; transform: rotate(18deg); border-top: 12px solid #c3b294; border-bottom: 14px solid #37352d; box-shadow: 4px 2px 4px #0002; }
|
||||
.desk-caption { position: absolute; bottom: -36px; right: 38px; font: italic 15px Georgia,serif; color: #878777; }
|
||||
.writer-problems { padding: 90px 0 65px; text-align: center; border-top: 1px solid var(--line); background: #f1efe6; }
|
||||
.writer-problems h2 { font-size: clamp(2.5rem,3.8vw,4rem); }
|
||||
.question-scatter { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px 25px; padding: 40px 40px 28px; max-width: 1100px; margin: auto; }
|
||||
.question-scatter p { padding: 12px 21px; background: #fffdf7; font: 19px/1.5 Georgia,serif; box-shadow: 0 3px 8px #24291408; margin: 0; transform: rotate(-2deg); }
|
||||
.question-scatter p:nth-child(2n) { transform: rotate(2deg); background: #e8eadf; }
|
||||
.question-scatter p:last-child { background: #f3dfa5; }
|
||||
.problem-answer { margin-top: 16px; color: var(--muted); font-size: 15px; }
|
||||
.problem-answer > span { font: 32px Georgia,serif; color: #7e865e; }
|
||||
.problem-answer strong { color: var(--ink); font-weight: 500; }
|
||||
.editorial-section { padding: 115px 0; }
|
||||
.editorial-split { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 85px; }
|
||||
.editorial-split > div > p:not(.marketing-eyebrow) { max-width: 470px; color: var(--muted); }
|
||||
.editorial-split h2 { margin-bottom: 28px; }
|
||||
.product-print { margin: 0; min-width: 0; padding: 9px; background: #fffef9; border: 1px solid #d8d8cc; box-shadow: 0 14px 35px #272e1910; border-radius: 5px; }
|
||||
.product-preview { display: block; cursor: zoom-in; border-radius: 2px; }
|
||||
.product-print img { display: block; width: 100%; height: auto; border: 1px solid #e6e5da; border-radius: 2px; }
|
||||
.product-print figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 8px 3px; font-size: 10px; color: var(--muted); }
|
||||
.product-print--tilt { transform: rotate(1.5deg); }
|
||||
.bring-manuscript { background: var(--sage); padding: 75px 0; border-block: 1px solid #d7dccb; }
|
||||
.import-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 100px; }
|
||||
.import-grid h2 { font-size: clamp(2.4rem,3.6vw,3.8rem); margin-bottom: 24px; }
|
||||
.import-grid > div > p:not(.marketing-eyebrow) { max-width: 540px; color: #5f6756; }
|
||||
.import-pages { height: 290px; display: grid; place-items: center; position: relative; }
|
||||
.import-pages > div { position: relative; width: 205px; background: #fffdf7; padding: 30px; transform: rotate(-7deg); box-shadow: 4px 8px 20px #353f2712; border: 1px solid #d5d8c8; }
|
||||
.import-pages > div::before { content: ''; position: absolute; inset: 8px -10px -10px 10px; background: #f8f7ed; border: 1px solid #d5d8c8; transform: rotate(4deg); z-index: -1; }
|
||||
.import-pages span:not(.import-arrow) { font-size: 8px; letter-spacing: .15em; }
|
||||
.import-pages p { font: 21px/1.9 Georgia,serif; margin-top: 20px; margin-bottom: 0; }
|
||||
.import-pages i { font-size: 13px; color: var(--muted); }
|
||||
.import-arrow { position: absolute; right: -20px; bottom: 15px; font: 100px Georgia,serif; color: #7a875f; transform: rotate(16deg); }
|
||||
.writing-heading { max-width: 720px; margin: 0 auto 50px; text-align: center; }
|
||||
.writing-heading h2 { margin-bottom: 26px; }
|
||||
.writing-heading p:not(.marketing-eyebrow) { max-width: 540px; margin-inline: auto; color: var(--muted); }
|
||||
.writing-product { max-width: 1050px; margin: auto; }
|
||||
.story-problems { background: #f0ede4; padding-top: 85px; }
|
||||
.section-intro { margin-bottom: 60px; }
|
||||
.problem-demonstration { display: grid; grid-template-columns: 1.2fr .8fr; gap: 75px; align-items: center; margin-top: 70px; }
|
||||
.problem-demonstration > div > p { color: var(--muted); }
|
||||
.problem-demonstration h3 { margin: 12px 0 22px; }
|
||||
.problem-demonstration--reverse { grid-template-columns: .8fr 1.2fr; }
|
||||
.problem-demonstration--reverse > figure { order: 2; }
|
||||
.section-number { display: block; color: #777b66; font: 600 10px/1.5 "Segoe UI",sans-serif; letter-spacing: .16em; margin-bottom: 20px; }
|
||||
.small-problems { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 85px; border-top: 1px solid #d1d2c5; padding-top: 45px; }
|
||||
.small-problems > a { text-decoration: none; padding-right: 30px; }
|
||||
.small-problems h3 { font-size: 30px; margin-bottom: 20px; }
|
||||
.small-problems p { color: var(--muted); font-size: 15px; }
|
||||
.application-reveal .editorial-split { grid-template-columns: 1.1fr .9fr; }
|
||||
.large-product { margin-top: 50px; }
|
||||
.power-copy { max-width: 730px; text-align: center; margin: 80px auto 0; }
|
||||
.power-copy h2 { font-size: clamp(2.5rem,3.8vw,4rem); }
|
||||
.power-copy > p:not(.marketing-eyebrow,.serif-statement) { max-width: 560px; margin: 0 auto 24px; color: var(--muted); }
|
||||
.serif-statement { font: italic clamp(1.7rem,2.8vw,2.7rem)/1.3 Georgia,serif; color: #6b7655; margin-block: 22px; }
|
||||
.writer-philosophy { text-align: center; background: #e7e9df; border-block: 1px solid #d7dbcb; padding: 85px 0; }
|
||||
.writer-philosophy h2 { font-size: clamp(3.5rem,6vw,6rem); margin-bottom: 28px; }
|
||||
.writer-philosophy p:not(.marketing-eyebrow) { max-width: 560px; margin: 0 auto 20px; }
|
||||
.editorial-asterisk { font-size: 45px; line-height: 1; color: #8e9a72; display: block; margin-bottom: 30px; }
|
||||
.philosophy-signoff { font: italic 20px Georgia,serif; color: #6b7655; }
|
||||
.final-cta { background: var(--paper); color: var(--ink); padding: 90px 0; text-align: center; border: 0; }
|
||||
.final-cta::before,.final-cta::after { display: none; }
|
||||
.final-cta__inner { background: transparent; border: 0; padding: 0; box-shadow: none; border-radius: 0; max-width: none; }
|
||||
.final-cta h2 { color: var(--ink); font-size: clamp(2.8rem,4.5vw,4.8rem); margin-bottom: 18px; }
|
||||
.final-cta p { color: var(--muted); }
|
||||
.final-cta .marketing-actions { justify-content: center; }
|
||||
.final-cta .marketing-eyebrow { color: var(--muted); }
|
||||
.public-footer { background: #eeece2; border-top: 1px solid var(--line); padding: 48px 0 28px; }
|
||||
.public-footer-top { display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
|
||||
.public-footer-top > p { font: italic 20px/1.5 Georgia,serif; color: var(--muted); }
|
||||
.public-footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px 26px; font-size: 12px; margin-top: 20px; }
|
||||
.public-footer__nav a { text-decoration: none; }
|
||||
.public-footer__nav a:hover { text-decoration: underline; }
|
||||
.public-colophon { margin: 28px 0 0 !important; padding-top: 18px; border-top: 1px solid #d6d5c9; font-size: 10px; color: var(--muted); }
|
||||
/* Tour: a single editorial journey, with compact sticky wayfinding. */
|
||||
.tour-hero { padding: 80px 0 60px; }
|
||||
.tour-hero h1 { margin-bottom: 35px; }
|
||||
.tour-hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
|
||||
.tour-hero-bottom .marketing-lead { max-width: 650px; margin: 0; }
|
||||
.tour-jump { background: #f8f5eef5; backdrop-filter: blur(12px); border-block: 1px solid var(--line); position: sticky; top: 0; z-index: 15; }
|
||||
.tour-jump > div { display: flex; gap: 22px; overflow-x: auto; align-items: center; padding-block: 18px; scrollbar-width: thin; }
|
||||
.tour-jump a { flex-shrink: 0; font-size: 12px; font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; padding-block: 5px; }
|
||||
.tour-jump a:hover { border-color: var(--gold-dark); }
|
||||
.tour-jump span { font-size: 9px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; margin-right: 8px; }
|
||||
.tour-stop { padding: 100px 0; scroll-margin-top: 10px; }
|
||||
.tour-stop--soft { background: #f0ede4; }
|
||||
.tour-stop--sage { background: var(--sage); }
|
||||
.tour-stop-heading { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 75px; align-items: center; margin-bottom: 40px; }
|
||||
.tour-stop-heading > .section-number { grid-column: 1/-1; }
|
||||
.tour-stop-heading > p { color: var(--muted); max-width: 440px; }
|
||||
.tour-capabilities { list-style: none; padding: 24px 0 0; margin: 0; display: flex; justify-content: space-between; gap: 30px; font-size: 13px; color: var(--muted); }
|
||||
.tour-capabilities li::before { content: '✓'; color: #6b7655; margin-right: 10px; }
|
||||
.editorial-list { padding-left: 0; list-style: none; color: var(--muted); font-size: 14px; margin-top: 25px; }
|
||||
.editorial-list li { border-top: 1px solid var(--line); padding: 12px 0; }
|
||||
.editorial-list li::before { content: '↗'; color: #788465; margin-right: 12px; }
|
||||
.editorial-split--reverse { grid-template-columns: 1.18fr .82fr; }
|
||||
.editorial-split--reverse > div { order: 2; }
|
||||
.tour-aside { font: italic 17px/1.5 Georgia,serif; }
|
||||
.writer-philosophy--compact h2 { font-size: clamp(2.7rem,4.5vw,4.5rem); }
|
||||
/* Pricing keeps the server-rendered plans, limits and checkout links intact. */
|
||||
.marketing-home { --marketing-navy: var(--ink); --marketing-gold: var(--gold); --marketing-cream: var(--paper); --marketing-offwhite: #fffdf7; --marketing-ink: var(--ink); --marketing-muted: var(--muted); --marketing-line: var(--line); background: var(--paper); color: var(--ink); }
|
||||
.pricing-hero,.public-hero { background: var(--paper); color: var(--ink); padding: 75px 0 60px; border: 0; }
|
||||
.pricing-hero::before,.pricing-hero::after,.public-hero::before,.public-hero::after { display: none; }
|
||||
.pricing-hero__inner,.public-hero__inner { max-width: 1280px; text-align: left; }
|
||||
.pricing-hero h1,.public-hero h1 { color: var(--ink); max-width: 950px; font-size: clamp(3rem,5.5vw,5.4rem); font-weight: 400; }
|
||||
.pricing-hero .marketing-eyebrow,.pricing-hero .marketing-lead,.public-hero .marketing-eyebrow,.public-hero .marketing-lead { color: var(--muted); }
|
||||
.pricing-hero .marketing-lead { max-width: 650px; margin: 24px 0; }
|
||||
.pricing-hero .marketing-actions { justify-content: flex-start; }
|
||||
.pricing-plans { background: var(--paper); padding: 30px 0 70px; }
|
||||
.section-heading { text-align: left; max-width: none; margin-bottom: 35px; }
|
||||
.section-heading h2 { font-size: clamp(2.3rem,3.5vw,3.4rem); }
|
||||
.pricing-card-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; align-items: stretch; }
|
||||
.pricing-card { display: flex; flex-direction: column; position: relative; border: 1px solid var(--line); border-radius: 5px; background: #fffdf7; color: var(--ink); box-shadow: none; padding: 30px 24px; }
|
||||
.pricing-card--featured { border: 2px solid #778366; background: #eff1e7; transform: none; padding: 29px 23px; box-shadow: none; }
|
||||
.pricing-card--trial { background: #f3eddf; }
|
||||
.pricing-badge { align-self: flex-start; position: static; display: inline-block; background: #dfe5d3; color: #445239; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border: 0; border-radius: 2px; margin: 0 0 20px; }
|
||||
.pricing-badge--trial { background: #ebd6a6; color: #5b4926; }
|
||||
.pricing-card__badges { min-height: 45px; }
|
||||
.pricing-card__heading h3 { font-size: 28px; margin-bottom: 10px; }
|
||||
.pricing-card__heading p { font-size: 13px; color: var(--muted); min-height: 65px; }
|
||||
.pricing-price { min-height: 130px; padding: 18px 0; margin: 0; border-block: 1px solid var(--line); }
|
||||
.pricing-price strong { color: var(--ink); display: block; font: 36px/1.3 Georgia,serif; }
|
||||
.pricing-price__value { font: inherit; }
|
||||
.pricing-price > span,.pricing-price > small { font-size: 11px; display: block; color: var(--muted); line-height: 1.7; }
|
||||
.pricing-price strong small { font: 10px "Segoe UI",sans-serif; }
|
||||
.pricing-feature-list { list-style: none; padding: 22px 0; margin: 0; font-size: 12px; color: var(--muted); }
|
||||
.pricing-feature-list li { padding: 6px 0; }
|
||||
.pricing-feature-list li::before { content: '✓'; color: #76805e; margin-right: 7px; }
|
||||
.pricing-card__actions { margin-top: auto; padding-top: 15px; }
|
||||
.pricing-card__actions .marketing-btn { width: 100%; padding-inline: 10px; font-size: 12px; }
|
||||
.pricing-link { font-size: 11px; display: block; text-align: center; margin-top: 12px; color: var(--muted); }
|
||||
.pricing-compare { background: var(--sage); padding: 70px 0; }
|
||||
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 60px; }
|
||||
.comparison-grid article { border: 0; border-top: 1px solid #cbd2be; background: transparent; padding: 22px 0 0; border-radius: 0; box-shadow: none; }
|
||||
.comparison-grid h3 { font-size: 25px; margin-bottom: 14px; }
|
||||
.comparison-grid p { font-size: 14px; color: #5f6756; }
|
||||
.pricing-faq { background: var(--paper); padding: 70px 0; }
|
||||
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 65px; }
|
||||
.faq-grid article { border: 0; border-top: 1px solid var(--line); padding: 24px 0 0; border-radius: 0; box-shadow: none; background: transparent; }
|
||||
.faq-grid h3 { font: 400 23px/1.25 Georgia,serif; letter-spacing: -.02em; margin-bottom: 14px; }
|
||||
.faq-grid p { color: var(--muted); font-size: 14px; }
|
||||
.pricing-message { border: 1px solid var(--line); background: #fffdf7; color: var(--ink); padding: 16px 20px; margin-block: 20px; }
|
||||
/* Shared primitives for public help, legal content and authentication. */
|
||||
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
|
||||
.lead-text,.muted { color: var(--muted); }
|
||||
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; }
|
||||
.page-heading h1 { font-size: clamp(2.7rem,5vw,4.5rem); margin-bottom: 20px; }
|
||||
.button-row,.auth-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
|
||||
.plain-card,.edit-panel { border: 1px solid var(--line); border-radius: 5px; padding: 28px; margin-bottom: 24px; }
|
||||
.plain-card h2,.list-section h2 { font-size: 32px; margin-bottom: 20px; }
|
||||
.plain-card h3 { font-size: 25px; margin-bottom: 16px; }
|
||||
.asset-card-grid,.help-category-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 22px; }
|
||||
.asset-card-grid .plain-card { margin: 0; }
|
||||
.list-section { padding-block: 25px; }
|
||||
.breadcrumb-trail { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); padding-block: 10px; }
|
||||
.breadcrumb-trail > * + *::before { content: '/'; margin-right: 10px; color: #929584; }
|
||||
.status-pill { display: inline-block; font-size: 11px; padding: 3px 10px; background: var(--sage); border-radius: 3px; }
|
||||
.help-markdown-body { max-width: 850px; margin-inline: auto; }
|
||||
.help-markdown-body h2 { margin-top: 35px; font-size: 32px; }
|
||||
.help-markdown-body h3 { margin-top: 25px; font-size: 25px; }
|
||||
.help-markdown-body img { max-width: 100%; }
|
||||
.help-markdown-body pre,.help-markdown-body table { max-width: 100%; overflow-x: auto; display: block; }
|
||||
.help-markdown-body a,.public-policy a { overflow-wrap: anywhere; }
|
||||
.plotline-help-icon { display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fffdf7; color: var(--muted); font: 11px/1 system-ui,sans-serif; width: 20px; height: 20px; vertical-align: middle; }
|
||||
.auth-field-stack { display: grid; gap: 20px; }
|
||||
.auth-actions { margin-top: 24px; }
|
||||
.auth-help { margin-top: 20px; font-size: 13px; }
|
||||
/* OTP geometry must not depend on the installed-window-only legacy theme. */
|
||||
.two-factor-code-group { margin-bottom: 1.5rem; }
|
||||
.two-factor-label { display: block; text-align: center; margin-bottom: 0; }
|
||||
.two-factor-actions { display: flex; align-items: center; justify-content: center; gap: .75rem; }
|
||||
.two-factor-help { text-align: center; margin-top: 1rem; }
|
||||
.two-factor-inputs {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, minmax(0, 3.5rem));
|
||||
justify-content: center;
|
||||
gap: clamp(.25rem, 1.5vw, .75rem);
|
||||
width: 100%;
|
||||
margin-top: .75rem;
|
||||
}
|
||||
.two-factor-inputs > .two-factor-digit {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
padding: 0;
|
||||
text-align: center;
|
||||
font-size: clamp(1.1rem, 4vw, 1.6rem);
|
||||
}
|
||||
.form-check { display: flex; align-items: center; gap: 8px; }
|
||||
.form-check-input { float: none; margin-top: 0; }
|
||||
.public-auth-main .trial-status-panel { padding: 24px; margin-bottom: 28px; background: var(--sage); border: 1px solid #d4dbc6; border-radius: 5px; }
|
||||
.public-auth-main .trial-status-panel h2 { font-size: 28px; margin-bottom: 14px; }
|
||||
.public-auth-main .trial-status-panel p { font-size: 14px; color: var(--muted); }
|
||||
/* Existing informational pages inherit the public typography and paper. */
|
||||
.public-mission { background: var(--sage); padding: 65px 0; }
|
||||
.public-mission h2 { font-size: clamp(2.2rem,3.8vw,3.8rem); max-width: 900px; }
|
||||
.public-card-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 40px; }
|
||||
.public-card { border-top: 1px solid var(--line); padding-top: 24px; }
|
||||
.public-policy { max-width: 850px; }
|
||||
.public-policy section { margin-bottom: 40px; }
|
||||
.public-policy h2 { margin-bottom: 22px; }
|
||||
.public-updated { font-size: 12px; color: var(--muted); }
|
||||
.public-content-section--soft { background: #f0ede4; }
|
||||
.public-content-section { background: var(--paper); padding-block: 45px; }
|
||||
.public-info-page .public-hero h1 { margin-bottom: 20px; }
|
||||
.public-narrative { max-width: 850px; font-size: 17px; }
|
||||
.public-content-section h2 { font-size: 36px; }
|
||||
.public-content-section h3 { font-size: 26px; }
|
||||
.public-info-page .plain-card,.public-info-page .public-card { background: #fffdf7; border-color: var(--line); color: var(--ink); box-shadow: none; }
|
||||
main.marketing-shell > :not(article) { max-width: 1168px; margin-inline: auto; }
|
||||
main.marketing-shell > .page-heading { padding: 60px 0 20px; }
|
||||
main.marketing-shell > .breadcrumb-trail { margin-top: 25px; }
|
||||
.plain-card,.edit-panel { background: #fffdf7; border-color: var(--line); box-shadow: none; }
|
||||
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fffdf7; }
|
||||
.btn-primary:hover { background: #444a39; border-color: #444a39; }
|
||||
.btn-outline-primary,.btn-outline-secondary { color: var(--ink); border-color: #a6aa99; }
|
||||
.btn-outline-primary:hover,.btn-outline-secondary:hover { background: #e5e9db; border-color: #808b6b; color: var(--ink); }
|
||||
.form-control,.form-select { background-color: #fffefb; color: var(--ink); border-color: #c5c8b8; }
|
||||
.form-control:focus,.form-select:focus { border-color: #858e6c; box-shadow: 0 0 0 .2rem #85936830; }
|
||||
.public-auth-main { width: min(640px,calc(100% - 48px)); min-height: 60vh; margin: 65px auto 85px; }
|
||||
.public-auth-main h1 { font-size: 54px; font-weight: 400; }
|
||||
.public-auth-main .page-heading { margin-bottom: 30px; }
|
||||
.public-auth-main .auth-card { padding: 32px; border: 1px solid var(--line); border-radius: 5px; background: #fffdf7; }
|
||||
.auth-page-heading,.auth-card { max-width: none; }
|
||||
.auth-actions { gap: 12px; }
|
||||
.auth-field-stack { gap: 20px; }
|
||||
.validation-summary-valid { display: none; }
|
||||
@media (min-width:1600px) { .writer-hero-grid { gap: 80px; } }
|
||||
@media (max-width:1100px) {
|
||||
.marketing-container { width: calc(100% - 64px); }
|
||||
#publicMenu { margin-left: 35px; }
|
||||
.public-links,.public-account { gap: 18px; }
|
||||
.public-account .marketing-btn { padding-inline: 16px; }
|
||||
.writer-hero-grid { gap: 25px; grid-template-columns: 1fr 1fr; }
|
||||
.writer-hero h1 { font-size: 5.9vw; }
|
||||
.writing-desk { height: 570px; margin-right: -10px; }
|
||||
.manuscript-sheet { inset: 25px 35px 65px 5px; padding: 25px; font-size: 14px; }
|
||||
.manuscript-running { margin-bottom: 25px !important; }
|
||||
.desk-note { top: 170px; right: -15px; width: 155px; padding: 24px 18px; }
|
||||
.desk-note p { font-size: 21px; }
|
||||
.desk-answer { left: 40px; right: 0; bottom: 0; }
|
||||
.desk-pencil { left: 0; }
|
||||
.editorial-split,.problem-demonstration { gap: 45px; }
|
||||
.import-grid { gap: 60px; }
|
||||
.pricing-card-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
|
||||
.pricing-card__heading p { min-height: 0; }
|
||||
main.marketing-shell > :not(article) { max-width: calc(100% - 64px); }
|
||||
}
|
||||
@media (max-width:767px) {
|
||||
.marketing-container { width: calc(100% - 40px); }
|
||||
.public-nav { min-height: 78px; padding: 14px 0; }
|
||||
.public-wordmark { font-size: 25px; }
|
||||
#publicMenu { margin-left: 0; flex-basis: 100%; }
|
||||
.public-links { flex-direction: column; align-items: stretch; gap: 0; padding-top: 20px; }
|
||||
.public-links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
|
||||
.public-account { justify-content: space-between; margin-block: 18px 8px; }
|
||||
.writer-hero { padding: 45px 0 55px; }
|
||||
.writer-hero-grid { grid-template-columns: 1fr; gap: 45px; }
|
||||
.writer-hero h1 { font-size: clamp(3.55rem,10.9vw,5.2rem); }
|
||||
.writer-hero h1 br:nth-of-type(2) { display: none; }
|
||||
.writer-hero .marketing-lead { max-width: 500px; }
|
||||
.writer-hero .marketing-actions { gap: 20px; }
|
||||
.writing-desk { max-width: 490px; width: calc(100% - 10px); height: 565px; margin: 0 auto 25px; }
|
||||
.manuscript-sheet { inset: 25px 40px 60px 20px; padding: 28px; font-size: 15px; }
|
||||
.desk-note { right: -4px; top: 155px; width: 150px; }
|
||||
.desk-answer { bottom: 0; left: 45px; right: 4px; padding: 20px; }
|
||||
.desk-answer strong { font-size: 23px; }
|
||||
.desk-pencil { left: 13px; }
|
||||
.desk-caption { right: 20px; bottom: -38px; font-size: 13px; }
|
||||
.desk-rule { left: 40px; }
|
||||
.writer-problems { padding: 60px 0 40px; }
|
||||
.question-scatter { padding: 25px 0; gap: 12px; }
|
||||
.question-scatter p { font-size: 16px; padding: 10px 14px; }
|
||||
.editorial-section,.tour-stop { padding: 65px 0; }
|
||||
.editorial-split,.editorial-split--reverse,.problem-demonstration,.problem-demonstration--reverse,.import-grid,.application-reveal .editorial-split { grid-template-columns: 1fr; gap: 35px; }
|
||||
.editorial-split--reverse > div,.problem-demonstration--reverse > figure { order: initial; }
|
||||
.editorial-split h2 { margin-bottom: 22px; }
|
||||
.product-print { padding: 5px; }
|
||||
.product-print figcaption { padding: 8px 4px 4px; font-size: 9px; }
|
||||
.product-print figcaption .hand-note { font-size: 15px; }
|
||||
.product-print--tilt { transform: rotate(.6deg); }
|
||||
.bring-manuscript { padding: 55px 0; }
|
||||
.import-grid { gap: 40px; }
|
||||
.import-pages { height: 235px; }
|
||||
.import-pages > div { padding: 20px 30px; width: 190px; }
|
||||
.import-arrow { right: 20px; font-size: 75px; }
|
||||
.writing-heading { margin-bottom: 30px; text-align: left; }
|
||||
.writing-heading > p:not(.marketing-eyebrow) { margin-left: 0; }
|
||||
.problem-demonstration { margin-top: 40px; }
|
||||
.problem-demonstration > figure { order: 2; }
|
||||
.small-problems { grid-template-columns: 1fr; gap: 35px; margin-top: 50px; }
|
||||
.small-problems > a { padding-right: 0; }
|
||||
.small-problems h3 { font-size: 28px; }
|
||||
.power-copy { margin-top: 50px; }
|
||||
.large-product { margin-top: 25px; }
|
||||
.writer-philosophy { padding: 60px 0; }
|
||||
.writer-philosophy h2 { font-size: 4rem; }
|
||||
.final-cta { padding: 65px 0; }
|
||||
.public-footer { padding-top: 35px; }
|
||||
.public-footer-top { flex-direction: column; gap: 25px; }
|
||||
.public-footer-top p { font-size: 18px; }
|
||||
.public-footer__nav { gap: 15px 23px; }
|
||||
.tour-hero { padding: 45px 0; }
|
||||
.tour-hero h1 { font-size: clamp(3.6rem,11vw,5rem); }
|
||||
.tour-hero-bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
|
||||
.tour-jump > div { width: 100%; padding-inline: 20px; gap: 24px; }
|
||||
.tour-jump span { display: none; }
|
||||
.tour-stop-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 25px; }
|
||||
.tour-stop-heading > .section-number { margin-bottom: 0; }
|
||||
.tour-stop-heading > p { margin: 0; }
|
||||
.tour-capabilities { flex-direction: column; gap: 12px; padding-top: 20px; }
|
||||
.writer-philosophy--compact h2 { font-size: 3rem; }
|
||||
.pricing-hero,.public-hero { padding: 45px 0; }
|
||||
.pricing-hero h1,.public-hero h1 { font-size: clamp(2.9rem,9vw,4.2rem); }
|
||||
.pricing-plans { padding-top: 10px; }
|
||||
.comparison-grid,.faq-grid { grid-template-columns: 1fr; gap: 20px; }
|
||||
.pricing-compare,.pricing-faq { padding: 50px 0; }
|
||||
main.marketing-shell > :not(article) { max-width: calc(100% - 40px); }
|
||||
.public-auth-main { margin-block: 40px 60px; }
|
||||
.public-auth-main .auth-card { padding: 24px; }
|
||||
.public-auth-main h1 { font-size: 44px; }
|
||||
.public-auth-main .auth-actions { flex-direction: column; align-items: stretch; }
|
||||
.page-heading { flex-direction: column; }
|
||||
.plain-card,.edit-panel { padding: 22px; }
|
||||
}
|
||||
@media (max-width:480px) {
|
||||
.pricing-card-grid { grid-template-columns: 1fr; }
|
||||
.writer-hero .marketing-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
|
||||
.manuscript-sheet { padding: 24px; font-size: 13px; }
|
||||
.manuscript-running { font-size: 7px; }
|
||||
.manuscript-sheet h2 { font-size: 26px; }
|
||||
.writing-desk { height: 520px; }
|
||||
.desk-note { top: 166px; width: 133px; padding: 20px 14px; }
|
||||
.desk-note p { font-size: 19px; }
|
||||
.desk-note .hand-note { font-size: 12px; }
|
||||
.desk-answer { left: 32px; padding: 17px 14px; gap: 10px; }
|
||||
.desk-answer strong { font-size: 21px; }
|
||||
.manuscript-sheet > .hand-note { font-size: 15px; bottom: 24px; left: 24px; }
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
scroll-behavior: auto;
|
||||
*,*::before,*::after { animation: none !important; transition: none !important; }
|
||||
}
|
||||
}
|
||||
/* Standalone authentication uses the application's semantic palette, without an application shell. */
|
||||
html[data-app-theme] .public-auth { background: var(--pd-workspace); color: var(--pd-text); }
|
||||
html[data-app-theme] .public-auth .public-header { background: var(--pd-chrome); padding: 20px; border-bottom: 1px solid var(--pd-border); }
|
||||
html[data-app-theme] .public-auth .public-nav > div { width: 100%; display: flex; justify-content: space-between; }
|
||||
html[data-app-theme] .public-auth .public-wordmark { color: var(--pd-heading); font: bold 26px Georgia,serif; text-decoration: none; }
|
||||
html[data-app-theme] .public-auth .public-logo-mark,html[data-app-theme] .public-auth .public-links,html[data-app-theme] .public-auth .public-account,html[data-app-theme] .public-auth .navbar-toggler,html[data-app-theme] .public-auth .public-footer { display: none; }
|
||||
html[data-app-theme] .public-auth .public-auth-main { width: min(640px,calc(100% - 40px)); margin: 55px auto; }
|
||||
html[data-app-theme] .public-auth .auth-card { background: var(--pd-surface); border: 1px solid var(--pd-border); padding: 28px; }
|
||||
html[data-app-theme] .public-auth .public-skip { position: absolute; left: -9999px; }
|
||||
html[data-app-theme] .public-auth .public-skip:focus { left: 20px; }
|
||||
80
PlotDirector.Website/wwwroot/css/public-visual-system.css
Normal file
@ -0,0 +1,80 @@
|
||||
/* Shared public identity. Never matches application/PWA-auth roots without data-site-theme. */
|
||||
html[data-site-theme="public"] {
|
||||
.public-header { background:#fcf3e5f5; }
|
||||
.marketing-btn--primary,.public-site a.marketing-btn--primary { background:var(--plum); border-color:var(--plum); color:#fff9f0; }
|
||||
.marketing-btn--primary:hover { background:#6a3153; border-color:#6a3153; color:#fff9f0; }
|
||||
.writer-problems,.story-problems { background:#f3e7d6; }
|
||||
.public-links { gap:22px; }
|
||||
#publicMenu { margin-left:38px; }
|
||||
.public-footer { background:#f0e5d4; }
|
||||
.public-scene-host { --public-scene-reading-edge:max(32px,calc((100vw - var(--public-content-width)) / 2)); position:relative; isolation:isolate; background:var(--paper); }
|
||||
.public-scene-host>.marketing-container { position:relative; z-index:1; }
|
||||
.public-scene { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
|
||||
.public-scene picture,.public-scene img { display:block; width:100%; height:100%; }
|
||||
.public-scene img { object-fit:cover; object-position:center 42%; }
|
||||
.public-scene::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,var(--paper),#fcf3e500 35%),linear-gradient(90deg,#fcf3e50a,#fcf3e5f5 var(--public-scene-reading-edge),#fcf3e5ed 50%,#fcf3e5f5 calc(100% - var(--public-scene-reading-edge)),#fcf3e50a); }
|
||||
.public-scene-host--pricing .public-scene::after { background:linear-gradient(0deg,var(--paper),#fcf3e522 75%),linear-gradient(90deg,#fcf3e580,#fcf3e5f9 var(--public-scene-reading-edge),#fcf3e5fa 50%,#fcf3e5f9 calc(100% - var(--public-scene-reading-edge)),#fcf3e580); }
|
||||
.public-scene-host--home .public-scene img { object-position:center 40%; }
|
||||
.writer-home :is(.writer-problems,.bring-manuscript,.writer-philosophy),.writer-tour .tour-stop { border-top:1px solid var(--line); }
|
||||
.writer-home .product-print,.writer-tour .product-print { background:#fffaf2; border-color:var(--line); box-shadow:0 8px 25px #573b2712; }
|
||||
.tour-jump { background:var(--paper-deep); border-block:1px solid var(--line); }
|
||||
.writer-tour .tour-stop:nth-of-type(even) { background:#f6ecdd; }
|
||||
.writer-tour .tour-paper-note { background:var(--sage); border-color:var(--line); }
|
||||
.pricing-card { border-radius:10px 6px 10px 6px; background:#fffaf2; border-color:var(--line); box-shadow:0 4px 15px #573b270b; }
|
||||
.pricing-card--featured { border-color:#75816a; background:#edf0e3; box-shadow:0 5px 20px #536b4814; }
|
||||
.pricing-card--trial { background:#f6ead6; }
|
||||
.pricing-card__heading { border-bottom:0; }
|
||||
.pricing-badge { background:#dfe5d3; color:#405238; }
|
||||
.public-info-page .public-hero { background:radial-gradient(ellipse at 0 0,#e8eadc80,transparent 65%),var(--paper); border-bottom:1px solid var(--line); }
|
||||
.public-info-page :is(.public-card,.plain-card),.public-auth-main .auth-card { background:#fffaf2; border-color:var(--line); box-shadow:0 4px 18px #573b2709; }
|
||||
.marketing-shell>:is(.plain-card,.edit-panel,.list-section) { background:#fffaf2; border-color:var(--line); }
|
||||
.marketing-shell>.page-heading { border-bottom:1px solid var(--line); padding-bottom:24px; }
|
||||
.public-site :is(.btn-primary,button.btn-primary) { background:var(--plum); border-color:var(--plum); color:#fff9f0; }
|
||||
.public-site :is(.btn-primary,button.btn-primary):hover { background:#6a3153; border-color:#6a3153; }
|
||||
.public-site .form-control:focus { border-color:#94718a; box-shadow:0 0 0 .2rem #54223f1c; }
|
||||
}
|
||||
@media(max-width:1000px) { html[data-site-theme="public"] { .public-links { gap:14px; } #publicMenu { margin-left:20px; } } }
|
||||
@media(max-width:600px) {
|
||||
html[data-site-theme="public"] .public-scene img { object-position:left top; }
|
||||
html[data-site-theme="public"] .public-scene::after,html[data-site-theme="public"] .public-scene-host--pricing .public-scene::after { background:linear-gradient(0deg,var(--paper) 25%,#fcf3e5dc 70%,#fcf3e5c9),linear-gradient(90deg,#fcf3e540,#fcf3e5cc); }
|
||||
}
|
||||
|
||||
/* Home offers a problem-first path after the familiar frustrations, before the product tour. */
|
||||
html[data-site-theme="public"] {
|
||||
.writer-solver-invitation { padding:48px 0; border-block:1px solid var(--line); background:linear-gradient(110deg,#e8eadcbb,var(--paper) 75%); }
|
||||
.writer-solver-grid { display:grid; grid-template-columns:1fr 1.05fr; align-items:center; gap:56px; }
|
||||
.writer-solver-invitation h2 { color:var(--plum); font-size:clamp(2.3rem,3.4vw,3.5rem); margin-bottom:20px; }
|
||||
.writer-solver-invitation p:not(.marketing-eyebrow) { line-height:1.65; }
|
||||
.writer-solver-note { font-size:.9rem; color:var(--muted); margin:10px 0 0; }
|
||||
.writer-solver-examples { position:relative; }
|
||||
.writer-solver-mark { position:absolute; right:25px; top:-105px; font:italic 12rem/1 Georgia,serif; color:var(--plum); opacity:.07; pointer-events:none; }
|
||||
.writer-solver-examples ul { position:relative; display:grid; grid-template-columns:1fr 1fr; gap:16px; list-style:none; padding:0; margin:0; }
|
||||
.writer-solver-examples li { display:flex; align-items:center; min-height:112px; padding:22px; border:1px solid var(--line); border-left:3px solid #94718a; border-radius:7px; background:#fffaf2; color:var(--ink); font:1.12rem/1.5 Georgia,serif; box-shadow:0 3px 10px #573b2709; }
|
||||
.writer-solver-examples li:nth-child(2),.writer-solver-examples li:nth-child(3) { background:#edf0e3; border-left-color:#75816a; }
|
||||
}
|
||||
@media(max-width:900px) { html[data-site-theme="public"] .writer-solver-grid { grid-template-columns:1fr; gap:28px; } html[data-site-theme="public"] .writer-solver-mark { display:none; } }
|
||||
@media(max-width:600px) { html[data-site-theme="public"] .writer-solver-invitation { padding:34px 0; } html[data-site-theme="public"] .writer-solver-examples ul { grid-template-columns:1fr; gap:10px; } html[data-site-theme="public"] .writer-solver-examples li { min-height:0; padding:16px 18px; } }
|
||||
|
||||
/* The warm Tour backgrounds must use their matching foreground palette, including
|
||||
Plot Lines (formerly dark). Keep this together with the surface overrides. */
|
||||
html[data-site-theme="public"] .writer-tour .tour-stop--weave {
|
||||
--ink:#30242b; --muted:#71625c; --line:#dfcdb9; color:var(--ink);
|
||||
background:#f6ecdd;
|
||||
h2 em,.composition-annotation { color:#6b6134; }
|
||||
.section-number { color:var(--muted); }
|
||||
.tour-capabilities li::before { color:#4e6846; }
|
||||
.large-product { background:#fffaf2; border-color:var(--line); }
|
||||
}
|
||||
|
||||
/* Source crops now follow the current PWA panels; the surrounding angled compositions stay intact. */
|
||||
html[data-site-theme="public"] {
|
||||
.product-preview picture { display:block; }
|
||||
.ui-crop picture { display:block; width:100%; height:100%; }
|
||||
.ui-crop picture img { position:static; width:100%; height:100%; max-width:100%; object-fit:cover; object-position:left top; }
|
||||
}
|
||||
/* Small section labels need normal-text contrast on cream and sage, not large-heading contrast. */
|
||||
html[data-site-theme="public"] .writer-tour .section-number { color:#62664f; }
|
||||
html[data-site-theme="public"] .application-reveal {
|
||||
.theme-demo-note { color:#c8cebd; font-size:12px; margin-top:26px; }
|
||||
.product-print figcaption { color:#62664f; }
|
||||
}
|
||||
7610
PlotDirector.Website/wwwroot/css/site.css
Normal file
182
PlotDirector.Website/wwwroot/css/writing-solver.css
Normal file
@ -0,0 +1,182 @@
|
||||
/* Public-only refinement; application theme tokens never participate. */
|
||||
html[data-site-theme="public"] {
|
||||
--solver-result-width:71.25rem; --solver-reading-width:56rem;
|
||||
--solver-desk-image:url('/images/public/writing-solver-desk.png');
|
||||
.solver-space { background-color:var(--paper); background-image:linear-gradient(90deg,transparent,#fcf3e5ed 22%,#fcf3e5f7 50%,#fcf3e5ed 78%,transparent),var(--solver-desk-image); background-position:center top; background-size:cover; padding:48px 24px 32px; min-height:760px; }
|
||||
.solver-content { width:min(930px,100%); margin:auto; }
|
||||
.solver-space--entry .solver-content { width:min(1000px,100%); text-align:center; }
|
||||
.solver-space h1 { font-size:clamp(2.4rem,4.2vw,4rem); margin:12px 0 22px; line-height:1.08; }
|
||||
.solver-space h1 em { color:var(--gold-dark); }
|
||||
.solver-intro { font:clamp(1.15rem,1.6vw,1.45rem)/1.5 Georgia,serif; max-width:780px; margin:0 auto 28px; }
|
||||
.solver-question { float:none; width:100%; font:clamp(2rem,3.5vw,3rem)/1.15 Georgia,serif; letter-spacing:-.035em; color:var(--plum); margin:10px 0 16px; }
|
||||
.solver-entry-legend { font:600 1rem/1.5 "Segoe UI",sans-serif; margin-bottom:6px; }
|
||||
.solver-help { color:var(--muted); margin-bottom:22px; }
|
||||
.solver-choices { display:grid; gap:10px; max-width:750px; margin:0 auto; text-align:left; }
|
||||
.solver-choices--areas { grid-template-columns:repeat(3,minmax(0,1fr)); max-width:100%; gap:14px; }
|
||||
.solver-choice { position:relative; display:flex; gap:14px; align-items:center; cursor:pointer; min-height:58px; padding:14px 18px; background:#fffaf2e8; border:1px solid #d9bfa9; border-radius:12px; box-shadow:0 3px 5px #613d2410; color:var(--ink); }
|
||||
.solver-choice:has(input:checked) { border-color:var(--plum); background:#f2e4eb; box-shadow:0 0 0 1px var(--plum); }
|
||||
.solver-choice input { width:20px; height:20px; min-width:20px; accent-color:var(--plum); margin:0; }
|
||||
.solver-choice strong { font-size:1rem; font-weight:500; line-height:1.4; display:block; }
|
||||
.solver-choices--areas .solver-choice { min-height:125px; padding:18px 14px; gap:12px; }
|
||||
.solver-choices--areas .solver-choice strong { font:600 1.5rem/1.1 Georgia,serif; color:var(--plum); letter-spacing:-.04em; }
|
||||
.solver-choices--areas input { position:absolute; top:10px; right:10px; width:15px; height:15px; min-width:15px; }
|
||||
.solver-choice-help { display:block; font-size:.95rem; line-height:1.4; margin-top:5px; }
|
||||
.solver-icon { width:48px; min-width:48px; height:48px; color:var(--plum); }
|
||||
.solver-choice--fallback { box-shadow:none; background:transparent; }
|
||||
.solver-choices--areas .solver-choice--fallback { grid-column:1/-1; min-height:42px; padding:8px 16px; justify-content:center; border:0; }
|
||||
.solver-choices--areas .solver-choice--fallback input { position:static; }
|
||||
.solver-choices--areas .solver-choice--fallback strong { font:400 .95rem/1.4 "Segoe UI",sans-serif; letter-spacing:0; }
|
||||
.solver-controls { display:flex; justify-content:flex-end; gap:30px; align-items:center; margin:24px auto; max-width:750px; }
|
||||
.solver-space--entry .solver-controls { justify-content:center; }
|
||||
.solver-controls .marketing-btn { border-radius:30px; padding:15px 30px; font-size:1.05rem; cursor:pointer; }
|
||||
.solver-promises { font-size:.9rem; margin:20px 0; }.solver-promises span { margin:0 20px; color:var(--gold-dark); }
|
||||
.solver-demo { font-size:.8rem; color:var(--muted); margin:20px 0 0; }
|
||||
.solver-trail { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:.8rem; color:var(--muted); border-top:1px solid var(--line); padding-top:18px; margin:25px 0; }
|
||||
.solver-trail span:not(:first-child) { max-width:360px; }
|
||||
.solver-resolution { color:#536b48; margin-bottom:10px; font-size:1rem; }
|
||||
.solver-principle { padding:22px 26px; background:#f0e3ed; border-left:3px solid #875979; margin:25px 0; max-width:var(--solver-reading-width); }
|
||||
.solver-principle p { margin:6px 0 0; font:1.2rem/1.5 Georgia,serif; }
|
||||
.solver-editorial { font-size:1.06rem; line-height:1.85; max-width:var(--solver-reading-width); }
|
||||
.solver-result .solver-intro { margin-left:0; }
|
||||
.solver-space h2,.solver-library h2 { font-size:clamp(1.8rem,3vw,2.6rem); margin:35px 0 22px; }
|
||||
.solver-space h3 { font-size:1.8rem; margin-bottom:12px; }
|
||||
.solver-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:25px; border-top:1px solid var(--line); padding:25px 0; }
|
||||
.solver-features>div:first-child { grid-column:1/-1; }
|
||||
.solver-features img,.solver-screenshot { display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:6px; margin:20px 0; }
|
||||
.solver-library { padding-block:30px 55px; }.solver-library>a { margin:10px 30px 10px 0; }
|
||||
.solver-space--article { background-size:auto 900px; background-repeat:no-repeat; }
|
||||
.solver-selection-error { color:#8b293e; }
|
||||
@media(max-width:1000px) { .solver-space { background-image:linear-gradient(90deg,#fcf3e5aa,#fcf3e5f5 12%,#fcf3e5f5 88%,#fcf3e5aa),var(--solver-desk-image); }.solver-choices--areas { grid-template-columns:repeat(2,minmax(0,1fr)); }.public-links { gap:14px; } #publicMenu { margin-left:20px; } }
|
||||
@media(max-width:600px) { .solver-space { padding:30px 20px; min-height:800px; background-image:linear-gradient(#fcf3e5e8,#fcf3e5 240px),var(--solver-desk-image); background-size:auto 300px; background-repeat:no-repeat; }.solver-choices--areas { grid-template-columns:1fr; gap:10px; }.solver-choices--areas .solver-choice { min-height:90px; padding:15px 35px 15px 16px; }.solver-wide { display:none; }.solver-icon { width:38px; min-width:38px; height:38px; }.solver-choices--areas .solver-choice strong { font-size:1.35rem; }.solver-help { font-size:.95rem; }.solver-controls { justify-content:space-between; gap:12px; }.solver-controls .marketing-btn { padding:13px 22px; font-size:1rem; }.solver-promises span { margin:0 6px; }.solver-features { grid-template-columns:1fr; }.solver-features>div:first-child { grid-column:auto; }.solver-content h1 { overflow-wrap:break-word; }.solver-trail span:not(:first-child) { max-width:100%; } }
|
||||
@media(prefers-reduced-motion:reduce) { scroll-behavior:auto; .marketing-btn { transition:none; transform:none; } }
|
||||
}
|
||||
html[data-site-theme="public"] main.marketing-shell > .solver-space { max-width:none; width:100%; }
|
||||
|
||||
html[data-site-theme="public"] .solver-neutral { max-width:var(--solver-reading-width); margin-inline:auto; }
|
||||
html[data-site-theme="public"] .solver-neutral .solver-intro { margin-left:0; max-width:none; }
|
||||
|
||||
/* Conversation results: the existing warm public palette, with a compact practical payoff. */
|
||||
html[data-site-theme="public"] .solver-result-panel h1 { font-size:clamp(2.15rem,4vw,3.4rem); margin:12px 0 20px; }
|
||||
html[data-site-theme="public"] .solver-result-evidence { max-width:var(--solver-reading-width); font:1.12rem/1.6 Georgia,serif; }
|
||||
html[data-site-theme="public"] .solver-result-evidence p { margin:0 0 8px; }
|
||||
html[data-site-theme="public"] .solver-result-inference { color:var(--plum); }
|
||||
html[data-site-theme="public"] .solver-principle--compact { padding:14px 20px; margin:20px 0; max-width:none; }
|
||||
html[data-site-theme="public"] .solver-principle--compact strong { font-size:.85rem; }
|
||||
html[data-site-theme="public"] .solver-principle--compact p { font-size:1.08rem; }
|
||||
html[data-site-theme="public"] .solver-start { border-top:1px solid var(--line); margin-top:22px; padding-top:16px; }
|
||||
html[data-site-theme="public"] .solver-start h2 { font-size:1.9rem; margin:0 0 22px; }
|
||||
html[data-site-theme="public"] .solver-start-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; align-items:start; }
|
||||
html[data-site-theme="public"] .solver-start h3 { font-size:1.8rem; margin:0 0 14px; }
|
||||
html[data-site-theme="public"] .solver-start-copy p { line-height:1.6; margin-bottom:14px; }
|
||||
html[data-site-theme="public"] .solver-start-copy .marketing-eyebrow { margin-bottom:8px; }
|
||||
html[data-site-theme="public"] .solver-look-for { padding-left:15px; border-left:2px solid var(--gold-dark); }
|
||||
html[data-site-theme="public"] .solver-look-for strong { display:block; color:var(--plum); margin-bottom:3px; }
|
||||
html[data-site-theme="public"] .solver-result-cta { display:inline-flex; gap:12px; justify-content:space-between; max-width:100%; white-space:normal; line-height:1.4; padding:13px 20px; border-radius:24px; }
|
||||
html[data-site-theme="public"] .solver-context-hint { font-size:.83rem; color:var(--muted); margin-top:9px; }
|
||||
html[data-site-theme="public"] .solver-tool-visual { margin:0; min-width:0; }
|
||||
html[data-site-theme="public"] .solver-tool-visual img { width:100%; height:auto; border-radius:14px; border:1px solid var(--line); }
|
||||
html[data-site-theme="public"] .solver-visual-placeholder { min-height:290px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:14px; padding:28px; color:var(--plum); background:linear-gradient(145deg,#f4e7ed,#fbf2e3); border:1px dashed #a67d91; border-radius:14px; }
|
||||
html[data-site-theme="public"] .solver-visual-placeholder strong { font:1.7rem/1.2 Georgia,serif; }
|
||||
html[data-site-theme="public"] .solver-visual-placeholder p { max-width:300px; margin:0; font-size:.92rem; line-height:1.5; }
|
||||
html[data-site-theme="public"] .solver-tool-visual figcaption { font-size:.82rem; line-height:1.5; color:var(--muted); padding:12px 4px; }
|
||||
html[data-site-theme="public"] .solver-also,html[data-site-theme="public"] .solver-deeper,html[data-site-theme="public"] .solver-supporting { border-top:1px solid var(--line); margin-top:24px; padding-top:18px; }
|
||||
html[data-site-theme="public"] .solver-also>strong { font-size:.85rem; color:var(--muted); }
|
||||
html[data-site-theme="public"] .solver-also h3 { font-size:1.3rem; margin:8px 0; }
|
||||
html[data-site-theme="public"] .solver-also p,html[data-site-theme="public"] .solver-deeper p { margin-bottom:8px; max-width:var(--solver-reading-width); }
|
||||
html[data-site-theme="public"] .solver-supporting h2 { font-size:1.5rem; margin:0 0 15px; }
|
||||
html[data-site-theme="public"] .solver-result--support { padding:12px 0; border-bottom:1px solid var(--line); }
|
||||
html[data-site-theme="public"] .solver-result--support summary { cursor:pointer; font:1.18rem/1.4 Georgia,serif; color:var(--plum); }
|
||||
html[data-site-theme="public"] .solver-result--support p { margin:12px 0 0; max-width:var(--solver-reading-width); }
|
||||
html[data-site-theme="public"] .solver-workspace-picker { max-width:650px; }
|
||||
html[data-site-theme="public"] .solver-workspace-picker .marketing-btn { max-width:100%; white-space:normal; }
|
||||
html[data-site-theme="public"] .solver-workspace-picker select { width:100%; padding:12px; margin:12px 0 20px; background:#fffaf2; border:1px solid #aa8799; border-radius:8px; }
|
||||
@media(max-width:700px) { html[data-site-theme="public"] .solver-start-grid { grid-template-columns:1fr; gap:18px; } html[data-site-theme="public"] .solver-visual-placeholder { min-height:220px; } html[data-site-theme="public"] .solver-result-cta { width:100%; } }
|
||||
|
||||
html[data-site-theme="public"] .solver-image-link { display:block; border-radius:14px; }
|
||||
html[data-site-theme="public"] .solver-image-link:focus-visible { outline:3px solid var(--plum); outline-offset:4px; }
|
||||
html[data-site-theme="public"] .solver-image-link img { display:block; }
|
||||
/* Permanent resources share the result canvas, with a narrower editorial measure. */
|
||||
html[data-site-theme="public"] .solver-recognition { max-width:var(--solver-reading-width); font-size:1.13rem; line-height:1.65; margin:18px 0; }
|
||||
html[data-site-theme="public"] .solver-permanent-copy { max-width:var(--solver-reading-width); line-height:1.7; margin:24px 0 30px; }
|
||||
html[data-site-theme="public"] :is(.solver-permanent-copy,.solver-related,.solver-browse-areas,.solver-problem-links) h2 { font-size:1.5rem; line-height:1.25; margin:22px 0 12px; }
|
||||
html[data-site-theme="public"] .solver-permanent-copy li { margin-block:7px; }
|
||||
html[data-site-theme="public"] .solver-mental-model { border-left:3px solid var(--gold-dark); padding:2px 20px; margin-top:20px; }
|
||||
html[data-site-theme="public"] .solver-related { max-width:var(--solver-reading-width); margin-block:30px; }
|
||||
html[data-site-theme="public"] :is(.solver-related,.solver-problem-links) ul,html[data-site-theme="public"] .solver-problem-links { list-style:none; padding:0; }
|
||||
html[data-site-theme="public"] :is(.solver-related,.solver-problem-links) li { padding-block:10px; border-bottom:1px solid var(--line); }
|
||||
html[data-site-theme="public"] .solver-related li p { margin:6px 0; color:var(--muted); line-height:1.6; }
|
||||
html[data-site-theme="public"] .solver-browse-areas { max-width:780px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 30px; }
|
||||
@media(max-width:600px) { html[data-site-theme="public"] .solver-browse-areas { grid-template-columns:1fr; } }
|
||||
|
||||
@supports (background-image: image-set(url("/images/public/writing-solver-desk.avif") type("image/avif"))) {
|
||||
html[data-site-theme="public"] { --solver-desk-image:image-set(url("/images/public/writing-solver-desk.avif") type("image/avif"),url("/images/public/writing-solver-desk.webp") type("image/webp")); }
|
||||
}
|
||||
|
||||
/* Result payoff: one shared warm canvas, seven compositions chosen by the problem. */
|
||||
html[data-site-theme="public"] .solver-space--article:has(.solver-payoff) .solver-content { width:min(var(--solver-result-width),100%); }
|
||||
html[data-site-theme="public"] .solver-payoff h1 { max-width:none; font-size:clamp(2.1rem,3.6vw,3rem); margin-bottom:16px; }
|
||||
html[data-site-theme="public"] .solver-payoff .solver-result-heading { margin-bottom:18px; }
|
||||
html[data-site-theme="public"] .solver-payoff .solver-listening { max-width:none; display:grid; grid-template-columns:1fr 1fr; gap:30px; font:1rem/1.55 "Segoe UI",sans-serif; }
|
||||
html[data-site-theme="public"] .solver-listening h2 { font:600 1rem/1.4 "Segoe UI",sans-serif; margin:0 0 8px; }
|
||||
html[data-site-theme="public"] .solver-listening ul { list-style:none; margin:0; padding:0; }
|
||||
html[data-site-theme="public"] .solver-listening li { position:relative; padding-left:23px; margin-bottom:7px; }
|
||||
html[data-site-theme="public"] .solver-listening li::before { content:"✓"; position:absolute; left:0; color:#5b7854; }
|
||||
html[data-site-theme="public"] .solver-author-action { background:var(--sage); border-left:3px solid #75816a; padding:12px 18px; }
|
||||
html[data-site-theme="public"] .solver-author-action strong { font-size:.85rem; color:var(--plum); }
|
||||
html[data-site-theme="public"] .solver-author-action p { margin:4px 0 0; line-height:1.55; }
|
||||
html[data-site-theme="public"] .solver-payoff .solver-start { margin-top:18px; }
|
||||
html[data-site-theme="public"] .solver-payoff .solver-start h2 { margin-bottom:14px; }
|
||||
html[data-site-theme="public"] .solver-payoff .solver-start-grid { grid-template-columns:.8fr 1.2fr; gap:28px; }
|
||||
html[data-site-theme="public"] .solver-payoff .solver-start-copy h3 { margin:5px 0 10px; }
|
||||
html[data-site-theme="public"] .solver-specific-help { font:1.16rem/1.5 Georgia,serif; }
|
||||
html[data-site-theme="public"] .solver-view-shows { font-size:.95rem; line-height:1.6; }
|
||||
html[data-site-theme="public"] :is(.solver-payoff--plot-map,.solver-payoff--chronology,.solver-payoff--progression,.solver-payoff--trace) .solver-start-grid { grid-template-columns:1fr; }
|
||||
html[data-site-theme="public"] :is(.solver-payoff--plot-map,.solver-payoff--chronology,.solver-payoff--progression,.solver-payoff--trace) .solver-start-copy { display:grid; grid-template-columns:1fr 1fr; column-gap:32px; align-items:start; }
|
||||
html[data-site-theme="public"] :is(.solver-payoff--plot-map,.solver-payoff--chronology,.solver-payoff--progression,.solver-payoff--trace) .solver-start-copy :is(.marketing-eyebrow,h3) { grid-column:1 / -1; }
|
||||
html[data-site-theme="public"] .solver-payoff--plot-map .solver-tool-visual { padding:16px; border:1px solid var(--line); border-radius:18px; background:#fffaf2b8; }
|
||||
html[data-site-theme="public"] .solver-payoff--chronology .solver-look-for { border-top:2px solid var(--gold); border-left:0; padding:12px 0; }
|
||||
html[data-site-theme="public"] .solver-payoff--progression .solver-start-grid { gap:12px; }
|
||||
html[data-site-theme="public"] .solver-payoff--progression .solver-tool-visual { border-bottom:3px solid var(--gold-dark); padding-bottom:10px; }
|
||||
html[data-site-theme="public"] .solver-payoff--people .solver-start-grid { grid-template-columns:1.2fr .8fr; }
|
||||
html[data-site-theme="public"] .solver-payoff--people .solver-tool-visual { grid-column:1; grid-row:1; }
|
||||
html[data-site-theme="public"] .solver-payoff--people .solver-start-copy { grid-column:2; }
|
||||
html[data-site-theme="public"] .solver-payoff--trace .solver-author-action { background:#f1e5ec; border-left-color:var(--plum); }
|
||||
html[data-site-theme="public"] .solver-payoff--trace .solver-start-copy .solver-look-for { grid-row:2 / 5; grid-column:2; padding:16px; border:1px solid var(--line); border-radius:10px; }
|
||||
html[data-site-theme="public"] .solver-payoff--overview .solver-author-action { padding:20px 24px; border-radius:14px; border-left:0; }
|
||||
html[data-site-theme="public"] .solver-payoff--overview .solver-view-shows { color:var(--muted); }
|
||||
html[data-site-theme="public"] .solver-payoff--workflow .solver-start { border-top:3px solid var(--gold-dark); }
|
||||
html[data-site-theme="public"] .solver-workflow-next .solver-tool-visual { max-width:var(--solver-reading-width); margin-top:18px; }
|
||||
html[data-site-theme="public"] .solver-deeper-editorial { border-top:1px solid var(--line); margin-top:32px; padding-top:18px; }
|
||||
html[data-site-theme="public"] .solver-reassurance { background:linear-gradient(145deg,#e8eadced,#fffaf2e8); padding:30px; border:1px solid #c5ceb9; border-radius:18px; }
|
||||
html[data-site-theme="public"] .solver-reassurance-seal { display:block; color:#5b7854; font:3rem Georgia,serif; }
|
||||
html[data-site-theme="public"] .solver-neutral-action { border-top:1px solid #c5ceb9; margin-top:22px; padding-top:16px; }
|
||||
html[data-site-theme="public"] .solver-neutral-action h2 { font-size:1.5rem; }
|
||||
@media(max-width:700px) {
|
||||
html[data-site-theme="public"] .solver-payoff :is(.solver-listening,.solver-start-grid,.solver-start-copy) { display:block; }
|
||||
html[data-site-theme="public"] .solver-payoff .solver-tool-visual { margin:22px 0 0; }
|
||||
html[data-site-theme="public"] .solver-payoff .solver-listening>div { margin-top:18px; }
|
||||
html[data-site-theme="public"] .solver-reassurance { padding:22px 18px; }
|
||||
html[data-site-theme="public"] .solver-payoff .solver-result-cta { white-space:normal; }
|
||||
}
|
||||
@media(min-width:701px) {
|
||||
html[data-site-theme="public"] .solver-space--article:has(.solver-payoff) { padding-top:24px; }
|
||||
html[data-site-theme="public"] :is(.solver-payoff--plot-map,.solver-payoff--chronology,.solver-payoff--trace) .solver-start-copy :is(.marketing-eyebrow,h3) { grid-column:1; }
|
||||
html[data-site-theme="public"] :is(.solver-payoff--plot-map,.solver-payoff--chronology,.solver-payoff--trace) .solver-start-copy .solver-look-for { grid-column:2; grid-row:1 / 4; }
|
||||
html[data-site-theme="public"] :is(.solver-payoff--plot-map,.solver-payoff--chronology,.solver-payoff--trace) .solver-start-copy .solver-result-cta { grid-column:2; }
|
||||
html[data-site-theme="public"] .solver-payoff--progression .solver-tool-visual { max-width:100%; }
|
||||
}
|
||||
|
||||
/* Conversation recap, separate from navigation breadcrumbs. */
|
||||
html[data-site-theme="public"] .solver-recap { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 16px; margin:26px 0; padding:14px 0 0 14px; border-left:2px solid var(--gold); color:var(--ink); font-size:.94rem; line-height:1.6; }
|
||||
html[data-site-theme="public"] .solver-recap>span:first-child { color:var(--plum); font-weight:600; }
|
||||
html[data-site-theme="public"] .solver-recap>span:not(:first-child) { border-bottom:1px solid var(--line); padding-bottom:3px; }
|
||||
html[data-site-theme="public"] .solver-recap a { color:var(--plum); }
|
||||
/* One image, no gallery; hidden dialog does not load an image. */
|
||||
html[data-site-theme="public"] .solver-image-dialog { width:max-content; max-width:90vw; max-height:90dvh; margin:auto; padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--ink); overflow:auto; }
|
||||
html[data-site-theme="public"] .solver-image-dialog::backdrop { background:#20141fc9; }
|
||||
html[data-site-theme="public"] .solver-image-dialog header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:12px; }
|
||||
html[data-site-theme="public"] .solver-image-dialog h2 { font:1.15rem/1.4 Georgia,serif; margin:0; }
|
||||
html[data-site-theme="public"] .solver-image-dialog button { border:1px solid var(--line); background:var(--paper); color:var(--plum); border-radius:6px; padding:8px 12px; }
|
||||
html[data-site-theme="public"] .solver-image-dialog img { display:block; width:auto; height:auto; max-width:100%; max-height:calc(90dvh - 9rem); object-fit:contain; margin:auto; }
|
||||
html[data-site-theme="public"] .solver-image-dialog p { font-size:.85rem; margin:12px 0 0; }
|
||||
@media(max-width:700px) { html[data-site-theme="public"] .solver-image-dialog { max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); padding:12px; } html[data-site-theme="public"] .solver-image-dialog img { max-height:calc(100dvh - 10rem); } }
|
||||
BIN
PlotDirector.Website/wwwroot/favicon-16x16.png
Normal file
|
After Width: | Height: | Size: 389 B |
BIN
PlotDirector.Website/wwwroot/favicon-32x32.png
Normal file
|
After Width: | Height: | Size: 792 B |
BIN
PlotDirector.Website/wwwroot/favicon-48x48.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
PlotDirector.Website/wwwroot/favicon.ico
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
7
PlotDirector.Website/wwwroot/favicon.svg
Normal file
@ -0,0 +1,7 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" role="img" aria-label="PlotDirector icon">
|
||||
<rect width="128" height="128" rx="28" fill="#1F2A44"/>
|
||||
<path d="M64 37c-11-9-25-12-40-9v56c15-3 29 0 40 9 11-9 25-12 40-9V28c-15-3-29 0-40 9Z" fill="#FAF8F5"/>
|
||||
<path d="M64 37v56" fill="none" stroke="#D4A574" stroke-width="7" stroke-linecap="round"/>
|
||||
<path d="M34 44c9-1 17 1 24 6M34 59c9-1 17 1 24 6M94 44c-9-1-17 1-24 6M94 59c-9-1-17 1-24 6" fill="none" stroke="#1F2A44" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M27 87c14-2 27 1 37 10 10-9 23-12 37-10" fill="none" stroke="#D4A574" stroke-width="5" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 659 B |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 13 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 21 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 5.6 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.9 KiB |
|
After Width: | Height: | Size: 4.0 KiB |