summaryrefslogtreecommitdiff
path: root/src/frontend/components/CheckoutItem/CheckoutItem.styled.ts
diff options
context:
space:
mode:
authorSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
committerSaumit <justsaumit@protonmail.com>2025-09-27 02:14:26 +0530
commit82e03978b89938219958032efb1448cc76baa181 (patch)
tree626f3e54d52ecd49be0ed3bee30abacc0453d081 /src/frontend/components/CheckoutItem/CheckoutItem.styled.ts
Initial snapshot - OpenTelemetry demo 2.1.3 -f
Diffstat (limited to 'src/frontend/components/CheckoutItem/CheckoutItem.styled.ts')
-rw-r--r--src/frontend/components/CheckoutItem/CheckoutItem.styled.ts90
1 files changed, 90 insertions, 0 deletions
diff --git a/src/frontend/components/CheckoutItem/CheckoutItem.styled.ts b/src/frontend/components/CheckoutItem/CheckoutItem.styled.ts
new file mode 100644
index 0000000..013250e
--- /dev/null
+++ b/src/frontend/components/CheckoutItem/CheckoutItem.styled.ts
@@ -0,0 +1,90 @@
+// Copyright The OpenTelemetry Authors
+// SPDX-License-Identifier: Apache-2.0
+
+import Image from 'next/image';
+import styled from 'styled-components';
+
+export const CheckoutItem = styled.div`
+ display: grid;
+ grid-template-columns: 1fr;
+ padding: 25px;
+ border-radius: 5px;
+ border: 1px solid ${({ theme }) => theme.colors.lightBorderGray};
+
+ ${({ theme }) => theme.breakpoints.desktop} {
+ grid-template-columns: 40% 40% 1fr;
+ }
+`;
+
+export const ItemDetails = styled.div`
+ display: flex;
+ gap: 25px;
+ padding-bottom: 25px;
+ border-bottom: 1px solid ${({ theme }) => theme.colors.lightBorderGray};
+
+ ${({ theme }) => theme.breakpoints.desktop} {
+ padding-bottom: 0;
+ padding-right: 25px;
+ border-bottom: none;
+ border-right: 1px solid ${({ theme }) => theme.colors.lightBorderGray};
+ }
+`;
+
+export const Details = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: 5px;
+
+ span,
+ p {
+ margin: 0;
+ font-weight: ${({ theme }) => theme.fonts.regular};
+ }
+`;
+
+export const ItemName = styled.h5`
+ margin: 0;
+ font-size: ${({ theme }) => theme.sizes.mLarge};
+`;
+
+export const ShippingData = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: 5px;
+ padding: 25px 0;
+ border-bottom: 1px solid ${({ theme }) => theme.colors.lightBorderGray};
+
+ p {
+ margin: 0;
+ font-weight: ${({ theme }) => theme.fonts.light};
+ }
+
+ ${({ theme }) => theme.breakpoints.desktop} {
+ padding: 0 25px;
+ border-bottom: none;
+ border-right: 1px solid ${({ theme }) => theme.colors.lightBorderGray};
+ }
+`;
+
+export const Status = styled.div`
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding-top: 25px;
+ gap: 10px;
+
+ ${({ theme }) => theme.breakpoints.desktop} {
+ padding-top: 0;
+ }
+`;
+
+export const ItemImage = styled(Image).attrs({
+ width: '80',
+ height: '80',
+})`
+ border-radius: 5px;
+`;
+
+export const SeeMore = styled.a`
+ color: ${({ theme }) => theme.colors.otelBlue};
+`;