pre launch changes

This commit is contained in:
Karol Wypchlo 2021-04-01 19:11:24 +02:00
parent fd8e1a4829
commit a56423a758
6 changed files with 23 additions and 16 deletions

View File

@ -40,7 +40,7 @@
href: https://skyapps.hns.siasky.net/
- header: Skynet Webportals
links:
- title: Skydrain
href: https://skydrain.net
- title: SkyPortal
href: https://skyportal.xyz
- title: Skydrain
href: https://skydrain.net

View File

@ -26,16 +26,22 @@ const NewsHeader = () => {
if (!latestNews) return null; // no news
// hardcoded news for now
const CURRENT_NEWS_URL = "https://blog.sia.tech/built-to-explore-the-skynet-spring-2021-hackathon-a0cff382bb0c";
const CURRENT_NEWS_TXT = "Built to Explore: The Skynet Spring 2021 Hackathon";
return (
<div className="bg-palette-500 px-8 p-3">
<div className="max-w-layout mx-auto">
<div className="flex justify-between">
<Link
to={latestNews.node.fields.slug}
// to={latestNews.node.fields.slug}
href={CURRENT_NEWS_URL}
className="text-palette-300 font-content leading-8 flex items-center overflow-hidden text-base hover:text-primary transition-colors duration-200"
>
<ArrowRight className="mr-2 flex-shrink-0 fill-current text-primary" />
<span className="truncate">{latestNews.node.frontmatter.title}</span>
{/* <span className="truncate">{latestNews.node.frontmatter.title}</span> */}
<span className="truncate">{CURRENT_NEWS_TXT}</span>
</Link>
<div className="ml-auto items-center pl-8 hidden desktop:block">

View File

@ -249,7 +249,7 @@ const Uploader = () => {
)}
onClick={() => setMode("directory")}
>
<span className="hidden desktop:inline">Do you want to upload an entire directory?</span>
<span className="hidden desktop:inline">Do you want to upload a web app or directory?</span>
<span className="inline desktop:hidden">Upload directory</span>
</button>
</div>
@ -270,7 +270,8 @@ const Uploader = () => {
>
{files.length === 0 && <Cloud />}
<h4 className="font-light text-palette-600 text-lg mt-2 text-center">
Add or drop your files here to pin to Skynet
{mode === "file" && <span>Add or drop your files here to pin to Skynet</span>}
{mode === "directory" && <span>Drop any folder with an index.html file to deploy to Skynet</span>}
</h4>
</div>
<div className="absolute left-1/2 -bottom-4 desktop:-bottom-8">
@ -308,7 +309,7 @@ const Uploader = () => {
<div className="z-0 relative flex flex-col items-center space-y-1 mt-10">
<Unlock />
<p className="text-sm font-light text-palette-600">
<RegistrationLink /> for free and unlock all features
<RegistrationLink /> for free and unlock features
</p>
</div>
)}

View File

@ -26,8 +26,8 @@ function SEO({ description, lang, meta, title }) {
`
);
const metaDescription = description || site.siteMetadata.description;
const defaultTitle = site.siteMetadata?.title;
const { title: siteTitle, description: siteDescription } = site.siteMetadata;
const pageDescription = description || siteDescription;
return (
<Helmet
@ -35,19 +35,19 @@ function SEO({ description, lang, meta, title }) {
lang,
}}
title={title}
titleTemplate={defaultTitle ? `%s | ${defaultTitle}` : null}
titleTemplate={`%s | ${siteTitle}`}
meta={[
{
name: `description`,
content: metaDescription,
content: pageDescription,
},
{
property: `og:title`,
content: title,
content: `${title} | ${siteTitle}`,
},
{
property: `og:description`,
content: metaDescription,
content: pageDescription,
},
{
property: `og:type`,
@ -71,7 +71,7 @@ function SEO({ description, lang, meta, title }) {
},
{
name: `twitter:description`,
content: metaDescription,
content: pageDescription,
},
].concat(meta)}
/>

View File

@ -126,7 +126,7 @@ const AboutPage = ({ ...props }) => {
<>
<SEO title="About" />
<Section className="bg-palette-100" marginBottom={false} first={true}>
<Section className="bg-palette-100" marginBottom={true} first={true}>
<div className="grid grid-cols-1 gap-x-16 gap-y-16 desktop:grid-cols-3">
<div className="col-span-3">
<h1>

View File

@ -68,7 +68,7 @@ const ecosystemCards = [
const IndexPage = () => {
return (
<>
<SEO title="Home" />
<SEO title="Decentralized Internet for a Free Future" />
<Section first={true}>
<div className="text-center">