-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Molecule added for Profile Card #165
Open
Rohan27s
wants to merge
1
commit into
SamagraX-Stencil:dev
Choose a base branch
from
Rohan27s:feat/nipun-molecules
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+16 KB
packages/molecules/%SystemDrive%/ProgramData/Microsoft/Windows/Caches/cversions.2.db
Binary file not shown.
Binary file added
BIN
+1.21 KB
...icrosoft/Windows/Caches/{4819D7AC-741E-4EB8-9922-4572D3973EAB}.2.ver0x0000000000000001.db
Binary file not shown.
Binary file added
BIN
+297 KB
...icrosoft/Windows/Caches/{6AF0698E-D558-4F6E-9B3C-3716689AF493}.2.ver0x0000000000000001.db
Binary file not shown.
Binary file added
BIN
+638 KB
...icrosoft/Windows/Caches/{DDF571F2-BE98-426D-8288-1A9A39C3FDA2}.2.ver0x0000000000000001.db
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,158 @@ | ||
/* index.module.css */ | ||
|
||
.profileCard { | ||
border-radius: 8px; | ||
padding: 16px; | ||
margin:auto; | ||
} | ||
|
||
.teacherCard { | ||
padding: 12px; | ||
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.25); | ||
border: 2.5px solid transparent; | ||
border-image-slice: 1; | ||
border-radius: 2px; | ||
margin-top: 1rem; | ||
} | ||
|
||
.studentCardContainer { | ||
box-shadow: 0px 0px 6px 0px rgba(47, 50, 147, 0.5); | ||
|
||
box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.25)!important; | ||
|
||
padding: 12px; | ||
border-radius: 8px; | ||
border: 3px solid #e0e0e0; | ||
} | ||
|
||
.goldCard { | ||
border-image-source: radial-gradient(69.33% 163.05% at 42.86% 44.12%, | ||
#ffc50c 0%, | ||
#997607 99.67%); | ||
box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.25)!important; | ||
} | ||
|
||
.silverCard { | ||
border-image-source: radial-gradient(69.33% 163.05% at 42.86% 44.12%, | ||
#c6c6c6 0%, | ||
#4a4a4a 99.67%); | ||
box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.25)!important; | ||
|
||
} | ||
|
||
.bronzeCard { | ||
border-image-source: radial-gradient(69.33% 163.05% at 42.86% 44.12%, | ||
#fd6930 0%, | ||
#6e270c 99.67%); | ||
box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.25)!important; | ||
|
||
} | ||
|
||
.goldName { | ||
background-image: radial-gradient(69.33% 163.05% at 42.86% 44.12%, #FFC50C 0%, #997607 99.67%) ; | ||
|
||
} | ||
|
||
.silverName { | ||
background: radial-gradient(69.33% 163.05% at 42.86% 44.12%, | ||
#c6c6c6 0%, | ||
#4a4a4a 99.67%); | ||
} | ||
|
||
.bronzeName { | ||
background: radial-gradient(69.33% 163.05% at 42.86% 44.12%, | ||
#fd6930 0%, | ||
#6e270c 99.67%); | ||
} | ||
|
||
.TeacherName { | ||
text-align: center; | ||
color: transparent; | ||
border-radius: 10px; | ||
-webkit-background-clip: text; | ||
-webkit-text-fill-color: transparent; | ||
background-clip: text; | ||
} | ||
|
||
.studentName { | ||
font-family: "Noto Sans Devanagari"; | ||
font-size: 20px; | ||
font-weight: 700; | ||
text-align: center; | ||
padding-bottom: 8px; | ||
color: #000; | ||
} | ||
|
||
.line { | ||
height: 2px; | ||
border: none; | ||
} | ||
|
||
.goldLine { | ||
background-image: radial-gradient(69.33% 163.05% at 42.86% 44.12%, | ||
#ffc50c 0%, | ||
#997607 99.67%); | ||
} | ||
|
||
.silverLine { | ||
background-image: radial-gradient(69.33% 163.05% at 42.86% 44.12%, | ||
#c6c6c6 0%, | ||
#4a4a4a 99.67%); | ||
} | ||
|
||
.bronzeLine { | ||
background-image: radial-gradient(69.33% 163.05% at 42.86% 44.12%, | ||
#fd6930 0%, | ||
#6e270c 99.67%); | ||
|
||
} | ||
|
||
.defaultLine { | ||
background-image: radial-gradient(rgba(200, 216, 253, 1),rgba(200, 216, 253, 1)); | ||
margin-bottom: 15px; | ||
} | ||
|
||
.bottomText { | ||
color: #2f3293; | ||
width: 100%; | ||
margin: auto; | ||
max-width: 86px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
} | ||
|
||
.image { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
margin-top: -12px; | ||
} | ||
|
||
.details { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
margin: 0 auto; | ||
margin-top: 8px; | ||
width: 90%; | ||
} | ||
|
||
.detailLineItem { | ||
display: flex; | ||
font-family: "Noto Sans Devanagari"; | ||
font-size: 14px; | ||
font-weight: 500; | ||
line-height: 11.4px; | ||
margin: 16px 0; | ||
} | ||
|
||
.detailLineItemLabel { | ||
color: #5e5d5c; | ||
} | ||
|
||
.detailLineItemValue { | ||
margin-left: 2px; | ||
color: #2f3293; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import ProfileCard from './index'; | ||
|
||
const meta = { | ||
title: 'Molecule/ProfileCard', | ||
component: ProfileCard, | ||
tags: ['autodocs'], | ||
parameters: { | ||
layout: 'centered', | ||
}, | ||
args: { | ||
name: 'John Doe', | ||
profileType: 'teacher', | ||
district: 'Agra', | ||
block: 'Block A', | ||
}, | ||
} satisfies Meta<typeof ProfileCard>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const TeacherGold: Story = { | ||
args: { | ||
name: 'आकाश सिंगला', | ||
profileType: 'teacher', | ||
teacherDetails: { | ||
type: 'gold', | ||
imageUrl: '/gold.png', | ||
}, | ||
}, | ||
}; | ||
|
||
export const TeacherSilver: Story = { | ||
args: { | ||
name: 'आकाश सिंगला', | ||
profileType: 'teacher', | ||
teacherDetails: { | ||
type: 'silver', | ||
imageUrl: '/silver.png', | ||
}, | ||
}, | ||
}; | ||
|
||
export const TeacherBronze: Story = { | ||
args: { | ||
name: 'आकाश सिंगला', | ||
profileType: 'teacher', | ||
teacherDetails: { | ||
type: 'bronze', | ||
imageUrl: '/bronze.png', | ||
}, | ||
}, | ||
}; | ||
|
||
export const Student: Story = { | ||
args: { | ||
name: 'रूद्रम सिंह', | ||
profileType: 'student', | ||
studentDetails: { | ||
id: '0987654321', | ||
grade: 2, | ||
roll_no: 6565, | ||
imageUrl: '/information-bird.png', | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove redundant box-shadow property.
The
.studentCardContainer
style has a redundant box-shadow property on line 19.- box-shadow: 0px 0px 6px 0px rgba(47, 50, 147, 0.5);
Committable suggestion