view src/nabble/view/web/more/Forum.jtp @ 47:72765b66e2c3

remove mailing list code
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 18 Jun 2021 17:44:24 -0600
parents 7ecd1a4ef557
children
line wrap: on
line source

<%
package nabble.view.web.more;

import fschmidt.util.servlet.JtpContext;
import nabble.view.lib.UrlMappable;
import nabble.view.lib.Jtp;
import nabble.view.lib.Shared;
import nabble.view.lib.help.Help;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Collections;
import java.util.Map;
import java.util.regex.Pattern;


public final class Forum extends HttpServlet implements UrlMappable {

	private static final Pattern urlPtn = Pattern.compile("/why-nabble\\.html$");

	public static String path() {
		return "/why-nabble.html";
	}

	public Map<String,String[]> getParameterMapFromUrl(HttpServletRequest request,String mappedUrl) {
		return Collections.emptyMap();
	}

	public Pattern getUrlPattern() {
		return urlPtn;
	}

	protected void service(HttpServletRequest request,HttpServletResponse response)
		throws ServletException, IOException
	{
		PrintWriter out = response.getWriter();
		String context = request.getContextPath();
		JtpContext jtpContext = (JtpContext)getServletContext().getAttribute(JtpContext.attrName);
		%>
		<html>
		<head>
		<%
		Shared.title(request,response,"Start a forum with us");
		%>
		</head>
		<body>
		<%
		Shared.minHeader(request,response);
		%>

		<h1>Why Start Your Forum at Nabble?</h1>

		<style>
			table.category {
				margin-bottom: .5em;
				width: 48em;
			}
			td.number { width: 3em; }
			span.number {
				font-size: 200%;
				padding: 0 .3em .03em;
				border-width:1px;
				border-style:solid;			
			}
			span.title {
				display:block;
				font-size: 150%;
				width: 100%;
				margin-bottom: .5em;
				border-bottom-width:1px;
				border-bottom-style:solid;
			}
			a.forum-link {
				font-size: 130%;
			}
			a.more {
				font-size:80%;
			}
		</style>
		
		<table class="category">
			<tr valign="top">
				<td class="number">
					<span class="number shaded-bg-color medium-border-color">1</span>
				</td>
				<td>
					<span class="title medium-border-color">Free</span>
					No fees whatsoever.<br>
					No forced banner ads.<br>
					No limit on how big or how busy your forum is.<br>
					Free upload of pictures and files.<br>
					Free XML feed.<br>
					Free full export if you want to leave.<br>
				</td>
			</tr>
		</table>

		<table class="category">
			<tr valign="top">
				<td class="number">
					<span class="number shaded-bg-color medium-border-color">2</span>
				</td>
				<td>
					<span class="title medium-border-color">Simple</span>
					Nothing to install, instant setup.<br>
					Clean minimalist UI.<br>
				</td>
			</tr>
		</table>

		<table class="category">
			<tr valign="top">
				<td class="number">
					<span class="number shaded-bg-color medium-border-color">3</span>
				</td>
				<td>
					<span class="title medium-border-color">Embeddable</span>
					Embed your forum in any website, just like Youtube videos.<br>
					Change the appearance of your forum to match the look-and-feel of your pages.<br>
				</td>
			</tr>
		</table>

		<table class="category">
			<tr valign="top">
				<td class="number">
					<span class="number shaded-bg-color medium-border-color">4</span>
				</td>
				<td>
					<span class="title medium-border-color">Fast</span>
					Powerful search (<a class="more" href="<%=Help.search.url(request)%>">more</a>).<br>
					Fast loading of pages.<br>
					Fast support.<br>
				</td>
			</tr>
		</table>

		<table class="category">
			<tr valign="top">
				<td class="number">
					<span class="number shaded-bg-color medium-border-color">5</span>
				</td>
				<td>
					<span class="title medium-border-color">Advanced</span>
					SEO (<a class="more" href="<%=Help.seo.url(request)%>">more</a>).).
				</td>
			</tr>
		</table>
		<br/>
		<a class="forum-link" href="<%=ForumStart.path("forum")%>">Start a free forum now</a> &raquo;

		<%
		Shared.footer(request,response);
		%>
		<% Shared.analytics(request,response); %>
		</body>
		</html>
		<%
	}
}
%>