diff --git a/.gitignore b/.gitignore index 5c3b10b..c96a5d3 100644 --- a/.gitignore +++ b/.gitignore @@ -36,4 +36,7 @@ go.work.sum *.toml /tmp +#tailwind +./tailwindcss +/css/main.css diff --git a/css/index.css b/css/index.css deleted file mode 100644 index 6171f12..0000000 --- a/css/index.css +++ /dev/null @@ -1,45 +0,0 @@ -.htmx-indicator { - opacity: 0; - transition: opacity 500ms ease-in; -} -.htmx-request .htmx-indicator { - opacity: 1; -} -.htmx-request.htmx-indicator { - opacity: 1; -} - -.contact.htmx-swapping { - opacity: 0; - transition: opacity 500ms ease-in; -} - -.nav-link { - padding-bottom: 2px; - border-bottom: 2px solid transparent; - transition: all 0.2s; -} -.nav-link.active { - color: #2563eb; - border-bottom-color: #2563eb; - font-weight: 600; -} - -.table-th { - text-align: center; - font-size: large; - font-weight: bold; - color: #4b5563; - padding: 0.7rem 0.7rem 1rem 1rem; - border: 2px solid #4b5563; - border-radius: 6px; -} - -.table-td { - text-align: center; - font-size: medium; - font-weight: 450; - color: #4b5563; - border: 2px solid #4b5563; - border-radius: 6px; -} diff --git a/css/tailwind.css b/css/tailwind.css new file mode 100644 index 0000000..edc497f --- /dev/null +++ b/css/tailwind.css @@ -0,0 +1,2 @@ +@import 'tailwindcss'; +@config "../tailwind.config.js"; diff --git a/data/experience.json b/data/experience.json index c99f42e..f859376 100644 --- a/data/experience.json +++ b/data/experience.json @@ -1,19 +1,30 @@ [ { - "company": "AIS - Advanced Info Service Plc", - "position": "Frontend web developer", + "company": "Idpassglobal", + "position": "Java/C++ OpenCV Developer", + "employeeType": "Main", + "tasks": [ + "develop a mobile application to scan documents using OpenCV", + "develop a flutter application to open a web view" + ], + "tools": "Android Studio, OpenCV, Java, Flutter", + "startFrom": "February 2019" + }, + { + "company": "AIS (Advanced Info Service Plc)", + "position": "Frontend Web Developer", "employeeType": "Vendor", "tasks": [ - "add new features to a web applicaton for AIS employees to process SIMs", + "add new features to a Web applicaton for AIS employees to process SIMs", "work on MongoDB queries", "develop functionality to recover sim process data during system failures" ], "tools": "Angular JS, MongoDB", - "timePeriod": "Nov 2019 - Jan 2021" + "startFrom": "November 2019" }, { "company": "True Corporation", - "position": "Fullstack web developer", + "position": "Fullstack Web Developer", "employeeType": "Outsource", "tasks": [ "develop frontend features using React JS", @@ -22,11 +33,11 @@ "performance tuning on MySQL queries by indexing and query optimization" ], "tools": "React JS, Golang, MySQL, Cassandra, MinIO, Elasticsearch", - "timePeriod": "Feb 2021 - June 2023" + "startFrom": "February 2021" }, { "company": "True Corporation", - "position": "Backend web developer", + "position": "Backend Web Developer", "employeeType": "Vendor", "tasks": [ "developing new APIs on Golang, utilizing goroutines and channels for concurrency to handle high throughput", @@ -34,39 +45,39 @@ "using db optimization/concurrency to bring down api response time from multiple seconds to under or just over a second with acceptable CPU and memory usage" ], "tools": "Golang, MongoDB", - "timePeriod": "July 2023 - February 2024" + "startFrom": "July 2023" }, { "company": "AIS - Advanced Info Service Plc", - "position": "Backend web developer", + "position": "Backend Web Developer", "employeeType": "Vendor", "tasks": [ "develop numerours APIs on a limited timeframe using Golang", "using kafka for producing and consuming messages" ], "tools": "NodeJS, MongoDB, Kafka", - "timePeriod": "March 2024 - February 2025" + "startFrom": "March 2024" }, { "company": "Thai Watsadu Ltd", - "position": "Flutter mobile developer", + "position": "Flutter mobile Developer", "employeeType": "Outsource", "tasks": [ "help integrate analytics SDKs(ga4, appsflyer and segment) into the present day TOPS mobile application to fire events for user behavior tracking", "closely work with the marketing team to plan out which events to track and how to implement them" ], "tools": "Flutter, GA4, Appsflyer, Segment", - "timePeriod": "March 2025 - August 2025" + "startFrom": "March 2025" }, { "company": "AIS - Advanced Info Service Plc", - "position": "Backend web developer", + "position": "Backend Web Developer", "employeeType": "Vendor", "tasks": [ "develop new APIs using Golang", "using kafka for producing and consuming messages" ], "tools": "NodeJS, MongoDB, Kafka", - "timePeriod": "September 2025 - Present" + "startFrom": "September 2025" } ] diff --git a/internal/store/experience_store_json.go b/internal/store/experience_store_json.go index 74a1752..4f671e7 100644 --- a/internal/store/experience_store_json.go +++ b/internal/store/experience_store_json.go @@ -14,7 +14,7 @@ type ExperienceJSON struct { Position string `json:"position"` Tasks []string `json:"tasks"` Tools string `json:"tools"` - TimePeriod string `json:"timePeriod"` + StartFrom string `json:"startFrom"` } func GetAllExperiencesJSON() ([]ExperienceJSON, error) { diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..96e5e7c --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,19 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: ['./views/**/*.html'], + theme: { + extend: { + colors: { + primary: '#e6ebf5', // light mode background + secondary: '#d3d9e6', // light mode footer + darkprimary: '#23243b', // dark mode background + darksecondary: '#2f314a', // dark mode footer + bodytext: '#111827', // light mode text + darkbodytext: '#f5f5f5', // dark mode text + accent: '#9333ea', // light mode accent + darkaccent: '#2563eb', // dark mode accent + }, + }, + }, + plugins: [], +}; diff --git a/views/experience.html b/views/experience.html index 941419f..536e8de 100644 --- a/views/experience.html +++ b/views/experience.html @@ -5,19 +5,20 @@ My CV Website - - + - - - {{ template "header" }} - -
{{ template "experience-partial" .}}
+ + +
+ {{ template "experience-partial" .}} +
{{ template "footer" }} {{ template "script" }} -{{ end}} \ No newline at end of file +{{ end}} diff --git a/views/footer.html b/views/footer.html index 260b6b0..7729784 100644 --- a/views/footer.html +++ b/views/footer.html @@ -1,5 +1,5 @@ {{ block "footer" .}} -