Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First draft of Tailwind UI landing page #10

Merged
merged 38 commits into from
Sep 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0538a71
First draft of Tailwind UI landing page
skorfmann Sep 19, 2020
eaa5223
test
skorfmann Sep 24, 2020
63e1ade
Adapt footer links \n Co-Authored-By: EdwinRad
skorfmann Sep 24, 2020
fe84b9a
Reworking Hero / Adding Nav ; Co-authored-by: EdwinRad
skorfmann Sep 24, 2020
c03f01f
changed header in nav.tsx
Sep 26, 2020
af1d55a
Changed Footer to TailwindUI
Sep 26, 2020
10f1bae
Minor fixes
Sep 26, 2020
55e0517
Minor fixes
Sep 26, 2020
dfc0ee6
Merge pull request #11 from EdwinRad/eddy/tailwind
skorfmann Sep 26, 2020
a882acb
Duplicated
skorfmann Sep 26, 2020
67bd8d5
Get rid of deprecation warnings
skorfmann Sep 26, 2020
18bf388
Rename svg attributes to be jsx compatible
skorfmann Sep 26, 2020
99107ae
Cleanup index
skorfmann Sep 26, 2020
e211db4
Oboslete component
skorfmann Sep 26, 2020
6a2e94d
Keep track of active state for nav links
skorfmann Sep 26, 2020
d8cc945
Cleanup hero
skorfmann Sep 26, 2020
8d334e8
Don't break into new line on smaller screens
skorfmann Sep 26, 2020
a7e5503
Link logos
skorfmann Sep 26, 2020
2a8e65c
Proof of concept for local, GraphQL based content access
skorfmann Sep 26, 2020
b754b66
Make dynamic posts loading fully work
skorfmann Sep 27, 2020
188cd1d
Add users
skorfmann Sep 27, 2020
708eae8
Add more blog posts
skorfmann Sep 27, 2020
4dba23a
CTA to add content
skorfmann Sep 27, 2020
d9e8c0b
File creation time isn't preserved in CI
skorfmann Sep 27, 2020
0507d35
Add slack link to hero button
skorfmann Sep 27, 2020
d4cef2e
Fetch only recent posts
skorfmann Sep 27, 2020
fa3c4c6
Link hostname as well
skorfmann Sep 27, 2020
8ed9ae3
Fix hero menu
skorfmann Sep 27, 2020
8555980
Fix nav mobile menu
skorfmann Sep 27, 2020
5b5d50e
Auto format
skorfmann Sep 27, 2020
de871b0
Merge resources / tools to one page
skorfmann Sep 27, 2020
53fec28
Spacing
skorfmann Sep 27, 2020
c91182e
Migrate existing posts from prior resources page
skorfmann Sep 28, 2020
2d7177b
No time indicator for resources
skorfmann Sep 28, 2020
fde7ece
Replace tools with posts and Auto format
skorfmann Sep 28, 2020
1512a9c
Update logo
skorfmann Sep 28, 2020
5df3d8b
Add favicon
skorfmann Sep 28, 2020
56872b7
Update with correct author
skorfmann Sep 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/content.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: "\U0001F680 Content Suggestion"
about: "I have a content suggestion for the website"
title: ""
labels: content
assignees: ""
---

<!---
The content section is entirely static and built

Please add yourself as a user in: https://github.com/cdk-dev/website/tree/master/frontend/content/users

Then add the content to https://github.com/cdk-dev/website/tree/master/frontend/content/posts

Content Example: https://github.com/cdk-dev/website/tree/master/frontend/content/posts/aws-community-nordics-2020
Related User: https://github.com/cdk-dev/website/tree/master/frontend/content/users/ari-palo
--->
4 changes: 0 additions & 4 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ typings/
# dotenv environment variable files
.env*

# gatsby files
.cache/
public

# Mac files
.DS_Store

Expand Down
29 changes: 29 additions & 0 deletions frontend/components/CreateContent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React, { ReactElement } from "react"

function CreateContent(): ReactElement {
return (
<>
<div className="bg-gray-50">
<div className="max-w-screen-xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8 lg:flex lg:items-center lg:justify-between">
<h2 className="text-3xl leading-9 font-extrabold tracking-tight text-gray-900 sm:text-4xl sm:leading-10">
Created or seen other CDK related content?
<br />
<span className="text-indigo-600">Share it with the community</span>
</h2>
<div className="mt-8 flex lg:flex-shrink-0 lg:mt-0">
<div className="inline-flex rounded-md shadow">
<a
href="https://github.com/cdk-dev/website/issues/new?assignees=&labels=content&template=content.md&title="
className="inline-flex items-center justify-center px-5 py-3 border border-transparent text-base leading-6 font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-500 focus:outline-none focus:shadow-outline transition duration-150 ease-in-out"
>
Create Pull Request
</a>
</div>
</div>
</div>
</div>
</>
)
}

export default CreateContent
113 changes: 80 additions & 33 deletions frontend/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,98 @@ import Link from "next/link"

function Footer(): ReactElement {
return (
<footer className="bg-gray-900 text-gray-100 p-8">
{/* Links */}
<div className="container mx-auto px-4">
<div className="flex flex-row mb-8">
<div className="flex flex-col flex-1">
<h3 className="text-gray-600 mb-2">Navigation</h3>
<Link href="/">Home</Link>
<Link href="/tools">Tools</Link>
<a href="https://www.cdkday.com/">CDK Day 2020</a>
<div className="bg-white">
<div className="max-w-screen-xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8">
<nav className="-mx-5 -my-2 flex flex-wrap justify-center">
<div className="px-5 py-2">
<a
href="/"
className="text-base leading-6 text-gray-500 hover:text-gray-900"
>
Home
</a>
</div>

<div className="flex flex-col flex-1">
<h3 className="text-gray-600 mb-2">Links</h3>
<a href="https://github.com/cdk-dev">GitHub</a>
<a href="https://join.slack.com/t/cdk-dev/shared_invite/zt-gff3dtkw-MsEPa5Id1Aey8HQUDEck1Q">
Slack
<div className="px-5 py-2">
<a
href="/posts"
className="text-base leading-6 text-gray-500 hover:text-gray-900"
>
Posts
</a>
<a href="https://twitter.com/cdkdev_">Twitter</a>
</div>

<div className="flex flex-col flex-1">
<h3 className="text-gray-600 mb-2">Frameworks</h3>
<a href="https://aws.amazon.com/cdk/">AWS CDK</a>
<a href="https://cdk8s.io">CDK8s</a>
<a href="https://cdk.tf">Terraform CDK</a>
<div className="px-5 py-2">
<a
href="/resources"
className="text-base leading-6 text-gray-500 hover:text-gray-900"
>
Resources
</a>
</div>

<div className="flex-1"></div>
</div>

<div className="text-gray-500">
<div className="px-5 py-2">
<a
href="https://github.com/cdk-dev"
className="text-base leading-6 text-gray-500 hover:text-gray-900"
>
Github
</a>
</div>
<div className="px-5 py-2">
<a
href="https://www.cdkday.com/"
className="text-base leading-6 text-gray-500 hover:text-gray-900"
>
CDK Day
</a>
</div>
</nav>
<div className="mt-8 flex justify-center">
<a
href="https://cdk-dev.slack.com/join/shared_invite/zt-gff3dtkw-MsEPa5Id1Aey8HQUDEck1Q#/"
className="text-gray-400 hover:text-gray-500"
>
<span className="sr-only">Slack</span>
<svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
<path
fillRule="evenodd"
d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"
clipRule="evenodd"
/>
</svg>
</a>
<a
href="https://twitter.com/cdkdev_"
className="ml-6 text-gray-400 hover:text-gray-500"
>
<span className="sr-only">Twitter</span>
<svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
<path
fillRule="evenodd"
d="M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z"
clipRule="evenodd"
/>
</svg>
</a>
<a
href="https://github.com/cdk-dev"
target="_blank"
rel="noopener noreferrer"
href="https://github.com/cdk-dev/base"
className="ml-6 text-gray-400 hover:text-gray-500"
>
Made with{" "}
<span className="sr-only">GitHub</span>
<svg className="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
</svg>
</a>
</div>
<div className="mt-8">
<p className="text-center text-base leading-6 text-gray-400">
&copy; 2020 - Made with{" "}
<span role="img" aria-label="Green Heart Emoji">
💚
</span>{" "}
by cdk.dev Community
</a>
</p>
</div>
</div>
</footer>
</div>
)
}

Expand Down
Loading