Several changes :)
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m16s
All checks were successful
Docker Deploy / build-and-push (push) Successful in 3m16s
This commit is contained in:
@@ -49,7 +49,7 @@ export default function ResumeDownloadButton({
|
|||||||
<button
|
<button
|
||||||
onClick={handleDownload}
|
onClick={handleDownload}
|
||||||
disabled={isLoading}
|
disabled={isLoading}
|
||||||
class={`btn btn-primary inline-flex items-center gap-2 text-sm sm:text-base ${className}`}
|
class={`btn btn-primary rounded-full inline-flex items-center gap-2 text-sm sm:text-base ${className}`}
|
||||||
>
|
>
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
<>
|
<>
|
||||||
|
@@ -205,22 +205,20 @@ export default function ResumeSettingsModal({
|
|||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
role="tab"
|
role="tab"
|
||||||
class={`px-4 py-2 rounded-full text-sm font-medium transition-all duration-200 ${
|
class={`px-4 py-2 rounded-full text-sm transition-all duration-200 ${activeTab === "upload"
|
||||||
activeTab === "upload"
|
? "bg-primary font-bold text-primary-content shadow-sm"
|
||||||
? "bg-primary text-primary-content shadow-sm"
|
: "text-base-content/70 hover:text-base-content font-bold hover:bg-base-200"
|
||||||
: "text-base-content/70 hover:text-base-content hover:bg-base-200"
|
}`}
|
||||||
}`}
|
|
||||||
onClick={() => setActiveTab("upload")}
|
onClick={() => setActiveTab("upload")}
|
||||||
>
|
>
|
||||||
Upload File
|
Upload File
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
role="tab"
|
role="tab"
|
||||||
class={`px-4 py-2 rounded-full text-sm font-medium transition-all duration-200 ${
|
class={`px-4 py-2 rounded-full text-sm font-bold transition-all duration-200 ${activeTab === "edit"
|
||||||
activeTab === "edit"
|
? "bg-primary text-primary-content shadow-sm"
|
||||||
? "bg-primary text-primary-content shadow-sm"
|
: "text-base-content/70 hover:text-base-content font-bold hover:bg-base-200"
|
||||||
: "text-base-content/70 hover:text-base-content hover:bg-base-200"
|
}`}
|
||||||
}`}
|
|
||||||
onClick={() => setActiveTab("edit")}
|
onClick={() => setActiveTab("edit")}
|
||||||
>
|
>
|
||||||
Edit TOML
|
Edit TOML
|
||||||
@@ -234,22 +232,20 @@ export default function ResumeSettingsModal({
|
|||||||
{activeTab === "upload" && (
|
{activeTab === "upload" && (
|
||||||
<div class="h-full">
|
<div class="h-full">
|
||||||
<div
|
<div
|
||||||
class={`border-2 border-dashed rounded-lg p-6 text-center transition-colors h-full flex items-center justify-center ${
|
class={`border-2 border-dashed rounded-lg p-6 text-center transition-colors h-full flex items-center justify-center ${dragActive.value
|
||||||
dragActive.value
|
? "border-primary bg-primary/10"
|
||||||
? "border-primary bg-primary/10"
|
: "border-base-300 hover:border-primary/50"
|
||||||
: "border-base-300 hover:border-primary/50"
|
}`}
|
||||||
}`}
|
|
||||||
onDrop={handleDrop}
|
onDrop={handleDrop}
|
||||||
onDragOver={handleDragOver}
|
onDragOver={handleDragOver}
|
||||||
onDragLeave={handleDragLeave}
|
onDragLeave={handleDragLeave}
|
||||||
>
|
>
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div class="text-4xl">📄</div>
|
|
||||||
<div>
|
<div>
|
||||||
<p class="text-lg font-medium">
|
<p class="text-lg font-medium">
|
||||||
Drop your TOML file here
|
Drop your TOML file here
|
||||||
</p>
|
</p>
|
||||||
<p class="text-base-content/70">or click to browse</p>
|
<p class="text-base-content/70">or click below to browse</p>
|
||||||
</div>
|
</div>
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
|
@@ -62,11 +62,6 @@ export const homepageSections: HomepageSections = {
|
|||||||
// Resume Configuration
|
// Resume Configuration
|
||||||
export const resumeConfig: ResumeConfig = {
|
export const resumeConfig: ResumeConfig = {
|
||||||
tomlFile: resumeToml,
|
tomlFile: resumeToml,
|
||||||
pdfFile: {
|
|
||||||
path: "/files/Atridad_Lahiji_Resume.pdf",
|
|
||||||
filename: "Atridad_Lahiji_Resume.pdf",
|
|
||||||
displayText: "Download Resume (PDF)",
|
|
||||||
},
|
|
||||||
layout: {
|
layout: {
|
||||||
leftColumn: ["experience", "volunteer"],
|
leftColumn: ["experience", "volunteer"],
|
||||||
rightColumn: ["skills", "education", "awards"],
|
rightColumn: ["skills", "education", "awards"],
|
||||||
|
@@ -52,11 +52,6 @@ export interface NavigationItem {
|
|||||||
|
|
||||||
export interface ResumeConfig {
|
export interface ResumeConfig {
|
||||||
tomlFile: string; // Can be a file path or raw TOML content
|
tomlFile: string; // Can be a file path or raw TOML content
|
||||||
pdfFile: {
|
|
||||||
path: string;
|
|
||||||
filename: string;
|
|
||||||
displayText: string;
|
|
||||||
};
|
|
||||||
layout?: {
|
layout?: {
|
||||||
leftColumn?: string[];
|
leftColumn?: string[];
|
||||||
rightColumn?: string[];
|
rightColumn?: string[];
|
||||||
|
Reference in New Issue
Block a user