diff --git a/public/product-branding.webp b/public/product-branding.webp new file mode 100644 index 0000000..6b9548a Binary files /dev/null and b/public/product-branding.webp differ diff --git a/src/assets/products/solar-network/alpha.webp b/src/assets/products/solar-network/alpha.webp new file mode 100644 index 0000000..7276d56 Binary files /dev/null and b/src/assets/products/solar-network/alpha.webp differ diff --git a/src/assets/products/solar-network/labeled.webp b/src/assets/products/solar-network/labeled.webp new file mode 100644 index 0000000..2120f8b Binary files /dev/null and b/src/assets/products/solar-network/labeled.webp differ diff --git a/src/components/CapAppBar.tsx b/src/components/CapAppBar.tsx index e7226ab..8796326 100644 --- a/src/components/CapAppBar.tsx +++ b/src/components/CapAppBar.tsx @@ -1,15 +1,5 @@ import { useUserStore } from '@/services/user' -import { - AppBar, - AppBarProps, - Avatar, - IconButton, - Toolbar, - Typography, - useMediaQuery, - useScrollTrigger, - useTheme, -} from '@mui/material' +import { AppBar, AppBarProps, Avatar, IconButton, Toolbar, Typography, useScrollTrigger, useTheme } from '@mui/material' import { getAttachmentUrl } from '@/services/network' import MenuIcon from '@mui/icons-material/Menu' import AccountCircle from '@mui/icons-material/AccountCircle' @@ -17,14 +7,12 @@ import Link from 'next/link' import React, { useState } from 'react' import { CapDrawer } from './CapDrawer' -interface ElevationAppBarProps { +interface AppBarScrollProps { elevation?: number - color?: any - isMobile: boolean children?: React.ReactElement<{ elevation?: number } & AppBarProps> } -function ElevationScroll(props: ElevationAppBarProps) { +function AppBarScroll(props: AppBarScrollProps) { if (typeof window === 'undefined') return props.children const trigger = useScrollTrigger({ @@ -41,9 +29,7 @@ function ElevationScroll(props: ElevationAppBarProps) { return props.children ? React.cloneElement(props.children, { elevation: trigger ? props.elevation : 0, - sx: trigger - ? { backgroundColor: props.color, color: 'black', ...commonStyle } - : { backgroundColor: 'transparent', ...commonStyle }, + sx: trigger ? { borderBottom: 1, borderColor: 'divider', ...commonStyle } : { ...commonStyle }, }) : null } @@ -52,8 +38,6 @@ export function CapAppBar() { const userStore = useUserStore() const theme = useTheme() - const isMobile = useMediaQuery(theme.breakpoints.down('md')) - const [open, setOpen] = useState(false) const drawerWidth = 280 @@ -62,16 +46,8 @@ export function CapAppBar() { <> setOpen(false)} /> - - + + - + ) } diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 21e9c8b..7c0dc61 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -44,6 +44,7 @@ export default function App({ Component, pageProps }: AppProps) { diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 50424bf..1f81efc 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,14 +1,116 @@ -import { Container, Typography } from '@mui/material' +import { Box, Chip, Container, Grid2 as Grid, Link, Paper, Typography } from '@mui/material' +import { Roboto_Serif } from 'next/font/google' +import NextLink from 'next/link' +import Image from 'next/image' + +import StarIcon from '@mui/icons-material/Star' +import ArrowForward from '@mui/icons-material/ArrowForward' +import ArrowDownward from '@mui/icons-material/ArrowDownward' +import LaunchIcon from '@mui/icons-material/Launch' + +import ImgSolarNetworkLabeled from '@/assets/products/solar-network/labeled.webp' + +const fontSerif = Roboto_Serif({ + subsets: ['latin'], + weight: ['300'], + display: 'swap', + style: 'italic', +}) export default function Home() { return ( -
- - - Welcome to
- the Solsynth Capital. -
+ <> + + + company logo + + Welcome to
+ the Solsynth Capital. +
+ + A vibrant creating wonderful software and hope the future will be brighter. + + + + Explore our works + + +
+ + + + + } + sx={{ px: 1, mb: 2 }} + /> + + Solar Network + + + The next generation social network. But not only a social media. + + + + Social Network, Redefined. + + + + + Explore more you can do with Solar Network + + + + + + + solian the app preview + + + + + + + + + product branding mark + + Made by Solsynth + + + There are a lot of other great projects was made by Solsynth, and most of them are open sourced. You can + check them on our GitHub organization. + + + + + Check out our GitHub page + + + + + +
-
+ ) } diff --git a/src/styles/globals.css b/src/styles/globals.css index b5c61c9..a1be97b 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -1,3 +1,38 @@ @tailwind base; @tailwind components; @tailwind utilities; + +.textmarker-effect { + position: relative; +} + +.textmarker-effect:before { + position: absolute; + z-index: -1; + content: ''; + background: var(--mui-palette-primary-main); + height: 20px; + left: 0; + bottom: 0; + width: 0%; + opacity: 0.5; + transition: all 0.5s; +} + +.textmarker-effect:hover:before { + width: 100%; +} + +.textmarker-effect.active:before { + animation: textmarker-effect-animation 0.5s ease-in-out; + animation-fill-mode: forwards; +} + +@keyframes textmarker-effect-animation { + 0% { + width: 0; + } + 100% { + width: 100%; + } +}