Skip to content

Commit

Permalink
Add new Why Enhance page
Browse files Browse the repository at this point in the history
  • Loading branch information
colepeters committed Oct 6, 2023
1 parent 1bd3f02 commit 8ab1779
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 86 deletions.
42 changes: 0 additions & 42 deletions app/docs/md/learn/why-enhance.md

This file was deleted.

1 change: 1 addition & 0 deletions app/elements/landing/axol/on-rainbow-and-cloud.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export default function AxolOnRainbowAndCloud({ html }) {
<style>
:host {
display: block;
aspect-ratio: 789 / 550;
}
#eye-left,
Expand Down
1 change: 0 additions & 1 deletion app/elements/landing/stable-forever.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export default function WebNative({ html }) {
}
landing-axol-on-rainbow-and-cloud {
aspect-ratio: 789 / 550;
width: 40vw;
transform: translateX(20%);
margin-top: 1rem;
Expand Down
86 changes: 43 additions & 43 deletions app/pages/showcase.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<style scope='global'>
section {
main {
color: var(--ateneo);
}

Expand All @@ -26,12 +26,12 @@
translate: 20% -50%;
z-index: -1;
inline-size: max(100px, 40vw);
opacity: 0.5;
opacity: 0.33;
}

@media screen and (min-width: 48em) {
#cloud-chunky {
translate: 25% -25%;
translate: 25% -35%;
}
}
</style>
Expand All @@ -40,58 +40,58 @@

<editorial-header></editorial-header>

<section class='leading3'>
<header id='showcase-header' class='relative mi-auto'>
<h1 class='text3 text6-lg text7-xl text-center tracking-2 leading1 pb5 pb8-lg'>
<span class='block'>Start with HTML.</span>
<span class='block font-semibold'>Build your wildest dreams.</span>
</h1>
<p class='text2-lg text-center mi-auto'>
<main class='leading3'>
<header id='showcase-header' class='relative mi-auto'>
<h1 class='text3 text6-lg text7-xl text-center tracking-2 leading1 pb5 pb8-lg'>
<span class='block'>Start with HTML.</span>
<span class='block font-semibold'>Build your wildest dreams.</span>
</h1>
<p class='text2-lg text-center mi-auto'>
With Enhance’s foundation in web standards, exceptionally fast performance, and peerless stability, the only limit to what you can build is your&nbsp;imagination.
</p>
<p class='text1-lg text-center mbs4 mi-auto'>
</p>
<p class='text1-lg text-center mbs4 mi-auto'>
In this showcase, you’ll find some of our own example projects, as well as real world applications built by Enhance users across the&nbsp;globe.
</p>
</p>

<figure class='mb4'>
<p class='text-center font-medium mi-auto'>Want to have your Enhance project featured? <a class='underline' href='https://github.com/enhance-dev/enhance.dev/pulls'>Open a pull request</a> or <a class='underline' href='https://enhance.dev/discord'>let us know on&nbsp;Discord</a>!</p>
</figure>
<figure class='mb4'>
<p class='text-center font-medium mi-auto'>Want to have your Enhance project featured? <a class='underline' href='https://github.com/enhance-dev/enhance.dev/pulls'>Open a pull request</a> or <a class='underline' href='https://enhance.dev/discord'>let us know on&nbsp;Discord</a>!</p>
</figure>

<img class='mb5 mb8-lg mi-auto' src='/_public/img/landing/swash.svg' alt='' />
<img class='mb5 mb8-lg mi-auto' src='/_public/img/landing/swash.svg' alt='' />

<img id='cloud-wide' class='absolute mb-auto inset-b-0 inset-is-0' src='/_public/img/landing/cloud-blue-wide.svg' alt='' />
<img id='cloud-chunky' class='absolute mb-auto inset-b-0 inset-ie-0' src='/_public/img/landing/cloud-cyan-chunky-light.svg' alt='' />
</header>
<img id='cloud-wide' class='absolute mb-auto inset-b-0 inset-is-0' src='/_public/img/landing/cloud-blue-wide.svg' alt='' />
<img id='cloud-chunky' class='absolute mb-auto inset-b-0 inset-ie-0' src='/_public/img/landing/cloud-blue-small.svg' alt='' />
</header>

<showcase-white-to-blue class='block pbe4 pi-2'>
<div class='flex flex-col gap0-lg relative z1'>
<showcase-project title="Enhance Music" image="/_public/img/showcase/enhance-music.webp" url="https://enhance-music.com">
<showcase-white-to-blue class='block pbe4 pi-2'>
<div class='flex flex-col gap0-lg relative z1'>
<showcase-project title="Enhance Music" image="/_public/img/showcase/enhance-music.webp" url="https://enhance-music.com">

Enhance Music is a music library and audio player app built with HTML and CSS, and progressively enhanced with a couple pinches of JavaScript. Despite being built as a traditional multipage website, Enhance Music features an audio player that persists across page loads, and some gorgeous interactive UI built entirely with web standards.
</showcase-project>
Enhance Music is a music library and audio player app built with HTML and CSS, and progressively enhanced with a couple pinches of JavaScript. Despite being built as a traditional multipage website, Enhance Music features an audio player that persists across page loads, and some gorgeous interactive UI built entirely with web standards.
</showcase-project>

<showcase-project title="Enhance Movies" image="/_public/img/showcase/enhance-movies.jpg" url="https://enhance-movies.com">
Our movies app is built with Enhance and The Movie Database API. With a strong focus on simplicity, performance, progressive enhancement, and offline local development capabilities, this application is set to transform your understanding of what can be done by focusing on the web platform.
</showcase-project>
<showcase-project title="Enhance Movies" image="/_public/img/showcase/enhance-movies.jpg" url="https://enhance-movies.com">
Our movies app is built with Enhance and The Movie Database API. With a strong focus on simplicity, performance, progressive enhancement, and offline local development capabilities, this application is set to transform your understanding of what can be done by focusing on the web platform.
</showcase-project>

<showcase-project title="Perfwork" contributor="Tim Kadlec" contributor-url="https://timkadlec.com/" image="/_public/img/showcase/perfwork.jpg" url="https://www.perfwork.com">
The job board for web performance professionals and people who want to work in the web performance industry.
</showcase-project>
<showcase-project title="Perfwork" contributor="Tim Kadlec" contributor-url="https://timkadlec.com/" image="/_public/img/showcase/perfwork.jpg" url="https://www.perfwork.com">
The job board for web performance professionals and people who want to work in the web performance industry.
</showcase-project>

<showcase-project title="Air Quality Index" image="/_public/img/showcase/aqi.jpg" url="https://invent-k6b.begin.app/">
With wildfire season well upon us in North America, it’s a good idea to keep an eye on local air quality. Let’s get some real time data from the US EPA’s AirNow program. Even with a limited API request budget, we can get snappy results by caching and refreshing data on demand. All with features already built into Enhance.
</showcase-project>
<showcase-project title="Air Quality Index" image="/_public/img/showcase/aqi.jpg" url="https://invent-k6b.begin.app/">
With wildfire season well upon us in North America, it’s a good idea to keep an eye on local air quality. Let’s get some real time data from the US EPA’s AirNow program. Even with a limited API request budget, we can get snappy results by caching and refreshing data on demand. All with features already built into Enhance.
</showcase-project>

<showcase-project title="Design Portfolio" image="/_public/img/showcase/design-portfolio.jpg" url="https://snow-wfi.begin.app/">
With clean and easy to follow code, and a modern, responsive interface, this example application demonstrates just how sophisticated you can get when building UI with web standards. This example app can also serve as a starting point for your own portfolio.
</showcase-project>
<showcase-project title="Design Portfolio" image="/_public/img/showcase/design-portfolio.jpg" url="https://snow-wfi.begin.app/">
With clean and easy to follow code, and a modern, responsive interface, this example application demonstrates just how sophisticated you can get when building UI with web standards. This example app can also serve as a starting point for your own portfolio.
</showcase-project>

<showcase-project title="Notes from the Underdark" contributor="Jonathan Lipps" contributor-url="https://jlipps.com/" image="/_public/img/showcase/underdark.jpg" url="https://underdark.quest/">
Stories created by a group of friends while playing Dungeons & Dragons.
</showcase-project>
</div>
</showcase-white-to-blue>
<showcase-project title="Notes from the Underdark" contributor="Jonathan Lipps" contributor-url="https://jlipps.com/" image="/_public/img/showcase/underdark.jpg" url="https://underdark.quest/">
Stories created by a group of friends while playing Dungeons & Dragons.
</showcase-project>
</div>
</showcase-white-to-blue>

</section>
</main>

<landing-footer class='pb4'></landing-footer>
121 changes: 121 additions & 0 deletions app/pages/why-enhance.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<style scope='global'>
main {
color: var(--ateneo);
}

h1 span:nth-child(2),
main h2 {
color: var(--dark-purple);
}

.text-container {
max-inline-size: 42rem;
}

#cloud-wide {
translate: 20% 50%;
z-index: -1;
inline-size: max(300px, 60vw);
opacity: 0.1;
}

#cloud-chunky {
translate: -20% -50%;
z-index: -1;
inline-size: max(100px, 40vw);
opacity: 0.2;
}

landing-axol-on-rainbow-and-cloud {
inline-size: 66%;
}

#axol-wink {
max-inline-size: min(50vw, 12rem);
}
</style>

<docs-symbols></docs-symbols>

<editorial-header></editorial-header>

<showcase-white-to-blue>
<main class='leading3 pi0'>
<header class='relative z1 mi-auto'>
<h1 class='text4 text6-lg text7-xl text-center tracking-2 leading1 pb5 pb8-lg'>
<span class='block'>Why</span>
<span class='block font-semibold'>Enhance?</span>
</h1>

<div class='text-container mi-auto text1 text2-lg'>
<p>
Our mission is to enable anyone to build multi-page dynamic web apps while staying as close to the web platform as possible.
</p>
<p class='mb4'>
Enhance fills in the gaps to make building for both the backend and the browser a seamless experience for web authors and consumers.
</p>
</div>

<img id='cloud-wide' class='absolute mb-auto inset-b-0 inset-ie-0' src='/_public/img/landing/cloud-purple-wide.svg' alt='' />
<img id='cloud-chunky' class='absolute mb-auto inset-b-0 inset-is-0' src='/_public/img/landing/cloud-purple-medium.svg' alt='' />
</header>

<div class='text-container mi-auto text1-lg flex flex-col gap0 pbe8'>
<p>
Modern JavaScript frameworks introduce more problems than they solve by attempting to recreate native web platform features, while at the same time adding unnecessary weight and complexity. This is challenging to unravel, especially when your framework or application dependencies break.
</p>
<p>
Enhance approaches things differently. It provides a dependable foundation built on standards-based web platform features, while offering quality of life improvements for developers and happy paths to delivering exceptional user experience. This allows developers to create web applications that are lightweight, flexible, and future-proof.
</p>

<landing-axol-on-rainbow-and-cloud class='mb4 mi-auto'></landing-axol-on-rainbow-and-cloud>

<h2 class='text2 text4-lg text5-xl tracking-2 leading1 font-medium mb0'>
Our criteria for success
</h2>
<h3 class='text1 text2-lg tracking-1 leading1 font-medium'>
Author and deliver HTML pages
</h3>
<p>
Enhance should allow developers to write components as pure functions that return HTML. These functions should render on the server to deliver complete HTML, available immediately to the end user.
</p>

<h3 class='text1 text2-lg tracking-1 leading1 font-medium mbs0'>
Use web standards
</h3>
<p>
Enhance should take care of the tedious parts of development, allowing you to use today’s web platform features more efficiently. As new standards and platform features become generally available, Enhance will make way for them.
</p>

<h3 class='text1 text2-lg tracking-1 leading1 font-medium mbs0'>
Progressively enhance working HTML
</h3>
<p>
Enhance should allow for easy progressive enhancement, so that working HTML can be further upgraded to include additional functionality with JavaScript.
</p>

<h2 class='text2 text4-lg text5-xl tracking-2 leading1 font-medium mbs4 mbe0'>
The result
</h2>
<p>
With Enhance, you spend more time adding new features to your projects and less time chasing breaking changes from dependencies. Your app can scale without ever-increasing build times and JavaScript payloads.
</p>
<p>
With direct access to all available browser APIs (like forms, validation, and style encapsulation), there is no need to cobble together libraries and polyfills to develop a complex application. Skeleton screens and spinners be gone! Flashes of unstyled content (FOUC) or layout shifts from delayed JavaScript don’t belong anymore.
</p>
<p>
Using just HTML, CSS, and a sprinkling of JavaScript, Enhance unlocks the delivery of complex dynamic applications in harmony with the web platform. It empowers developers to spend their time on interesting domain problems, leading to more engaging products with less thrash.
</p>
<p>
Experience how joyful web development can be — <a href='/docs/' class='underline font-medium'>get started with Enhance today!</a>
</p>

<img id='axol-wink' src='/_public/img/landing/axol-wink.svg' alt='' class='mbs4 mi-auto' />
</div>


</main>
</showcase-white-to-blue>

<landing-footer class='pb4'></landing-footer>

0 comments on commit 8ab1779

Please sign in to comment.