From fdc5f23f50c769279e544e7b338cf6cf82ea88a8 Mon Sep 17 00:00:00 2001 From: nicosammito Date: Tue, 7 May 2024 17:12:59 +0200 Subject: [PATCH 1/2] open source section and adjustment for height in background --- src/app/globals.scss | 27 ++++++++++++ src/app/page.tsx | 2 + src/components/Header/Header.module.scss | 4 +- src/static-components/OpenSourceSection.tsx | 48 +++++++++++++++++++++ 4 files changed, 79 insertions(+), 2 deletions(-) create mode 100644 src/static-components/OpenSourceSection.tsx diff --git a/src/app/globals.scss b/src/app/globals.scss index dc47015..ac3e7b1 100644 --- a/src/app/globals.scss +++ b/src/app/globals.scss @@ -25,4 +25,31 @@ ul { content: "✓"; } } +} + +.text-code-animation { + background: url("/code0_background.png"); + animation: text-code-animation__key 10s ease-in-out infinite; + + &:after { + content: ""; + background: radial-gradient(circle at top, rgba(#030014, .25) 0%, rgba(#030014, 1) 60%) repeat; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + } +} + +@keyframes text-code-animation__key { + 0% { + background-position: top left; + } + 50% { + background-position: center center; + } + 100% { + background-position: bottom right; + } } \ No newline at end of file diff --git a/src/app/page.tsx b/src/app/page.tsx index 81081d0..397b118 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -7,6 +7,7 @@ import {FlowSection} from "@/static-components/FlowSection"; import {IntegrationsSection} from "@/static-components/IntegrationsSection"; import {AdaptersSection} from "@/static-components/AdaptersSection"; import {CommunitySection} from "@/static-components/CommunitySection"; +import {OpenSourceSection} from "@/static-components/OpenSourceSection"; const LandingPage: NextPage = () => { @@ -15,6 +16,7 @@ const LandingPage: NextPage = () => { + diff --git a/src/components/Header/Header.module.scss b/src/components/Header/Header.module.scss index 9a174f4..c1816cf 100644 --- a/src/components/Header/Header.module.scss +++ b/src/components/Header/Header.module.scss @@ -19,13 +19,13 @@ } &--full-height { - padding-bottom: unset; + padding: 0; display: flex; align-items: center; min-height: 100vh; &:before { - height: 200%; + height: 150%; } } diff --git a/src/static-components/OpenSourceSection.tsx b/src/static-components/OpenSourceSection.tsx new file mode 100644 index 0000000..e7897c5 --- /dev/null +++ b/src/static-components/OpenSourceSection.tsx @@ -0,0 +1,48 @@ +import React from "react"; +import {Button, Col, Container, Row, Text} from "@code0-tech/pictor"; +import {IconBrandGithub} from "@tabler/icons-react"; + +export const OpenSourceSection: React.FC = () => { + return + + <> + + +
+

We are
+ open-source

+ + Our complete platform is open-source and everyone can contribute to the backend revolution. + With our free-to-use self-hosted community edition you can tryout new features and play around. + + +
+ +
+ + { + "def execute authorization_token = request.headers['Authorization'] current_authorization = find_authorization(authorization_token) return head :unauthorized if authorization_token.present? == current_authorization.none? return head :unauthorized if current_authorization.invalid? return head :forbidden if !current_authorization.mutations_allowed? && mutation? && !anonymous_mutation? current_user = current_authorization.authorization&.user variables = prepare_variables(params[:variables]) query = params[:query] operation_name = params[:operationName] context = { current_user: current_user, current_authorization: current_authorization.authorization, } Sagittarius::Context.with_context(user: { id: current_user&.id, username: current_user&.username }) do result = SagittariusSchema.execute(query, variables: variables, context: context, operation_name: operation_name) render json: result rescue StandardError => e logger.error message: e.message, backtrace: e.backtrace, exception_class: e.class if Rails.env.local? render json: { errors: [{ message: e.message, backtrace: e.backtrace }], data: {} }, status: :internal_server_error else render json: { message: 'Internal server error' }, status: :internal_server_error end end end" + } + +
+ + + <> + +
+
+} \ No newline at end of file From 477af5aace514783408861fa589bebfcfca792c3 Mon Sep 17 00:00:00 2001 From: Nico Sammito Date: Fri, 10 May 2024 09:05:17 +0200 Subject: [PATCH 2/2] Update src/components/Header/Header.module.scss --- src/components/Header/Header.module.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Header/Header.module.scss b/src/components/Header/Header.module.scss index c1816cf..4defa81 100644 --- a/src/components/Header/Header.module.scss +++ b/src/components/Header/Header.module.scss @@ -20,6 +20,7 @@ &--full-height { padding: 0; + padding-top: 10rem; display: flex; align-items: center; min-height: 100vh;