54 | ),
55 | {
56 | width: 1200,
57 | height: 630,
58 | },
59 | );
60 | } catch {
61 | return new Response("Failed to generate the image", {
62 | status: 500,
63 | });
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.yml:
--------------------------------------------------------------------------------
1 | name: Feature request
2 | description: Request a new feature
3 | title: "[FEATURE REQUEST] "
4 | labels: [enhancement]
5 | body:
6 | - type: checkboxes
7 | attributes:
8 | label: Is there an existing issue for this?
9 | description: Please search to see if an issue already exists for your feature request.
10 | options:
11 | - label: I have searched the existing issues
12 | required: true
13 | - type: textarea
14 | attributes:
15 | label: Is your feature request related to a problem? Please describe.
16 | description: A clear and concise description of what the problem is.
17 | placeholder: Ex. I'm always frustrated when [...]
18 | validations:
19 | required: false
20 | - type: textarea
21 | attributes:
22 | label: Describe the solution you'd like
23 | description: A clear and concise description of what you want to happen.
24 | validations:
25 | required: false
26 | - type: textarea
27 | attributes:
28 | label: Describe alternatives you've considered
29 | description: A clear and concise description of any alternative solutions or features you've considered.
30 | validations:
31 | required: false
32 | - type: textarea
33 | attributes:
34 | label: Additional context
35 | description: |
36 | Add any other context or screenshots about the feature request here.
37 |
38 | Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
39 | validations:
40 | required: false
41 | - type: checkboxes
42 | attributes:
43 | label: Code of Conduct
44 | description: By submitting this issue, you agree to follow our [Code of Conduct](../../CODE_OF_CONDUCT.md)
45 | options:
46 | - label: I agree to follow this project's Code of Conduct
47 | required: true
48 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 |
4 | Website •
5 | Discord •
6 | Releases •
7 | Donate •
8 | Documentation
9 |
10 | # dahliaOS Website
11 |
12 | 
13 |
14 | - **Official**, one and only website for the dahliaOS project
15 | - **Find** it by clicking [here!](https://dahliaos.io)
16 |
17 | ## Development
18 |
19 | To develop and locally test the website:
20 |
21 | ### 1. Install development tools:
22 |
23 | 1. [Install bun](https://bun.sh/)
24 | 1. Code editor of your choice (we recommend [VSCode](https://code.visualstudio.com/))
25 |
26 | ### 2. Install dependencies:
27 |
28 | Install node modules required to run the website by running:
29 |
30 | ```
31 | bun install
32 | ```
33 |
34 | ### 3. Start the Next.js dev server:
35 |
36 | ```
37 | bun dev
38 | ```
39 |
40 | In a browser, load the page [localhost:3000](http://localhost:3000) and you should now be able to test the website while making your changes.
41 | Next.js' dev server has hot reloading so no need to restart the instance when it's running!
42 |
43 | ### 4. Build:
44 |
45 | After making your changes and verifying it all works in the dev server, furtherly test them out by building the website:
46 |
47 | ```
48 | bun run build
49 | ```
50 |
51 | ### 5. Start:
52 |
53 | ```
54 | bun start
55 | ```
56 |
57 | In a browser, load the page [localhost:3000](http://localhost:3000) and you should now be able to view the built website.
58 |
59 | ## Contribute
60 |
61 | If you're wondering how to contribute to the project, please refer to [CONTRIBUTING.md](/CONTRIBUTING.md)
62 |
63 | ## License
64 |
65 |
66 |
67 |
68 |
69 |
70 | Copyright @ 2019-2023 - The dahliaOS Authors - contact@dahliaos.io
71 |
72 | This project is licensed under the [Apache 2.0 license](/LICENSE)
73 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.yml:
--------------------------------------------------------------------------------
1 | name: Bug
2 | description: File a bug/issue
3 | title: "[BUG] "
4 | labels: [bug]
5 | body:
6 | - type: checkboxes
7 | attributes:
8 | label: Is there an existing issue for this?
9 | description: Please search to see if an issue already exists for the bug you encountered.
10 | options:
11 | - label: I have searched the existing issues
12 | required: true
13 | - type: textarea
14 | attributes:
15 | label: Current behavior
16 | description: A concise description of what you're experiencing.
17 | validations:
18 | required: false
19 | - type: textarea
20 | attributes:
21 | label: Expected behavior
22 | description: A concise description of what you expected to happen.
23 | validations:
24 | required: false
25 | - type: textarea
26 | attributes:
27 | label: Steps to reproduce
28 | description: Steps to reproduce the behavior.
29 | placeholder: |
30 | 1. Go to '...'
31 | 2. Click on '....'
32 | 3. Scroll down to '....'
33 | 4. See error
34 | validations:
35 | required: false
36 | - type: textarea
37 | attributes:
38 | label: Environment (remove values that do not apply)
39 | description: |
40 | examples:
41 | - **OS**: Ubuntu 20.04
42 | - **Smartphone**: iPhone 13 Pro
43 | - **Node version**: 15.0.0
44 | - **Browser**: Google Chrome
45 | - **PNPM version**: 7.16.0
46 | value: |
47 | - OS:
48 | - Smartphone:
49 | - Node version:
50 | - Browser:
51 | - PNPM version:
52 | render: markdown
53 | validations:
54 | required: false
55 | - type: textarea
56 | attributes:
57 | label: Anything else?
58 | description: |
59 | Links? References? Anything that will give us more context about the issue you are encountering!
60 |
61 | Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
62 | validations:
63 | required: false
64 | - type: checkboxes
65 | attributes:
66 | label: Code of Conduct
67 | description: By submitting this issue, you agree to follow our [Code of Conduct](../../CODE_OF_CONDUCT.md)
68 | options:
69 | - label: I agree to follow this project's Code of Conduct
70 | required: true
71 |
--------------------------------------------------------------------------------
/pages/api/latest_version.ts:
--------------------------------------------------------------------------------
1 | import type { NextApiRequest, NextApiResponse } from "next";
2 | import { APIResponse } from "../../types/types";
3 |
4 | export const runtime = "edge";
5 |
6 | interface Author {
7 | login: string;
8 | id: number;
9 | node_id: string;
10 | avatar_url: string;
11 | gravatar_id: string;
12 | url: string;
13 | html_url: string;
14 | followers_url: string;
15 | following_url: string;
16 | gists_url: string;
17 | starred_url: string;
18 | subscriptions_url: string;
19 | organizations_url: string;
20 | repos_url: string;
21 | events_url: string;
22 | received_events_url: string;
23 | type: string;
24 | site_admin: boolean;
25 | }
26 |
27 | interface Uploader {
28 | login: string;
29 | id: number;
30 | node_id: string;
31 | avatar_url: string;
32 | gravatar_id: string;
33 | url: string;
34 | html_url: string;
35 | followers_url: string;
36 | following_url: string;
37 | gists_url: string;
38 | starred_url: string;
39 | subscriptions_url: string;
40 | organizations_url: string;
41 | repos_url: string;
42 | events_url: string;
43 | received_events_url: string;
44 | type: string;
45 | site_admin: boolean;
46 | }
47 |
48 | interface Asset {
49 | url: string;
50 | id: number;
51 | node_id: string;
52 | name: string;
53 | label?: unknown;
54 | uploader: Uploader;
55 | content_type: string;
56 | state: string;
57 | size: number;
58 | download_count: number;
59 | created_at: Date;
60 | updated_at: Date;
61 | browser_download_url: string;
62 | }
63 |
64 | interface Reactions {
65 | "url": string;
66 | "total_count": number;
67 | "+1": number;
68 | "-1": number;
69 | "laugh": number;
70 | "hooray": number;
71 | "confused": number;
72 | "heart": number;
73 | "rocket": number;
74 | "eyes": number;
75 | }
76 |
77 | export interface VersionResponse {
78 | url: string;
79 | assets_url: string;
80 | upload_url: string;
81 | html_url: string;
82 | id: number;
83 | author: Author;
84 | node_id: string;
85 | tag_name: string;
86 | target_commitish: string;
87 | name: string;
88 | draft: boolean;
89 | prerelease: boolean;
90 | created_at: Date;
91 | published_at: Date;
92 | assets: Asset[];
93 | tarball_url: string;
94 | zipball_url: string;
95 | body: string;
96 | discussion_url: string;
97 | reactions: Reactions;
98 | }
99 |
100 | export default async function handler(
101 | _req: NextApiRequest,
102 | res: NextApiResponse>,
103 | ) {
104 | const request: Array = await fetch(
105 | "https://api.github.com/repos/dahliaOS/releases/releases",
106 | ).then(res => res.json());
107 |
108 | res.status(200).json({
109 | success: true,
110 | data: request[0],
111 | });
112 | }
113 |
--------------------------------------------------------------------------------
/pages/_document.tsx:
--------------------------------------------------------------------------------
1 | /* eslint-disable @next/next/no-page-custom-font */
2 | import Document, { Head, Html, NextScript, Main } from "next/document";
3 | import { DarkTheme } from "../utils/Theme";
4 |
5 | const Page = () => (
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
19 |
23 |
24 |
28 |
32 |
33 |
38 |
44 |
50 |
51 |
55 |
59 |
63 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | );
74 |
75 | export default class MyDocument extends Document {
76 | render() {
77 | return ;
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/pages/api/download_count.ts:
--------------------------------------------------------------------------------
1 | import type { NextApiRequest, NextApiResponse } from "next";
2 | import { APIResponse } from "../../types/types";
3 |
4 | export const runtime = "edge";
5 |
6 | interface Author {
7 | login: string;
8 | id: number;
9 | node_id: string;
10 | avatar_url: string;
11 | gravatar_id: string;
12 | url: string;
13 | html_url: string;
14 | followers_url: string;
15 | following_url: string;
16 | gists_url: string;
17 | starred_url: string;
18 | subscriptions_url: string;
19 | organizations_url: string;
20 | repos_url: string;
21 | events_url: string;
22 | received_events_url: string;
23 | type: string;
24 | site_admin: boolean;
25 | }
26 |
27 | interface Uploader {
28 | login: string;
29 | id: number;
30 | node_id: string;
31 | avatar_url: string;
32 | gravatar_id: string;
33 | url: string;
34 | html_url: string;
35 | followers_url: string;
36 | following_url: string;
37 | gists_url: string;
38 | starred_url: string;
39 | subscriptions_url: string;
40 | organizations_url: string;
41 | repos_url: string;
42 | events_url: string;
43 | received_events_url: string;
44 | type: string;
45 | site_admin: boolean;
46 | }
47 |
48 | interface Asset {
49 | url: string;
50 | id: number;
51 | node_id: string;
52 | name: string;
53 | label?: unknown;
54 | uploader: Uploader;
55 | content_type: string;
56 | state: string;
57 | size: number;
58 | download_count: number;
59 | created_at: Date;
60 | updated_at: Date;
61 | browser_download_url: string;
62 | }
63 |
64 | interface Reactions {
65 | "url": string;
66 | "total_count": number;
67 | "+1": number;
68 | "-1": number;
69 | "laugh": number;
70 | "hooray": number;
71 | "confused": number;
72 | "heart": number;
73 | "rocket": number;
74 | "eyes": number;
75 | }
76 |
77 | export interface VersionResponse {
78 | url: string;
79 | assets_url: string;
80 | upload_url: string;
81 | html_url: string;
82 | id: number;
83 | author: Author;
84 | node_id: string;
85 | tag_name: string;
86 | target_commitish: string;
87 | name: string;
88 | draft: boolean;
89 | prerelease: boolean;
90 | created_at: Date;
91 | published_at: Date;
92 | assets: Asset[];
93 | tarball_url: string;
94 | zipball_url: string;
95 | body: string;
96 | discussion_url: string;
97 | reactions: Reactions;
98 | }
99 |
100 | export default async function handler(
101 | _req: NextApiRequest,
102 | res: NextApiResponse>,
103 | ) {
104 | const request: Array = await fetch(
105 | "https://api.github.com/repos/dahliaOS/releases/releases",
106 | ).then(res => res.json());
107 |
108 | res.status(200).json({
109 | success: true,
110 | data: request
111 | ?.map(allReleases => {
112 | return allReleases.assets[0].name.includes("efi")
113 | ? allReleases.assets[0].download_count +
114 | allReleases.assets[1].download_count
115 | : allReleases.assets[0].download_count;
116 | })
117 | .reduce((accumulator, current) => {
118 | return accumulator + current;
119 | }, 0),
120 | });
121 | }
122 |
--------------------------------------------------------------------------------
/pages/404.tsx:
--------------------------------------------------------------------------------
1 | import { Button } from "@mui/material";
2 | import styled from "@emotion/styled";
3 | import Footer from "../components/Footer";
4 | import Navbar from "../components/Navbar";
5 | import { Home as HomeIcon } from "@mui/icons-material";
6 | import Head from "next/head";
7 |
8 | const Wrapper = styled.div`
9 | display: flex;
10 | justify-content: center;
11 | align-items: center;
12 | flex-direction: column;
13 | min-height: 100vh;
14 | padding: 5rem;
15 | background: ${({ theme }) =>
16 | theme.palette.mode === "dark"
17 | ? "url('/images/background/darkBackground.svg')"
18 | : "url('/images/background/lightBackground.svg')"};
19 | background-repeat: no-repeat;
20 | background-position: center;
21 | background-size: cover;
22 | background-attachment: fixed;
23 |
24 | @media (max-width: 1250px) {
25 | padding: 8rem 3rem;
26 | }
27 | `;
28 |
29 | const Container = styled.div`
30 | display: flex;
31 | max-width: 800px;
32 | flex-direction: column;
33 | justify-content: center;
34 | align-items: center;
35 | gap: 2rem;
36 | width: 100%;
37 | `;
38 |
39 | const Header = styled.h1`
40 | color: ${({ theme }) => theme.palette.text.light};
41 | font-size: 2.5em;
42 | font-weight: 500;
43 | text-align: center;
44 |
45 | @media (max-width: 1250px) {
46 | font-size: 2rem;
47 | }
48 | `;
49 |
50 | const SubHeader = styled.h2`
51 | color: ${({ theme }) => theme.palette.text.light};
52 | font-size: 1.9em;
53 | font-weight: 400;
54 | text-align: left;
55 |
56 | @media (max-width: 1250px) {
57 | font-size: 1.4em;
58 | }
59 | `;
60 |
61 | const Paragraph = styled.p`
62 | color: ${({ theme }) => theme.palette.text.primary};
63 | max-width: 80ch;
64 | font-size: 1.4rem;
65 | text-align: center;
66 |
67 | @media (max-width: 1250px) {
68 | font-size: 1.2rem;
69 | }
70 | `;
71 |
72 | const StyledButton = styled(Button)`
73 | padding: 10px 20px;
74 | border-radius: 5px;
75 | gap: 10px;
76 | width: fit-content;
77 | height: fit-content;
78 | transition: 0.2s ease-in-out;
79 | color: ${({ theme }) => theme.palette.text.extremelyLight};
80 | background: ${({ theme }) => theme.palette.secondary.light};
81 |
82 | &:hover {
83 | background: ${({ theme }) => theme.palette.secondary.main};
84 | }
85 | `;
86 |
87 | const Error404 = () => {
88 | return (
89 | <>
90 |
91 | dahliaOS – 404
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 | Page not found
100 | 404 Error
101 |
102 | This page could not be found, it probably has not been coded yet or
103 | you have the wrong URL.
104 |
105 |
106 |
107 | HOME
108 |
109 |
110 |
111 |
112 | >
113 | );
114 | };
115 |
116 | export default Error404;
117 |
--------------------------------------------------------------------------------
/components/Icons.tsx:
--------------------------------------------------------------------------------
1 | import { SVGProps } from "react";
2 |
3 | export const DiscordLogo = (props: SVGProps) => {
4 | return (
5 |
21 | );
22 | };
23 |
24 | export const OpenCollectiveLogo = (props: SVGProps) => {
25 | return (
26 |
44 | );
45 | };
46 |
--------------------------------------------------------------------------------
/pages/_app.tsx:
--------------------------------------------------------------------------------
1 | /* eslint-disable no-useless-escape */
2 | /* eslint-disable no-console */
3 | import type { AppProps } from "next/app";
4 | import { Global, ThemeProvider, css, Theme } from "@emotion/react";
5 | import { LightTheme, DarkTheme } from "../utils/Theme";
6 | import { fetcher } from "../utils/Fetcher";
7 | import { ThemeProvider as MUIThemeProvider } from "@mui/material";
8 | import { SWRConfig } from "swr";
9 | import { usePreferredTheme } from "../utils/hooks/usePreferredTheme";
10 | import { Inter } from "next/font/google";
11 | import Head from "next/head";
12 |
13 | const inter = Inter({ subsets: ["latin"] });
14 | const GlobalStyles = (theme: Theme) => css`
15 | *,
16 | *::before,
17 | *::after {
18 | margin: 0;
19 | padding: 0;
20 | box-sizing: border-box;
21 | font-family: var(--inter-font);
22 | }
23 |
24 | html {
25 | background: ${theme.palette.primary.main};
26 | scroll-behavior: smooth;
27 | overflow-x: hidden;
28 | }
29 |
30 | @supports (scrollbar-gutter: stable) {
31 | html {
32 | overflow-y: auto;
33 | scrollbar-gutter: stable;
34 | }
35 | }
36 |
37 | @supports (overflow-y: overlay) {
38 | html {
39 | overflow-y: overlay;
40 | }
41 | }
42 |
43 | body {
44 | width: 100vw;
45 | overflow-x: hidden;
46 | }
47 |
48 | ::-webkit-scrollbar {
49 | width: 0.25em;
50 | }
51 |
52 | ::-webkit-scrollbar-track {
53 | box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
54 | background-color: ${theme.palette.primary.dark};
55 | }
56 |
57 | ::-webkit-scrollbar-thumb {
58 | background: gray;
59 | border-radius: 8px;
60 | outline: 1px solid ${theme.palette.primary.dark};
61 | }
62 | `;
63 |
64 | function MyApp({ Component, pageProps }: AppProps) {
65 | console.log(`
66 | __ __ __ __ ______ ______
67 | / | / | / |/ | / \ / \
68 | ____$$ | ______ $$ |____ $$ |$$/ ______ /$$$$$$ |/$$$$$$ |
69 | / $$ | / \ $$ \ $$ |/ | / \ $$ | $$ |$$ \__$$/
70 | /$$$$$$$ | $$$$$$ |$$$$$$$ |$$ |$$ | $$$$$$ |$$ | $$ |$$ \
71 | $$ | $$ | / $$ |$$ | $$ |$$ |$$ | / $$ |$$ | $$ | $$$$$$ |
72 | $$ \__$$ |/$$$$$$$ |$$ | $$ |$$ |$$ |/$$$$$$$ |$$ \__$$ |/ \__$$ |
73 | $$ $$ |$$ $$ |$$ | $$ |$$ |$$ |$$ $$ |$$ $$/ $$ $$/
74 | $$$$$$$/ $$$$$$$/ $$/ $$/ $$/ $$/ $$$$$$$/ $$$$$$/ $$$$$$/
75 | `);
76 |
77 | const preferredTheme = usePreferredTheme();
78 |
79 | return (
80 | <>
81 |
82 |
83 |
84 |
91 |
94 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 | >
105 | );
106 | }
107 |
108 | export default MyApp;
109 |
--------------------------------------------------------------------------------
/pages/download.tsx:
--------------------------------------------------------------------------------
1 | import styled from "@emotion/styled";
2 | import Footer from "../components/Footer";
3 | import Navbar from "../components/Navbar";
4 | import DownloadComponent from "../components/Download";
5 | import Head from "next/head";
6 | import { useGithubReleases } from "../utils/hooks/useGithubReleases";
7 | import { Download as DownloadIcon } from "@mui/icons-material";
8 |
9 | const Wrapper = styled.div`
10 | display: flex;
11 | justify-content: center;
12 | align-items: center;
13 | flex-direction: column;
14 | min-height: 100vh;
15 | padding: 5rem;
16 | background: ${({ theme }) =>
17 | theme.palette.mode === "dark"
18 | ? "url('/images/background/darkBackground.svg')"
19 | : "url('/images/background/lightBackground.svg')"};
20 | background-repeat: no-repeat;
21 | background-position: center;
22 | background-size: cover;
23 | background-attachment: fixed;
24 |
25 | @media (max-width: 1250px) {
26 | padding: 8rem 3rem;
27 | }
28 | `;
29 |
30 | const Header = styled.h1`
31 | color: ${({ theme }) => theme.palette.text.light};
32 | font-size: 2.5em;
33 | font-weight: 500;
34 | text-align: center;
35 |
36 | @media (max-width: 1250px) {
37 | font-size: 2rem;
38 | }
39 | `;
40 |
41 | const Paragraph = styled.p`
42 | color: ${({ theme }) => theme.palette.text.primary};
43 | max-width: 80ch;
44 | font-size: 1.4rem;
45 | text-align: center;
46 |
47 | @media (max-width: 1250px) {
48 | font-size: 1.2rem;
49 | }
50 | `;
51 |
52 | const Container = styled.div`
53 | display: flex;
54 | flex-direction: column;
55 | justify-content: center;
56 | align-items: center;
57 | gap: 2rem;
58 | width: 100%;
59 | `;
60 |
61 | const StyledDownloadIcon = styled(DownloadIcon)`
62 | vertical-align: middle;
63 | margin-right: 10px;
64 | `;
65 |
66 | const Download = () => {
67 | const { releases, isError, isLoading } = useGithubReleases();
68 |
69 | return (
70 | <>
71 |
72 | dahliaOS – Download
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 | Download
82 | {isError ? (
83 | <>
84 |
85 |
86 | Total downloads: An error occurred whilst fetching GitHub's
87 | API!
88 |
89 |
90 | >
91 | ) : null}
92 |
93 | {releases?.length ? (
94 | <>
95 |
96 |
97 | Total downloads:{" "}
98 | {releases
99 | ?.map(allReleases => {
100 | return allReleases.assets[0].name.includes("efi")
101 | ? allReleases.assets[0].download_count +
102 | allReleases.assets[1].download_count
103 | : allReleases.assets[0].download_count;
104 | })
105 | .reduce((accumulator, current) => {
106 | return accumulator + current;
107 | }, 0)}
108 |
109 |
110 | >
111 | ) : isLoading ? (
112 | <>
113 |
114 |
115 | Total downloads: Loading...
116 |
117 |
118 | >
119 | ) : null}
120 |
121 |
122 |
123 | >
124 | );
125 | };
126 |
127 | export default Download;
128 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # dahliaOS Code of Conduct
2 |
3 | The dahliaOS team is committed to preserving and fostering a
4 | diverse, welcoming community. Below is our community code of conduct, which
5 | applies to our repos and organizations, issue trackers, Discord servers,
6 | blog content, and any other dahliaOS-supported communication group, as
7 | well as any private communication initiated in the context of these
8 | spaces. This code of conduct must be followed by everyone contributing to
9 | the dahliaOS project, regardless of affiliation or position.
10 |
11 | Simply put, community discussions should be
12 |
13 | - respectful and kind;
14 | - about software;
15 | - about features and code, not the individuals involved.
16 |
17 | ## Be respectful and constructive.
18 |
19 | Treat everyone with respect. Build on each other's ideas. Each of us has the
20 | right to enjoy our experience and participate without fear of harassment,
21 | discrimination, or condescension, whether blatant or subtle. Remember that
22 | dahliaOS is a geographically distributed team and that you may not be
23 | communicating with someone in their primary language. We all get frustrated
24 | when working on hard problems, but we cannot allow that frustration to turn
25 | into personal attacks.
26 |
27 | ## Speak up if you see or hear something.
28 |
29 | You are empowered to politely engage when you feel that you or others are
30 | disrespected. The person making you feel uncomfortable may not be aware of what
31 | they are doing - politely bringing their behavior to their attention is
32 | encouraged.
33 |
34 | If you are uncomfortable speaking up, or feel that your concerns are not being
35 | duly considered, you can email the Project Integrity team at integrity@dahliaos.io to request involvement from a moderator. All
36 | concerns shared with community managers will be kept confidential, but you may
37 | also submit an anonymous report [here](dahliaOS.github.io/anon).
38 | Please note that without a way to contact you, an anonymous report may be
39 | difficult to act on. You may also create a throwaway account to report. In
40 | cases where a public response is deemed necessary, the identities of victims
41 | and reporters will remain confidential unless those individuals instruct us
42 | otherwise.
43 |
44 | While all reports will be taken seriously, the Project Integrity Team may
45 | not act on complaints that they feel are not violations of this code of
46 | conduct.
47 |
48 | ## We will not tolerate harassment of any kind, including but not limited to:
49 |
50 | - Harassing comments
51 | - Intimidation
52 | - Arguing over subjective preference, e.g. text editors, nationality, religion, etc.
53 | - Encouraging a person to engage in self-harm.
54 | - Sustained disruption or derailing of threads, channels, lists, etc.
55 | - Offensive or violent comments, jokes or otherwise
56 | - Inappropriate sexual content
57 | - Unwelcome sexual or otherwise aggressive attention
58 | - Continued one-on-one communication after requests to cease
59 | - Distribution or threat of distribution of people's personally identifying
60 | information, AKA “doxing”
61 |
62 | ## Consequences for failing to comply with this policy
63 |
64 | Consequences for failing to comply with this policy may include, at the sole
65 | discretion of the dahliaOS Project Integrity Team:
66 |
67 | - a request for an apology;
68 | - a private or public warning or reprimand;
69 | - a temporary ban from the Discord server, blog, dahliaOS repository or
70 | organization, or other dahliaOS-supported communication group, including
71 | loss of committer status;
72 | - a permanent ban from any of the above, or from all current and future
73 | dahliaOS-supported communities, including loss of
74 | committer status.
75 |
76 | Participants warned to stop any harassing behavior are expected to comply
77 | immediately; failure to do so will result in an escalation of consequences.
78 |
79 | ## Acknowledgements
80 |
81 | This Code of Conduct is adapted from the Chromium Project Code of Conduct.
82 |
83 | ## License
84 |
85 | This Code of Conduct is available for reuse under the Creative Commons Zero
86 | (CC0) license.
87 |
--------------------------------------------------------------------------------
/pages/donate.tsx:
--------------------------------------------------------------------------------
1 | import { Button, SvgIcon } from "@mui/material";
2 | import styled from "@emotion/styled";
3 | import Footer from "../components/Footer";
4 | import Navbar from "../components/Navbar";
5 | import {
6 | Language as LanguageIcon,
7 | Dns as DnsIcon,
8 | Terminal as TerminalIcon,
9 | DeveloperMode as DeveloperModeIcon,
10 | Devices as DevicesIcon,
11 | } from "@mui/icons-material";
12 | import Head from "next/head";
13 | import { OpenCollectiveLogo } from "../components/Icons";
14 | import Link from "next/link";
15 |
16 | const Wrapper = styled.div`
17 | display: flex;
18 | justify-content: center;
19 | align-items: center;
20 | flex-direction: column;
21 | min-height: 100vh;
22 | padding: 5rem;
23 | background: ${({ theme }) =>
24 | theme.palette.mode === "dark"
25 | ? "url('/images/background/darkBackground.svg')"
26 | : "url('/images/background/lightBackground.svg')"};
27 | background-repeat: no-repeat;
28 | background-position: center;
29 | background-size: cover;
30 | background-attachment: fixed;
31 |
32 | @media (max-width: 1250px) {
33 | padding: 8rem 3rem;
34 | }
35 | `;
36 |
37 | const Container = styled.div`
38 | display: flex;
39 | max-width: 800px;
40 | flex-direction: column;
41 | justify-content: center;
42 | align-items: center;
43 | gap: 2rem;
44 | width: 100%;
45 | `;
46 |
47 | const Header = styled.h1`
48 | color: ${({ theme }) => theme.palette.text.light};
49 | font-size: 2.5em;
50 | font-weight: 500;
51 | text-align: center;
52 |
53 | @media (max-width: 1250px) {
54 | font-size: 2rem;
55 | }
56 | `;
57 |
58 | const SubHeader = styled.h2`
59 | color: ${({ theme }) => theme.palette.text.light};
60 | font-size: 1.9em;
61 | font-weight: 400;
62 | text-align: left;
63 |
64 | @media (max-width: 1250px) {
65 | font-size: 1.4em;
66 | }
67 | `;
68 |
69 | const Paragraph = styled.p<{ centerText?: boolean }>`
70 | color: ${({ theme }) => theme.palette.text.primary};
71 | max-width: 80ch;
72 | font-size: ${({ centerText }) => (centerText ? "1.4rem" : "1.2rem")};
73 | text-align: ${({ centerText }) => (centerText ? "center" : "left")};
74 |
75 | @media (max-width: 1250px) {
76 | font-size: ${({ centerText }) => (centerText ? "1.2rem" : "1.1rem")};
77 | }
78 | `;
79 |
80 | const StyledButton = styled(Button)`
81 | padding: 10px 20px;
82 | border-radius: 5px;
83 | gap: 10px;
84 | width: fit-content;
85 | height: fit-content;
86 | transition: 0.2s ease-in-out;
87 | color: ${({ theme }) => theme.palette.text.extremelyLight};
88 | background: ${({ theme }) => theme.palette.secondary.light};
89 |
90 | &:hover {
91 | background: ${({ theme }) => theme.palette.secondary.main};
92 | }
93 | `;
94 |
95 | const SupportItem = styled.div`
96 | display: flex;
97 | align-items: center;
98 | justify-content: center;
99 | border-radius: 13px;
100 | padding: 10px 15px;
101 | height: 45px;
102 | min-width: 120px;
103 | text-align: center;
104 | gap: 10px;
105 | color: ${({ theme }) => theme.palette.text.light};
106 | background-color: ${({ theme }) => theme.palette.primary.light};
107 | `;
108 |
109 | const ItemParagraph = styled.p`
110 | color: ${({ theme }) => theme.palette.text.light};
111 | font-size: 0.9rem;
112 | font-weight: 400;
113 | `;
114 |
115 | const ItemsContainer = styled.div`
116 | display: flex;
117 | flex-direction: row;
118 | flex-wrap: wrap;
119 | justify-content: left;
120 | gap: 20px;
121 | `;
122 |
123 | const StyledLink = styled(Link)`
124 | text-decoration: none;
125 | `;
126 |
127 | const DonateLink = styled.div`
128 | display: flex;
129 | flex-direction: column;
130 | gap: 1.2rem;
131 | justify-content: start;
132 | align-items: start;
133 | `;
134 |
135 | const Donate = () => {
136 | return (
137 | <>
138 |
139 | dahliaOS – Donate
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 | Donate to dahliaOS
149 |
150 | Thank you for your support! We use donations to keep improving our
151 | project and hardware support, and donations will go towards the
152 | following:
153 |
154 |
155 |
156 |
157 | Website hosting
158 |
159 |
160 |
161 | Development software licenses
162 |
163 |
164 |
165 |
166 | General development of the operating system and tools
167 |
168 |
169 |
170 |
171 | Website domains
172 |
173 |
174 |
175 |
176 | Devices for testing and expanding hardware support
177 |
178 |
179 |
180 |
181 | Where can I donate?
182 |
183 | Currently, donations can be sent through Open Collective, other
184 | services will be coming soon.
185 |
186 |
190 |
191 |
192 | OPEN COLLECTIVE
193 |
194 |
195 |
196 |
197 |
198 |
199 | >
200 | );
201 | };
202 |
203 | export default Donate;
204 |
--------------------------------------------------------------------------------
/public/images/animation/darkModeBackground.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/images/animation/lightModeBackground.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/components/Navbar.tsx:
--------------------------------------------------------------------------------
1 | import "@reach/skip-nav/styles.css";
2 |
3 | import {
4 | AppBar,
5 | Divider,
6 | Drawer,
7 | IconButton,
8 | SvgIcon,
9 | Toolbar,
10 | useMediaQuery,
11 | } from "@mui/material";
12 | import {
13 | Article as ArticleIcon,
14 | Facebook as FacebookIcon,
15 | GetApp,
16 | GitHub as GitHubIcon,
17 | Groups as GroupIcon,
18 | Instagram as InstagramIcon,
19 | Menu as MenuIcon,
20 | Reddit as RedditIcon,
21 | Science as ScienceIcon,
22 | Telegram as TelegramIcon,
23 | Twitter as TwitterIcon,
24 | VolunteerActivism as VolunteerActivismIcon,
25 | } from "@mui/icons-material";
26 | import { SkipNavContent, SkipNavLink } from "@reach/skip-nav";
27 | import { css, keyframes } from "@emotion/react";
28 | import { useCallback, useState } from "react";
29 |
30 | import { DiscordLogo } from "./Icons";
31 | import Image from "next/image";
32 | import Link from "next/link";
33 | import darkLogotype from "../public/images/logos/darkLogotype.webp";
34 | import lightLogotype from "../public/images/logos/lightLogotype.webp";
35 | import styled from "@emotion/styled";
36 | import { useMeetsScrollPos } from "../utils/hooks/useMeetsScrollPos";
37 | import { useTheme } from "@emotion/react";
38 | import { alpha } from "@mui/material";
39 |
40 | const WrapperKeyframes = keyframes`
41 | 0% {
42 | opacity: 0;
43 | transform: translateY(-66px);
44 | }
45 | 100% {
46 | opacity: 1;
47 | transform: translateY(0);
48 | }
49 | `;
50 |
51 | const Wrapper = styled.div``;
52 |
53 | const Container = styled.div`
54 | background: ${({ theme }) => theme.palette.primary.light};
55 | width: 15rem;
56 | height: 999%;
57 | font-family: "Inter", sans-serif;
58 | `;
59 |
60 | const DrawerLogoContainer = styled.div`
61 | position: relative;
62 | padding-top: 160px;
63 | background: ${({ theme }) => theme.palette.primary.main};
64 | `;
65 |
66 | const DrawerLogo = styled(Image)`
67 | position: absolute;
68 | bottom: 16px;
69 | padding-left: 20px;
70 | height: auto;
71 | width: 200px;
72 | object-fit: contain;
73 | `;
74 | const StyledLink = styled(Link)`
75 | display: flex;
76 | align-items: center;
77 | justify-content: flex-start;
78 | gap: 10px;
79 | font-size: 0.93em;
80 | padding: 18px 20px;
81 | color: ${({ theme }) => theme.palette.text.primary};
82 | transition: color ease-in-out 0.2s;
83 | text-decoration: none;
84 |
85 | &:hover {
86 | color: ${({ theme }) => theme.palette.text.light};
87 | }
88 | `;
89 |
90 | const Category = styled.span`
91 | display: block;
92 | font-size: 0.93em;
93 | padding: 16px 20px;
94 | font-weight: 500;
95 | color: ${({ theme }) => theme.palette.text.light};
96 | `;
97 |
98 | const AppBarLink = styled(Link)`
99 | display: flex;
100 | justify-content: flex-end;
101 | align-items: center;
102 | font-size: 0.93em;
103 | padding: 16px 35px;
104 | gap: 10px;
105 | font-weight: 600;
106 | color: ${({ theme }) => theme.palette.text.primary};
107 | transition: color ease-in-out 0.2s;
108 | text-decoration: none;
109 |
110 | &:hover {
111 | color: ${({ theme }) => theme.palette.text.light};
112 | }
113 | `;
114 |
115 | const StyledAppBar = styled(AppBar)<{
116 | rootPageHasAnimation?: boolean;
117 | meetsScrollPos: boolean;
118 | }>`
119 | ${({ meetsScrollPos, theme }) => `
120 | backdrop-filter: ${meetsScrollPos ? "blur(20px)" : "unset"};
121 | background: ${meetsScrollPos ? theme.palette.primary.light + 90 : "unset"};
122 | `}
123 |
124 | transition: background ease-in-out 0.15s;
125 |
126 | ${({ rootPageHasAnimation }) =>
127 | rootPageHasAnimation
128 | ? css`
129 | opacity: 0;
130 | animation: ${WrapperKeyframes} 1s cubic-bezier(0.66, 0, 0.2, 1) 0.183s
131 | forwards;
132 | animation-delay: 2s;
133 | `
134 | : css`
135 | opacity: 1;
136 | `}
137 | `;
138 |
139 | const StyledToolbar = styled(Toolbar)<{ meetsScrollPos: boolean }>`
140 | box-shadow: ${({ meetsScrollPos }) => (meetsScrollPos ? "initial" : "unset")};
141 | `;
142 |
143 | const AppBarLogoLinkContainer = styled(Link)`
144 | margin-left: 1rem;
145 | @media (max-width: 1025px) {
146 | display: block;
147 | margin: 0 auto;
148 | }
149 | `;
150 |
151 | const AppBarLogo = styled(Image)`
152 | height: auto;
153 | width: 150px;
154 | object-fit: contain;
155 | `;
156 |
157 | const DesktopNav = styled.div`
158 | display: flex;
159 | align-items: center;
160 | justify-content: flex-end;
161 | flex-grow: 1;
162 |
163 | @media (max-width: 1025px) {
164 | display: none;
165 | }
166 | `;
167 |
168 | const StyledDrawer = styled(Drawer)``;
169 |
170 | const Navbar = ({
171 | rootPageHasAnimation,
172 | }: {
173 | rootPageHasAnimation?: boolean;
174 | }) => {
175 | const [drawerState, setDrawerState] = useState(false);
176 | const windowIsSmall = useMediaQuery("(max-width: 1075px)");
177 | const theme = useTheme();
178 | const meetsScrollPos = useMeetsScrollPos(10);
179 | const toggleDrawer = useCallback(
180 | (open: boolean = false) => setDrawerState(open ?? !drawerState),
181 | [drawerState],
182 | );
183 |
184 | return (
185 |
186 |
197 | toggleDrawer(false)}
201 | >
202 |
203 |
209 |
210 |
211 |
212 |
213 | Download
214 |
215 |
216 |
217 | Donate
218 |
219 |
220 |
221 | Demo
222 |
223 |
224 |
225 | Documentation
226 |
227 |
228 | Find us on
229 |
230 |
231 | Discord
232 |
233 |
234 |
235 | GitHub
236 |
237 |
238 |
239 | Reddit
240 |
241 |
242 |
243 | Telegram
244 |
245 |
246 |
247 | Facebook
248 |
249 |
250 |
251 | Instagram
252 |
253 |
254 |
255 | Twitter
256 |
257 |
258 | Team
259 |
263 |
264 | Developers
265 |
266 |
267 |
268 |
280 |
281 | toggleDrawer(true)}
286 | >
287 |
294 |
295 |
296 |
303 |
304 |
305 |
306 | Download
307 |
308 |
309 | Donate
310 |
311 |
312 | Demo
313 |
314 |
315 | Documentation
316 |
317 |
318 |
319 |
320 |
321 |
322 | );
323 | };
324 |
325 | export default Navbar;
326 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | dahliaOS is open to contributions. Any contribution is appreciated, whether it is a documentation update, localization, bug fix or a new feature. Anyone can contribute as long as they follow this guideline and obey the dahliaOS Code of Conduct.
4 | To make sure your contributions go as smooth as possible, here are all the things you need to know.
5 |
6 | ## Table of contents
7 |
8 | 1. **[Communication](#communication)**
9 | 1. **[Code of Conduct](#code-of-conduct)**
10 | 1. **[Contribute](#contribute)**
11 | 1. [Bug report](#bug-report)
12 | 1. [Before submitting a bug report](#before-submitting-a-bug-report)
13 | 1. [Writing a good bug report](#writing-a-good-bug-report)
14 | 1. [Submitting a bug report](#submitting-a-bug-report)
15 | 1. [Feature request](#feature-request)
16 | 1. [Before submitting a feature request](#before-submitting-a-feature-request)
17 | 1. [Submitting a feature request](#submitting-a-feature-request)
18 | 1. [Pull request](#pull-request)
19 | 1. [Before submitting a pull request](#before-submitting-a-pull-request)
20 | 1. [How to submit a proper pull request](#how-to-submit-a-proper-pull-request)
21 | 1. [After submitting a pull request](#after-submitting-a-pull-request)
22 | 1. [Translations](#translations)
23 | 1. [Before making a translation](#before-making-a-translation)
24 | 1. [How to translate](#how-to-translate)
25 | 1. [Code contributions](#code-contributions)
26 | 1. [First code contribution](#first-code-contribution)
27 | 1. [Design contributions](#design-contributions)
28 | 1. [Financial contributions](#financial-contributions)
29 | 1. [Finding tasks](#finding-tasks)
30 | 1. **[License](#license)**
31 |
32 | ## Communication
33 |
34 | Communication with core dahliaOS development team is crucial for any successful participation in dahliaOS development. There are several methods to communicate with the core team:
35 |
36 | - [Discord](https://dahliaos.io/discord) - We use Discord for pinging people, sharing updates, quick and informal discussions, questions and answers, etc. It is OK to discuss your contribution, planned contribution, development idea, localization, documentation updates and similar topics in this server. Anyone interested in the project is welcome to join our Discord server and hang around.
37 | - [Telegram](https://dahliaos.io/telegram) - Same as Discord.
38 | - [Issues / pull requests](https://github.com/dahliaOS) - Most of the work is discussed here, including upgrades and proposals for upgrades, bug fixing and feature requests. For any of these, open an issue in the corresponding repository. If you are proposing code change, open a pull request.
39 |
40 | Each of them is intended for an specific purpose. Please understand that you may be redirected to some other mean if the communication you intend to have is considered to fit better elsewhere.
41 |
42 | ## Code of Conduct
43 |
44 | This project and everyone participating in it is governed by our Code of Conduct and no one is exempt.
45 | By participating, you are expected to respect and value this code.
46 | dahliaOS Code of Conduct can be found [here](CODE_OF_CONDUCT.md).
47 | If you notice any unacceptable behaviour, we encourage you to report it to integrity@dahliaos.io
48 |
49 | ## Contribute
50 |
51 | In this document we've explained how you can contribute to our project, if you'd like to help out in a different way that is not documented here, you're always free to join our Discord and discuss other options you have in mind with our team.
52 |
53 | You can contribute to the project by:
54 |
55 | - Reporting a bug.
56 | - Proposing new features.
57 | - Translating to your native language.
58 | - Submitting a fix.
59 | - Discussing the current state of code.
60 | - Becoming a maintainer.
61 | - Making a financial contribution.
62 |
63 | ### Bug report
64 |
65 | If you've experienced a bug and you'd like to report it, we highly recommend that you read [Before submitting a bug report](#before-submitting-a-bug-report) and [Writing a good bug report](#writing-a-good-bug-report) first, and that you also use our issue template.
66 |
67 | There are 2 ways you can report a bug, either in our Discord server by **opening a ticket** or by **creating an issue** using the **bug report template** on GitHub.
68 |
69 | #### Before submitting a bug report
70 |
71 | Before submitting a bug report, there are a few things you need to take in consideration:
72 |
73 | - Do a bit of research and check if a similar bug has already been reported.
74 | - If it has been reported already, add a comment to the existing one instead of submitting a new one.
75 |
76 | #### Writing a good bug report
77 |
78 | We have a few short tips for you on how to properly write a bug report so the developers can understand it better:
79 |
80 | - Use a clear and descriptive title for the issue.
81 | - Describe the steps to reproduce the bug.
82 | - Describe what behaviour you observed after the bug occurred.
83 | - Explain what behaviour you expected to see instead and why.
84 | - If the problem wasn't triggered by a specific action, describe what you were doing before it happened.
85 | - Include screenshots of the bug.
86 | - Write what version of dahliaOS you were using.
87 |
88 | And the most important of all make sure to fill in as many fields as possible in our bug report template.
89 |
90 | #### Submitting a bug report
91 |
92 | - **GitHub**:
93 | 1. Click the **Issues** tab
94 | 1. Click **New issue**
95 | 1. Select the **Bug report** template
96 | 1. Fill in the fields
97 | - **Discord**:
98 | 1. Go to the **#bug-report** channel
99 | 1. Open a **ticket** and copy the **form**
100 | 1. Paste and fill in the form
101 |
102 | ### Feature request
103 |
104 | If you'd like to see something added to dahliaOS, we highly recommend that you read [Before submitting a feature request](#before-submitting-a-feature-request) and [Submitting a feature request](#submitting-a-feature-request) first, and that you also use our feature request template.
105 |
106 | To submit a feature request, **create an issue** using the **feature request template** on GitHub.
107 |
108 | #### Before submitting a feature request
109 |
110 | Before submitting a feature request, here are a few things you need to know:
111 |
112 | - Make sure the feature isn't already added.
113 | - Don't hesitate to express your knowledge.
114 | - Write a clear and descriptive title for the request.
115 | - Explain how the project could benefit of your request.
116 |
117 | #### Submitting a feature request
118 |
119 | - **GitHub**:
120 | 1. Click the **Issues** tab
121 | 1. Click **New issue**
122 | 1. Select the **Feature request** template
123 | 1. Fill in the fields
124 |
125 | ### Pull request
126 |
127 | Pull requests to our repositories are always welcome and can be a quick way to get your fix or improvement slated for the next release. In general, pull requests should:
128 |
129 | - Fix an existing issue or add a new feature.
130 | - Be accompanied by a complete pull request template (loaded automatically when a pull request is created).
131 |
132 | For changes that address core functionality or would require breaking changes (e.g. a major release), it's best to open an issue to discuss your proposal first. This is not required but can save time creating and reviewing changes.
133 |
134 | #### Before submitting a pull request
135 |
136 | To make sure that the pull request you want to submit is up to our standards, we've written a few dos and don'ts:
137 |
138 | **Dos**:
139 |
140 | - Provide a meaningful commit message.
141 | - The first line of the commit message should have the format "Category: Brief description of what's being changed". The "category" can be a subdirectory, but also something like "POSIX compliance" or "ClassName".
142 | - Write your commit messages in proper English, with care and punctuation.
143 | - Use the present tense ("Add feature" not "Added feature")
144 | - Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
145 | - Limit the first line to 72 characters or less
146 | - You may want to create a topic branch for larger contributions.
147 | - Split your changes into separate commits.
148 |
149 | **Don'ts**:
150 |
151 | - Touch anything outside the stated scope of the pull request.
152 | - Use weasel-words like "refactor" or "fix" to avoid explaining what's being changed.
153 |
154 | #### How to submit a proper pull request
155 |
156 | 1. **Fork** the repository to your own GitHub account
157 | 1. **Clone** the project to your machine
158 | 1. Make your **changes**
159 | 1. **Push** changes to your fork
160 | 1. **Open a pull request** in our repository and **fill** in the pull request template
161 |
162 | #### After submitting a pull request
163 |
164 | We kindly ask everyone who has submitted a pull request to be patient, we notice every new pull request so don't worry about it being ignored, we'll be on it as soon as possible.
165 |
166 | ### Translations
167 |
168 | We aim to provide our software in as many languages as possible so everyone could experience it in their own native language.
169 | For submitting translations, we use Crowdin so please do not edit the files found in the repositories.
170 | If you're interesting in translating our project, click [here](https://translate.dahliaos.io).
171 | **Note**: If the language you're looking to translate to is not added, let us know and we'll add it right away.
172 |
173 | #### Before making a translation
174 |
175 | Before making a translation, please make sure that:
176 |
177 | - You're fluent in the language you're translating to.
178 | - You pay close attention to grammar.
179 | - You read the context (comments) some strings have.
180 | - You used the same punctuation as the source strings.
181 |
182 | #### How to translate
183 |
184 | 1. Create a **Crowdin** account (if you already don't have one)
185 | 1. Join our **workspace**
186 | 1. Pick a **project** to translate
187 | 1. Apply translations to the available strings
188 |
189 | ### Code contributions
190 |
191 | To make sure that the code you want to contribute is up to our standards, we've written a few dos and don'ts:
192 |
193 | **Dos**:
194 |
195 | - Choose expressive variable, function and class names, make it as obvious as possible of what the code is doing.
196 |
197 | **Don'ts**:
198 |
199 | - Submit code that's incompatible with the project license (Apache 2.0).
200 | - Include commented-out code.
201 |
202 | #### First code contribution
203 |
204 | If you're not yet familiar with the development of dahliaOS, you can tackle tasks labeled with the "good first issue" label on our GitHub as they are more suited for newcomers looking to gain some experience.
205 |
206 | ### Design contributions
207 |
208 | Apart from code contributions, we also accept various kinds of design contributions.
209 |
210 | Here are a few repositories where you can contribute designs:
211 |
212 | - [wallpapers](https://github.com/dahliaos/wallpapers)
213 | - Contribute your own wallpapers made for dahliaOS.
214 | - [icons](https://github.com/dahliaos/icons)
215 | - Contribute/propose new or modified icons for dahliaOS.
216 | - [brand](https://github.com/dahliaos/brand)
217 | - Contribute/propose new or modified logos of our brand.
218 | - [press-kit](https://github.com/dahliaos/press-kit)
219 | - Contribute mockups, screenshots, graphics, marketing material and such for dahliaOS.
220 |
221 | We love seeing concepts and designs, feel free to share them with us on our social media!
222 |
223 | ### Financial contributions
224 |
225 | dahliaOS is an Apache 2.0-licensed free open source project that financially relies mainly on donations.
226 | Donations helps us pay the bills (web hosts, domains, software/hardware, etc.) to keep this project on its feet as long as possible.
227 | If you're interested in sending a donation to dahliaOS, click [here](https://dahliaos.io/donate) to find out where you can do so. Another way you can find donation links is by clicking the Sponsors button in most of our GitHub repositories.
228 |
229 | ### Finding tasks
230 |
231 | If you're interested in contributing to dahliaOS but don't know what you can assist us with, you can find available tasks by:
232 |
233 | - Peeking at GitHub issues / projects
234 | - Asking in our Discord or Telegram
235 |
236 | ## License
237 |
238 | By contributing to dahliaOS, you agree that your contributions will be licensed under the [Apache 2.0](LICENSE) license.
239 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 |
2 | Apache License
3 | Version 2.0, January 2004
4 | http://www.apache.org/licenses/
5 |
6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7 |
8 | 1. Definitions.
9 |
10 | "License" shall mean the terms and conditions for use, reproduction,
11 | and distribution as defined by Sections 1 through 9 of this document.
12 |
13 | "Licensor" shall mean the copyright owner or entity authorized by
14 | the copyright owner that is granting the License.
15 |
16 | "Legal Entity" shall mean the union of the acting entity and all
17 | other entities that control, are controlled by, or are under common
18 | control with that entity. For the purposes of this definition,
19 | "control" means (i) the power, direct or indirect, to cause the
20 | direction or management of such entity, whether by contract or
21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
22 | outstanding shares, or (iii) beneficial ownership of such entity.
23 |
24 | "You" (or "Your") shall mean an individual or Legal Entity
25 | exercising permissions granted by this License.
26 |
27 | "Source" form shall mean the preferred form for making modifications,
28 | including but not limited to software source code, documentation
29 | source, and configuration files.
30 |
31 | "Object" form shall mean any form resulting from mechanical
32 | transformation or translation of a Source form, including but
33 | not limited to compiled object code, generated documentation,
34 | and conversions to other media types.
35 |
36 | "Work" shall mean the work of authorship, whether in Source or
37 | Object form, made available under the License, as indicated by a
38 | copyright notice that is included in or attached to the work
39 | (an example is provided in the Appendix below).
40 |
41 | "Derivative Works" shall mean any work, whether in Source or Object
42 | form, that is based on (or derived from) the Work and for which the
43 | editorial revisions, annotations, elaborations, or other modifications
44 | represent, as a whole, an original work of authorship. For the purposes
45 | of this License, Derivative Works shall not include works that remain
46 | separable from, or merely link (or bind by name) to the interfaces of,
47 | the Work and Derivative Works thereof.
48 |
49 | "Contribution" shall mean any work of authorship, including
50 | the original version of the Work and any modifications or additions
51 | to that Work or Derivative Works thereof, that is intentionally
52 | submitted to Licensor for inclusion in the Work by the copyright owner
53 | or by an individual or Legal Entity authorized to submit on behalf of
54 | the copyright owner. For the purposes of this definition, "submitted"
55 | means any form of electronic, verbal, or written communication sent
56 | to the Licensor or its representatives, including but not limited to
57 | communication on electronic mailing lists, source code control systems,
58 | and issue tracking systems that are managed by, or on behalf of, the
59 | Licensor for the purpose of discussing and improving the Work, but
60 | excluding communication that is conspicuously marked or otherwise
61 | designated in writing by the copyright owner as "Not a Contribution."
62 |
63 | "Contributor" shall mean Licensor and any individual or Legal Entity
64 | on behalf of whom a Contribution has been received by Licensor and
65 | subsequently incorporated within the Work.
66 |
67 | 2. Grant of Copyright License. Subject to the terms and conditions of
68 | this License, each Contributor hereby grants to You a perpetual,
69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 | copyright license to reproduce, prepare Derivative Works of,
71 | publicly display, publicly perform, sublicense, and distribute the
72 | Work and such Derivative Works in Source or Object form.
73 |
74 | 3. Grant of Patent License. Subject to the terms and conditions of
75 | this License, each Contributor hereby grants to You a perpetual,
76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 | (except as stated in this section) patent license to make, have made,
78 | use, offer to sell, sell, import, and otherwise transfer the Work,
79 | where such license applies only to those patent claims licensable
80 | by such Contributor that are necessarily infringed by their
81 | Contribution(s) alone or by combination of their Contribution(s)
82 | with the Work to which such Contribution(s) was submitted. If You
83 | institute patent litigation against any entity (including a
84 | cross-claim or counterclaim in a lawsuit) alleging that the Work
85 | or a Contribution incorporated within the Work constitutes direct
86 | or contributory patent infringement, then any patent licenses
87 | granted to You under this License for that Work shall terminate
88 | as of the date such litigation is filed.
89 |
90 | 4. Redistribution. You may reproduce and distribute copies of the
91 | Work or Derivative Works thereof in any medium, with or without
92 | modifications, and in Source or Object form, provided that You
93 | meet the following conditions:
94 |
95 | (a) You must give any other recipients of the Work or
96 | Derivative Works a copy of this License; and
97 |
98 | (b) You must cause any modified files to carry prominent notices
99 | stating that You changed the files; and
100 |
101 | (c) You must retain, in the Source form of any Derivative Works
102 | that You distribute, all copyright, patent, trademark, and
103 | attribution notices from the Source form of the Work,
104 | excluding those notices that do not pertain to any part of
105 | the Derivative Works; and
106 |
107 | (d) If the Work includes a "NOTICE" text file as part of its
108 | distribution, then any Derivative Works that You distribute must
109 | include a readable copy of the attribution notices contained
110 | within such NOTICE file, excluding those notices that do not
111 | pertain to any part of the Derivative Works, in at least one
112 | of the following places: within a NOTICE text file distributed
113 | as part of the Derivative Works; within the Source form or
114 | documentation, if provided along with the Derivative Works; or,
115 | within a display generated by the Derivative Works, if and
116 | wherever such third-party notices normally appear. The contents
117 | of the NOTICE file are for informational purposes only and
118 | do not modify the License. You may add Your own attribution
119 | notices within Derivative Works that You distribute, alongside
120 | or as an addendum to the NOTICE text from the Work, provided
121 | that such additional attribution notices cannot be construed
122 | as modifying the License.
123 |
124 | You may add Your own copyright statement to Your modifications and
125 | may provide additional or different license terms and conditions
126 | for use, reproduction, or distribution of Your modifications, or
127 | for any such Derivative Works as a whole, provided Your use,
128 | reproduction, and distribution of the Work otherwise complies with
129 | the conditions stated in this License.
130 |
131 | 5. Submission of Contributions. Unless You explicitly state otherwise,
132 | any Contribution intentionally submitted for inclusion in the Work
133 | by You to the Licensor shall be under the terms and conditions of
134 | this License, without any additional terms or conditions.
135 | Notwithstanding the above, nothing herein shall supersede or modify
136 | the terms of any separate license agreement you may have executed
137 | with Licensor regarding such Contributions.
138 |
139 | 6. Trademarks. This License does not grant permission to use the trade
140 | names, trademarks, service marks, or product names of the Licensor,
141 | except as required for reasonable and customary use in describing the
142 | origin of the Work and reproducing the content of the NOTICE file.
143 |
144 | 7. Disclaimer of Warranty. Unless required by applicable law or
145 | agreed to in writing, Licensor provides the Work (and each
146 | Contributor provides its Contributions) on an "AS IS" BASIS,
147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148 | implied, including, without limitation, any warranties or conditions
149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150 | PARTICULAR PURPOSE. You are solely responsible for determining the
151 | appropriateness of using or redistributing the Work and assume any
152 | risks associated with Your exercise of permissions under this License.
153 |
154 | 8. Limitation of Liability. In no event and under no legal theory,
155 | whether in tort (including negligence), contract, or otherwise,
156 | unless required by applicable law (such as deliberate and grossly
157 | negligent acts) or agreed to in writing, shall any Contributor be
158 | liable to You for damages, including any direct, indirect, special,
159 | incidental, or consequential damages of any character arising as a
160 | result of this License or out of the use or inability to use the
161 | Work (including but not limited to damages for loss of goodwill,
162 | work stoppage, computer failure or malfunction, or any and all
163 | other commercial damages or losses), even if such Contributor
164 | has been advised of the possibility of such damages.
165 |
166 | 9. Accepting Warranty or Additional Liability. While redistributing
167 | the Work or Derivative Works thereof, You may choose to offer,
168 | and charge a fee for, acceptance of support, warranty, indemnity,
169 | or other liability obligations and/or rights consistent with this
170 | License. However, in accepting such obligations, You may act only
171 | on Your own behalf and on Your sole responsibility, not on behalf
172 | of any other Contributor, and only if You agree to indemnify,
173 | defend, and hold each Contributor harmless for any liability
174 | incurred by, or claims asserted against, such Contributor by reason
175 | of your accepting any such warranty or additional liability.
176 |
177 | END OF TERMS AND CONDITIONS
178 |
179 | APPENDIX: How to apply the Apache License to your work.
180 |
181 | To apply the Apache License to your work, attach the following
182 | boilerplate notice, with the fields enclosed by brackets "[]"
183 | replaced with your own identifying information. (Don't include
184 | the brackets!) The text should be enclosed in the appropriate
185 | comment syntax for the file format. We also recommend that a
186 | file or class name and description of purpose be included on the
187 | same "printed page" as the copyright notice for easier
188 | identification within third-party archives.
189 |
190 | Copyright 2015 Google Inc
191 |
192 | Licensed under the Apache License, Version 2.0 (the "License");
193 | you may not use this file except in compliance with the License.
194 | You may obtain a copy of the License at
195 |
196 | http://www.apache.org/licenses/LICENSE-2.0
197 |
198 | Unless required by applicable law or agreed to in writing, software
199 | distributed under the License is distributed on an "AS IS" BASIS,
200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201 | See the License for the specific language governing permissions and
202 | limitations under the License.
203 |
204 | All code in any directories or sub-directories that end with *.html or
205 | *.css is licensed under the Creative Commons Attribution International
206 | 4.0 License, which full text can be found here:
207 | https://creativecommons.org/licenses/by/4.0/legalcode.
208 |
209 | As an exception to this license, all html or css that is generated by
210 | the software at the direction of the user is copyright the user. The
211 | user has full ownership and control over such content, including
212 | whether and how they wish to license it.
--------------------------------------------------------------------------------
/components/Footer.tsx:
--------------------------------------------------------------------------------
1 | import {
2 | Article,
3 | Computer,
4 | DeveloperBoard,
5 | Handshake,
6 | PeopleAlt,
7 | PermMedia,
8 | QuestionAnswer,
9 | WbCloudy,
10 | WbSunny,
11 | } from "@mui/icons-material";
12 | import { BottomNavigation, MenuItem, Select } from "@mui/material";
13 |
14 | import Image from "next/image";
15 | import Link from "next/link";
16 | import darkLogotype from "../public/images/logos/darkLogotype.webp";
17 | import lightLogotype from "../public/images/logos/lightLogotype.webp";
18 | import styled from "@emotion/styled";
19 | import { usePreferredTheme } from "../utils/hooks/usePreferredTheme";
20 | import { useTheme } from "@emotion/react";
21 |
22 | const StyledBottomNavigation = styled(BottomNavigation)`
23 | position: relative;
24 | height: auto;
25 | display: flex;
26 | flex-direction: column;
27 | padding: 5rem 12rem;
28 | overflow: hidden;
29 | background: ${({ theme }) => theme.palette.primary.main};
30 |
31 | @media (max-width: 1200px) {
32 | padding: 5rem 5rem;
33 | }
34 | `;
35 |
36 | const FooterContainer = styled.div`
37 | display: flex;
38 | justify-content: space-between;
39 | flex-direction: row;
40 | flex-wrap: wrap;
41 | gap: 4rem;
42 |
43 | @media (max-width: 800px) {
44 | gap: 3rem;
45 | }
46 | `;
47 |
48 | const FooterCategory = styled.div`
49 | width: max-content;
50 | display: flex;
51 | flex-direction: column;
52 | gap: 0.8rem;
53 | `;
54 |
55 | const FooterHeader = styled.p`
56 | color: ${({ theme }) => theme.palette.text.light};
57 | font-size: 1.5em;
58 | font-weight: 500;
59 |
60 | @media (max-width: 800px) {
61 | font-size: 1.2em;
62 | }
63 | `;
64 |
65 | const FooterList = styled.ul`
66 | list-style: unset;
67 | margin: 0;
68 | padding: 0;
69 | display: flex;
70 | flex-direction: column;
71 | gap: 0.3rem;
72 | `;
73 |
74 | const FooterItemLink = styled(Link)`
75 | font-size: 1.15em;
76 | color: ${({ theme }) => theme.palette.text.primary};
77 | display: block;
78 | transition: color ease-in-out 0.15s;
79 | text-decoration: none;
80 |
81 | &:hover {
82 | color: ${({ theme }) => theme.palette.text.light};
83 | }
84 |
85 | @media (max-width: 800px) {
86 | font-size: 1rem;
87 | }
88 | `;
89 |
90 | const FooterItem = styled.li`
91 | list-style-type: none;
92 | `;
93 |
94 | const FooterLogo = styled(Image)`
95 | object-fit: contain;
96 | width: 200px;
97 | height: auto;
98 | `;
99 |
100 | const StyledSelect = styled(Select)`
101 | background: ${({ theme }) => theme.palette.primary.light};
102 | color: ${({ theme }) => theme.palette.text.primary};
103 | height: 2.5rem;
104 | width: 9rem;
105 | `;
106 |
107 | const StyledMenuItem = styled(MenuItem)`
108 | display: flex;
109 | align-items: center;
110 | color: ${({ theme }) => theme.palette.background.default};
111 | `;
112 |
113 | const SunnyIcon = styled(WbSunny)`
114 | vertical-align: middle;
115 | margin-right: 10px;
116 | `;
117 |
118 | const CloudyIcon = styled(WbCloudy)`
119 | vertical-align: middle;
120 | margin-right: 10px;
121 | `;
122 |
123 | const ComputerIcon = styled(Computer)`
124 | vertical-align: middle;
125 | margin-right: 10px;
126 | `;
127 |
128 | const BottomContainer = styled.div`
129 | display: flex;
130 | flex-direction: row;
131 | justify-content: space-between;
132 | align-items: center;
133 | width: 100%;
134 | height: fit-content;
135 | margin-top: 8rem;
136 | flex-wrap: nowrap;
137 |
138 | @media (max-width: 850px) {
139 | justify-content: center;
140 | flex-direction: column;
141 | row-gap: 2.5rem;
142 | margin-top: 4rem;
143 | }
144 | `;
145 |
146 | const PeopleAltIcon = styled(PeopleAlt)`
147 | vertical-align: middle;
148 | margin-right: 10px;
149 | `;
150 |
151 | const DeveloperBoardIcon = styled(DeveloperBoard)`
152 | vertical-align: middle;
153 | margin-right: 10px;
154 | `;
155 |
156 | const ArticleIcon = styled(Article)`
157 | vertical-align: middle;
158 | margin-right: 10px;
159 | `;
160 |
161 | const HandshakeIcon = styled(Handshake)`
162 | vertical-align: middle;
163 | margin-right: 10px;
164 | `;
165 |
166 | const QuestionAnswerIcon = styled(QuestionAnswer)`
167 | vertical-align: middle;
168 | margin-right: 10px;
169 | `;
170 |
171 | const PermMediaIcon = styled(PermMedia)`
172 | vertical-align: middle;
173 | margin-right: 10px;
174 | `;
175 |
176 | type ThemeTypes = "dark" | "light" | "system";
177 |
178 | const Footer = () => {
179 | const theme = useTheme();
180 | const preferredTheme = usePreferredTheme();
181 |
182 | const onThemeChange = (theme: ThemeTypes) => {
183 | localStorage.setItem("theme", theme);
184 |
185 | /* This dispatches a new storage event so we can update the theme, it's a bit
186 | over engineered but it works. (We need this because the storage event
187 | only picks it up within the browser and not in context) */
188 | window.dispatchEvent(new Event("storage"));
189 | };
190 |
191 | return (
192 |
193 |
194 |
195 |
196 |
197 | Find us on
198 |
199 |
200 |
201 |
202 | Discord
203 |
204 |
205 |
206 |
207 | GitHub
208 |
209 |
210 |
211 |
212 | Reddit
213 |
214 |
215 |
216 |
217 | Telegram
218 |
219 |
220 |
221 |
222 | Facebook
223 |
224 |
225 |
226 |
227 | Instagram
228 |
229 |
230 |
231 |
232 | Twitter
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 | Technology
241 |
242 |
243 |
244 |
248 | How it works
249 |
250 |
251 |
252 |
256 | Pangolin
257 |
258 |
259 |
260 |
264 | FImage
265 |
266 |
267 |
268 |
272 | Packaging
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 | Documentation
281 |
282 |
283 |
284 |
288 | Compiling
289 |
290 |
291 |
292 |
296 | Live booting
297 |
298 |
299 |
300 |
304 | Supported devices
305 |
306 |
307 |
308 |
312 | FAQ
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 | Contribute
321 |
322 |
323 |
324 |
328 | Roadmap
329 |
330 |
331 |
332 |
336 | Contribute
337 |
338 |
339 |
340 |
344 | Code of Conduct
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 | Resources
353 |
354 |
355 |
356 |
360 | Brand
361 |
362 |
363 |
364 |
368 | Icons
369 |
370 |
371 |
372 |
376 | Press kit
377 |
378 |
379 |
380 |
381 |
382 |
383 |
384 | Contact
385 |
386 |
387 |
388 |
389 | Contact us
390 |
391 |
392 |
393 |
394 |
395 |
396 | onThemeChange(e.target.value as ThemeTypes)}
398 | value={preferredTheme}
399 | >
400 |
401 |
402 | System
403 |
404 |
405 |
406 | Dark
407 |
408 |
409 |
410 | Light
411 |
412 |
413 |
419 |
420 |
421 | );
422 | };
423 |
424 | export default Footer;
425 |
--------------------------------------------------------------------------------
/components/Intro.tsx:
--------------------------------------------------------------------------------
1 | /* eslint-disable quotes */
2 | import Image from "next/image";
3 | import styled from "@emotion/styled";
4 | import { keyframes } from "@emotion/react";
5 | import { useTheme } from "@emotion/react";
6 | import { Button, useMediaQuery } from "@mui/material";
7 | import { GetApp, LibraryBooks as LibraryBooksIcon } from "@mui/icons-material";
8 | import darkLogotype from "../public/images/logos/darkLogotype.webp";
9 | import LaptopMockup from "../public/images/animation/macbook.webp";
10 | import darkMockup from "../public/images/mockups/darkmockup.webp";
11 | import lightMockup from "../public/images/mockups/lightmockup.webp";
12 |
13 | const mockupKeyframes = keyframes`
14 | 0% {
15 | transform: scale(3.5);
16 | }
17 | 100% {
18 | transform: scale(0.77);
19 | opacity: 1;
20 | }
21 | `;
22 |
23 | const animateIntroContainer = keyframes`
24 | 0% {
25 | transform: translateX(200px);
26 | }
27 | 100% {
28 | opacity: 1;
29 | transform: translateX(-10px);
30 | }
31 | `;
32 |
33 | const scaleBackground = keyframes`
34 | 0% {
35 | transform: translate3d(0px, 0px, 0px) scale(2.9);
36 | }
37 | 100% {
38 | transform: translate3d(35px, 20px, 0) scale(0.6);
39 | }
40 | `;
41 |
42 | const animateTerminal = keyframes`
43 | 0% {
44 | transform: translate3d(-400px, -250vh, 0) scale(2.2);
45 | }
46 |
47 | 100% {
48 | transform: translate3d(293px, -70px, 0) scale(0.8);
49 | opacity: 1;
50 | }
51 | `;
52 |
53 | const animateFiles = keyframes`
54 | 0% {
55 | transform: translate3d(200vw, 22%, 0) scale(2.2);
56 | }
57 | 100% {
58 | transform: translate3d(560px, 10px, 0) scale(0.75);
59 | opacity: 1;
60 | }
61 | `;
62 |
63 | const animateCalculator = keyframes`
64 | 0% {
65 | transform: translate3d(-100vw, -178%, 0) scale(2.2);
66 | }
67 | 100% {
68 | transform: translate3d(343px, 50px, 0) scale(0.8);
69 | opacity: 1;
70 | }
71 | `;
72 |
73 | const animateToolbar = () => keyframes`
74 | 0% {
75 | transform: translate3d(185px, 250px, 0) scale(0.80);
76 | opacity:0;
77 | }
78 | 100% {
79 | transform: translate3d(185px, 216px, 0) scale(0.77);
80 | opacity: 1;
81 | }
82 | `;
83 |
84 | const Sides = styled.div`
85 | flex: 45%;
86 | display: flex;
87 | flex-direction: column;
88 | row-gap: 1.3rem;
89 |
90 | &:first-of-type {
91 | margin-right: 50px;
92 | }
93 |
94 | @media (max-width: 1535px) {
95 | flex: unset;
96 | &:first-of-type {
97 | margin-right: 0;
98 | }
99 | }
100 |
101 | @media (max-width: 1025px) {
102 | row-gap: 0.5rem;
103 | }
104 | `;
105 |
106 | const IntroContainer = styled.div`
107 | position: relative;
108 | display: flex;
109 | opacity: 0;
110 | z-index: 0;
111 | align-items: center;
112 | justify-content: center;
113 | text-align: left;
114 | will-change: transform, opacity;
115 |
116 | animation: ${animateIntroContainer} 1s cubic-bezier(0.66, 0, 0.2, 1) 0.133s
117 | forwards;
118 | animation-delay: 2s;
119 |
120 | @media (max-width: 1535px) {
121 | animation: ${animateIntroContainer} 1s cubic-bezier(0.66, 0, 0.2, 1) 0.133s
122 | forwards;
123 | animation-delay: 0s;
124 | padding: 0 50px 0;
125 | text-align: left;
126 | margin-left: 20px;
127 | }
128 |
129 | @media (max-width: 1025px) {
130 | padding: 20px 20px 0;
131 | }
132 | `;
133 |
134 | const Container = styled.div`
135 | display: flex;
136 | align-items: center;
137 | justify-content: center;
138 | min-height: 100vh;
139 | max-width: 100vw;
140 | background: ${({ theme }) =>
141 | theme.palette.mode === "dark"
142 | ? 'url("/images/background/darkBackground.svg")'
143 | : 'url("/images/background/lightBackground.svg")'};
144 | background-repeat: no-repeat;
145 | background-position: center;
146 | background-size: cover;
147 | overflow: hidden;
148 |
149 | @media (max-width: 1535px) {
150 | flex: unset;
151 | flex-wrap: wrap;
152 | &:nth-of-type(even) {
153 | padding-top: -100px;
154 | padding-bottom: 100px;
155 | }
156 | }
157 | `;
158 |
159 | const MockupContainer = styled.div`
160 | position: relative;
161 | display: flex;
162 | padding-top: 50px;
163 | margin-left: -110px;
164 | margin-right: -130px;
165 | align-items: center;
166 | justify-content: left;
167 | overflow: visible;
168 | `;
169 |
170 | const SectionTitle = styled.h1`
171 | font-size: 2.8em;
172 | font-weight: 600;
173 | color: ${({ theme }) => theme.palette.text.light};
174 |
175 | @media (max-width: 1025px) {
176 | font-size: 2rem;
177 | }
178 | `;
179 |
180 | const Paragraph = styled.p`
181 | margin: 4px 0;
182 | font-weight: light;
183 | font-size: 1.3em;
184 | max-width: 65ch;
185 | color: ${({ theme }) => theme.palette.text.primary};
186 |
187 | @media (max-width: 1025px) {
188 | font-size: 1.2rem;
189 | }
190 | `;
191 |
192 | const StyledButton = styled(Button)<{ isSecondary?: boolean }>`
193 | padding: 10px 20px;
194 | border-radius: 5px;
195 | gap: 10px;
196 | width: fit-content;
197 | height: fit-content;
198 | transition: 0.2s ease-in-out;
199 |
200 | ${({ isSecondary, theme }) =>
201 | isSecondary
202 | ? `
203 | color: ${theme.palette.text.primary};
204 |
205 | &:hover {
206 | background: ${theme.palette.primary.light};
207 | }`
208 | : `color: ${theme.palette.text.extremelyLight};
209 | background: ${theme.palette.secondary.light};
210 |
211 | &:hover {
212 | background: ${theme.palette.secondary.main};
213 | }`};
214 | `;
215 |
216 | const Wrapper = styled.div`
217 | position: relative;
218 | max-width: 100vw;
219 | overflow-x: hidden;
220 | z-index: 1;
221 | `;
222 |
223 | const LogoContainer = styled.div`
224 | position: absolute;
225 | display: flex;
226 | justify-content: center;
227 | align-items: center;
228 | z-index: 1;
229 | width: 100vw;
230 | height: 100vh;
231 | animation: animateLogo 1.9s cubic-bezier(0.66, 0, 0.2, 1) 0.433s forwards;
232 | will-change: transform, opacity;
233 |
234 | @keyframes animateLogo {
235 | 0% {
236 | transform: translateX(0) scale(1);
237 | opacity: 1;
238 | }
239 | 100% {
240 | transform: translateX(-300px) scale(0);
241 | opacity: 0;
242 | }
243 | }
244 |
245 | @media (max-width: 1535px) {
246 | @keyframes animateLogo {
247 | 0% {
248 | transform: translateX(0) scale(1);
249 | opacity: 1;
250 | }
251 | 100% {
252 | transform: translateX(0) scale(0);
253 | opacity: 0;
254 | }
255 | }
256 | }
257 | `;
258 |
259 | const Logo = styled(Image)`
260 | filter: brightness(0) invert(1);
261 | object-fit: contain;
262 | width: 700px;
263 | `;
264 |
265 | const Mockup = styled(Image)`
266 | margin: 50px;
267 | z-index: 1;
268 | opacity: 0;
269 | animation: ${mockupKeyframes} 2.2s cubic-bezier(0.66, 0, 0.2, 1) 0.133s
270 | forwards;
271 | will-change: transform, opacity;
272 | height: auto;
273 | width: 1280px;
274 | `;
275 |
276 | const Background = styled.div`
277 | position: absolute;
278 | width: 1314px;
279 | height: 100%;
280 | bottom: -6px;
281 | background: ${({ theme }) =>
282 | theme.palette.mode === "dark"
283 | ? 'url("/images/animation/darkModeBackground.svg")'
284 | : 'url("/images/animation/lightModeBackground.svg")'};
285 | background-repeat: no-repeat;
286 | background-size: 1414px;
287 | background-position: center;
288 | will-change: transform;
289 | z-index: 0;
290 | transform: scale(2.9);
291 | animation: ${scaleBackground} 2.2s cubic-bezier(0.66, 0, 0.2, 1) 0.133s
292 | forwards;
293 | `;
294 |
295 | const Terminal = styled.div`
296 | position: absolute;
297 | height: 323px;
298 | width: 571px;
299 | background: url("/images/animation/terminal.webp");
300 | background-repeat: no-repeat;
301 | background-size: contain;
302 | background-position: center;
303 | z-index: 1;
304 | opacity: 0;
305 | transform: translate3d(-400px, -250vh, 0) scale(2.2);
306 | animation: ${animateTerminal} 2.2s cubic-bezier(0.66, 0, 0.2, 1) 0.133s
307 | forwards;
308 | animation-delay: 0.3s;
309 | will-change: transform;
310 | `;
311 |
312 | const Files = styled.div`
313 | position: absolute;
314 | height: 356px;
315 | width: 557px;
316 | background: ${({ theme }) =>
317 | theme.palette.mode === "dark"
318 | ? 'url("/images/animation/darkFiles.webp")'
319 | : 'url("/images/animation/lightFiles.webp")'};
320 | background-repeat: no-repeat;
321 | background-size: contain;
322 | background-position: center;
323 | z-index: 2;
324 | opacity: 0;
325 | transform: translate3d(200vw, 22%, 0) scale(2.2);
326 | animation: ${animateFiles} 1.8s cubic-bezier(0.66, 0, 0.2, 1) 0.133s forwards;
327 | animation-delay: 0.5s;
328 | will-change: transform, opacity;
329 | `;
330 |
331 | const Calculator = styled.div`
332 | position: absolute;
333 | height: 296px;
334 | width: 305px;
335 | background: ${({ theme }) =>
336 | theme.palette.mode === "dark"
337 | ? 'url("/images/animation/darkCalculator.webp")'
338 | : 'url("/images/animation/lightCalculator.webp")'};
339 | background-repeat: no-repeat;
340 | background-size: contain;
341 | background-position: center;
342 | z-index: 3;
343 | opacity: 0;
344 | transform: translate3d(-100vw, 178%, 0) scale(2.2);
345 | animation: ${animateCalculator} 1.8s cubic-bezier(0.66, 0, 0.2, 1) 0.133s
346 | forwards;
347 | animation-delay: 0.6s;
348 | will-change: transform, opacity;
349 | `;
350 |
351 | const Toolbar = styled.div`
352 | position: absolute;
353 | height: 100%;
354 | width: 1011px;
355 | background: ${({ theme }) =>
356 | theme.palette.mode === "dark"
357 | ? 'url("/images/animation/darkToolbar.svg")'
358 | : 'url("/images/animation/lightToolbar.svg")'};
359 | background-repeat: no-repeat;
360 | background-size: contain;
361 | background-position: center;
362 | z-index: 0;
363 | opacity: 0;
364 | transform: translateY(312px);
365 | animation: ${animateToolbar} 1s cubic-bezier(0.66, 0, 0.2, 1) 0.133s forwards;
366 | animation-delay: 1.85s;
367 | will-change: transform, opacity;
368 | `;
369 |
370 | const MockupImageContainer = styled.div`
371 | display: flex;
372 | flex-direction: column;
373 | row-gap: 2rem;
374 | justify-content: center;
375 | align-items: center;
376 | padding: 0 50px;
377 | margin-top: 4rem;
378 |
379 | @media (max-width: 1025px) {
380 | padding: 25px 50px;
381 | row-gap: 0.8rem;
382 | }
383 | `;
384 |
385 | const ButtonContainer = styled.div`
386 | display: flex;
387 | flex-direction: row;
388 | flex-wrap: wrap;
389 | column-gap: 2rem;
390 | row-gap: 0.8rem;
391 | align-items: start;
392 | justify-content: start;
393 |
394 | @media (max-width: 1100px) {
395 | align-items: unset;
396 | justify-content: unset;
397 | }
398 | `;
399 |
400 | const MockupImage = styled(Image)`
401 | height: auto;
402 | width: 100%;
403 | object-fit: contain;
404 | `;
405 |
406 | const Intro = () => {
407 | const theme = useTheme();
408 | const windowIsSmall = useMediaQuery("(max-width: 1075px)");
409 |
410 | return (
411 | // Without setting a tabIndex here, this area isn't selectable.
412 |
413 | {!windowIsSmall ? (
414 | <>
415 |
416 |
423 |
424 |
425 |
426 |
433 |
434 |
435 |
436 |
437 |
438 |
439 |
440 |
441 | dahliaOS
442 |
443 | Discover an intuitive operating system with a modern user
444 | interface, efficient multitasking, advanced networking,
445 | security features and respectful privacy. Powered by Linux -
446 | designed to be lightweight for a fast and versatile computing
447 | experience.
448 |
449 |
450 |
451 |
452 | DOWNLOAD
453 |
454 |
455 |
456 | ABOUT DAHLIAOS
457 |
458 |
459 |
460 |
461 |
462 | >
463 | ) : (
464 |
465 |
466 |
472 |
473 |
474 | dahliaOS
475 |
476 | Discover an intuitive operating system with a modern user
477 | interface, efficient multitasking, advanced networking,
478 | security features and respectful privacy. Powered by Linux -
479 | designed to be lightweight for a fast and versatile computing
480 | experience.
481 |
482 |
483 |
484 |
485 | DOWNLOAD
486 |
487 |
488 |
489 | ABOUT DAHLIAOS
490 |
491 |
492 |
493 |
494 |
495 |
496 | )}
497 |
498 | );
499 | };
500 |
501 | export default Intro;
502 |
--------------------------------------------------------------------------------
/components/Download.tsx:
--------------------------------------------------------------------------------
1 | import ErrorIcon from "@mui/icons-material/Error";
2 | import { Button, DialogTitle, Skeleton, DialogContent } from "@mui/material";
3 | import Dialog from "@mui/material/Dialog";
4 | import DialogActions from "@mui/material/DialogActions";
5 | import Paper from "@mui/material/Paper";
6 | import { AnimatePresence, motion } from "framer-motion";
7 | import { useRouter } from "next/router";
8 | import { useCallback, useState } from "react";
9 | import styled from "@emotion/styled";
10 | import { useGithubReleases } from "../utils/hooks/useGithubReleases";
11 | import {
12 | GetApp,
13 | TextSnippet as TextSnippetIcon,
14 | VolunteerActivism as VolunteerActivismIcon,
15 | Close as CloseIcon,
16 | } from "@mui/icons-material";
17 | import Link from "next/link";
18 |
19 | const Card = styled.div`
20 | display: flex;
21 | flex-direction: row;
22 | border-radius: 14px;
23 | max-width: 1250px;
24 | max-height: 420px;
25 | width: 100%;
26 | margin: 0 auto;
27 | background: ${({ theme }) => theme.palette.primary.light};
28 | box-shadow:
29 | 0px 1px 7px 1px rgb(0 0 0 / 14%),
30 | 0 3px 3px -2px rgb(0 0 0 / 20%),
31 | 0 1px 8px 0 rgb(0 0 0 / 12%);
32 |
33 | @media (max-width: 1250px) {
34 | flex-direction: column;
35 | max-height: 60rem;
36 | }
37 | `;
38 |
39 | const Latest = styled.div`
40 | display: flex;
41 | flex-direction: column;
42 | flex: 1;
43 | justify-content: space-between;
44 | gap: 2rem;
45 | padding: 0 28px;
46 |
47 | @media (max-width: 980px) {
48 | padding-bottom: 20px;
49 | }
50 | `;
51 |
52 | const Older = styled.div`
53 | background: ${({ theme }) => theme.palette.primary.contrastText};
54 | border-radius: 13px;
55 | padding: 0 16px;
56 | flex: 1;
57 | overflow: auto;
58 | box-shadow:
59 | 0px 1px 7px 1px rgb(0 0 0 / 14%),
60 | 0 3px 3px -2px rgb(0 0 0 / 20%),
61 | 0 1px 8px 0 rgb(0 0 0 / 12%);
62 | `;
63 |
64 | const TextContainer = styled.div`
65 | position: relative;
66 | padding-bottom: 35px;
67 | gap: 0.5rem;
68 | display: flex;
69 | flex-direction: column;
70 | `;
71 |
72 | const Header = styled.h1`
73 | margin: 17px 0 0;
74 | color: ${({ theme }) => theme.palette.text.light};
75 | `;
76 |
77 | const OlderHeader = styled.p`
78 | margin: 17px 0 0;
79 | text-align: center;
80 | color: ${({ theme }) => theme.palette.text.light};
81 | font-size: 1.3rem;
82 | `;
83 |
84 | const VersionInfo = styled.p`
85 | color: ${({ theme }) => theme.palette.text.primary};
86 | `;
87 |
88 | const DownloadCountOlder = styled.p`
89 | color: ${({ theme }) => theme.palette.text.secondary};
90 |
91 | @media (max-width: 1250px) {
92 | font-size: 0.9rem;
93 | }
94 | `;
95 |
96 | const Changelogs = styled.p`
97 | color: ${({ theme }) => theme.palette.text.primary};
98 |
99 | white-space: pre-line;
100 | text-overflow: ellipsis;
101 | display: -webkit-box;
102 | -webkit-line-clamp: 8;
103 | -webkit-box-orient: vertical;
104 | overflow: hidden;
105 | `;
106 |
107 | const UpdateContainer = styled.div`
108 | padding: 20px 0 0;
109 | `;
110 |
111 | const ChangelogContainer = styled.div`
112 | position: absolute;
113 | right: 0;
114 | bottom: -15px;
115 | `;
116 |
117 | const StyledButton = styled(Button)<{
118 | isSecondary?: boolean;
119 | isOlderRelease?: boolean;
120 | isDialogAction?: boolean;
121 | }>`
122 | padding: 8px 15px;
123 | border-radius: 5px;
124 | gap: 10px;
125 | width: fit-content;
126 | height: fit-content;
127 | transition: 0.2s ease-in-out;
128 |
129 | ${({ isSecondary, theme }) =>
130 | isSecondary
131 | ? `
132 | color: ${theme.palette.text.primary};
133 |
134 | &:hover {
135 | background: ${theme.palette.primary.contrastText};
136 | }`
137 | : `color: ${theme.palette.text.extremelyLight};
138 | background: ${theme.palette.secondary.light};
139 |
140 | &:hover {
141 | background: ${theme.palette.secondary.main};
142 | }`};
143 |
144 | ${({ isOlderRelease, theme }) =>
145 | isOlderRelease
146 | ? `
147 | &:hover {
148 | background: ${theme.palette.primary.light};
149 | }`
150 | : null};
151 |
152 | ${({ isDialogAction, theme }) =>
153 | isDialogAction
154 | ? `margin-right: 1rem;
155 | &:hover {
156 | background: ${theme.palette.primary.light};
157 | }`
158 | : null};
159 | `;
160 |
161 | const OlderUpdate = styled.div`
162 | display: flex;
163 | align-items: center;
164 | padding: 10px 0;
165 | margin-bottom: 6px;
166 | border-bottom: 1px solid ${({ theme }) => theme.palette.text.secondary};
167 |
168 | &:last-child {
169 | margin-bottom: 0;
170 | border-bottom: unset;
171 | }
172 | `;
173 |
174 | const OlderUpdateTextWrapper = styled.div`
175 | flex-grow: 1;
176 | gap: 0.15rem;
177 | display: flex;
178 | flex-direction: column;
179 | `;
180 |
181 | const OlderUpdateTitle = styled.p`
182 | font-size: 1.15rem;
183 | margin: 0;
184 | padding: 0 2rem 0 0;
185 | font-weight: 400;
186 | color: ${({ theme }) => theme.palette.text.primary};
187 |
188 | &:hover {
189 | color: ${({ theme }) => theme.palette.text.light};
190 | }
191 |
192 | @media (max-width: 1250px) {
193 | font-size: 1rem;
194 | }
195 | `;
196 |
197 | const ButtonContainer = styled.div<{ isOlderRelease?: boolean }>`
198 | display: flex;
199 | flex-direction: row;
200 | column-gap: 1.2rem;
201 | row-gap: 0.8rem;
202 |
203 | ${({ isOlderRelease }) =>
204 | isOlderRelease
205 | ? `justify-content: end;
206 | align-items: center;
207 | @media (max-width: 600px) {
208 | flex-direction: column;
209 | }`
210 | : `margin-bottom: 1.5rem;
211 | flex-wrap: wrap;
212 | @media (max-width: 1100px) {
213 | align-items: unset;
214 | justify-content: unset;
215 | }`};
216 | `;
217 |
218 | const OlderUpdateDate = styled.p`
219 | color: ${({ theme }) => theme.palette.text.secondary};
220 | font-size: 1rem;
221 |
222 | @media (max-width: 1250px) {
223 | font-size: 0.9rem;
224 | }
225 | `;
226 |
227 | const ErrorContainer = styled.div`
228 | display: flex;
229 | align-items: center;
230 | justify-content: center;
231 | flex-direction: column;
232 | text-align: center;
233 | width: 100%;
234 | height: 100%;
235 | gap: 1rem;
236 | `;
237 |
238 | const StyledErrorIcon = styled(ErrorIcon)`
239 | color: ${({ theme }) => theme.palette.error.light};
240 | width: 50px;
241 | height: auto;
242 | margin-top: 25px;
243 | `;
244 |
245 | const ErrorMessage = styled.p`
246 | color: ${({ theme }) => theme.palette.text.primary};
247 | max-width: ch(75);
248 | margin-bottom: 25px;
249 | `;
250 |
251 | const StyledModal = styled(motion.create(Dialog))``;
252 |
253 | const StyledPaper = styled(motion.create(Paper))`
254 | border-radius: 8px;
255 | background: ${({ theme }) => theme.palette.primary.contrastText};
256 | padding: 10px 20px 20px 10px;
257 | max-width: 85%;
258 | `;
259 |
260 | const modalContainerAnimation = {
261 | initial: {
262 | opacity: 0,
263 | },
264 | isOpen: {
265 | opacity: 1,
266 | },
267 | exit: {
268 | opacity: 0,
269 | },
270 | };
271 |
272 | const modalAnimation = {
273 | initial: {
274 | transform: "scale(0.95)",
275 | },
276 | isOpen: {
277 | transform: "scale(1)",
278 | },
279 | exit: {
280 | transform: "scale(0.95)",
281 | },
282 | };
283 |
284 | const StyledLink = styled(Link)`
285 | text-decoration: none;
286 | `;
287 |
288 | const ModalTitle = styled(DialogTitle)`
289 | font-size: 1.4rem;
290 | color: ${({ theme }) => theme.palette.text.light};
291 | `;
292 |
293 | const ModalParagraph = styled(DialogContent)`
294 | font-size: 1.1rem;
295 | max-width: 55ch;
296 | color: ${({ theme }) => theme.palette.text.primary};
297 | `;
298 |
299 | const DownloadCount = styled.p`
300 | color: ${({ theme }) => theme.palette.text.secondary};
301 | `;
302 |
303 | const Download = () => {
304 | const { releases, isError, isLoading } = useGithubReleases();
305 | const [modalActive, setModalActive] = useState(false);
306 | const Router = useRouter();
307 |
308 | const getDate = (date: Date) => {
309 | date = new Date(date);
310 |
311 | return new Date(
312 | date.getFullYear(),
313 | date.getMonth(),
314 | date.getDate(),
315 | ).toLocaleString("en-US", {
316 | month: "short",
317 | day: "numeric",
318 | year: "numeric",
319 | });
320 | };
321 |
322 | const closeModal = useCallback(() => setModalActive(false), []);
323 | const openModal = useCallback(() => setModalActive(true), []);
324 |
325 | return (
326 | <>
327 |
328 | {modalActive ? (
329 | (
337 |
343 | {children}
344 |
345 | )}
346 | >
347 | Support dahliaOS
348 |
349 | Donating to dahliaOS will help us cover the expenses and furtherly
350 | motivate us to continue working on bringing you new releases and
351 | updates. Click the Donate button below if you would like to learn
352 | more about donating to dahliaOS!
353 |
354 |
355 |
356 | Close
357 |
358 | Router.replace("/donate")} autoFocus>
359 |
360 | Donate
361 |
362 |
363 |
364 | ) : null}
365 |
366 |
367 | {isError ? (
368 |
369 |
370 |
371 |
372 | An error occurred whilst fetching GitHub's API!
373 |
374 |
375 |
376 | ) : null}
377 |
378 | {releases?.length ? (
379 | <>
380 |
381 |
382 |
383 | Latest
384 |
385 | {releases[0].name} ({getDate(releases[0].published_at)})
386 |
387 | Downloads:{" "}
388 | {releases[0].assets[0].download_count +
389 | releases[0].assets[1].download_count}
390 |
391 |
392 |
393 | {releases[0].body
394 | .substring(releases[0].body.indexOf("+ "))
395 | .replace(/(?:\r\n|\r|\n)/g, "\n")}
396 |
397 |
398 |
399 |
400 |
401 | Full changelog
402 |
403 |
404 |
405 |
406 |
407 | {releases[0].assets.map(asset => (
408 |
414 |
415 | {asset.name.includes("efi")
416 | ? "Download (EFI)"
417 | : "Download (Legacy)"}
418 |
419 | ))}
420 |
421 |
422 |
423 |
424 | Older releases
425 |
426 | {releases.map((oldRelease, i) => {
427 | if (i === 0) return;
428 | return (
429 |
430 |
431 |
435 |
436 | {oldRelease.name}
437 |
438 |
439 |
440 | Downloads:{" "}
441 | {oldRelease.assets[0].name.includes("efi")
442 | ? oldRelease.assets[0].download_count +
443 | oldRelease.assets[1].download_count
444 | : oldRelease.assets[0].download_count}
445 |
446 |
447 | {getDate(oldRelease.published_at)}
448 |
449 |
450 |
451 | {oldRelease.assets.map(asset => (
452 |
459 |
460 | {asset.name.includes("efi") ? "EFI" : "Legacy"}
461 |
462 | ))}
463 |
464 |
465 | );
466 | })}
467 |
468 |
469 |
470 |
471 | >
472 | ) : isLoading ? (
473 |
474 |
475 |
476 |
477 |
483 |
484 |
485 |
491 |
492 |
493 |
499 |
505 |
511 |
517 |
523 |
529 |
535 |
536 |
537 |
538 |
544 |
545 |
546 |
547 |
548 |
555 |
562 |
563 |
564 |
565 |
566 | Older releases
567 |
568 | {[...Array(5)].map((oldRelease, i) => {
569 | if (i === 0) return;
570 | return (
571 |
572 |
573 |
574 |
580 |
581 |
582 |
588 |
589 |
590 |
591 |
598 |
605 |
606 |
607 | );
608 | })}
609 |
610 |
611 |
612 |
613 | ) : null}
614 | >
615 | );
616 | };
617 |
618 | export default Download;
619 |
--------------------------------------------------------------------------------
/pages/index.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import Head from "next/head";
3 | import styled from "@emotion/styled";
4 | import type { NextPage } from "next";
5 | import Intro from "../components/Intro";
6 | import Navbar from "../components/Navbar";
7 | import Footer from "../components/Footer";
8 | import { Button, useTheme } from "@mui/material";
9 | import DownloadComponent from "../components/Download";
10 | import {
11 | Devices as DevicesIcon,
12 | GitHub as GitHubIcon,
13 | CorporateFare as CorporateFareIcon,
14 | Science as ScienceIcon,
15 | DesktopMac,
16 | Autorenew,
17 | ViewInAr,
18 | ViewCompact,
19 | Apps,
20 | ScreenshotMonitor,
21 | } from "@mui/icons-material";
22 | import { motion, Variants } from "framer-motion";
23 | import Image from "next/image";
24 | import graft from "../public/images/app-icons/graft.webp";
25 | import settings from "../public/images/app-icons/settings.webp";
26 | import fileManager from "../public/images/app-icons/fileManager.webp";
27 | import appStore from "../public/images/app-icons/appStore.webp";
28 | import clock from "../public/images/app-icons/clock.webp";
29 | import welcome from "../public/images/app-icons/welcome.webp";
30 | import terminal from "../public/images/app-icons/terminal.webp";
31 | import calculator from "../public/images/app-icons/calculator.webp";
32 | import activityMonitor from "../public/images/app-icons/activityMonitor.webp";
33 | import gallery from "../public/images/app-icons/gallery.webp";
34 | import textEditor from "../public/images/app-icons/textEditor.webp";
35 | import logs from "../public/images/app-icons/logs.webp";
36 | import darkOIN from "../public/images/landing/darkOIN.webp";
37 | import lightOIN from "../public/images/landing/lightOIN.webp";
38 | import darkPangolin from "../public/images/landing/darkPangolin.webp";
39 | import lightPangolin from "../public/images/landing/lightPangolin.webp";
40 | import darkSupportedDevices from "../public/images/landing/darkSupportedDevices.webp";
41 | import lightSupportedDevices from "../public/images/landing/lightSupportedDevices.webp";
42 | import Link from "next/link";
43 |
44 | const Wrapper = styled.div``;
45 |
46 | const Container = styled(motion.div)<{
47 | showOnRight?: boolean;
48 | distanceFirst?: boolean;
49 | isCentered?: boolean;
50 | }>`
51 | position: relative;
52 | display: flex;
53 | width: 100vw;
54 | align-items: center;
55 | justify-content: center;
56 | padding: 0 3rem;
57 |
58 | ${({ distanceFirst }) =>
59 | distanceFirst
60 | ? `margin-top: 4rem;
61 | @media (max-width: 1100px) {
62 | margin-top: 3rem;
63 | }`
64 | : null};
65 |
66 | ${({ isCentered }) =>
67 | isCentered
68 | ? `flex-direction: column;
69 | min-height: unset;
70 | gap: 2rem;
71 | margin: 5rem 0;`
72 | : `flex-direction: row;
73 | min-height: 50rem;`};
74 |
75 | @media (max-width: 1100px) {
76 | flex-direction: ${({ showOnRight }) =>
77 | showOnRight ? "column-reverse" : "column"};
78 | padding: 25px 8rem;
79 | ${({ isCentered }) =>
80 | isCentered
81 | ? `margin: 1rem 0;
82 | `
83 | : "min-height: 40rem;"};
84 | }
85 |
86 | @media (max-width: 950px) {
87 | padding: 25px 3rem;
88 | }
89 | `;
90 |
91 | const Sides = styled.div<{
92 | isCentered?: boolean;
93 | }>`
94 | flex: 45%;
95 | display: flex;
96 | flex-flow: column;
97 | gap: 1.3rem;
98 |
99 | ${({ isCentered }) =>
100 | isCentered
101 | ? null
102 | : `&:first-of-type {
103 | margin-right: 120px;
104 | }`};
105 |
106 | @media (max-width: 1100px) {
107 | flex: unset;
108 | &:first-of-type {
109 | margin-right: 0;
110 | }
111 | }
112 | `;
113 |
114 | const SectionTitle = styled.p<{ isCentered?: boolean }>`
115 | font-size: 2.8em;
116 | font-weight: 600;
117 | color: ${({ theme }) => theme.palette.text.light};
118 | text-align: ${({ isCentered }) => (isCentered ? "center" : null)};
119 |
120 | @media (max-width: 1100px) {
121 | text-align: ${({ isCentered }) => (isCentered ? "left" : null)};
122 | }
123 | `;
124 |
125 | const Paragraph = styled.p<{ isCentered?: boolean }>`
126 | font-weight: light;
127 | font-size: 1.3em;
128 | max-width: 65ch;
129 | color: ${({ theme }) => theme.palette.text.primary};
130 | text-align: ${({ isCentered }) => (isCentered ? "center" : null)};
131 |
132 | @media (max-width: 1100px) {
133 | text-align: ${({ isCentered }) => (isCentered ? "left" : null)};
134 | }
135 | `;
136 |
137 | const SectionBtn = styled(Button)<{ isSecondary?: boolean }>`
138 | padding: 10px 20px;
139 | border-radius: 5px;
140 | gap: 10px;
141 | width: fit-content;
142 | height: fit-content;
143 | transition: 0.2s ease-in-out;
144 |
145 | ${({ isSecondary, theme }) =>
146 | isSecondary
147 | ? `
148 | color: ${theme.palette.text.primary};
149 |
150 | &:hover {
151 | background: ${theme.palette.primary.light};
152 | }`
153 | : `color: ${theme.palette.text.extremelyLight};
154 | background: ${theme.palette.secondary.light};
155 |
156 | &:hover {
157 | background: ${theme.palette.secondary.main};
158 | }`};
159 | `;
160 |
161 | const SectionDivContainer = styled.div<{ showOnRight?: boolean }>`
162 | position: relative;
163 | background: ${({ theme }) => theme.palette.primary.light};
164 | border-radius: 14px;
165 | padding: 13px;
166 |
167 | ${({ showOnRight }) =>
168 | showOnRight ? "margin-right: -209px;" : "margin-left: -159px;"}
169 |
170 | box-shadow: 0px 1px 7px 1px rgb(0 0 0 / 14%), 0 3px 3px -2px rgb(0 0 0 / 20%),
171 | 0 1px 8px 0 rgb(0 0 0 / 12%);
172 |
173 | @media (max-width: 1100px) {
174 | padding: 8px;
175 | margin: 20px 0;
176 | }
177 | `;
178 |
179 | const StyledLink = styled(Link)`
180 | text-decoration: none;
181 | color: ${({ theme }) => theme.palette.text.primary};
182 | `;
183 |
184 | const SectionButtonContainer = styled.div<{ isCentered?: boolean }>`
185 | display: flex;
186 | flex-direction: row;
187 | flex-wrap: wrap;
188 | column-gap: 2rem;
189 | row-gap: 0.8rem;
190 |
191 | ${({ isCentered }) =>
192 | isCentered
193 | ? `
194 | align-items: center;
195 | justify-content: center;`
196 | : `
197 | align-items: start;
198 | justify-content: start;`}
199 |
200 | @media (max-width: 1100px) {
201 | align-items: unset;
202 | justify-content: unset;
203 | }
204 | `;
205 |
206 | const SectionDiv = styled.div<{
207 | showOnRight?: boolean;
208 | onlyImage?: boolean;
209 | }>`
210 | border-radius: 14px;
211 | max-width: 51rem;
212 | min-width: 100%;
213 | display: flex;
214 | align-items: center;
215 |
216 | box-shadow:
217 | 0px 1px 7px 1px rgb(0 0 0 / 14%),
218 | 0 3px 3px -2px rgb(0 0 0 / 20%),
219 | 0 1px 8px 0 rgb(0 0 0 / 12%);
220 |
221 | ${({ showOnRight }) =>
222 | showOnRight ? "margin: 10px -70px" : "margin: 10px 70px"};
223 |
224 | ${({ onlyImage, theme }) =>
225 | onlyImage
226 | ? null
227 | : `padding: 10%;
228 | background: ${theme.palette.primary.contrastText};`}
229 |
230 | @media (max-width: 1100px) {
231 | margin: 0;
232 | }
233 | `;
234 |
235 | const SectionImg = styled(Image)`
236 | width: 100%;
237 | height: 100%;
238 | object-fit: cover;
239 | border-radius: 14px;
240 | `;
241 |
242 | const AppDivContainer = styled.div`
243 | display: flex;
244 | flex-direction: row;
245 | justify-content: center;
246 | align-items: center;
247 | gap: 3rem;
248 | flex-wrap: wrap;
249 |
250 | @media (max-width: 1100px) {
251 | gap: 2rem;
252 | }
253 | `;
254 |
255 | const AppDiv = styled.div`
256 | display: flex;
257 | flex-direction: column;
258 | justify-content: center;
259 | align-items: center;
260 | text-align: center;
261 | row-gap: 0.5rem;
262 | `;
263 |
264 | const AppIcon = styled(Image)`
265 | height: auto;
266 | width: 60px;
267 | object-fit: contain;
268 | filter: drop-shadow(
269 | ${({ theme }) =>
270 | theme.palette.mode === "dark"
271 | ? null
272 | : `0 0 0.2rem ${theme.palette.text.disabled}`}
273 | );
274 |
275 | &:hover {
276 | filter: drop-shadow(
277 | 0 0 1rem ${({ theme }) => theme.palette.secondary.main}
278 | );
279 | }
280 |
281 | @media (max-width: 1100px) {
282 | width: 40px;
283 | }
284 | `;
285 |
286 | const AppParagraph = styled.p`
287 | font-weight: light;
288 | font-size: 1rem;
289 | color: ${({ theme }) => theme.palette.text.primary};
290 |
291 | @media (max-width: 1100px) {
292 | font-size: 0.9rem;
293 | }
294 | `;
295 |
296 | const FeaturesDivContainer = styled.div`
297 | display: flex;
298 | flex-direction: row;
299 | justify-content: center;
300 | align-items: center;
301 | gap: 3rem;
302 | flex-wrap: wrap;
303 |
304 | @media (max-width: 1568px) {
305 | gap: 1.5rem;
306 | flex-direction: column;
307 | }
308 | `;
309 |
310 | const FeaturesDiv = styled.div`
311 | display: flex;
312 | flex-direction: row;
313 | justify-content: start;
314 | align-items: center;
315 | text-align: center;
316 | column-gap: 1.8rem;
317 | width: 45%;
318 |
319 | @media (max-width: 1568px) {
320 | width: 100%;
321 | }
322 | `;
323 |
324 | const FeaturesTitle = styled.p`
325 | font-weight: 500;
326 | font-size: 1.2rem;
327 | color: ${({ theme }) => theme.palette.text.primary};
328 |
329 | @media (max-width: 1100px) {
330 | font-size: 1rem;
331 | }
332 | `;
333 |
334 | const FeaturesParagraph = styled.p`
335 | font-weight: light;
336 | font-size: 1.1rem;
337 | color: ${({ theme }) => theme.palette.text.primary};
338 | max-width: 35ch;
339 |
340 | @media (max-width: 1100px) {
341 | font-size: 0.9rem;
342 | max-width: unset;
343 | }
344 | `;
345 |
346 | const DesktopMacIcon = styled(DesktopMac)`
347 | color: ${({ theme }) => theme.palette.text.primary};
348 | font-size: 3rem;
349 |
350 | @media (max-width: 1100px) {
351 | font-size: 2rem;
352 | }
353 | `;
354 |
355 | const AutorenewIcon = styled(Autorenew)`
356 | color: ${({ theme }) => theme.palette.text.primary};
357 | font-size: 3rem;
358 |
359 | @media (max-width: 1100px) {
360 | font-size: 2rem;
361 | }
362 | `;
363 |
364 | const ViewInArIcon = styled(ViewInAr)`
365 | color: ${({ theme }) => theme.palette.text.primary};
366 | font-size: 3rem;
367 |
368 | @media (max-width: 1100px) {
369 | font-size: 2rem;
370 | }
371 | `;
372 |
373 | const ViewCompactIcon = styled(ViewCompact)`
374 | color: ${({ theme }) => theme.palette.text.primary};
375 | font-size: 3rem;
376 |
377 | @media (max-width: 1100px) {
378 | font-size: 2rem;
379 | }
380 | `;
381 |
382 | const AppsIcon = styled(Apps)`
383 | color: ${({ theme }) => theme.palette.text.primary};
384 | font-size: 3rem;
385 |
386 | @media (max-width: 1100px) {
387 | font-size: 2rem;
388 | }
389 | `;
390 |
391 | const ScreenshotMonitorIcon = styled(ScreenshotMonitor)`
392 | color: ${({ theme }) => theme.palette.text.primary};
393 | font-size: 3rem;
394 |
395 | @media (max-width: 1100px) {
396 | font-size: 2rem;
397 | }
398 | `;
399 |
400 | const FeaturesTextContainer = styled.div`
401 | display: flex;
402 | flex-direction: column;
403 | text-align: start;
404 | gap: 0.4rem;
405 | `;
406 |
407 | const LinkSpan = styled.span`
408 | text-decoration: underline;
409 | `;
410 |
411 | const variantRight: Variants = {
412 | visible: {
413 | x: 0,
414 | opacity: 1,
415 | transition: { type: "spring", stiffness: 30, duration: 1 },
416 | },
417 | hidden: { x: -200, opacity: 0 },
418 | };
419 |
420 | const variantLeft: Variants = {
421 | visible: {
422 | x: 0,
423 | opacity: 1,
424 | transition: { type: "spring", stiffness: 30, duration: 1 },
425 | },
426 | hidden: { x: 200, opacity: 0 },
427 | };
428 |
429 | const downloadVariant: Variants = {
430 | visible: {
431 | y: 0,
432 | opacity: 1,
433 | transition: { type: "spring", stiffness: 30, duration: 1 },
434 | },
435 | hidden: { y: 200, opacity: 0 },
436 | };
437 |
438 | const Home: NextPage = () => {
439 | const theme = useTheme();
440 |
441 | return (
442 |
443 |
444 | dahliaOS
445 |
446 |
447 |
448 |
449 |
450 |
451 | {/* Just the basics */}
452 |
460 |
461 |
462 |
463 |
464 |
465 |
469 |
475 |
476 | Graft
477 |
478 |
479 |
483 |
489 |
490 | Settings
491 |
492 |
493 |
497 |
503 |
504 | File Manager
505 |
506 |
507 |
511 |
517 |
518 | App Store
519 |
520 |
521 |
525 |
531 |
532 | Clock
533 |
534 |
535 |
539 |
545 |
546 | Welcome
547 |
548 |
549 |
553 |
559 |
560 | Terminal
561 |
562 |
563 |
567 |
573 |
574 | Calculator
575 |
576 |
577 |
581 |
587 |
588 | Activity Monitor
589 |
590 |
591 |
595 |
601 |
602 | Gallery
603 |
604 |
605 |
609 |
615 |
616 | Text Editor
617 |
618 |
619 |
623 |
629 |
630 | Logs
631 |
632 |
633 |
634 |
635 |
636 |
637 | Just the basics
638 |
639 | dahliaOS keeps things light by only including apps you need
640 | leaving the choice to the user on what other applications to
641 | install. We provide a curated marketplace for third-party
642 | applications so that the user can install any application they
643 | wish within just one click! It's also possible to install all
644 | of your favorite applications from other operating systems using
645 | Graft, our virtual machine and containers management application.
646 |
647 |
648 |
649 | {/* Features */}
650 |
657 |
658 | Features
659 |
660 | One of our primary goals is to provide as many useful features as
661 | possible while maintaining a great and painless experience for the
662 | user. We've dedicated a lot of time to customizability so
663 | it's possible to change the look and feel of almost every
664 | component of the shell.
665 |
666 |
667 |
668 |
669 |
670 |
671 |
672 |
673 |
674 | Modern desktop enviroment
675 |
676 | Pangolin desktop enviroment written in Flutter focused
677 | on UI/UX.
678 |
679 |
680 |
681 |
682 |
683 |
684 | Rolling release
685 |
686 | Frequent minor updates and patches.
687 |
688 |
689 |
690 |
691 |
692 |
693 | DAP Packages
694 |
695 | Simple packaging format based on the AppImage
696 | architecture.
697 |
698 |
699 |
700 |
701 |
702 |
703 | Built-in containers
704 |
705 | Use applications from other operating systems on
706 | dahliaOS.
707 |
708 |
709 |
710 |
711 |
712 |
713 | Native applications
714 |
715 | dahliaOS comes bundled with a set of native applications
716 | written in Flutter.
717 |
718 |
719 |
720 |
721 |
722 |
723 | Custom window manager
724 |
725 | Utopia, our WM solution that enhances the experience and
726 | boosts productivity by helping you arrange your windows
727 | with ease.
728 |
729 |
730 |
731 |
732 |
733 |
734 |
735 |
736 | {/* Wide range of supported devices */}
737 |
743 |
744 |
745 |
746 |
756 |
757 |
758 |
759 |
760 | A wide range of supported hardware
761 |
762 | dahliaOS provides a fast and stable experience on nearly every
763 | computer, from an old desktop tower to the latest generation of
764 | mobile notebooks.
765 |
766 |
770 |
771 |
772 | SUPPORTED HARDWARE
773 |
774 |
775 |
776 |
777 | {/* Free open source software */}
778 |
785 |
786 | Free open source software
787 |
788 | dahliaOS is and always will be open sourced and 100% free. All of
789 | our code and even some design work is hosted on GitHub licensed
790 | under the{" "}
791 |
792 |
796 | Apache 2.0 license
797 |
798 |
799 | . We believe transparency is important. We're also proud to
800 | say that since August of 2020 we're members of the Open
801 | Invention Network, the world's largest patent non-aggression
802 | community and free defensive patent pool.
803 |
804 |
805 |
806 |
807 |
808 | GITHUB
809 |
810 |
811 |
815 |
816 |
817 | OPEN INVENTION NETWORK
818 |
819 |
820 |
821 |
822 |
823 |
824 |
825 |
831 |
832 |
833 |
834 |
835 | {/* Demo */}
836 |
842 |
843 |
844 |
845 |
853 |
854 |
855 |
856 |
857 | Demo
858 |
859 | We offer a web preview of the Pangolin shell so you don't
860 | have to install the system just to see if our shell is made for
861 | you. Some features are disabled on the web preview but are
862 | functional on the actual system itself.
863 |
864 |
865 |
866 |
867 | Try it out
868 |
869 |
870 |
871 |
872 | {/* Download */}
873 |
881 |
882 | Download
883 |
884 | Below in the download component are all dahliaOS downloads, we
885 | offer both Legacy and EFI images.
886 |
887 |
888 |
889 |
890 |
891 |
892 |
893 | );
894 | };
895 |
896 | export default Home;
897 |
--------------------------------------------------------------------------------