Skip to content

Commit

Permalink
Merge pull request #75 from TCP-Tech/main
Browse files Browse the repository at this point in the history
changed font
  • Loading branch information
Kraniket901 authored Oct 2, 2023
2 parents 85d8948 + feb295d commit 73d614c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<h3 align="center">CodeUtsava 7.0</h3>

<p align="center">
The official repository for the website of CodeUtsava 7.0
The Official Repository for the website of CodeUtsava 7.0
<br />
<br />
<a href="https://codeutsava7.netlify.app/">View Live</a>
Expand Down
12 changes: 11 additions & 1 deletion src/pages/home/sections/section14/Section14.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,21 @@ const Section14 = () => {
],
});

const getFontSize = () => {
const fontSize = window.innerWidth <= 767 ? "8px" : "14px";
return fontSize;
};

const optionsWithoutToolbar = {
...state.options,
toolbar: {
show: false,
},
dataLabels: {
style: {
fontSize: getFontSize(),
},
},
};

const [counterOn, setCounterOn] = useState(false);
Expand Down Expand Up @@ -93,7 +103,7 @@ const Section14 = () => {
<div className="codeutsava__section14-right">
<Chart
options={{
...state.options,
...optionsWithoutToolbar,
xaxis: {
categories: ["2016", "2018", "2019", "2020", "2022", "2022-23", "2023-24"],
title: {
Expand Down

0 comments on commit 73d614c

Please sign in to comment.