🎉 Initial Commit

This commit is contained in:
2024-06-04 23:59:29 +08:00
commit 4ae2f0954f
19 changed files with 331 additions and 0 deletions

17
src/assets/solar.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 29 KiB

BIN
src/assets/solian.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 KiB

View File

@@ -0,0 +1,5 @@
<footer class="footer footer-center p-5 border-t">
<aside>
<p>Copyright © {new Date().getFullYear()} Solsynth LLC</p>
</aside>
</footer>

View File

@@ -0,0 +1,28 @@
<div
class="navbar bg-base-100 text-base-content bg-opacity-90 backdrop-blur transition-shadow duration-100 [transform:translate3d(0,0,0)] shadow-sm"
>
<div class="px-5 w-full flex justify-between">
<button class="btn btn-ghost text-xl">Solsynth</button>
<label id="theme-switch" class="swap swap-rotate me-5">
<input type="checkbox" class="theme-controller" value="light" />
<svg
class="swap-off fill-current w-6 h-6"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
><path
d="M5.64,17l-.71.71a1,1,0,0,0,0,1.41,1,1,0,0,0,1.41,0l.71-.71A1,1,0,0,0,5.64,17ZM5,12a1,1,0,0,0-1-1H3a1,1,0,0,0,0,2H4A1,1,0,0,0,5,12Zm7-7a1,1,0,0,0,1-1V3a1,1,0,0,0-2,0V4A1,1,0,0,0,12,5ZM5.64,7.05a1,1,0,0,0,.7.29,1,1,0,0,0,.71-.29,1,1,0,0,0,0-1.41l-.71-.71A1,1,0,0,0,4.93,6.34Zm12,.29a1,1,0,0,0,.7-.29l.71-.71a1,1,0,1,0-1.41-1.41L17,5.64a1,1,0,0,0,0,1.41A1,1,0,0,0,17.66,7.34ZM21,11H20a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Zm-9,8a1,1,0,0,0-1,1v1a1,1,0,0,0,2,0V20A1,1,0,0,0,12,19ZM18.36,17A1,1,0,0,0,17,18.36l.71.71a1,1,0,0,0,1.41,0,1,1,0,0,0,0-1.41ZM12,6.5A5.5,5.5,0,1,0,17.5,12,5.51,5.51,0,0,0,12,6.5Zm0,9A3.5,3.5,0,1,1,15.5,12,3.5,3.5,0,0,1,12,15.5Z"
></path></svg
>
<svg
class="swap-on fill-current w-6 h-6"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
><path
d="M21.64,13a1,1,0,0,0-1.05-.14,8.05,8.05,0,0,1-3.37.73A8.15,8.15,0,0,1,9.08,5.49a8.59,8.59,0,0,1,.25-2A1,1,0,0,0,8,2.36,10.14,10.14,0,1,0,22,14.05,1,1,0,0,0,21.64,13Zm-9.5,6.69A8.14,8.14,0,0,1,7.08,5.22v.27A10.15,10.15,0,0,0,17.22,15.63a9.79,9.79,0,0,0,2.1-.22A8.11,8.11,0,0,1,12.14,19.73Z"
></path></svg
>
</label>
</div>
</div>

1
src/env.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
/// <reference types="astro/client" />

View File

@@ -0,0 +1,17 @@
---
import SiteLayout from "./SiteLayout.astro";
---
<SiteLayout>
<div class="min-h-[calc(100vh-152px)]">
<div class="max-w-[720px] mx-auto card shadow-xl m-5">
<div class="card-body py-5">
<slot name="header" />
</div>
<hr />
<div class="card-body">
<slot />
</div>
</div>
</div>
</SiteLayout>

View File

@@ -0,0 +1,20 @@
---
import NavBar from "../components/navigation/NavBar.astro";
import Footer from "../components/navigation/Footer.astro";
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<title>Solsynth</title>
</head>
<body>
<NavBar />
<main>
<slot />
</main>
<Footer />
</body>
</html>

77
src/pages/index.astro Normal file
View File

@@ -0,0 +1,77 @@
---
import { Image } from "astro:assets";
import SiteLayout from "../layouts/SiteLayout.astro";
import SolarIcon from "../assets/solar.svg";
import SolianIcon from "../assets/solian.png";
---
<SiteLayout>
<div class="container px-12 mx-auto">
<div class="landing-slide">
<div class="landing-slide-first">
<div
class="aspect-square w-[128px] bg-white shadow-2xl rounded-xl mb-4 flex justify-center items-center"
>
<Image
src={SolarIcon}
alt="Studio Avatar"
class="w-[90px] h-[96px] block"
/>
</div>
<h2 class="text-2xl">Hi, there!</h2>
<h1 class="text-6xl font-bold">We're Solsynth</h1>
<section class="mt-8 text-lg">
<p>
We're the world youngest Software <strike>Company</strike> Studio who
make the software that everyone love.
</p>
</section>
</div>
<div class="landing-slide-second">
<div class="card w-full md:w-5/6 bg-base-100 shadow-xl">
<div class="card-body">
<h2 class="card-title">Products!</h2>
<p>Take a look of all our lovely products!</p>
</div>
<hr />
<div class="card-body grid grid-cols-4">
<div
class="aspect-square w-[80px] bg-white flex justify-center items-center shadow-xl rounded-lg"
>
<Image
src={SolianIcon}
alt="Solar Network"
class="w-[64px] h-[64px]"
/>
</div>
</div>
</div>
</div>
</div>
</div>
</SiteLayout>
<style>
.landing-slide {
gap: 1rem;
height: 40rem;
display: grid;
align-items: center;
grid-template-columns: 1fr;
}
@media (min-width: 720px) {
.landing-slide {
grid-template-columns: 1fr 1fr;
}
.landing-slide-second {
display: flex;
justify-content: end;
}
}
</style>

View File

@@ -0,0 +1,21 @@
---
import { Image } from "astro:assets";
import ProductLayout from "../../layouts/ProductLayout.astro";
import SolianIcon from "../../assets/solian.png";
---
<ProductLayout>
<div class="flex gap-4" slot="header">
<Image src={SolianIcon} alt="Solar Network" class="w-[56px] h-[56px]" />
<section>
<h2 class="card-title">Solar Network</h2>
<p>Link the entire Solar System together, forever.</p>
</section>
</div>
<article class="prose">
<h1>Woah</h1>
</article>
</ProductLayout>